1
|
<?php
|
2
|
|
3
|
// Put the logo path into JavaScript for the live preview.
|
4
|
drupal_add_js(array('color' => array('logo' => theme_get_setting('logo', 'corporateclean'))), 'setting');
|
5
|
|
6
|
$info = array(
|
7
|
// Available colors and color labels used in theme.
|
8
|
'fields' => array(
|
9
|
'base' => t('Text color'),
|
10
|
'link' => t('Headings/Link'),
|
11
|
'headingshadow' => t('Headings shadow'),
|
12
|
'slogan' => t('Slogan'),
|
13
|
'headertop' => t('Header top'),
|
14
|
'headerbottom' => t('Header bottom'),
|
15
|
'headermenu' => t('Main menu strip'),
|
16
|
'headermenulink' => t('Main menu link'),
|
17
|
'headermenuborder' => t('Main menu/Footer menu border'),
|
18
|
'headermenubghover' => t('Main menu background hover (>=2 level)'),
|
19
|
'bannertop' => t('Banner top'),
|
20
|
'bannerbottom' => t('Banner bottom'),
|
21
|
'bannerborder' => t('Banner border'),
|
22
|
'contenttop' => t('Content top'),
|
23
|
'contentbottom' => t('Content bottom'),
|
24
|
'blockbg' => t('Block background'),
|
25
|
'blockshadow' => t('Block shadow'),
|
26
|
'buttontop' => t('Button top'),
|
27
|
'buttonbottom' => t('Button bottom'),
|
28
|
'buttontext' => t('Button text'),
|
29
|
'buttontextshadow' => t('Button text shadow'),
|
30
|
'buttonboxshadow' => t('Button box shadow'),
|
31
|
'buttonbghover' => t('Button background hover'),
|
32
|
'footer' => t('Footer 1'),
|
33
|
'footerlink' => t('Footer link'),
|
34
|
'footerbottomtop' => t('Footer 2 top'),
|
35
|
'footerbottombottom' => t('Footer 2 bottom'),
|
36
|
),
|
37
|
// Pre-defined color schemes.
|
38
|
'schemes' => array(
|
39
|
'default' => array(
|
40
|
'title' => t('Default'),
|
41
|
'colors' => array(
|
42
|
'base' => '#7a7a7a',
|
43
|
'link' => '#1487d4',
|
44
|
'headingshadow' => '#eaf1ea',
|
45
|
'slogan' => '#d5d5d5',
|
46
|
'headertop' => '#2f2f2f',
|
47
|
'headerbottom' => '#1b1a1a',
|
48
|
'headermenu' => '#222222',
|
49
|
'headermenulink' => '#ffffff',
|
50
|
'headermenuborder' => '#353535',
|
51
|
'headermenubghover' => '#1b1b1b',
|
52
|
'bannertop' => '#efeeee',
|
53
|
'bannerbottom' => '#dadada',
|
54
|
'bannerborder' => '#fcfcfc',
|
55
|
'contenttop' => '#e8e8e8',
|
56
|
'contentbottom' => '#efefef',
|
57
|
'blockbg' => '#fdfdfd',
|
58
|
'buttontop' => '#0093c5',
|
59
|
'buttonbottom' => '#0079a2',
|
60
|
'buttontext' => '#fefefe',
|
61
|
'buttontextshadow' => '#003547',
|
62
|
'buttonboxshadow' => '#939da2',
|
63
|
'buttonbghover' => '#008ab8',
|
64
|
'footer' => '#181818',
|
65
|
'footerlink' => '#e4e4e4',
|
66
|
'footerbottomtop' => '#262626',
|
67
|
'footerbottombottom' => '#1a1a1a',
|
68
|
),
|
69
|
),
|
70
|
'alignment' => array(
|
71
|
'title' => t('Alignment'),
|
72
|
'colors' => array(
|
73
|
'base' => '#7a7a7a',
|
74
|
'link' => '#de6a00',
|
75
|
'headingshadow' => '#ffffff',
|
76
|
'slogan' => '#d5d5d5',
|
77
|
'headertop' => '#222222',
|
78
|
'headerbottom' => '#203e42',
|
79
|
'headermenu' => '#222222',
|
80
|
'headermenulink' => '#d4fffd',
|
81
|
'headermenuborder' => '#222222',
|
82
|
'headermenubghover' => '#203e42',
|
83
|
'bannertop' => '#efeeee',
|
84
|
'bannerbottom' => '#dadada',
|
85
|
'bannerborder' => '#fcfcfc',
|
86
|
'contenttop' => '#e8e8e8',
|
87
|
'contentbottom' => '#efefef',
|
88
|
'blockbg' => '#fdfdfd',
|
89
|
'buttontop' => '#db9655',
|
90
|
'buttonbottom' => '#de6a00',
|
91
|
'buttontext' => '#fefefe',
|
92
|
'buttontextshadow' => '#222222',
|
93
|
'buttonboxshadow' => '#999999',
|
94
|
'buttonbghover' => '#de6a00',
|
95
|
'footer' => '#203e42',
|
96
|
'footerlink' => '#d4fffd',
|
97
|
'footerbottomtop' => '#203e42',
|
98
|
'footerbottombottom' => '#222222',
|
99
|
),
|
100
|
),
|
101
|
),
|
102
|
|
103
|
// CSS files (excluding @import) to rewrite with new color scheme.
|
104
|
'css' => array(
|
105
|
'color/colors.css',
|
106
|
),
|
107
|
|
108
|
// Files to copy.
|
109
|
'copy' => array(
|
110
|
'logo.png',
|
111
|
),
|
112
|
|
113
|
// Gradient definitions.
|
114
|
'gradients' => array(
|
115
|
array(
|
116
|
// (x, y, width, height).
|
117
|
'dimension' => array(0, 0, 0, 0),
|
118
|
// Direction of gradient ('vertical' or 'horizontal').
|
119
|
'direction' => 'vertical',
|
120
|
// Keys of colors to use for the gradient.
|
121
|
'colors' => array('top', 'bottom'),
|
122
|
),
|
123
|
),
|
124
|
|
125
|
// Color areas to fill (x, y, width, height).
|
126
|
'fill' => array(),
|
127
|
|
128
|
// Coordinates of all the theme slices (x, y, width, height)
|
129
|
// with their filename as used in the stylesheet.
|
130
|
'slices' => array(),
|
131
|
|
132
|
// Reference color used for blending. Matches the base.png's colors.
|
133
|
'blend_target' => '#ffffff',
|
134
|
|
135
|
// Preview files.
|
136
|
'preview_css' => 'color/preview.css',
|
137
|
'preview_js' => 'color/preview.js',
|
138
|
'preview_html' => 'color/preview.html',
|
139
|
|
140
|
// Base file for image generation.
|
141
|
'base_image' => 'color/base.png',
|
142
|
);
|