Commit | Line | Data |
---|---|---|
b8fce7be S |
1 | <?php |
2 | ||
110e6876 | 3 | defined('MOODLE_INTERNAL') || die(); |
4 | ||
b8fce7be S |
5 | $THEME->name = 'magazine'; |
6 | ||
7 | //////////////////////////////////////////////////// | |
8 | // Name of the theme. Most likely the name of | |
ed5d13c0 | 9 | // the directory in which this file resides. |
b8fce7be S |
10 | //////////////////////////////////////////////////// |
11 | ||
59784b75 | 12 | $THEME->parents = array('canvas','base'); |
b8fce7be | 13 | |
b8fce7be S |
14 | ///////////////////////////////////////////////////// |
15 | // Which existing theme(s) in the /theme/ directory | |
ed5d13c0 PS |
16 | // do you want this theme to extend. A theme can |
17 | // extend any number of themes. Rather than | |
18 | // creating an entirely new theme and copying all | |
19 | // of the CSS, you can simply create a new theme, | |
20 | // extend the theme you like and just add the | |
b8fce7be S |
21 | // changes you want to your theme. |
22 | //////////////////////////////////////////////////// | |
23 | ||
b8fce7be S |
24 | $THEME->sheets = array('layout','core','colors','css3'); |
25 | ||
26 | //////////////////////////////////////////////////// | |
ed5d13c0 | 27 | // Name of the stylesheet(s) you've including in |
b8fce7be S |
28 | // this theme's /styles/ directory. |
29 | //////////////////////////////////////////////////// | |
30 | ||
59784b75 ME |
31 | $THEME->parents_exclude_sheets = array('base'=>array('pagelayout'),'canvas'=>array('pagelayout') ); |
32 | ||
33 | //////////////////////////////////////////////////// | |
34 | // An array of stylesheets not to inherit from the | |
35 | // themes parents | |
36 | //////////////////////////////////////////////////// | |
b8fce7be S |
37 | |
38 | $THEME->enable_dock = true; | |
39 | ||
40 | //////////////////////////////////////////////////// | |
41 | // Do you want to use the new navigation dock? | |
42 | //////////////////////////////////////////////////// | |
43 | ||
6c0fb99b SH |
44 | $THEME->editor_sheets = array('editor'); |
45 | ||
b8fce7be | 46 | //////////////////////////////////////////////////// |
ed5d13c0 | 47 | // An array of stylesheets to include within the |
b8fce7be S |
48 | // body of the editor. |
49 | //////////////////////////////////////////////////// | |
50 | ||
51 | $THEME->layouts = array( | |
5f73d19d | 52 | // Most backwards compatible layout without the blocks - this is the layout used by default |
b8fce7be S |
53 | 'base' => array( |
54 | 'file' => 'general.php', | |
5f73d19d | 55 | 'regions' => array(), |
b8fce7be | 56 | ), |
5f73d19d ME |
57 | // Standard layout with blocks, this is recommended for most pages with general information |
58 | 'standard' => array( | |
b8fce7be S |
59 | 'file' => 'general.php', |
60 | 'regions' => array('side-pre', 'side-post'), | |
61 | 'defaultregion' => 'side-post', | |
62 | ), | |
63 | 'course' => array( | |
64 | 'file' => 'general.php', | |
65 | 'regions' => array('side-pre', 'side-post'), | |
66 | 'defaultregion' => 'side-post' | |
67 | ), | |
68 | 'coursecategory' => array( | |
69 | 'file' => 'general.php', | |
70 | 'regions' => array('side-pre', 'side-post'), | |
71 | 'defaultregion' => 'side-post', | |
72 | ), | |
73 | 'incourse' => array( | |
74 | 'file' => 'general.php', | |
75 | 'regions' => array('side-pre', 'side-post'), | |
76 | 'defaultregion' => 'side-post', | |
77 | ), | |
78 | 'frontpage' => array( | |
79 | 'file' => 'frontpage.php', | |
80 | 'regions' => array('side-pre', 'side-post'), | |
81 | 'defaultregion' => 'side-post', | |
82 | ), | |
83 | 'admin' => array( | |
84 | 'file' => 'general.php', | |
85 | 'regions' => array('side-pre'), | |
86 | 'defaultregion' => 'side-pre', | |
87 | ), | |
88 | 'mydashboard' => array( | |
89 | 'file' => 'general.php', | |
90 | 'regions' => array('side-pre', 'side-post'), | |
91 | 'defaultregion' => 'side-post', | |
92 | 'options' => array('langmenu'=>true), | |
93 | ), | |
94 | 'mypublic' => array( | |
95 | 'file' => 'general.php', | |
96 | 'regions' => array('side-pre', 'side-post'), | |
97 | 'defaultregion' => 'side-post', | |
98 | ), | |
99 | 'login' => array( | |
100 | 'file' => 'general.php', | |
101 | 'regions' => array(), | |
102 | 'options' => array('langmenu'=>true), | |
103 | ), | |
104 | 'popup' => array( | |
110e6876 | 105 | 'file' => 'general.php', |
b8fce7be S |
106 | 'regions' => array(), |
107 | 'options' => array('nofooter'=>true, 'noblocks'=>true, 'nonavbar'=>true), | |
108 | ), | |
109 | 'frametop' => array( | |
110 | 'file' => 'general.php', | |
111 | 'regions' => array(), | |
112 | 'options' => array('nofooter'=>true), | |
113 | ), | |
114 | 'maintenance' => array( | |
115 | 'file' => 'general.php', | |
116 | 'regions' => array(), | |
117 | 'options' => array('nofooter'=>true, 'nonavbar'=>true), | |
118 | ), | |
119 | 'embedded' => array( | |
120 | 'file' => 'embedded.php', | |
121 | 'regions' => array(), | |
122 | 'options' => array('nofooter'=>true, 'nonavbar'=>true), | |
123 | ), | |
ed5d13c0 PS |
124 | // Should display the content and basic headers only. |
125 | 'print' => array( | |
126 | 'file' => 'general.php', | |
127 | 'regions' => array(), | |
128 | 'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true), | |
129 | ), | |
367a75fa SH |
130 | 'report' => array( |
131 | 'file' => 'general.php', | |
132 | 'regions' => array('side-pre'), | |
133 | 'defaultregion' => 'side-pre', | |
134 | ), | |
b8fce7be S |
135 | ); |
136 | ||
137 | /////////////////////////////////////////////////////////////// | |
138 | // These are all of the possible layouts in Moodle. The | |
139 | // simplest way to do this is to keep the theme and file | |
140 | // variables the same for every layout. Including them | |
141 | // all in this way allows some flexibility down the road | |
142 | // if you want to add a different layout template to a | |
143 | // specific page. | |
144 | /////////////////////////////////////////////////////////////// | |
59784b75 ME |
145 | |
146 | $THEME->csspostprocess = 'magazine_process_css'; | |
ed5d13c0 | 147 | |
b8fce7be | 148 | //////////////////////////////////////////////////// |
ed5d13c0 PS |
149 | // Allows the user to provide the name of a function |
150 | // that all CSS should be passed to before being | |
b8fce7be S |
151 | // delivered. |
152 | //////////////////////////////////////////////////// | |
153 | ||
ed5d13c0 | 154 | // $THEME->javascripts |
b8fce7be S |
155 | |
156 | //////////////////////////////////////////////////// | |
157 | // An array containing the names of JavaScript files | |
ed5d13c0 | 158 | // located in /javascript/ to include in the theme. |
b8fce7be S |
159 | // (gets included in the head) |
160 | //////////////////////////////////////////////////// | |
161 | ||
ed5d13c0 | 162 | // $THEME->javascripts_footer |
b8fce7be S |
163 | |
164 | //////////////////////////////////////////////////// | |
165 | // As above but will be included in the page footer. | |
166 | //////////////////////////////////////////////////// | |
167 | ||
59784b75 | 168 | // $THEME->larrow = "<"; |
b8fce7be S |
169 | |
170 | //////////////////////////////////////////////////// | |
ed5d13c0 | 171 | // Overrides the left arrow image used throughout |
b8fce7be S |
172 | // Moodle |
173 | //////////////////////////////////////////////////// | |
174 | ||
59784b75 | 175 | // $THEME->rarrow = ">"; |
b8fce7be S |
176 | |
177 | //////////////////////////////////////////////////// | |
178 | // Overrides the right arrow image used throughout Moodle | |
179 | //////////////////////////////////////////////////// | |
180 | ||
b8fce7be S |
181 | // $THEME->parents_exclude_javascripts |
182 | ||
183 | //////////////////////////////////////////////////// | |
184 | // An array of JavaScript files NOT to inherit from | |
185 | // the themes parents | |
186 | //////////////////////////////////////////////////// | |
187 | ||
b8fce7be S |
188 | // $THEME->plugins_exclude_sheets |
189 | ||
190 | //////////////////////////////////////////////////// | |
ed5d13c0 | 191 | // An array of plugin sheets to ignore and not |
b8fce7be S |
192 | // include. |
193 | //////////////////////////////////////////////////// | |
194 | ||
92372aba | 195 | // $THEME->rendererfactory |
59784b75 | 196 | |
b8fce7be | 197 | //////////////////////////////////////////////////// |
ed5d13c0 | 198 | // Sets a custom render factory to use with the |
b8fce7be | 199 | // theme, used when working with custom renderers. |
59784b75 | 200 | //////////////////////////////////////////////////// |