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_monocolor
|
|
|
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_monocolor_block11', get_string('settingsblock11', 'theme_monocolor'));
|
|
|
29 |
|
|
|
30 |
$name = 'theme_monocolor/displayblock11';
|
|
|
31 |
$title = get_string('turnon', 'theme_monocolor');
|
|
|
32 |
$description = get_string('displayblock11_desc', 'theme_monocolor');
|
|
|
33 |
$default = 0;
|
|
|
34 |
$setting = new admin_setting_configcheckbox($name, $title .
|
|
|
35 |
'<span class="badge badge-sq badge-dark ml-2">Block #11</span>', $description, $default);
|
|
|
36 |
$page->add($setting);
|
|
|
37 |
|
|
|
38 |
$name = 'theme_monocolor/displayhrblock11';
|
|
|
39 |
$title = get_string('displayblockhr', 'theme_monocolor');
|
|
|
40 |
$description = get_string('displayblockhr_desc', 'theme_monocolor');
|
|
|
41 |
$default = 1;
|
|
|
42 |
$setting = new admin_setting_configcheckbox($name, $title, $description, $default);
|
|
|
43 |
$page->add($setting);
|
|
|
44 |
|
|
|
45 |
$name = 'theme_monocolor/block11id';
|
|
|
46 |
$title = get_string('additionalid', 'theme_monocolor');
|
|
|
47 |
$description = get_string('additionalid_desc', 'theme_monocolor');
|
|
|
48 |
$default = '';
|
|
|
49 |
$setting = new admin_setting_configtext($name, $title, $description, $default);
|
|
|
50 |
$page->add($setting);
|
|
|
51 |
|
|
|
52 |
$name = 'theme_monocolor/block11class';
|
|
|
53 |
$title = get_string('additionalclass', 'theme_monocolor');
|
|
|
54 |
$description = get_string('additionalclass_desc', 'theme_monocolor');
|
|
|
55 |
$default = '';
|
|
|
56 |
$setting = new admin_setting_configtext($name, $title, $description, $default);
|
|
|
57 |
$page->add($setting);
|
|
|
58 |
|
|
|
59 |
$name = 'theme_monocolor/block11introsubtitle';
|
|
|
60 |
$title = get_string('blockintrosubtitle', 'theme_monocolor');
|
|
|
61 |
$description = get_string('blockintrosubtitle_desc', 'theme_monocolor');
|
|
|
62 |
$default = '';
|
|
|
63 |
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
|
|
|
64 |
$page->add($setting);
|
|
|
65 |
|
|
|
66 |
$name = 'theme_monocolor/block11introtitle';
|
|
|
67 |
$title = get_string('blockintrotitle', 'theme_monocolor');
|
|
|
68 |
$description = get_string('blockintrotitle_desc', 'theme_monocolor');
|
|
|
69 |
$default = '';
|
|
|
70 |
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
|
|
|
71 |
$page->add($setting);
|
|
|
72 |
|
|
|
73 |
$name = 'theme_monocolor/block11introcontent';
|
|
|
74 |
$title = get_string('blockintrocontent', 'theme_monocolor');
|
|
|
75 |
$description = get_string('blockintrocontent_desc', 'theme_monocolor');
|
|
|
76 |
$default = '';
|
|
|
77 |
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
|
|
|
78 |
$page->add($setting);
|
|
|
79 |
|
|
|
80 |
$name = 'theme_monocolor/block11htmlcontent';
|
|
|
81 |
$title = get_string('blockhtmlcontent', 'theme_monocolor');
|
|
|
82 |
$description = get_string('blockhtmlcontent_desc', 'theme_monocolor');
|
|
|
83 |
$default = '<div class="row row-cols-1 row-cols-lg-2 mx-0 px-0">
|
|
|
84 |
<!-- Start item -->
|
|
|
85 |
<div class="rui-card-item col mb-4">
|
|
|
86 |
<div class="rui-card--colorized rui-rounded--lg text-center" style="background-color: #ffddd7;">
|
|
|
87 |
<div class="rui-card-body">
|
|
|
88 |
<!-- icon -->
|
|
|
89 |
<div class=" mb-3">
|
|
|
90 |
<svg width="90px" height="90px" stroke-width="1.5"
|
|
|
91 |
viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"
|
|
|
92 |
color="currentColor">
|
|
|
93 |
<path d="M12 21V7a2 2 0 012-2h7.4a.6.6 0 01.6.6v13.114M12 21V7a2 2
|
|
|
94 |
|
|
|
95 |
stroke-width="1.5" stroke-linecap="round"></path>
|
|
|
96 |
<path d="M12 21a2 2 0 012-2M12 21a2 2 0 00-2-2" stroke="#000000"
|
|
|
97 |
stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
|
98 |
</svg>
|
|
|
99 |
</div>
|
|
|
100 |
<!-- end icon -->
|
|
|
101 |
<h3 class="display-3">Get started</h3>
|
|
|
102 |
<p class="text-size-lg mt-3">Check out the documentation page.</p>
|
|
|
103 |
<a href="#" class="btn btn-lg btn-dark mt-4">Lets get started</a>
|
|
|
104 |
</div>
|
|
|
105 |
</div>
|
|
|
106 |
</div>
|
|
|
107 |
<!-- End item -->
|
|
|
108 |
<!-- Start item -->
|
|
|
109 |
<div class="rui-card-item col mb-4">
|
|
|
110 |
<div class="rui-card--colorized rui-rounded--lg text-center" style="background-color: #feedba;">
|
|
|
111 |
<div class="rui-card-body">
|
|
|
112 |
<!-- icon -->
|
|
|
113 |
<div class="mb-3">
|
|
|
114 |
<svg width="90px" height="90px" stroke-width="1.5" viewBox="0 0 24 24"
|
|
|
115 |
fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor">
|
|
|
116 |
<path d="M10 15v4a2 2 0 01-2 2H4a2 2 0 01-2-2v-4a2 2 0 012-2h4a2 2 0
|
|
|
117 |
012 2zM16 5v4a2 2 0 01-2 2h-4a2 2 0 01-2-2V5a2 2 0 012-2h4a2 2 0 012
|
|
|
118 |
2zM22 15v4a2 2 0 01-2 2h-4a2 2 0 01-2-2v-4a2 2 0 012-2h4a2 2 0 012 2zM6
|
|
|
119 |
16v-3M12 6V3M18 16v-3" stroke="#000000" stroke-width="1.5"
|
|
|
120 |
stroke-linecap="round" stroke-linejoin="round"></path>
|
|
|
121 |
</svg>
|
|
|
122 |
</div>
|
|
|
123 |
<!-- end icon -->
|
|
|
124 |
<h3 class="display-3">Blocks Snippets</h3>
|
|
|
125 |
<p class="text-size-lg mt-3">Check the theme front page blocks snippets library.</p>
|
|
|
126 |
<a href="#" class="btn btn-lg btn-dark mt-4">Code snippets library</a>
|
|
|
127 |
</div>
|
|
|
128 |
</div>
|
|
|
129 |
</div>
|
|
|
130 |
<!-- End item -->
|
|
|
131 |
</div>';
|
|
|
132 |
$setting = new monocolor_setting_confightmleditor($name, $title, $description, $default);
|
|
|
133 |
$page->add($setting);
|
|
|
134 |
|
|
|
135 |
$name = 'theme_monocolor/block11footercontent';
|
|
|
136 |
$title = get_string('blockfootercontent', 'theme_monocolor');
|
|
|
137 |
$description = get_string('blockfootercontent_desc', 'theme_monocolor');
|
|
|
138 |
$default = '';
|
|
|
139 |
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
|
|
|
140 |
$page->add($setting);
|
|
|
141 |
|
|
|
142 |
$name = 'theme_monocolor/block11customcss';
|
|
|
143 |
$title = get_string('blockcustomcss', 'theme_monocolor');
|
|
|
144 |
$description = get_string('blockcustomcss_desc', 'theme_monocolor');
|
|
|
145 |
$default = '';
|
|
|
146 |
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
|
|
|
147 |
$page->add($setting);
|
|
|
148 |
|
|
|
149 |
$settings->add($page);
|