You are here

function template_preprocess_pane_header in Panels Everywhere 6

Same name and namespace in other branches
  1. 7 theme/theme.inc \template_preprocess_pane_header()

@file Contains preprocess functions for Panels Everywhere themes.

File

theme/theme.inc, line 8
Contains preprocess functions for Panels Everywhere themes.

Code

function template_preprocess_pane_header(&$vars) {
  $vars['site_name'] = theme_get_setting('toggle_name') ? filter_xss_admin(variable_get('site_name', 'Drupal')) : '';
  $vars['site_slogan'] = theme_get_setting('toggle_slogan') ? filter_xss_admin(variable_get('site_slogan', '')) : '';
  $vars['front_page'] = url();
  $vars['logo'] = theme_get_setting('logo');

  // Only load the search box if the Search module is enabled and the search box
  // is enabled in the theme settings.
  $vars['search_box'] = '';
  if (module_exists('search') && theme_get_setting('toggle_search')) {
    $vars['search_box'] = drupal_get_form('search_theme_form');
  }
}