summaryrefslogtreecommitdiff
path: root/themes/seven/template.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-03-03 19:46:26 +0000
committerDries Buytaert <dries@buytaert.net>2010-03-03 19:46:26 +0000
commit7818e2d4603d352c0a20574051ec72c9727a190d (patch)
treec31801a92495abf256380874b9a4e55b1a066f60 /themes/seven/template.php
parente824801b2be98a7c76662b328684b8edb1dc396b (diff)
downloadbrdo-7818e2d4603d352c0a20574051ec72c9727a190d.tar.gz
brdo-7818e2d4603d352c0a20574051ec72c9727a190d.tar.bz2
- Patch #676800 by casey, sun, james.elliott, cosmicdreams, seutje, Jacine: made fieldsets work on all browser.
Diffstat (limited to 'themes/seven/template.php')
-rw-r--r--themes/seven/template.php25
1 files changed, 2 insertions, 23 deletions
diff --git a/themes/seven/template.php b/themes/seven/template.php
index 66ad3feeb..88a67a09d 100644
--- a/themes/seven/template.php
+++ b/themes/seven/template.php
@@ -5,6 +5,8 @@
* Override or insert variables into the html template.
*/
function seven_preprocess_html(&$vars) {
+ // Add conditional CSS for IE8 and below.
+ drupal_add_css(path_to_theme() . '/ie.css', array('weight' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 8', '!IE' => FALSE), 'preprocess' => FALSE));
// 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));
}
@@ -76,29 +78,6 @@ function seven_tablesort_indicator($variables) {
}
/**
- * Override of theme_fieldset().
- *
- * Add span to legend tag, so we can style it to be inside the fieldset.
- */
-function seven_fieldset($variables) {
- $element = $variables['element'];
-
- $output = '<fieldset' . drupal_attributes($element['#attributes']) . '>';
- if (!empty($element['#title'])) {
- $output .= '<legend><span>' . $element['#title'] . '</span></legend>';
- }
- if (!empty($element['#description'])) {
- $output .= '<div class="fieldset-description">' . $element['#description'] . '</div>';
- }
- $output .= $element['#children'];
- if (isset($element['#value'])) {
- $output .= $element['#value'];
- }
- $output .= "</fieldset>\n";
- return $output;
-}
-
-/**
* Implements hook_css_alter().
*/
function seven_css_alter(&$css) {