blob: f530101bafd55aa973adf853d31a6070983e4dc2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
<?php
// $Id: template.php,v 1.8.2.5 2011/01/13 06:04:30 jmburnz Exp $
/**
* @file template.php
*/
/**
* Override or insert variables into the html template.
*/
function pixture_reloaded_process_html(&$vars) {
// Hook into color module
if (module_exists('color')) {
_color_html_alter($vars);
}
$classes = explode(' ', $vars['classes']);
$classes[] = theme_get_setting('font_family');
$classes[] = theme_get_setting('headings_font_family');
$classes[] = theme_get_setting('font_size');
$classes[] = theme_get_setting('box_shadows');
$classes[] = theme_get_setting('corner_radius');
if (theme_get_setting('headings_styles_caps') == 1) {
$classes[] = 'hs-caps';
}
if (theme_get_setting('headings_styles_weight') == 1) {
$classes[] = 'hs-fwn';
}
if (theme_get_setting('headings_styles_shadow') == 1) {
$classes[] = 'hs-ts';
}
$vars['classes'] = trim(implode(' ', $classes));
}
/**
* Override or insert variables into the page template.
*/
function pixture_reloaded_process_page(&$vars) {
// Hook into color.module
if (module_exists('color')) {
_color_page_alter($vars);
}
}
/**
* Override or insert variables into the block template.
*/
function pixture_reloaded_preprocess_block(&$vars) {
if($vars['block']->region == 'menu_bar') {
$vars['title_attributes_array']['class'][] = 'element-invisible';
}
if($vars['block']->module == 'superfish' || $vars['block']->module == 'nice_menu') {
$vars['content_attributes_array']['class'][] = 'clearfix';
}
}
|