You are here

pane-navigation.tpl.php in Panels Everywhere 6

Same filename and directory in other branches
  1. 7 theme/pane-navigation.tpl.php

Theme implementation to display the messages area, which is normally included roughly in the content area of a page.

This utilizes the following variables thata re normally found in page.tpl.php:

  • $primary_links
  • $secondary_links
  • $breadcrumb
  • $mission

Additional items can be added via theme_preprocess_pane_messages(). See template_preprocess_pane_messages() for examples.

File

theme/pane-navigation.tpl.php
View source
<?php

/**
 * @file
 *
 * Theme implementation to display the messages area, which is normally
 * included roughly in the content area of a page.
 *
 * This utilizes the following variables thata re normally found in
 * page.tpl.php:
 * - $primary_links
 * - $secondary_links
 * - $breadcrumb
 * - $mission
 *
 * Additional items can be added via theme_preprocess_pane_messages(). See
 * template_preprocess_pane_messages() for examples.
 */
?>
<div id="navigation" class="menu <?php

if (!empty($primary_links)) {
  print "withprimary";
}
if (!empty($secondary_links)) {
  print " withsecondary";
}
?> ">
  <?php

if (!empty($primary_links)) {
  ?>
    <div id="primary" class="clear-block">
      <?php

  print theme('links', $primary_links, array(
    'class' => 'links primary-links',
  ));
  ?>
    </div>
  <?php

}
?>

  <?php

if (!empty($secondary_links)) {
  ?>
    <div id="secondary" class="clear-block">
      <?php

  print theme('links', $secondary_links, array(
    'class' => 'links secondary-links',
  ));
  ?>
    </div>
  <?php

}
?>

  <?php

if (!empty($breadcrumb)) {
  ?>
    <div id="breadcrumb"><?php

  print $breadcrumb;
  ?></div>
  <?php

}
?>
  <?php

if (!empty($mission)) {
  ?>
    <div id="mission"><?php

  print $mission;
  ?></div>
  <?php

}
?>

</div> <!-- /navigation -->