Select Git revision
core_renderer.php
-
Kathrin Osswald authored
Adjusted function context_header_settings_menu() in core_renderer.php due to upstream changes in theme Boost.
Kathrin Osswald authoredAdjusted function context_header_settings_menu() in core_renderer.php due to upstream changes in theme Boost.
core_renderer.php 20.54 KiB
<?php
// This file is part of Moodle - http://moodle.org/
//
// 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/>.
/**
* Renderers to align Moodle's HTML with that expected by Bootstrap
*
* @package theme_boost_campus
* @copyright 2017 Kathrin Osswald, Ulm University kathrin.osswald@uni-ulm.de
* copyright based on code from theme_boost by Bas Brands
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace theme_boost_campus\output;
use coding_exception;
use html_writer;
use tabobject;
use tabtree;
use custom_menu_item;
use custom_menu;
use block_contents;
use navigation_node;
use action_link;
use stdClass;
use moodle_url;
use preferences_groups;
use action_menu;
use help_icon;
use single_button;
use single_select;
use paging_bar;
use url_select;
use context_course;
use pix_icon;
defined('MOODLE_INTERNAL') || die;
/**
* Extending the core_renderer interface.
*
* @copyright 2017 Kathrin Osswald, Ulm University kathrin.osswald@uni-ulm.de
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @package theme_boost_campus
* @category output
*/
class core_renderer extends \core_renderer {
/**
* Override to display an edit button again by calling the parent function
* in core/core_renderer because theme_boost's function returns an empty
* string and therefore displays nothing.
*
* MODIFICATION: This renderer function is copied and modified from /theme/boost/classes/output/core_renderer.php
*
* @param moodle_url $url The current course url.
* @return \core_renderer::edit_button Moodle edit button.