Rev 1292 | Rev 1294 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
<?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/>.
namespace theme_universe_child\output;
use html_writer;
use stdClass;
use moodle_url;
use context_course;
use context_system;
use core_course_list_element;
use custom_menu;
use action_menu_filler;
use action_menu_link_secondary;
use action_menu;
use action_link;
use core_text;
use coding_exception;
use navigation_node;
use context_header;
use core\oauth2\rest;
use pix_icon;
use renderer_base;
use theme_config;
use get_string;
use core_course_category;
use theme_universe\util\user;
use theme_universe\util\course;
use core_completion\progress;
require_once($CFG->dirroot . '/cesa/statics_blocks.php'); // Incluimos StaticsBlocks
/**
* Renderers to align Moodle's HTML with that expected by Bootstrap
*
* @package theme_universe
* @copyright 2023 Marcin Czaja (https://rosea.io)
* @license Commercial https://themeforest.net/licenses
*/
class core_renderer extends \theme_universe\output\core_renderer
{
public function render_statics_blocks($userid = null)
{
global $USER;
if (!$userid) {
$userid = $USER->id;
}
// Instanciamos StaticsBlocks para renderizar los bloques
$statics_blocks = new \StaticsBlocks(
'side-pre',
['messageteacher', 'comments', 'cesa_course_rating', 'cesa_notes']
);
$blocks = $statics_blocks->renderBlocks();
return $blocks;
}
}