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
// Variables - Settings.
28
$block6introsubtitle = format_text(theme_universe_get_setting('block6introsubtitle'), FORMAT_HTML, array('noclean' => true));
29
$block6introtitle = format_text(theme_universe_get_setting('block6introtitle'), FORMAT_HTML, array('noclean' => true));
30
$block6introcontent = format_text(theme_universe_get_setting('block6introcontent'), FORMAT_HTML, array('noclean' => true));
31
$block6html = format_text(theme_universe_get_setting('block6htmlcontent'), FORMAT_HTML, array('noclean' => true));
32
$block6footer = format_text(theme_universe_get_setting('block6footercontent'), FORMAT_HTML, array('noclean' => true));
33
$block6class = theme_universe_get_setting('block6class');
34
 
35
$block6css = theme_universe_get_setting('block6customcss');
36
$block6customcss = '';
37
if (!empty($block6css)) {
38
    $block6customcss = ' style="' . $block6css . '"';
39
} else {
40
    $block6customcss = null;
41
}
42
 
43
// Customm ID for the block.
44
$block6customid = theme_universe_get_setting('block6id');
45
$fpblockid6 = 'block6';
46
if (!empty($block6customid)) {
47
    $fpblockid6 = $block6customid;
48
}
49
// End.
50
 
51
echo '<!-- Start Block 6-->';
52
echo '<div id="' . $fpblockid6 . '" class="wrapper-lg rui-block-margin-top rui-fp-block--6 ' . $block6class . '"' . $block6customcss . '>';
53
if (!empty($block6introtitle) || !empty($block6introcontent)) {
54
    echo '<div class="wrapper-sm rui-fp-block-mb">';
55
}
56
if (!empty($block6introsubtitle)) {
57
    echo '<h4 class="rui-block-subtitle">' . $block6introsubtitle . '</h4>';
58
}
59
if (!empty($block6introtitle)) {
60
    echo '<h3 class="rui-block-title">' . $block6introtitle . '</h3>';
61
}
62
if (!empty($block6introcontent)) {
63
    echo '<div class="rui-block-desc">' . $block6introcontent . '</div>';
64
}
65
if (!empty($block6introtitle) || !empty($block6introcontent)) {
66
    echo '</div>';
67
}
68
echo $block6html;
69
if (!empty($block6footer)) {
70
    echo '<div class="rui-block-footer wrapper-fw">' . $block6footer . '</div>';
71
}
72
echo '</div>';
73
if (theme_universe_get_setting("displayhrblock6") == '1') {
74
    echo '<hr class="rui-block-hr" />';
75
}
76
echo '<!-- End Block 6 -->';