Theme fix for magazine, MDL-24392
[moodle.git] / theme / magazine / settings.php
CommitLineData
b8fce7be
S
1<?php
2
e3816644
S
3defined('MOODLE_INTERNAL') || die;
4
5if ($ADMIN->fulltree) {
b8fce7be
S
6
7 // Background image setting
8 $name = 'theme_magazine/background';
9 $title = get_string('background','theme_magazine');
10 $description = get_string('backgrounddesc', 'theme_magazine');
11 $setting = new admin_setting_configtext($name, $title, $description, '', PARAM_URL);
e3816644 12 $settings->add($setting);
b8fce7be
S
13
14 // logo image setting
15 $name = 'theme_magazine/logo';
16 $title = get_string('logo','theme_magazine');
17 $description = get_string('logodesc', 'theme_magazine');
18 $setting = new admin_setting_configtext($name, $title, $description, '', PARAM_URL);
e3816644 19 $settings->add($setting);
b8fce7be
S
20
21 // link color setting
22 $name = 'theme_magazine/linkcolor';
23 $title = get_string('linkcolor','theme_magazine');
24 $description = get_string('linkcolordesc', 'theme_magazine');
25 $default = '#32529a';
26 $previewconfig = NULL;
27 $setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
e3816644 28 $settings->add($setting);
b8fce7be
S
29
30 // link hover color setting
31 $name = 'theme_magazine/linkhover';
32 $title = get_string('linkhover','theme_magazine');
33 $description = get_string('linkhoverdesc', 'theme_magazine');
34 $default = '#4e2300';
35 $previewconfig = NULL;
36 $setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
e3816644 37 $settings->add($setting);
b8fce7be
S
38
39 // main color setting
40 $name = 'theme_magazine/maincolor';
41 $title = get_string('maincolor','theme_magazine');
42 $description = get_string('maincolordesc', 'theme_magazine');
43 $default = '#002f2f';
44 $previewconfig = NULL;
45 $setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
e3816644 46 $settings->add($setting);
b8fce7be
S
47
48 // main color accent setting
49 $name = 'theme_magazine/maincoloraccent';
50 $title = get_string('maincoloraccent','theme_magazine');
51 $description = get_string('maincoloraccentdesc', 'theme_magazine');
52 $default = '#092323';
53 $previewconfig = NULL;
54 $setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
e3816644 55 $settings->add($setting);
b8fce7be
S
56
57 // heading color setting
58 $name = 'theme_magazine/headingcolor';
59 $title = get_string('headingcolor','theme_magazine');
60 $description = get_string('headingcolordesc', 'theme_magazine');
61 $default = '#4e0000';
62 $previewconfig = NULL;
63 $setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
e3816644 64 $settings->add($setting);
b8fce7be
S
65
66 // block heading color setting
67 $name = 'theme_magazine/blockcolor';
68 $title = get_string('blockcolor','theme_magazine');
69 $description = get_string('blockcolordesc', 'theme_magazine');
70 $default = '#002f2f';
71 $previewconfig = NULL;
72 $setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
e3816644 73 $settings->add($setting);
b8fce7be
S
74
75 // forum subject background color setting
76 $name = 'theme_magazine/forumback';
77 $title = get_string('forumback','theme_magazine');
78 $description = get_string('forumbackdesc', 'theme_magazine');
79 $default = '#e6e2af';
80 $previewconfig = NULL;
81 $setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
e3816644 82 $settings->add($setting);
b8fce7be 83
e3816644 84}