You are here

function seven_preprocess_html in Drupal 7

Same name and namespace in other branches
  1. 8 core/themes/seven/seven.theme \seven_preprocess_html()
  2. 9 core/themes/seven/seven.theme \seven_preprocess_html()

Override or insert variables into the html template.

1 call to seven_preprocess_html()
seven_preprocess_maintenance_page in themes/seven/template.php
Override or insert variables into the maintenance page template.

File

themes/seven/template.php, line 18

Code

function seven_preprocess_html(&$vars) {

  // Add conditional CSS for IE8 and below.
  drupal_add_css(path_to_theme() . '/ie.css', array(
    'group' => CSS_THEME,
    'browsers' => array(
      'IE' => 'lte IE 8',
      '!IE' => FALSE,
    ),
    'weight' => 999,
    'preprocess' => FALSE,
  ));

  // Add conditional CSS for IE7 and below.
  drupal_add_css(path_to_theme() . '/ie7.css', array(
    'group' => CSS_THEME,
    'browsers' => array(
      'IE' => 'lte IE 7',
      '!IE' => FALSE,
    ),
    'weight' => 999,
    'preprocess' => FALSE,
  ));

  // Add conditional CSS for IE6.
  drupal_add_css(path_to_theme() . '/ie6.css', array(
    'group' => CSS_THEME,
    'browsers' => array(
      'IE' => 'lte IE 6',
      '!IE' => FALSE,
    ),
    'weight' => 999,
    'preprocess' => FALSE,
  ));
}