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
 
26
defined('MOODLE_INTERNAL') || die();
27
 
28
$page = new admin_settingpage('theme_universe_block9',
29
    get_string('settingsblock9', 'theme_universe'));
30
 
31
$name = 'theme_universe/displayblock9';
32
$title = get_string('turnon', 'theme_universe');
33
$description = get_string('displayblock9_desc', 'theme_universe');
34
$default = 0;
35
$setting = new admin_setting_configcheckbox($name, $title .
36
'<span class="badge badge-sq badge-dark ml-2">Block #9</span>', $description, $default);
37
$page->add($setting);
38
 
39
$name = 'theme_universe/displayhrblock9';
40
$title = get_string('displayblockhr', 'theme_universe');
41
$description = get_string('displayblockhr_desc', 'theme_universe');
42
$default = 1;
43
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
44
$page->add($setting);
45
 
46
$name = 'theme_universe/block9id';
47
$title = get_string('additionalid', 'theme_universe');
48
$description = get_string('additionalid_desc', 'theme_universe');
49
$default = '';
50
$setting = new admin_setting_configtext($name, $title, $description, $default);
51
$page->add($setting);
52
 
53
$name = 'theme_universe/block9class';
54
$title = get_string('additionalclass', 'theme_universe');
55
$description = get_string('additionalclass_desc', 'theme_universe');
56
$default = '';
57
$setting = new admin_setting_configtext($name, $title, $description, $default);
58
$page->add($setting);
59
 
60
$name = 'theme_universe/block9introsubtitle';
61
$title = get_string('blockintrosubtitle', 'theme_universe');
62
$description = get_string('blockintrosubtitle_desc', 'theme_universe');
63
$default = '';
64
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
65
$page->add($setting);
66
 
67
$name = 'theme_universe/block9introtitle';
68
$title = get_string('blockintrotitle', 'theme_universe');
69
$description = get_string('blockintrotitle_desc', 'theme_universe');
70
$default = '';
71
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
72
$page->add($setting);
73
 
74
$name = 'theme_universe/block9introcontent';
75
$title = get_string('blockintrocontent', 'theme_universe');
76
$description = get_string('blockintrocontent_desc', 'theme_universe');
77
$default = 'Lorem ipsum dolor sit amet';
78
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
79
$page->add($setting);
80
 
81
$name = 'theme_universe/block9htmlcontent';
82
$title = get_string('blockhtmlcontent', 'theme_universe');
83
$description = get_string('blockhtmlcontent_desc', 'theme_universe');
84
$default = '<!-- Start item -->
85
<div class="rui-fp-grid-content--2 wrapper-fw row mx-0 px-0">
86
<!-- Col #1 -->
87
<div class="rui-fp-content-box rui-fp-content-box--left col-lg-6 align-self-center">
88
<div class="rui-card--blank">
89
<div class="rui-icon-box rui-icon-box--white mb-3">
90
<svg width="32" height="32" viewBox="0 0 24 24" fill="none"
91
xmlns="http://www.w3.org/2000/svg">
92
<path d="M4.75 10L12 5.75L19.2501 10L12 14.25L4.75 10Z" stroke="currentColor"
93
stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
94
<path d="M12.5 10C12.5 10.2761 12.2761 10.5 12 10.5C11.7239 10.5 11.5 10.2761
95
11.5 10C11.5 9.72386 11.7239 9.5 12 9.5C12.2761 9.5 12.5 9.72386 12.5 10Z"
96
stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path>
97
<path d="M6.75 11.5V16.25C6.75 16.25 8 18.25 12 18.25C16 18.25 17.25 16.25
98
17.25 16.25V11.5" stroke="currentColor" stroke-width="1.5"
99
stroke-linecap="round" stroke-linejoin="round"></path>
100
</svg>
101
</div>
102
<h4 class="lead-3 mt-3">Buy universe &amp; Start Teaching Online</h4>
103
<p class="text-size-lg">I have highlighted some of universe features below! </p>
104
<ul class="rui-special-list rui-special-list--light">
105
<li>Compatible with Moodle 4.1 and 4.0</li>
106
<li>22+ Fully Customizable Blocks</li>
107
<li>Lifetime updates</li>
108
<li>Super friendly support</li>
109
<li>Translation Ready</li>
110
</ul>
111
<p class="text-size-sm mb-3">* $99 + tax for standard license.</p>
112
<a href="#" class="btn btn-dark">Check all Moodle Themes</a>
113
</div>
114
</div>
115
<!-- End Col #1 -->
116
<!-- Col #2 -->
117
<div class="rui-fp-content-box rui-img--rounded-right col-lg-6 p-0">
118
<div class="rui-img-box--anim">
119
<img src="https://assets.rosea.io/universe/demo/800x800.png" alt="pic" width="800" height="800" class="img-fluid">
120
</div>
121
</div>
122
<!-- End Col #2 -->
123
</div>
124
<!-- End item -->';
125
$setting = new universe_setting_confightmleditor($name, $title, $description, $default);
126
$page->add($setting);
127
 
128
$name = 'theme_universe/block9footercontent';
129
$title = get_string('blockfootercontent', 'theme_universe');
130
$description = get_string('blockfootercontent_desc', 'theme_universe');
131
$default = '';
132
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
133
$page->add($setting);
134
 
135
$name = 'theme_universe/block9customcss';
136
$title = get_string('blockcustomcss', 'theme_universe');
137
$description = get_string('blockcustomcss_desc', 'theme_universe');
138
$default = '';
139
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
140
$page->add($setting);
141
 
142
$settings->add($page);