在 Moodle 3.7 中查找图像的路径
Finding the path for an image in Moodle 3.7
我在本地主机上安装了 Moodle 3.7(Ubuntu 19.04、Apache2、PostgreSQL、PHP 7.2)。我想更改主题中的一些图标,我正在尝试找到存储图标的确切文件夹。
当我在 Google Chrome 中单击 F12 并指向我要更改的特定图像时,我看到了这个:
<img class="icon " alt="" aria-hidden="true" src="http://localhost/moodle/theme/image.php/lambda/core/1556073422/i/duration">
所以,这张图片的路径显示了一些 PHP 文件。我打开了 PHP 文件,但猜不出图像在我的文件夹中的位置。
如何找到这张图片的真实路径?
您要找的图片是
[Moodleroot]/pix/i/duration.png
或 [Moodleroot]/pix/i/duration.svg
.
如果您创建图像文件并将其放置在主题中,它可能会在主题中被覆盖
[Moodleroot]/theme/[theme name]/pix_core/i/duration.png
或 [Moodleroot]/theme/[theme name]/pix_core/i/duration.svg
确保从 Moodle 中清除所有缓存以应用更改。
我在本地主机上安装了 Moodle 3.7(Ubuntu 19.04、Apache2、PostgreSQL、PHP 7.2)。我想更改主题中的一些图标,我正在尝试找到存储图标的确切文件夹。
当我在 Google Chrome 中单击 F12 并指向我要更改的特定图像时,我看到了这个:
<img class="icon " alt="" aria-hidden="true" src="http://localhost/moodle/theme/image.php/lambda/core/1556073422/i/duration">
所以,这张图片的路径显示了一些 PHP 文件。我打开了 PHP 文件,但猜不出图像在我的文件夹中的位置。
如何找到这张图片的真实路径?
您要找的图片是
[Moodleroot]/pix/i/duration.png
或 [Moodleroot]/pix/i/duration.svg
.
如果您创建图像文件并将其放置在主题中,它可能会在主题中被覆盖
[Moodleroot]/theme/[theme name]/pix_core/i/duration.png
或 [Moodleroot]/theme/[theme name]/pix_core/i/duration.svg
确保从 Moodle 中清除所有缓存以应用更改。