protected function end_section_list() { $output = html_writer::end_tag('ul'); $output .= "<section id='coursetools' class='clearfix' tabindex='-1'>"; $output .= shared::coursetools_svg_icons(); $output .= shared::appendices(); $output .= "</section>"; return $output; }
echo $OUTPUT->page_heading_button(); // On the front page, output some different content. if ($PAGE->pagetype == 'site-index') { require __DIR__ . '/faux_site_index.php'; } else { echo $OUTPUT->main_content(); } echo $OUTPUT->course_content_footer(); if (stripos($PAGE->bodyclasses, 'format-singleactivity') !== false) { // Display course tools in single activity mode, but only on main page. // Current test for main page is based on the pagetype matching a regex. // Would be nice if there was something more direct to test. if (preg_match('/^mod-.*-view$/', $PAGE->pagetype)) { echo "<section id='coursetools' class='clearfix' tabindex='-1'>"; echo \theme_snap\output\shared::coursetools_svg_icons(); echo \theme_snap\output\shared::appendices(); echo "</section>"; } } ?> </section> <?php require __DIR__ . '/moodle-blocks.php'; ?> </main> </div> </div>
protected function end_section_list() { global $COURSE; $output = html_writer::end_tag('ul'); $output .= $this->change_num_sections($COURSE); $output .= "<section id='coursetools' class='clearfix'>"; $output .= shared::coursetools_svg_icons(); $output .= shared::appendices(); $output .= "</section>"; return $output; }