Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1342 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
 
26
defined('MOODLE_INTERNAL') || die();
27
 
28
$page = new admin_settingpage('theme_universe_block7',
29
     get_string('settingsblock7', 'theme_universe'));
30
 
31
$name = 'theme_universe/displayblock7';
32
$title = get_string('turnon', 'theme_universe');
33
$description = get_string('displayblock7_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 #7</span>', $description, $default);
37
$page->add($setting);
38
 
39
$name = 'theme_universe/displayhrblock7';
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/block7id';
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/block7class';
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/block7introsubtitle';
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/block7introtitle';
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/block7introcontent';
75
$title = get_string('blockintrocontent', 'theme_universe');
76
$description = get_string('blockintrocontent_desc', 'theme_universe');
77
$default = '';
78
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
79
$page->add($setting);
80
 
81
$name = 'theme_universe/block7htmlcontent';
82
$title = get_string('blockhtmlcontent', 'theme_universe');
83
$description = get_string('blockhtmlcontent_desc', 'theme_universe');
84
$default = '<div class="wrapper-md">
85
<!-- Start item -->
86
<div class="rui-card--colorized rui-rounded--lg" style="background-color: #fff3f7;">
87
<div class="d-flex flex-wrap align-content-center">
88
<div>
89
<h3 class="lead-1">universe for Moodle 4.x</h3>
90
<p class="text-size-xl text-secondary">For those who need customization....</p>
91
</div>
92
 
93
<div class="d-flex flex-wrap mt-4 row-cols-md-2">
94
<div>
95
<h4 class="text-primary">Pros</h4>
96
<ul class="list-styled col">
97
<li>Compatible with Moodle 4.1 and 4.0</li>
98
<li>22+ Fully Customizable Blocks</li>
99
<li>Lifetime updates</li>
100
<li>Super friendly support</li>
101
<li>Translation Ready</li>
102
</ul>
103
</div>
104
<div>
105
<h4 class="text-secondary">Cons</h4>
106
<ul class="list-styled col">
107
<li class="list-icon-x">Compatibility with older Moodle versions</li>
108
<li class="list-icon-x">Free Custom Work</li>
109
</ul>
110
</div>
111
</div>
112
<div class="my-4 w-100"><a href="#" class="btn btn-lg btn-primary">Lets get started</a>
113
</div>
114
<p class="text-size-sm">Learn more about customizing, pre-defined HTML blocks.
115
<a href="#" target="_blank" class="underline--anim">Go to the documentation page</a></p>
116
</div>
117
</div>
118
<!-- End item -->
119
</div>';
120
$setting = new universe_setting_confightmleditor($name, $title, $description, $default);
121
$page->add($setting);
122
 
123
$name = 'theme_universe/block7footercontent';
124
$title = get_string('blockfootercontent', 'theme_universe');
125
$description = get_string('blockfootercontent_desc', 'theme_universe');
126
$default = '';
127
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
128
$page->add($setting);
129
 
130
$name = 'theme_universe/block7customcss';
131
$title = get_string('blockcustomcss', 'theme_universe');
132
$description = get_string('blockcustomcss_desc', 'theme_universe');
133
$default = '';
134
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
135
$page->add($setting);
136
 
137
$settings->add($page);