Skip to content
Snippets Groups Projects
Select Git revision
  • a81505de50949c5688e005b6f306c7683d9fb398
  • master default protected
  • hsh_v3.11
  • hsh_v3.10-r6
  • hsh_v3.10-r3
  • v3.9-r9
  • v3.10-r6
  • v3.9-r8
  • v3.10-r5
  • v3.9-r7
  • v3.10-r4
  • v3.9-r6
  • v3.10-r3
  • v3.9-r5
  • v3.10-r2
  • v3.9-r4
  • v3.10-r1
  • v3.9-r3
  • v3.9-r2
  • v3.9-r1
  • v3.8-r5
  • v3.8-r4
  • v3.8-r3
  • v3.8-r2
  • v3.8-r1
25 results

core_renderer.php

Blame
  • 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.