1 |
85ad3d82
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
function danland_page_class($sidebar_first, $sidebar_second) {
|
4 |
|
|
if ($sidebar_first && $sidebar_second) {
|
5 |
|
|
$id = 'layout-type-2';
|
6 |
|
|
}
|
7 |
|
|
else if ($sidebar_first || $sidebar_second) {
|
8 |
|
|
$id = 'layout-type-1';
|
9 |
|
|
}
|
10 |
|
|
|
11 |
|
|
if(isset($id)) {
|
12 |
|
|
print ' id="'. $id .'"';
|
13 |
|
|
}
|
14 |
|
|
}
|
15 |
|
|
|
16 |
|
|
function danland_preprocess_html(&$vars) {
|
17 |
|
|
|
18 |
|
|
drupal_add_css(path_to_theme() . '/style.ie6.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'IE 6', '!IE' => FALSE), 'preprocess' => FALSE));
|
19 |
|
|
}
|
20 |
|
|
|
21 |
|
|
function danland_preprocess_maintenance_page(&$variables) {
|
22 |
|
|
if (!$variables['db_is_active']) {
|
23 |
|
|
unset($variables['site_name']);
|
24 |
|
|
}
|
25 |
|
|
drupal_add_css(drupal_get_path('theme', 'danland') . '/maintenance.css');
|
26 |
|
|
drupal_add_js(drupal_get_path('theme', 'danland') . '/scripts/jquery.cycle.all.js');
|
27 |
|
|
}
|
28 |
|
|
|
29 |
|
|
if (drupal_is_front_page()) {
|
30 |
|
|
drupal_add_js(drupal_get_path('theme', 'danland') . '/scripts/jquery.cycle.all.js');
|
31 |
|
|
} |