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