pane-messages.tpl.php in Panels Everywhere 7
Same filename and directory in other branches
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.
1 theme call to pane-messages.tpl.php
- panels_everywhere_pane_messages_content_type_render in plugins/
content_types/ pane_messages.inc - Output function for the 'pane_tabs' content type.
File
theme/pane-messages.tpl.phpView 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;
}