Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/monara/public_html/test.athavaneng.com/themes.php on line 99

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 226

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 227

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 228

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 229

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 230

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 231
// 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 . /** * Template renderer for Moodle. Load and render Moodle templates with Mustache. * * @module core/templates * @copyright 2015 Damyon Wiese * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @since 2.9 */ define([ 'core/mustache', 'jquery', 'core/ajax', 'core/str', 'core/notification', 'core/url', 'core/config', 'core/localstorage', 'core/icon_system', 'core_filters/events', 'core/yui', 'core/log', 'core/truncate', 'core/user_date', 'core/pending', ], function( mustache, $, ajax, str, notification, coreurl, config, storage, IconSystem, filterEvents, Y, Log, Truncate, UserDate, Pending ) { // Module variables. /** @var {Number} uniqInstances Count of times this constructor has been called. */ var uniqInstances = 0; /** @var {String[]} templateCache - Cache of already loaded template strings */ var templateCache = {}; /** @var {Promise[]} templatePromises - Cache of already loaded template promises */ var templatePromises = {}; /** @var {Promise[]} cachePartialPromises - Cache of already loaded template partial promises */ var cachePartialPromises = {}; /** @var {Object} iconSystem - Object extending core/iconsystem */ var iconSystem = {}; /** @var {Object[]} loadTemplateBuffer - List of templates to be loaded */ var loadTemplateBuffer = []; /** @var {Bool} isLoadingTemplates - Whether templates are currently being loaded */ var isLoadingTemplates = false; /** @var {Array} disallowedNestedHelpers - List of helpers that can't be called within other helpers */ var disallowedNestedHelpers = ['js']; /** * Normalise the provided component such that '', 'moodle', and 'core' are treated consistently. * * @param {String} component * @returns {String} */ var getNormalisedComponent = function(component) { if (component) { if (component !== 'moodle' && component !== 'core') { return component; } } return 'core'; }; /** * Search the various caches for a template promise for the given search key. * The search key should be in the format //