summaryrefslogtreecommitdiff
path: root/themes/seven/template.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-02-25 20:57:39 +0000
committerDries Buytaert <dries@buytaert.net>2010-02-25 20:57:39 +0000
commit96b9d512c3e037ded1b076e18fc4b6821e3485a5 (patch)
tree36876bfc053ae5b6109648dd37a68312eee8e3cd /themes/seven/template.php
parent6d7e7bb8a31910de2acf6b9e7dd8bb3eb2886dd2 (diff)
downloadbrdo-96b9d512c3e037ded1b076e18fc4b6821e3485a5.tar.gz
brdo-96b9d512c3e037ded1b076e18fc4b6821e3485a5.tar.bz2
- Patch #228818 by effulgentsia, JonathanRoberts: IE stylesheets ignored after 31 link/style tags.
Diffstat (limited to 'themes/seven/template.php')
-rw-r--r--themes/seven/template.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/themes/seven/template.php b/themes/seven/template.php
index e9771a333..66ad3feeb 100644
--- a/themes/seven/template.php
+++ b/themes/seven/template.php
@@ -2,11 +2,16 @@
// $Id$
/**
- * Override or insert variables into the page template.
+ * Override or insert variables into the html template.
*/
-function seven_process_html(&$vars) {
- $vars['styles'] .= "\n<!--[if lt IE 7]>\n" . '<link type="text/css" rel="stylesheet" media="all" href="' . file_create_url(path_to_theme() . '/ie6.css') . '" />' . "\n" . "<![endif]-->\n";
+function seven_preprocess_html(&$vars) {
+ // Add conditional CSS for IE6.
+ drupal_add_css(path_to_theme() . '/ie6.css', array('weight' => CSS_THEME, 'browsers' => array('IE' => 'lt IE 7', '!IE' => FALSE), 'preprocess' => FALSE));
}
+
+/**
+ * Override or insert variables into the page template.
+ */
function seven_preprocess_page(&$vars) {
$vars['primary_local_tasks'] = menu_primary_local_tasks();
$vars['secondary_local_tasks'] = menu_secondary_local_tasks();