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
$block12introsubtitle = format_text(theme_universe_get_setting('block12introsubtitle'), FORMAT_HTML, array('noclean' => true));
30
$block12introtitle = format_text(theme_universe_get_setting('block12introtitle'), FORMAT_HTML, array('noclean' => true));
31
$block12introcontent = format_text(theme_universe_get_setting('block12introcontent'), FORMAT_HTML, array('noclean' => true));
32
$block12html = format_text(theme_universe_get_setting('block12htmlcontent'), FORMAT_HTML, array('noclean' => true));
33
$block12footer = format_text(theme_universe_get_setting('block12footercontent'), FORMAT_HTML, array('noclean' => true));
34
$block12count = theme_universe_get_setting('block12count');
35
$block12slidesperrow = theme_universe_get_setting('block12slidesperrow');
36
$block12class = theme_universe_get_setting('block12class');
37
$block12img = $PAGE->theme->setting_file_url("block12bg", "block12bg");
38
$block12css = theme_universe_get_setting('block12customcss');
39
 
40
$block12customcss = '';
41
 
42
if (!empty($block12css)) {
43
    $block12customcss = ' style="' . $block12css . '"';
44
}
45
 
46
if (!empty($block12img)) {
47
    $block12customcss = ' style="background-image: url(' . $block12img . ');" ';
48
}
49
 
50
// Customm ID for the block.
51
$block12customid = theme_universe_get_setting('block12id');
52
$fpblockid12 = 'block12';
53
if (!empty($block12customid)) {
54
    $fpblockid12 = $block12customid;
55
}
56
// End.
57
 
58
echo '<!-- Start Block 12-->';
59
echo '<div id="' . $fpblockid12 . '" class="wrapper-lg rui-block-margin-top rui-fp-block--12 ' . $block12class . '"' . $block12customcss . '>';
60
if (!empty($block12introtitle) || !empty($block12introcontent)) {
61
    echo '<div class="wrapper-sm rui-fp-block-mb">';
62
}
63
if (!empty($block12introsubtitle)) {
64
    echo '<h4 class="rui-block-subtitle">' . $block12introsubtitle . '</h4>';
65
}
66
if (!empty($block12introtitle)) {
67
    echo '<h3 class="rui-block-title">' . $block12introtitle . '</h3>';
68
}
69
if (!empty($block12introcontent)) {
70
    echo '<div class="rui-block-desc">' . $block12introcontent . '</div>';
71
}
72
if (!empty($block12introtitle) || !empty($block12introcontent)) {
73
    echo '</div>';
74
}
75
echo $block12html;
76
if (!empty($block12footer)) {
77
    echo '<div class="rui-block-footer wrapper-fw">' . $block12footer . '</div>';
78
}
79
echo '</div>';
80
if (theme_universe_get_setting("displayhrblock12") == '1') {
81
    echo '<hr class="rui-block-hr" />';
82
}
83
echo '<!-- End Block 12 -->';