// 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/>. /** * Snap settings. * * @package theme_snap * @copyright Copyright (c) 2015 Moodlerooms Inc. (http://www.moodlerooms.com) * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die; if ($ADMIN->fulltree) { // Output flex page front page warning if necessary. $fpwarning = \theme_snap\output\shared::flexpage_frontpage_warning(); if (!empty($fpwarning)) { $setting = new admin_setting_heading('flexpage_warning', '', $fpwarning); $settings->add($setting); } $name = 'theme_snap/brandingheading'; $title = new lang_string('brandingheading', 'theme_snap'); $description = new lang_string('brandingheadingdesc', 'theme_snap'); $setting = new admin_setting_heading($name, $title, $description); $settings->add($setting); if (!during_initial_install() && !empty(get_site()->fullname)) { // Site name setting. $name = 'fullname'; $title = new lang_string('fullname', 'theme_snap'); $description = new lang_string('fullnamedesc', 'theme_snap'); $setting = new admin_setting_sitesettext($name, $title, $description, null);
<!-- ////////////////////////// MAIN /////////////////////////////// --> <main id="moodle-page" class="clearfix"> <header id="page-header" class="clearfix"> <nav class="breadcrumb-nav" role="navigation" aria-label="breadcrumb"><?php echo $OUTPUT->navbar(); ?> </nav> <div id="page-mast"> <?php // Output flex page front page warning if necessary. if ($PAGE->pagetype == 'site-index') { echo \theme_snap\output\shared::flexpage_frontpage_warning(true); } else { if (strpos($PAGE->pagetype, 'course-view-') === 0) { $output = $PAGE->get_renderer('core', 'course'); echo $output->course_format_warning(); } } echo $OUTPUT->page_heading(); echo $OUTPUT->course_header(); ?> </div> </header> <?php if ($PAGE->user_allowed_editing()) {