如何在不使用其他HTML框的情况下找到并编辑Moodle的HTML代码?
我已经狩猎了几天,无论出于何种原因,代码似乎很难链接到链接到其他不存在文件的文件的文件。那么,谁能告诉我在哪里可以找到用于将课程拼凑在一起的HTML / PHP / SQL代码或任何可能的代码?
IM试图编辑的部分是此红色块:
查看浏览器开发人员工具,DIV称为Page-标题。但是,更现实的是,它可以称为“疯狂”中完全不同的东西。
挖掘后,我遇到了drawer.mustche < / code>在boost / templates /和第129行中,它说
{{utput.full.header}}}}}} < / code>
“>
但是我从那里迷路了,因为似乎没有任何文件可以远程引用完整的标题。
I've been hunting for days now and for whatever reason the code seems to be pretty elusive with files linking to files that link to other files that don't exist. So can anyone tell me where i can find the HTML / PHP / SQL code, or whatever it may be, that is used to piece together the course?
The section im trying to edit is this red block:
Looking at the browser developer tools the div is called page-header. But more realistically it could be called something completely different in the madness that pieces it all together.
After some digging i came across drawers.mustche
in boost / templates / and on line 129 it says {{{ output.full.header}}}
but i get lost from there because there doesn't seem to be any file that remotely references the full header.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在Moodle中,您可以使用主题插件渲染器来渲染核心输出。
请参阅主题渲染器方法。
https://docs.moodle.org/dev/dev/overriding_a_renderer lib \ outputrenderers.php 第4340号线。
从 lib \ templates \ full_header.mustache 加载的完整标头的HTML内容
您可以使用当前运行的主题覆盖Full_header HTML内容。
以下步骤将帮助您更改完整的标题。
在当前运行主题“模板”文件夹中创建文件夹“ core”。
IE 主题\ boost \ templates \ core
从lib \ templates文件夹中复制 full_header.mustache 到新创建的主题\ temot \ template \ core foldlate \ core文件夹。
进行主题\ templates \ full_header.mustache 文件
的更改
清除 site admin&gt中的缓存
;开发&GT;吹扫库
In moodle, you can use the theme plugin renderers to render the core outputs.
Please refer to the theme renderer method.
https://docs.moodle.org/dev/Overriding_a_renderer
you can find the full_header function in lib\outputrenderers.php Line no 4340.
Html content of the full header loaded from lib\templates\full_header.mustache
You can override the full_header HTML content using the currently running theme.
The following steps will help you to change the full header.
Create the folder "core" in the current running theme "templates" folder.
i.e theme\boost\templates\core
Copy the full_header.mustache from the lib\templates folder to the newly created theme\template\core folder.
Do the changes in the theme\templates\full_header.mustache file
Clear the cache in Site admin > development > purge caches