1 |
85ad3d82
|
Assos Assos
|
<?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', 'bartik'))), 'setting');
|
5 |
|
|
|
6 |
|
|
$info = array(
|
7 |
|
|
// Available colors and color labels used in theme.
|
8 |
|
|
'fields' => array(
|
9 |
|
|
'top' => t('Header top'),
|
10 |
|
|
'bottom' => t('Header bottom'),
|
11 |
|
|
'bg' => t('Main background'),
|
12 |
|
|
'sidebar' => t('Sidebar background'),
|
13 |
|
|
'sidebarborders' => t('Sidebar borders'),
|
14 |
|
|
'footer' => t('Footer background'),
|
15 |
|
|
'titleslogan' => t('Title and slogan'),
|
16 |
|
|
'text' => t('Text color'),
|
17 |
|
|
'link' => t('Link color'),
|
18 |
|
|
),
|
19 |
|
|
// Pre-defined color schemes.
|
20 |
|
|
'schemes' => array(
|
21 |
|
|
'default' => array(
|
22 |
|
|
'title' => t('Blue Lagoon (default)'),
|
23 |
|
|
'colors' => array(
|
24 |
|
|
'top' => '#0779bf',
|
25 |
|
|
'bottom' => '#48a9e4',
|
26 |
|
|
'bg' => '#ffffff',
|
27 |
|
|
'sidebar' => '#f6f6f2',
|
28 |
|
|
'sidebarborders' => '#f9f9f9',
|
29 |
|
|
'footer' => '#292929',
|
30 |
|
|
'titleslogan' => '#fffeff',
|
31 |
|
|
'text' => '#3b3b3b',
|
32 |
|
|
'link' => '#0071B3',
|
33 |
|
|
),
|
34 |
|
|
),
|
35 |
|
|
'firehouse' => array(
|
36 |
|
|
'title' => t('Firehouse'),
|
37 |
|
|
'colors' => array(
|
38 |
|
|
'top' => '#cd2d2d',
|
39 |
|
|
'bottom' => '#cf3535',
|
40 |
|
|
'bg' => '#ffffff',
|
41 |
|
|
'sidebar' => '#f1f4f0',
|
42 |
|
|
'sidebarborders' => '#ededed',
|
43 |
|
|
'footer' => '#1f1d1c',
|
44 |
|
|
'titleslogan' => '#fffeff',
|
45 |
|
|
'text' => '#3b3b3b',
|
46 |
|
|
'link' => '#d6121f',
|
47 |
|
|
),
|
48 |
|
|
),
|
49 |
|
|
'ice' => array(
|
50 |
|
|
'title' => t('Ice'),
|
51 |
|
|
'colors' => array(
|
52 |
|
|
'top' => '#d0d0d0',
|
53 |
|
|
'bottom' => '#c2c4c5',
|
54 |
|
|
'bg' => '#ffffff',
|
55 |
|
|
'sidebar' => '#ffffff',
|
56 |
|
|
'sidebarborders' => '#cccccc',
|
57 |
|
|
'footer' => '#24272c',
|
58 |
|
|
'titleslogan' => '#000000',
|
59 |
|
|
'text' => '#4a4a4a',
|
60 |
|
|
'link' => '#019dbf',
|
61 |
|
|
),
|
62 |
|
|
),
|
63 |
|
|
'plum' => array(
|
64 |
|
|
'title' => t('Plum'),
|
65 |
|
|
'colors' => array(
|
66 |
|
|
'top' => '#4c1c58',
|
67 |
|
|
'bottom' => '#593662',
|
68 |
|
|
'bg' => '#fffdf7',
|
69 |
|
|
'sidebar' => '#edede7',
|
70 |
|
|
'sidebarborders' => '#e7e7e7',
|
71 |
|
|
'footer' => '#2c2c28',
|
72 |
|
|
'titleslogan' => '#ffffff',
|
73 |
|
|
'text' => '#301313',
|
74 |
|
|
'link' => '#9d408d',
|
75 |
|
|
),
|
76 |
|
|
),
|
77 |
|
|
'slate' => array(
|
78 |
|
|
'title' => t('Slate'),
|
79 |
|
|
'colors' => array(
|
80 |
|
|
'top' => '#4a4a4a',
|
81 |
|
|
'bottom' => '#4e4e4e',
|
82 |
|
|
'bg' => '#ffffff',
|
83 |
|
|
'sidebar' => '#ffffff',
|
84 |
|
|
'sidebarborders' => '#d0d0d0',
|
85 |
|
|
'footer' => '#161617',
|
86 |
|
|
'titleslogan' => '#ffffff',
|
87 |
|
|
'text' => '#3b3b3b',
|
88 |
|
|
'link' => '#0073b6',
|
89 |
|
|
),
|
90 |
|
|
),
|
91 |
|
|
),
|
92 |
|
|
|
93 |
|
|
// CSS files (excluding @import) to rewrite with new color scheme.
|
94 |
|
|
'css' => array(
|
95 |
|
|
'css/colors.css',
|
96 |
|
|
),
|
97 |
|
|
|
98 |
|
|
// Files to copy.
|
99 |
|
|
'copy' => array(
|
100 |
|
|
'logo.png',
|
101 |
|
|
),
|
102 |
|
|
|
103 |
|
|
// Gradient definitions.
|
104 |
|
|
'gradients' => array(
|
105 |
|
|
array(
|
106 |
|
|
// (x, y, width, height).
|
107 |
|
|
'dimension' => array(0, 0, 0, 0),
|
108 |
|
|
// Direction of gradient ('vertical' or 'horizontal').
|
109 |
|
|
'direction' => 'vertical',
|
110 |
|
|
// Keys of colors to use for the gradient.
|
111 |
|
|
'colors' => array('top', 'bottom'),
|
112 |
|
|
),
|
113 |
|
|
),
|
114 |
|
|
|
115 |
|
|
// Color areas to fill (x, y, width, height).
|
116 |
|
|
'fill' => array(),
|
117 |
|
|
|
118 |
|
|
// Coordinates of all the theme slices (x, y, width, height)
|
119 |
|
|
// with their filename as used in the stylesheet.
|
120 |
|
|
'slices' => array(),
|
121 |
|
|
|
122 |
|
|
// Reference color used for blending. Matches the base.png's colors.
|
123 |
|
|
'blend_target' => '#ffffff',
|
124 |
|
|
|
125 |
|
|
// Preview files.
|
126 |
|
|
'preview_css' => 'color/preview.css',
|
127 |
|
|
'preview_js' => 'color/preview.js',
|
128 |
|
|
'preview_html' => 'color/preview.html',
|
129 |
|
|
|
130 |
|
|
// Base file for image generation.
|
131 |
|
|
'base_image' => 'color/base.png',
|
132 |
|
|
); |