|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00002 00003 $THEME->name = 'afterburner'; 00004 00005 $THEME->parents = array('base'); 00006 00007 $THEME->sheets = array( 00008 'afterburner_layout', 00009 'afterburner_styles', 00010 'afterburner_menu', 00011 'afterburner_blocks', 00012 'afterburner_mod', 00013 'afterburner_calendar', 00014 'afterburner_dock', 00015 'afterburner_settings', 00016 'rtl' 00017 ); 00018 00019 $THEME->parents_exclude_sheets = array( 00020 'base'=>array( 00021 'pagelayout', 00022 'dock' 00023 ), 00024 ); 00025 $THEME->editor_sheets = array('editor'); 00026 00027 $THEME->layouts = array( 00028 // Most backwards compatible layout without the blocks - this is the layout used by default 00029 'base' => array( 00030 'file' => 'default.php', 00031 'regions' => array(), 00032 ), 00033 // Standard layout with blocks, this is recommended for most pages with default information 00034 'standard' => array( 00035 'file' => 'default.php', 00036 'regions' => array('side-pre', 'side-post'), 00037 'defaultregion' => 'side-post', 00038 ), 00039 // Main course page 00040 'course' => array( 00041 'file' => 'default.php', 00042 'regions' => array('side-pre', 'side-post'), 00043 'defaultregion' => 'side-post', 00044 'options' => array('langmenu'=>true), 00045 ), 00046 'coursecategory' => array( 00047 'file' => 'default.php', 00048 'regions' => array('side-pre', 'side-post'), 00049 'defaultregion' => 'side-post', 00050 ), 00051 // part of course, typical for modules - default page layout if $cm specified in require_login() 00052 'incourse' => array( 00053 'file' => 'default.php', 00054 'regions' => array('side-pre', 'side-post'), 00055 'defaultregion' => 'side-post', 00056 ), 00057 // The site home page. 00058 'frontpage' => array( 00059 'file' => 'default.php', 00060 'regions' => array('side-pre', 'side-post'), 00061 'defaultregion' => 'side-post', 00062 ), 00063 // Server administration scripts. 00064 'admin' => array( 00065 'file' => 'default.php', 00066 'regions' => array('side-pre'), 00067 'defaultregion' => 'side-pre', 00068 ), 00069 // My dashboard page 00070 'mydashboard' => array( 00071 'file' => 'default.php', 00072 'regions' => array('side-post'), 00073 'defaultregion' => 'side-post', 00074 'options' => array('langmenu'=>true), 00075 ), 00076 // My public page 00077 'mypublic' => array( 00078 'file' => 'default.php', 00079 'regions' => array('side-pre'), 00080 'defaultregion' => 'side-pre', 00081 ), 00082 'login' => array( 00083 'file' => 'default.php', 00084 'regions' => array(), 00085 'options' => array('langmenu'=>true), 00086 ), 00087 00088 // Pages that appear in pop-up windows - no navigation, no blocks, no header. 00089 'popup' => array( 00090 'file' => 'default.php', 00091 'regions' => array(), 00092 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nologininfo'=>true), 00093 ), 00094 // No blocks and minimal footer - used for legacy frame layouts only! 00095 'frametop' => array( 00096 'file' => 'default.php', 00097 'regions' => array(), 00098 'options' => array('nofooter'=>true), 00099 ), 00100 // Embedded pages, like iframe/object embeded in moodleform - it needs as much space as possible 00101 'embedded' => array( 00102 'file' => 'embedded.php', 00103 'regions' => array() 00104 ), 00105 // Used during upgrade and install, and for the 'This site is undergoing maintenance' message. 00106 // This must not have any blocks, and it is good idea if it does not have links to 00107 // other places - for example there should not be a home link in the footer... 00108 'maintenance' => array( 00109 'file' => 'default.php', 00110 'regions' => array(), 00111 'options' => array('noblocks'=>true, 'nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true), 00112 ), 00113 // Should display the content and basic headers only. 00114 'print' => array( 00115 'file' => 'default.php', 00116 'regions' => array(), 00117 'options' => array('noblocks'=>true, 'nofooter'=>true, 'nonavbar'=>false, 'nocustommenu'=>true), 00118 ), 00119 // The pagelayout used when a redirection is occuring. 00120 'redirect' => array( 00121 'file' => 'embedded.php', 00122 'regions' => array() 00123 ), 00124 // The pagelayout used for reports 00125 'report' => array( 00126 'file' => 'default.php', 00127 'regions' => array('side-pre'), 00128 'defaultregion' => 'side-pre', 00129 ), 00130 ); 00131 00132 $THEME->enable_dock = true; 00133 00134 $THEME->rendererfactory = 'theme_overridden_renderer_factory'; 00135 00136 $THEME->csspostprocess = 'afterburner_process_css';