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_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
// Variables - Settings.
29
$block16introsubtitle = format_text(theme_universe_get_setting('block16introsubtitle'), FORMAT_HTML, array('noclean' => true));
30
$block16introtitle = format_text(theme_universe_get_setting('block16introtitle'), FORMAT_HTML, array('noclean' => true));
31
$block16introcontent = format_text(theme_universe_get_setting('block16introcontent'), FORMAT_HTML, array('noclean' => true));
32
$block16html = format_text(theme_universe_get_setting('block16htmlcontent'), FORMAT_HTML, array('noclean' => true));
33
$block16footer = format_text(theme_universe_get_setting('block16footercontent'), FORMAT_HTML, array('noclean' => true));
34
$block16class = theme_universe_get_setting('block16class');
35
$block16img = $PAGE->theme->setting_file_url("block16bg", "block16bg");
36
$block16css = theme_universe_get_setting('block16customcss');
37
 
38
$block16customcss = '';
39
if (!empty($block16css)) {
40
    $block16customcss = ' style="' . $block16css . '"';
41
}
42
 
43
// Customm ID for the block.
44
$block16customid = theme_universe_get_setting('block16id');
45
$fpblockid16 = 'block16';
46
if (!empty($block16customid)) {
47
    $fpblockid16 = $block16customid;
48
}
49
// End.
50
 
51
if (!empty($block16img)) {
52
    $block16customcss = ' style="background-image: url(' . $block16img . ');" ';
53
}
54
 
55
echo '<!-- Start Block 16 -->';
56
echo '<div id="' . $fpblockid16 . '" class="wrapper-lg rui-block-margin-top rui-fp-block--16 ' . $block16class . '"' . $block16customcss . '>';
57
if (!empty($block16introtitle) || !empty($block16introcontent)) {
58
    echo '<div class="wrapper-sm rui-fp-block-mb">';
59
}
60
if (!empty($block16introsubtitle)) {
61
    echo '<h4 class="rui-block-subtitle">' . $block16introsubtitle . '</h4>';
62
}
63
if (!empty($block16introtitle)) {
64
    echo '<h3 class="rui-block-title">' . $block16introtitle . '</h3>';
65
}
66
if (!empty($block16introcontent)) {
67
    echo '<div class="rui-block-desc">' . $block16introcontent . '</div>';
68
}
69
if (!empty($block16introtitle) || !empty($block16introcontent)) {
70
    echo '</div>';
71
}
72
echo $block16html;
73
if (!empty($block16footer)) {
74
    echo '<div class="rui-block-footer wrapper-fw">' . $block16footer . '</div>';
75
}
76
echo '</div>';
77
if (theme_universe_get_setting("displayhrblock16") == '1') {
78
    echo '<hr class="rui-block-hr" />';
79
}
80
echo '<!-- End Block 16 -->';