<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Development%3ATheme_directory_guide</id>
	<title>Development:Theme directory guide - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Development%3ATheme_directory_guide"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:Theme_directory_guide&amp;action=history"/>
	<updated>2026-05-07T23:09:26Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Development:Theme_directory_guide&amp;diff=11946&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:Theme_directory_guide&amp;diff=11946&amp;oldid=prev"/>
		<updated>2024-10-21T08:53:15Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 08:53, 21 октября 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Олег Давидович</name></author>
	</entry>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Development:Theme_directory_guide&amp;diff=11945&amp;oldid=prev</id>
		<title>1&gt;Tsala: cat edit</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:Theme_directory_guide&amp;diff=11945&amp;oldid=prev"/>
		<updated>2007-06-18T10:24:08Z</updated>

		<summary type="html">&lt;p&gt;cat edit&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Themes}}&lt;br /&gt;
&lt;br /&gt;
In the standard Moodle distribution, all themes are placed in the theme/ directory, this leads to developers hardcoding this location into their themes and references to themes. Developers should not take this location for granted, instead using the variables which moodle provides for the purpose of specifying a theme location.&lt;br /&gt;
&lt;br /&gt;
Starting with 1.7, moodle will fully support changing the location in which themes are stored. Developers need to ensure they are using the provided variables to ensure compatibility with this feature.&lt;br /&gt;
&lt;br /&gt;
== $CFG-&amp;gt;themewww ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;This variable has been available since version 1.5.1&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;$CFG-&amp;gt;themewww&amp;#039;&amp;#039; variable contains the web-accessible location of the theme directory. If it is not set by the site administrator it will be the default of $CFG-&amp;gt;wwwroot . &amp;#039;/theme&amp;#039;. i.e. &amp;#039;http://my.moodle.site/theme&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== $CFG-&amp;gt;httpsthemewww ==&lt;br /&gt;
{{Moodle 1.7}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;This variable will be introduced in version 1.7&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;$CFG-&amp;gt;httpsthemewww&amp;#039;&amp;#039; variable contains the same information as $CFG-&amp;gt;themewww with the correct http/https prefix. This  should be used to provide proper references to files on pages which could be https protected.&lt;br /&gt;
&lt;br /&gt;
== $CFG-&amp;gt;themedir ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;This variable has been available since 1.5.1&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;$CFG-&amp;gt;themedir&amp;#039;&amp;#039; variable contains the local location on the moodle server of the theme directory. If it is not set by the site administrator it will be the default of $CFG-&amp;gt;dirroot . &amp;#039;/theme&amp;#039;. i.e. &amp;#039;/my/moodle/location/theme&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== How to refer to the directory of the current theme ==&lt;br /&gt;
The most common use of the theme directories will be used to specify the current theme directory for inclusion/display of files.&lt;br /&gt;
&lt;br /&gt;
The correct way to specify the http path to the directory is:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$CFG-&amp;gt;themewww .&amp;#039;/&amp;#039;. current_theme()  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The exception to this is when specifying http theme paths which might be displayed on secure pages. In order to specify the http path to the theme directory (allow for a secure url), developers should use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$CFG-&amp;gt;httpsthemewww .&amp;#039;/&amp;#039;. current_theme()  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In order to refer to the local path to theme files, developers should use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$CFG-&amp;gt;themedir .&amp;#039;/&amp;#039;. current_theme()  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Themes]]&lt;/div&gt;</summary>
		<author><name>1&gt;Tsala</name></author>
	</entry>
</feed>