You are here

function template_process_pane_navigation in Panels Everywhere 7

File

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

Code

function template_process_pane_navigation(&$vars) {
  if (!empty($vars['main_menu'])) {
    $vars['main_menu'] = theme('links__system_main_menu', array(
      'links' => $vars['main_menu'],
      'attributes' => array(
        'id' => 'main-menu',
        'class' => array(
          'links',
          'clearfix',
          'inline',
        ),
      ),
      'heading' => t('Main menu'),
    ));
  }
  if (!empty($vars['secondary_menu'])) {
    $vars['secondary_menu'] = theme('links__system_secondary_menu', array(
      'links' => $vars['secondary_menu'],
      'attributes' => array(
        'id' => 'secondary-menu',
        'class' => array(
          'links',
          'clearfix',
          'inline',
        ),
      ),
      'heading' => t('Secondary menu'),
    ));
  }
  $vars['breadcrumb'] = theme('breadcrumb', array(
    'breadcrumb' => drupal_get_breadcrumb(),
  ));
}