1 <?php 2 // This file is part of Moodle - http://moodle.org/ 3 // 4 // Moodle is free software: you can redistribute it and/or modify 5 // it under the terms of the GNU General Public License as published by 6 // the Free Software Foundation, either version 3 of the License, or 7 // (at your option) any later version. 8 // 9 // Moodle is distributed in the hope that it will be useful, 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 // GNU General Public License for more details. 13 // 14 // You should have received a copy of the GNU General Public License 15 // along with Moodle. If not, see <http://www.gnu.org/licenses/>. 16 17 /** 18 * Overridden fontawesome icons. 19 * 20 * @package theme_classic 21 * @copyright 2019 Moodle 22 * @author Bas Brands <bas@moodle.com> 23 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 24 */ 25 namespace theme_classic\output; 26 27 defined('MOODLE_INTERNAL') || die(); 28 29 /** 30 * Class overriding some of the Moodle default FontAwesome icons. 31 * 32 * @package theme_classic 33 * @copyright 2019 Moodle 34 * @author Bas Brands <bas@moodle.com> 35 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 36 */ 37 class icon_system_fontawesome extends \core\output\icon_system_fontawesome { 38 /** 39 * Change the core icon map. 40 * 41 * @return Array replaced icons. 42 */ 43 public function get_core_icon_map() { 44 $iconmap = parent::get_core_icon_map(); 45 46 $iconmap['core:i/navigationitem'] = 'fa-square'; 47 48 return $iconmap; 49 } 50 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body