public function test_get_includefile_slideshow() { $thefile = \theme_shoehorn\toolbox::get_tile_file('slideshow'); global $CFG; $withoutdirroot = str_replace($CFG->dirroot, '', $thefile); $this->assertEquals('/theme/essential/layout/includes/slideshow.php', $withoutdirroot); }
echo $OUTPUT->main_content(); echo $OUTPUT->course_content_footer(); ?> </section> <div id="region-main-shoehorn-shadow"></div> </div> <?php if ($hassidepre && $regions['layout'] == 2) { echo $OUTPUT->blocks('side-pre', $regions['pre']); } if ($hassidepost) { echo $OUTPUT->blocks('side-post', $regions['post']); } ?> <?php require_once \theme_shoehorn\toolbox::get_tile_file('pagebottom'); ?> </div> </div> <?php require_once \theme_shoehorn\toolbox::get_tile_file('footer'); ?> </div> </body> </html>
if (!empty($fontawesome) && $fontawesome == 1) { // Use FontAwesome locally. $THEME->sheets[] = 'font-awesome'; } } $THEME->sheets[] = 'font-local'; // Fonts that must be local because there is no CDN for them. $numberofsociallinks = \theme_shoehorn\toolbox::get_config_setting('numberofsociallinks'); if (!empty($numberofsociallinks) && $numberofsociallinks > 0) { $THEME->sheets[] = 'social'; } $THEME->sheets[] = 'custom'; $THEME->supportscssoptimisation = false; $THEME->yuicssmodules = array(); $THEME->javascripts_footer = array('shoehorn'); $docking = \theme_shoehorn\toolbox::get_config_setting('docking'); $accordion = \theme_shoehorn\toolbox::get_config_setting('accordion'); if (!empty($docking) && $docking == 2 && (empty($accordion) || !empty($accordion) && $accordion == 1)) { $THEME->enable_dock = true; $THEME->javascripts_footer[] = 'dock'; } else { $THEME->enable_dock = false; } $THEME->editor_sheets = array('editor'); $THEME->plugins_exclude_sheets = array('block' => array('html')); $allregions = array('side-pre', 'side-post', 'page-bottom', 'footer-pre', 'footer-post'); $sidepreregions = array('side-pre', 'page-bottom', 'footer-pre', 'footer-post'); $bottomregions = array('page-bottom', 'footer-pre', 'footer-post'); $THEME->layouts = array('base' => array('file' => 'default.php', 'regions' => array()), 'standard' => array('file' => 'default.php', 'regions' => $sidepreregions, 'defaultregion' => 'side-pre'), 'course' => array('file' => 'default.php', 'regions' => $sidepreregions, 'defaultregion' => 'side-pre', 'options' => array('langmenu' => true)), 'coursecategory' => array('file' => 'default.php', 'regions' => $allregions, 'defaultregion' => 'side-pre'), 'incourse' => array('file' => 'default.php', 'regions' => $allregions, 'defaultregion' => 'side-pre'), 'frontpage' => array('file' => 'frontpage.php', 'regions' => $sidepreregions, 'defaultregion' => 'side-pre', 'options' => array('nonavbar' => true)), 'admin' => array('file' => 'default.php', 'regions' => $sidepreregions, 'defaultregion' => 'side-pre', 'options' => array('fluid' => true, 'chart' => true)), 'mydashboard' => array('file' => 'default.php', 'regions' => $sidepreregions, 'defaultregion' => 'side-pre', 'options' => array('langmenu' => true)), 'mypublic' => array('file' => 'default.php', 'regions' => $allregions, 'defaultregion' => 'side-pre'), 'login' => array('file' => 'login.php', 'regions' => array(), 'options' => array('langmenu' => true, 'nonavbar' => true)), 'popup' => array('file' => 'popup.php', 'regions' => array(), 'options' => array('nofooter' => true, 'nonavbar' => true)), 'frametop' => array('file' => 'default.php', 'regions' => array(), 'options' => array('nofooter' => true, 'nocoursefooter' => true)), 'embedded' => array('file' => 'embedded.php', 'regions' => array()), 'maintenance' => array('file' => 'maintenance.php', 'regions' => array()), 'print' => array('file' => 'default.php', 'regions' => array(), 'options' => array('nofooter' => true, 'nonavbar' => false)), 'redirect' => array('file' => 'embedded.php', 'regions' => array()), 'report' => array('file' => 'default.php', 'regions' => $bottomregions, 'defaultregion' => 'page-bottom', 'options' => array('fluid' => true)), 'secure' => array('file' => 'secure.php', 'regions' => $allregions, 'defaultregion' => 'side-pre'), 'page' => array('file' => 'default.php', 'regions' => $sidepreregions, 'defaultregion' => 'side-pre')); $THEME->rendererfactory = 'theme_overridden_renderer_factory'; $THEME->csspostprocess = 'theme_shoehorn_process_css';