Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1288 ariadna 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
 *
19
 * @package   theme_universe
20
 * @copyright 2023 Marcin Czaja (https://rosea.io)
21
 * @license   Commercial https://themeforest.net/licenses
22
 *
23
 */
24
 
25
defined('MOODLE_INTERNAL') || die();
26
global $PAGE, $OUTPUT;
27
 
28
$fpblocks1 = $OUTPUT->blocks('fpblocks-t');
29
$hasfpblocks1 = (strpos($fpblocks1, 'data-block=') !== false);
30
 
31
// Customm ID for the block.
32
$block0customid = theme_universe_get_setting('block0id');
33
$fpblockid0 = 'block0';
34
if (!empty($block0customid)) {
35
    $fpblockid0 = $block0customid;
36
}
37
// End.
38
 
39
if ($hasfpblocks1) {
40
    echo '<div id="fpblocks-t" class="wrapper-lg rui-block-margin-top my-0">';
41
}
42
echo $fpblocks1;
43
 
44
if ($hasfpblocks1) {
45
    echo '</div>';
46
}
47
 
48
 
49
echo '<div id="' . $fpblockid0 . '" class="wrapper-lg rui-block-margin-top">';
50
echo $OUTPUT->main_content();
51
echo '</div>';
52
 
53
$fpblocks2 = $OUTPUT->blocks('fpblocks-b');
54
$hasfpblocks2 = (strpos($fpblocks2, 'data-block=') !== false);
55
 
56
if ($hasfpblocks2) {
57
    echo '<div id="fpblocks-b" class="wrapper-lg rui-block-margin-top my-0">';
58
}
59
echo $fpblocks2;
60
if ($hasfpblocks2) {
61
    echo '</div>';
62
}