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_block10', get_string('settingsblock10', 'theme_monocolor'));
|
|
|
29 |
|
|
|
30 |
$name = 'theme_monocolor/displayblock10';
|
|
|
31 |
$title = get_string('turnon', 'theme_monocolor');
|
|
|
32 |
$description = get_string('displayblock10_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 #10</span>', $description, $default);
|
|
|
36 |
$page->add($setting);
|
|
|
37 |
|
|
|
38 |
$name = 'theme_monocolor/displayhrblock10';
|
|
|
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/block10id';
|
|
|
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/block10introsubtitle';
|
|
|
53 |
$title = get_string('blockintrosubtitle', 'theme_monocolor');
|
|
|
54 |
$description = get_string('blockintrosubtitle_desc', 'theme_monocolor');
|
|
|
55 |
$default = '';
|
|
|
56 |
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
|
|
|
57 |
$page->add($setting);
|
|
|
58 |
|
|
|
59 |
$name = 'theme_monocolor/block10class';
|
|
|
60 |
$title = get_string('additionalclass', 'theme_monocolor');
|
|
|
61 |
$description = get_string('additionalclass_desc', 'theme_monocolor');
|
|
|
62 |
$default = '';
|
|
|
63 |
$setting = new admin_setting_configtext($name, $title, $description, $default);
|
|
|
64 |
$page->add($setting);
|
|
|
65 |
|
|
|
66 |
$name = 'theme_monocolor/block10introtitle';
|
|
|
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/block10introcontent';
|
|
|
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/block10htmlcontent';
|
|
|
81 |
$title = get_string('blockhtmlcontent', 'theme_monocolor');
|
|
|
82 |
$description = get_string('blockhtmlcontent_desc', 'theme_monocolor');
|
|
|
83 |
$default = '<div class="row align-items-lg-center">
|
|
|
84 |
<div class="rui-img-rounded--lg col-sm-12 col-lg-6 mb-4 mb-lg-0">
|
|
|
85 |
<img src="https://assets.rosea.io/monocolor/demo/600x600.jpg" alt="" width="600" height="600" class="img-fluid">
|
|
|
86 |
</div>
|
|
|
87 |
<div class="col-sm-12 col-lg offset-lg-1">
|
|
|
88 |
<div class="pt-lg-4 pt-0">
|
|
|
89 |
<h2 class="mb-xl-4">Custom Work</h2>
|
|
|
90 |
<p class="pb-3 mb-3 mb-xl-4">Do you need theme customization? Help with some Moodle issues?
|
|
|
91 |
Or maybe you can design and build a theme from scratch?</p>
|
|
|
92 |
<div class="row row-cols-2 pb-2 pb-xl-0 mb-4 mb-xl-5">
|
|
|
93 |
<div class="col">
|
|
|
94 |
<div class="rui-rounded-icon my-3" style="color: #000; background: #feedba;">
|
|
|
95 |
<svg width="24px"
|
|
|
96 |
height="24px"
|
|
|
97 |
stroke-width="1.5"
|
|
|
98 |
viewBox="0 0 24 24"
|
|
|
99 |
fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor">
|
|
|
100 |
<path
|
|
|
101 |
d="M16 16.472V20a2 2 0 01-2 2h-4a2 2 0 01-2-2v-3.528M8 7.528V4a2
|
|
|
102 |
2 0 012-2h4a2 2 0 012 2v3.528" stroke="currentColor"
|
|
|
103 |
stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
|
104 |
<path d="M18 12a6 6 0 10-12 0 6 6 0 0012 0z"
|
|
|
105 |
stroke="currentColor"
|
|
|
106 |
stroke-width="1.5"
|
|
|
107 |
stroke-linecap="round"
|
|
|
108 |
stroke-linejoin="round"></path>
|
|
|
109 |
<path d="M14 12h-2v-2"
|
|
|
110 |
stroke="currentColor"
|
|
|
111 |
stroke-width="1.5"
|
|
|
112 |
stroke-linecap="round"
|
|
|
113 |
stroke-linejoin="round"></path>
|
|
|
114 |
</svg>
|
|
|
115 |
</div>
|
|
|
116 |
<h3 class="h5 mb-2">Customization, Design</h3>
|
|
|
117 |
<p>30$/hour</p>
|
|
|
118 |
</div>
|
|
|
119 |
<div class="col">
|
|
|
120 |
<div class="rui-rounded-icon my-3" style="color: #000; background: #bdc4f4;">
|
|
|
121 |
<svg width="32px"
|
|
|
122 |
height="32px"
|
|
|
123 |
stroke-width="1.5"
|
|
|
124 |
viewBox="0 0 24 24"
|
|
|
125 |
fill="none" xmlns="http://www.w3.org/2000/svg"
|
|
|
126 |
color="currentColor">
|
|
|
127 |
<path
|
|
|
128 |
d="M11 13.6V21H3.6a.6.6 0 01-.6-.6V13h7.4a.6.6 0 01.6.6zM11 21h3M3
|
|
|
129 |
13v-3M6 3H3.6a.6.6 0 00-.6.6V6M14 3h-4M21 10v4M18 3h2.4a.6.6 0
|
|
|
130 |
01.6.6V6M18 21h2.4a.6.6 0 00.6-.6V18M11 10h3v3"
|
|
|
131 |
stroke="#000000"
|
|
|
132 |
stroke-width="1.5"
|
|
|
133 |
stroke-linecap="round"
|
|
|
134 |
stroke-linejoin="round"></path>
|
|
|
135 |
</svg>
|
|
|
136 |
</div>
|
|
|
137 |
<h3 class="h5 mb-2">Custom Moodle Theme</h3>
|
|
|
138 |
<p>The price starts from $6000.</p>
|
|
|
139 |
</div>
|
|
|
140 |
</div>
|
|
|
141 |
<a class="btn btn-primary" href="#">Buy monocolor today</a>
|
|
|
142 |
</div>
|
|
|
143 |
</div>
|
|
|
144 |
</div>';
|
|
|
145 |
$setting = new monocolor_setting_confightmleditor($name, $title, $description, $default);
|
|
|
146 |
$page->add($setting);
|
|
|
147 |
|
|
|
148 |
$name = 'theme_monocolor/block10footercontent';
|
|
|
149 |
$title = get_string('blockfootercontent', 'theme_monocolor');
|
|
|
150 |
$description = get_string('blockfootercontent_desc', 'theme_monocolor');
|
|
|
151 |
$default = '';
|
|
|
152 |
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
|
|
|
153 |
$page->add($setting);
|
|
|
154 |
|
|
|
155 |
$name = 'theme_monocolor/block10customcss';
|
|
|
156 |
$title = get_string('blockcustomcss', 'theme_monocolor');
|
|
|
157 |
$description = get_string('blockcustomcss_desc', 'theme_monocolor');
|
|
|
158 |
$default = '';
|
|
|
159 |
$setting = new admin_setting_configtextarea($name, $title, $description, $default);
|
|
|
160 |
$page->add($setting);
|
|
|
161 |
|
|
|
162 |
$settings->add($page);
|