1 |
85ad3d82
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
function pixture_reloaded_preprocess_html(&$vars) {
|
8 |
|
|
global $theme_key;
|
9 |
|
|
|
10 |
|
|
$theme_name = 'pixture_reloaded';
|
11 |
|
|
$path_to_theme = drupal_get_path('theme', $theme_name);
|
12 |
|
|
|
13 |
|
|
|
14 |
|
|
if (module_exists('color')) {
|
15 |
|
|
$class = check_plain(get_color_scheme_name($theme_key));
|
16 |
|
|
$vars['classes_array'][] = 'color-scheme-' . drupal_html_class($class);
|
17 |
|
|
}
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
$vars['classes_array'][] = drupal_html_class($theme_key);
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
$settings_array = array(
|
24 |
|
|
'box_shadows',
|
25 |
|
|
'body_background',
|
26 |
|
|
'menu_bullets',
|
27 |
|
|
'menu_bar_position',
|
28 |
|
|
'corner_radius',
|
29 |
|
|
);
|
30 |
|
|
foreach ($settings_array as $setting) {
|
31 |
|
|
$vars['classes_array'][] = theme_get_setting($setting);
|
32 |
|
|
}
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
if (theme_get_setting('ie_corners') == 1) {
|
36 |
|
|
drupal_add_css($path_to_theme . '/css/ie-htc.css', array(
|
37 |
|
|
'group' => CSS_THEME,
|
38 |
|
|
'browsers' => array(
|
39 |
|
|
'IE' => 'lte IE 8',
|
40 |
|
|
'!IE' => FALSE,
|
41 |
|
|
),
|
42 |
|
|
'preprocess' => FALSE,
|
43 |
|
|
)
|
44 |
|
|
);
|
45 |
|
|
}
|
46 |
|
|
}
|
47 |
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
|
|
|
51 |
|
|
function pixture_reloaded_process_html(&$vars) {
|
52 |
|
|
|
53 |
|
|
if (module_exists('color')) {
|
54 |
|
|
_color_html_alter($vars);
|
55 |
|
|
}
|
56 |
|
|
}
|
57 |
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
|
|
function pixture_reloaded_process_page(&$vars) {
|
62 |
|
|
|
63 |
|
|
if (module_exists('color')) {
|
64 |
|
|
_color_page_alter($vars);
|
65 |
|
|
}
|
66 |
|
|
}
|
67 |
|
|
|
68 |
|
|
|
69 |
|
|
|
70 |
|
|
|
71 |
|
|
function pixture_reloaded_preprocess_block(&$vars) {
|
72 |
|
|
if($vars['block']->module == 'superfish' || $vars['block']->module == 'nice_menu') {
|
73 |
|
|
$vars['content_attributes_array']['class'][] = 'clearfix';
|
74 |
|
|
}
|
75 |
|
|
} |