public function test_get_tilefile_slideshow() { $this->setup_renderer(); $thefile = \theme_essential\toolbox::get_tile_file('slideshow'); global $CFG; $withoutdirroot = str_replace($CFG->dirroot, '', $thefile); $this->assertEquals('/theme/essential/layout/tiles/slideshow.php', $withoutdirroot); }
</li> <li class="navbar-text"><?php echo $OUTPUT->user_menu(); ?> </li> </ul> </div> </div> </nav> </header> <div id="page" class="container-fluid"> <header id="page-header" class="clearfix"> <?php require_once \theme_essential\toolbox::get_tile_file('pagenavbar'); echo $OUTPUT->page_heading(); ?> <div id="course-header"> <?php echo $OUTPUT->course_header(); ?> </div> </header> <div id="page-content" class="row-fluid"> <section id="region-main" class="span12"> <?php echo $OUTPUT->course_content_header(); echo $OUTPUT->main_content(); echo $OUTPUT->course_content_footer();
echo $OUTPUT->course_content_footer(); } ?> </section> <?php if (!$footerregion) { if ($hasboringlayout && $left || !$left) { echo $OUTPUT->blocks('side-pre', 'span3 desktop-first-column'); } else { echo $OUTPUT->blocks('side-pre', 'span3 pull-right'); } } ?> </div> <?php if ($footerregion) { echo $OUTPUT->essential_blocks('side-pre', 'row-fluid', 'aside', 4); } ?> </div> </div> <!-- End Main Regions --> </section> </div> <?php require_once \theme_essential\toolbox::get_tile_file('footer'); ?> </body> </html>
// but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * This is built using the bootstrapbase template to allow for new theme's using * Moodle's new Bootstrap theme engine * * @package theme_essential * @copyright 2013 Julian Ridden * @copyright 2014 Gareth J Barnard, David Bezemer * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ require_once \theme_essential\toolbox::get_tile_file('additionaljs'); $fontselect = \theme_essential\toolbox::get_setting('fontselect'); if ($fontselect === '2') { $fontcharacterset = '&subset=latin'; if (\theme_essential\toolbox::get_setting('fontcharacterset')) { $fontcharacterset = '&subset=latin,' . \theme_essential\toolbox::get_setting('fontcharacterset'); } $headingfont = urlencode(\theme_essential\toolbox::get_setting('fontnameheading')); $bodyfont = urlencode(\theme_essential\toolbox::get_setting('fontnamebody')); } echo $OUTPUT->doctype(); ?> <html <?php echo $OUTPUT->htmlattributes(); ?> >
$background_image1 = ''; $loginimage = (!empty($PAGE->theme->settings->loginpage_background_image)); if ($loginimage) { //$background_image1 = $PAGE->theme->setting_file_url('loginpage_background_image', 'loginpage_background_image'); } ?> <?php //echo '<img src="'.$background_image1.'">'; //echo '<img src="'.$CFG->wwwroot.'/theme/essential/pix/logo.png">'; echo '<div class="login-logo_container" ><a class="login_logo" href="'.preg_replace("(https?:)", "", $CFG->wwwroot).'" title="'.get_string('home').'"></a></div>'; ?> <section role="main-content"> <!-- Start Main Regions --> <div id="page-content" class="row-fluid"> <section id="region-main" class="span12"> <?php echo $OUTPUT->course_content_header(); echo $OUTPUT->main_content(); echo $OUTPUT->course_content_footer(); ?> </section> </div> <!-- End Main Regions --> </section> </div> <?php require_once(\theme_essential\toolbox::get_tile_file('footer')); ?> </body> </html>
// Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * This is built using the bootstrapbase template to allow for new theme's using * Moodle's new Bootstrap theme engine * * @package theme_essential * @copyright 2013 Julian Ridden * @copyright 2014 Gareth J Barnard, David Bezemer * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ if (\theme_essential\toolbox::get_setting('analyticsenabled')) { $analytics = \theme_essential\toolbox::get_setting('analytics'); if ($analytics === "piwik") { require_once \theme_essential\toolbox::get_tile_file('piwik'); } else { if ($analytics === "guniversal") { require_once \theme_essential\toolbox::get_tile_file('guniversal'); } } }
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * This is built using the bootstrapbase template to allow for new theme's using * Moodle's new Bootstrap theme engine * * @package theme_essential * @copyright 2013 Julian Ridden * @copyright 2014 Gareth J Barnard, David Bezemer * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ require_once \theme_essential\toolbox::get_tile_file('additionaljs'); require_once \theme_essential\toolbox::get_tile_file('pagesettings'); echo $OUTPUT->doctype(); ?> <html <?php echo $OUTPUT->htmlattributes(); ?> > <head> <title><?php echo $OUTPUT->page_title(); ?> </title> <link rel="shortcut icon" href="<?php echo $OUTPUT->favicon(); ?> "/>
<?php echo \theme_essential\toolbox::get_csswww(); echo $OUTPUT->standard_head_html(); ?> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Google web fonts --> <?php require_once \theme_essential\toolbox::get_tile_file('fonts'); ?> <!-- iOS Homescreen Icons --> <?php require_once \theme_essential\toolbox::get_tile_file('iosicons'); ?> <!-- Start Analytics --> <?php require_once \theme_essential\toolbox::get_tile_file('analytics'); ?> <!-- End Analytics --> </head> <body <?php echo $OUTPUT->body_attributes($bodyclasses); ?> > <?php echo $OUTPUT->standard_top_of_body_html(); ?> <header role="banner"> <div id="page-header" class="clearfix<?php
?> <html <?php echo $OUTPUT->htmlattributes(); ?> class="no-js"> <head> <title><?php echo $OUTPUT->page_title(); ?></title> <link rel="shortcut icon" href="<?php echo $OUTPUT->favicon(); ?>"/> <?php echo \theme_essential\toolbox::get_csswww(); echo $OUTPUT->standard_head_html(); ?> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Google web fonts --> <?php require_once(\theme_essential\toolbox::get_tile_file('fonts')); ?> <!-- iOS Homescreen Icons --> <?php require_once(\theme_essential\toolbox::get_tile_file('iosicons')); ?> <!-- Start Analytics --> <?php require_once(\theme_essential\toolbox::get_tile_file('analytics')); ?> <!-- End Analytics --> </head> <body <?php echo $OUTPUT->body_attributes($bodyclasses); ?>> <?php echo $OUTPUT->standard_top_of_body_html(); ?> <header role="banner"> <div id="page-header" class="clearfix<?php echo ($oldnavbar) ? ' oldnavbar' : ''; ?>"> <div class="container-fluid"> <div class="row-fluid"> <!-- HEADER: LOGO AREA --> <div class="<?php echo $logoclass; echo (!$left) ? ' pull-right' : ' pull-left'; ?>"> <?php