Proyectos de Subversion Moodle

Rev

Autoría | 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/>.

/**
 *
 * @package   theme_monocolor
 * @copyright 2022 - 2023 Marcin Czaja (https://rosea.io)
 * @license   Commercial https://themeforest.net/licenses
 *
 */

defined('MOODLE_INTERNAL') || die();
global $PAGE, $OUTPUT;

$fpblocks1 = $OUTPUT->blocks('fpblocks-t');
$hasfpblocks1 = (strpos($fpblocks1, 'data-block=') !== false);

if ($hasfpblocks1) {
    echo '<div id="fpblocks-t" class="wrapper-xl my-5">';
}
echo $fpblocks1;

if ($hasfpblocks1) {
    echo '</div>';
}


echo '<div id="fpmaincontent" class="wrapper-xl">';
echo $OUTPUT->main_content();
echo '</div>';

$fpblocks2 = $OUTPUT->blocks('fpblocks-b');
$hasfpblocks2 = (strpos($fpblocks2, 'data-block=') !== false);

if ($hasfpblocks2) {
    echo '<div id="fpblocks-b" class="wrapper-xl my-5">';
}
echo $fpblocks2;
if ($hasfpblocks2) {
    echo '</div>';
}