function alpha_alpha_preprocess_html

cis7 template.php alpha_alpha_preprocess_html(&$vars)
cle7 template.php alpha_alpha_preprocess_html(&$vars)
elmsmedia7 template.php alpha_alpha_preprocess_html(&$vars)
icor7 template.php alpha_alpha_preprocess_html(&$vars)
meedjum_blog7 template.php alpha_alpha_preprocess_html(&$vars)
mooc7 template.php alpha_alpha_preprocess_html(&$vars)

Implements hook_preprocess_html().

File

sites/all/themes/ulmus/omega/alpha/template.php, line 318

Code

function alpha_alpha_preprocess_html(&$vars) {
  $theme = alpha_get_theme();

  foreach (array('two-sidebars', 'one-sidebar sidebar-first', 'one-sidebar sidebar-second', 'no-sidebars') as $exclude) {
    if ($index = array_search($exclude, $vars['attributes_array']['class'])) {
      unset($vars['attributes_array']['class'][$index]);
    }
  }

  // Add a CSS class based on the current page context.
  if (!drupal_is_front_page()) {
    $context = explode('/', drupal_get_path_alias());
    $context = reset($context);

    if (!empty($context)) {
      $vars['attributes_array']['class'][] = drupal_html_class('context-' . $context);
    }
  }

  if (($theme->settings['debug']['grid'] || $theme->settings['debug']['block']) && $theme->settings['debug']['access']) {
    if ($theme->settings['debug']['grid'] && $theme->settings['debug']['grid_active']) {
      $vars['attributes_array']['class'][] = 'alpha-grid-debug';
    }

    if ($theme->settings['debug']['block'] && $theme->settings['debug']['block_active']) {
      $vars['attributes_array']['class'][] = 'alpha-region-debug';
    }
  }

  if ($theme->settings['responsive'] && $theme->settings['viewport']['enabled']) {
    $meta = array(
      '#tag' => 'meta',
      '#attributes' => array(
        'name' => 'viewport',
        'content' => 'width=device-width, initial-scale=' . $theme->settings['viewport']['initial'] . ', maximum-scale=' . $theme->settings['viewport']['max'] . ', minimum-scale=' . $theme->settings['viewport']['min'] . ', user-scalable=' . ($theme->settings['viewport']['user'] ? 'yes' : 'no'),
      ),
    );

    drupal_add_html_head($meta, 'alpha-viewport');
  }

  alpha_css_include();
  alpha_libraries_include();
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.