Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 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_monocolor
20
 * @copyright 2022 - 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
// Variables - Settings.
29
$block11introtitle = format_text(theme_monocolor_get_setting('block11introtitle'), FORMAT_HTML, array('noclean' => true));
30
$block11introcontent = format_text(theme_monocolor_get_setting('block11introcontent'), FORMAT_HTML, array('noclean' => true));
31
$block11html = format_text(theme_monocolor_get_setting('block11htmlcontent'), FORMAT_HTML, array('noclean' => true));
32
$block11footer = format_text(theme_monocolor_get_setting('block11footercontent'), FORMAT_HTML, array('noclean' => true));
33
$block11class = theme_monocolor_get_setting('block11class');
34
 
35
$block11css = theme_monocolor_get_setting('block11customcss');
36
 
37
$block11customcss = '';
38
if (!empty($block11css)) {
39
    $block11customcss = ' style="' . $block11css . '"';
40
} else {
41
    $block11customcss = null;
42
}
43
 
44
echo '<!-- Start Block 11 -->';
45
echo '<div id="fpblock11" class="wrapper-xl rui-fp-block--11 ' . $block11class . '"' . $block11customcss . '>';
46
 
47
if (!empty($block11introtitle) || !empty($block11introcontent)) {
48
    echo '<div class="wrapper-sm rui-fp-block-mb">';
49
}
50
if (!empty($block11introtitle)) {
51
    echo '<h3 class="rui-block-title">' . $block11introtitle . '</h3>';
52
}
53
if (!empty($block11introcontent)) {
54
    echo '<div class="rui-block-desc">' . $block11introcontent . '</div>';
55
}
56
if (!empty($block11introtitle) || !empty($block11introcontent)) {
57
    echo '</div>';
58
}
59
echo $block11html;
60
 
61
if (!empty($block11footer)) {
62
    echo '<div class="rui-block-footer wrapper-fw">' . $block11footer . '</div>';
63
}
64
 
65
echo '</div>';
66
if (theme_monocolor_get_setting("displayhrblock11") == '1') {
67
    echo '<hr class="rui-block-hr" />';
68
}
69
echo '<!-- End Block 11 -->';