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
$block13introsubtitle = format_text(theme_universe_get_setting('block13introsubtitle'), FORMAT_HTML, array('noclean' => true));
30
$block13introtitle = format_text(theme_universe_get_setting('block13introtitle'), FORMAT_HTML, array('noclean' => true));
31
$block13introcontent = format_text(theme_universe_get_setting('block13introcontent'), FORMAT_HTML, array('noclean' => true));
32
$block13html = format_text(theme_universe_get_setting('block13htmlcontent'), FORMAT_HTML, array('noclean' => true));
33
$block13footer = format_text(theme_universe_get_setting('block13footercontent'), FORMAT_HTML, array('noclean' => true));
34
$block13class = theme_universe_get_setting('block13class');
35
$block13img = $PAGE->theme->setting_file_url("block13bg", "block13bg");
36
$block13css = theme_universe_get_setting('block13customcss');
37
 
38
$block13customcss = '';
39
 
40
if (!empty($block13css)) {
41
    $block13customcss = ' style="' . $block13css . '"';
42
}
43
 
44
if (!empty($block13img)) {
45
    $block13customcss = ' style="background-image: url(' . $block13img . ');" ';
46
}
47
 
48
// Customm ID for the block.
49
$block13customid = theme_universe_get_setting('block13id');
50
$fpblockid13 = 'block13';
51
if (!empty($block13customid)) {
52
    $fpblockid13 = $block13customid;
53
}
54
// End.
55
 
56
echo '<!-- Start Block 13 -->';
57
echo '<div id="' . $fpblockid13 . '" class="wrapper-lg rui-block-margin-top rui-fp-block--13 ' . $block13class . '"' . $block13customcss . '>';
58
 
59
if (!empty($block13introtitle) || !empty($block13introcontent)) {
60
    echo '<div class="wrapper-sm rui-fp-block-mb">';
61
}
62
if (!empty($block13introsubtitle)) {
63
    echo '<h4 class="rui-block-subtitle">' . $block13introsubtitle . '</h4>';
64
}
65
if (!empty($block13introtitle)) {
66
    echo '<h3 class="rui-block-title">' . $block13introtitle . '</h3>';
67
}
68
if (!empty($block13introcontent)) {
69
    echo '<div class="rui-block-desc">' . $block13introcontent . '</div>';
70
}
71
if (!empty($block13introtitle) || !empty($block13introcontent)) {
72
    echo '</div>';
73
}
74
echo $block13html;
75
 
76
if (!empty($block13footer)) {
77
    echo '<div class="rui-block-footer wrapper-fw">' . $block13footer . '</div>';
78
}
79
 
80
echo '</div>';
81
if (theme_universe_get_setting("displayhrblock13") == '1') {
82
    echo '<hr class="rui-block-hr" />';
83
}
84
echo '<!-- End Block 13 -->';