<?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=Zebra_2_Theme</id>
	<title>Zebra 2 Theme - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Zebra_2_Theme"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Zebra_2_Theme&amp;action=history"/>
	<updated>2026-05-07T11:51:46Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Zebra_2_Theme&amp;diff=6515&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Zebra_2_Theme&amp;diff=6515&amp;oldid=prev"/>
		<updated>2024-10-18T06:47:35Z</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;Версия от 06:47, 18 октября 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=Zebra_2_Theme&amp;diff=6514&amp;oldid=prev</id>
		<title>1&gt;Dwahl в 01:26, 29 мая 2012</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Zebra_2_Theme&amp;diff=6514&amp;oldid=prev"/>
		<updated>2012-05-29T01:26:00Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Themes}}&lt;br /&gt;
Zebra 2 is a [[:Category:Contributed_code|contributed (third party)]] theme for Moodle 2 written by Danny (d_wahl) Wahl.&lt;br /&gt;
&lt;br /&gt;
==Theme Objectives==&lt;br /&gt;
&lt;br /&gt;
There are two main goals in the design of this theme.  The first is to provide a responsive layout.  This is achieved by using the CSS 3 media queries and (optionally) [https://github.com/scottjehl/Respond respond.js] for browsers that don&amp;#039;t natively support media queries.  The second is to provide simple, yet robust customization of the look and feel.  This is achieved by using a custom [[Theme_settings|settings page]] housing almost 40 settings.&lt;br /&gt;
&lt;br /&gt;
==Theme Settings==&lt;br /&gt;
&lt;br /&gt;
Zebra provides a variety of theme settings.  Below is a list of all the settings broken down into general categories.&lt;br /&gt;
&lt;br /&gt;
===Header Settings===&lt;br /&gt;
&lt;br /&gt;
====Logo URL (logourl)====&lt;br /&gt;
&lt;br /&gt;
The path to your logo image.  Image sources support the following methods:&lt;br /&gt;
&lt;br /&gt;
* [[dev:Theme_changes_in_2.0#The_image_resolver|Moodle image resolver API]]&lt;br /&gt;
* Full path&lt;br /&gt;
* Relative path&lt;br /&gt;
&lt;br /&gt;
The default value uses the Image Resolver API. The actual location relative to zebra theme folder is: zebra/pix/logo/logo.png.  This setting is handled by the function [https://github.com/thedannywahl/Zebra_4_Moodle_2/blob/master/lib.php#L298-328 zebra_set_logourl()] in the theme library.&lt;br /&gt;
&lt;br /&gt;
Default value:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
logo/logo&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example values:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
logo/myschoollogo&lt;br /&gt;
http://domain.com/theme/image.php?theme=zebra&amp;amp;image=logo&amp;amp;rev=1&amp;amp;component=theme&lt;br /&gt;
http://domain.com/path/to/image.jpg&lt;br /&gt;
/path/to/file/companylogo.png&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Specific rule in core.css:&lt;br /&gt;
&amp;lt;code css&amp;gt;&lt;br /&gt;
#page-header {&lt;br /&gt;
    background: url([[setting:logourl]]) no-repeat scroll left top [[setting:headerbgcolor]];&lt;br /&gt;
    min-height: [[setting:logourlheight]];&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
====Logo image height (logourlheight)====&lt;br /&gt;
&lt;br /&gt;
The height that the theme allows for the logo image in the page-header div.  If you do not have a logo it is recommended to leave this setting at its default value (100px) to leave room of the profile picture in the header (if [[#Show_user_picture_(userpic)|userpic]] is enabled).  This setting is handled by the function [https://github.com/thedannywahl/Zebra_4_Moodle_2/blob/master/lib.php#L330-346 zebra_set_logourlheight()] in the theme library.&lt;br /&gt;
&lt;br /&gt;
Default value:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
100px&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example values:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
50px&lt;br /&gt;
5%&lt;br /&gt;
3em&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Specific rule in core.css:&lt;br /&gt;
&amp;lt;code css&amp;gt;&lt;br /&gt;
#page-header {&lt;br /&gt;
    background: url([[setting:logourl]]) no-repeat scroll left top [[setting:headerbgcolor]];&lt;br /&gt;
    min-height: [[setting:logourlheight]];&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
====Alternate text (headeralt)====&lt;br /&gt;
&lt;br /&gt;
Alternative text to use instead of the value of $PAGE-&amp;gt;heading.  If this value is NULL (Empty) then $PAGE-&amp;gt;heading will be used.  In order to display no title on a page use a blank space (&amp;amp;amp;nbsp;).  This setting is referenced by header.php and called in both general.php and report.php.&lt;br /&gt;
&lt;br /&gt;
Default Value:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(Empty)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example Values:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
School Name&lt;br /&gt;
Company Name&lt;br /&gt;
Short Company Motto&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Specific reference in header.php:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
if (!empty($PAGE-&amp;gt;theme-&amp;gt;settings-&amp;gt;headeralt)) {&lt;br /&gt;
    $headeralt = $PAGE-&amp;gt;theme-&amp;gt;settings-&amp;gt;headeralt; //Use the theme settings for the page title&lt;br /&gt;
} else {&lt;br /&gt;
    $headeralt = $PAGE-&amp;gt;heading; //Use the default page title if the theme setting value is empty&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Specific call in general.php (and report.php):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
&amp;lt;h1 class=&amp;quot;headermain&amp;quot;&amp;gt;&amp;lt;?php echo $headeralt; ?&amp;gt;&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
====Background URL (backgroundurl)====&lt;br /&gt;
&lt;br /&gt;
The path to your background image.  Image sources support the following methods:&lt;br /&gt;
&lt;br /&gt;
* Moodle image resolver API&lt;br /&gt;
* Full path&lt;br /&gt;
* Relative path&lt;br /&gt;
&lt;br /&gt;
The default value uses the Image Resolver API. The actual location relative to zebra theme folder is: zebra/pix/core/background.png.  This setting is handled by the function [https://github.com/thedannywahl/Zebra_4_Moodle_2/blob/master/lib.php#L348-378 zebra_set_backgroundurl()] in the theme library.&lt;br /&gt;
&lt;br /&gt;
Default Value:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
core/background&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example Values:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
core/swirl&lt;br /&gt;
http://domain.com/path/to/background.jpg&lt;br /&gt;
/path/to/file/companyswirl.png&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Specific rule in pagelayout.css:&lt;br /&gt;
&amp;lt;code css&amp;gt;&lt;br /&gt;
body {&lt;br /&gt;
    padding: 0 10px 10px 10px;&lt;br /&gt;
    background: url([[setting:backgroundurl]]) no-repeat scroll center top transparent;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Show user picture (userpic)====&lt;br /&gt;
&lt;br /&gt;
==Technical Details==&lt;br /&gt;
&lt;br /&gt;
==Download link==&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
[[Category:Contributed code]]&lt;/div&gt;</summary>
		<author><name>1&gt;Dwahl</name></author>
	</entry>
</feed>