-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.php
More file actions
executable file
·122 lines (109 loc) · 3.04 KB
/
Copy pathtemplate.php
File metadata and controls
executable file
·122 lines (109 loc) · 3.04 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?php
/**
* Preprocess and Process Functions SEE: http://drupal.org/node/254940#variables-processor
* 1. Rename each function and instance of "bh" to match
* your subthemes name, e.g. if you name your theme "footheme" then the function
* name will be "footheme_preprocess_hook". Tip - you can search/replace
* on "bh".
* 2. Uncomment the required function to use.
*/
/**
* Override or insert variables into the html templates.
*/
function bh_preprocess_html(&$vars) {
// Load the media queries styles
// Remember to rename these files to match the names used here - they are
// in the CSS directory of your subtheme.
$media_queries_css = array(
'bh.responsive.style.css',
'bh.responsive.gpanels.css'
);
load_subtheme_media_queries($media_queries_css, 'bh');
/**
* Load IE specific stylesheets
* AT automates adding IE stylesheets, simply add to the array using
* the conditional comment as the key and the stylesheet name as the value.
*
* See our online help: http://adaptivethemes.com/documentation/working-with-internet-explorer
*
* For example to add a stylesheet for IE8 only use:
*
* 'IE 8' => 'ie-8.css',
*
* Your IE CSS file must be in the /css/ directory in your subtheme.
*/
/* -- Delete this line to add a conditional stylesheet for IE 7 or less.
$ie_files = array(
'lte IE 7' => 'ie-lte-7.css',
);
load_subtheme_ie_styles($ie_files, 'bh');
// */
}
/* -- Delete this line if you want to use this function
function bh_process_html(&$vars) {
}
// */
/**
* Override or insert variables into the page templates.
*/
/* -- Delete this line if you want to use these functions
function bh_preprocess_page(&$vars) {
}
function bh_process_page(&$vars) {
}
// */
/**
* Override or insert variables into the node templates.
*/
/* -- Delete this line if you want to use these functions
function bh_preprocess_node(&$vars) {
}
function bh_process_node(&$vars) {
}
// */
/**
* Override or insert variables into the comment templates.
*/
/* -- Delete this line if you want to use these functions
function bh_preprocess_comment(&$vars) {
}
function bh_process_comment(&$vars) {
}
// */
/**
* Override or insert variables into the block templates.
*/
/* -- Delete this line if you want to use these functions
function bh_preprocess_block(&$vars) {
}
function bh_process_block(&$vars) {
}
// */
/**
* Add the Style Schemes if enabled.
* NOTE: You MUST make changes in your subthemes theme-settings.php file
* also to enable Style Schemes.
*/
/* -- Delete this line if you want to enable style schemes.
// DONT TOUCH THIS STUFF...
function get_at_styles() {
$scheme = theme_get_setting('style_schemes');
if (!$scheme) {
$scheme = 'style-default.css';
}
if (isset($_COOKIE["atstyles"])) {
$scheme = $_COOKIE["atstyles"];
}
return $scheme;
}
if (theme_get_setting('style_enable_schemes') == 'on') {
$style = get_at_styles();
if ($style != 'none') {
drupal_add_css(path_to_theme() . '/css/schemes/' . $style, array(
'group' => CSS_THEME,
'preprocess' => TRUE,
)
);
}
}
// */