You are here

pane-messages.tpl.php in Panels Everywhere 7

Same filename and directory in other branches
  1. 6 theme/pane-messages.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 that are normally found in page.tpl.php:

  • $tabs
  • $messages
  • $help

The $action_links is loaded from CTools and is a cleaned up version of the core functionality.

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

File

theme/pane-messages.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 that are normally found in
 * page.tpl.php:
 * - $tabs
 * - $messages
 * - $help
 *
 * The $action_links is loaded from CTools and is a cleaned up version of the
 * core functionality.
 *
 * Additional items can be added via theme_preprocess_pane_messages(). See
 * template_preprocess_pane_messages() for examples.
 */
if (!empty($tabs) && (!empty($tabs['#primary']) || !empty($tabs['#secondary']))) {
  ?>
  <div class="tabs"><?php

  print render($tabs);
  ?></div>
<?php

}
if (!empty($action_links)) {
  print $action_links;
}
if (!empty($messages)) {
  print $messages;
}
if (!empty($help)) {
  print $help;
}