panels-pane.tpl.php in Panels 7.3
Same filename and directory in other branches
Panels-pane.tpl.php Main panel pane template.
Variables available:
- $pane->type: the content type inside this pane
- $pane->subtype: The subtype, if applicable. If a view it will be the view name; if a node it will be the nid, etc.
- $title: The title of the content
- $content: The actual content
- $links: Any links associated with the content
- $more: An optional 'more' link (destination only)
- $admin_links: Administrative links associated with the content
- $feeds: Any feed icons or associated with the content
- $display: The complete panels display object containing all kinds of data including the contexts and all of the other panes being displayed.
5 theme calls to panels-pane.tpl.php
- panels_renderer_standard::render_pane in plugins/
display_renderers/ panels_renderer_standard.class.php - Render a pane using its designated style.
- panels_stylizer_pane_preview in ./
panels.module - Generate a preview given the current settings.
- template_preprocess_pane_rounded_shadow in plugins/
style_bases/ pane/ pane_rounded_shadow/ pane_rounded_shadow.inc - theme_panels_rounded_corners_style_render_pane in plugins/
styles/ corners/ rounded_corners.inc - Render callback for a single pane.
- theme_panels_stylizer_stylizer_style_render_pane in plugins/
styles/ stylizer.inc - Pane render theme.
File
templates/panels-pane.tpl.phpView source
<?php
/**
* @file Panels-pane.tpl.php
* Main panel pane template.
*
* Variables available:
* - $pane->type: the content type inside this pane
* - $pane->subtype: The subtype, if applicable. If a view it will be the
* view name; if a node it will be the nid, etc.
* - $title: The title of the content
* - $content: The actual content
* - $links: Any links associated with the content
* - $more: An optional 'more' link (destination only)
* - $admin_links: Administrative links associated with the content
* - $feeds: Any feed icons or associated with the content
* - $display: The complete panels display object containing all kinds of
* data including the contexts and all of the other panes being displayed.
*/
if ($pane_prefix) {
?>
<?php
print $pane_prefix;
}
?>
<div class="<?php
print $classes;
?>" <?php
print $id;
?> <?php
print $attributes;
?>>
<?php
if ($admin_links) {
?>
<?php
print $admin_links;
?>
<?php
}
?>
<?php
print render($title_prefix);
?>
<?php
if ($title) {
?>
<<?php
print $title_heading;
print $title_attributes;
?>>
<?php
print $title;
?>
</<?php
print $title_heading;
?>>
<?php
}
?>
<?php
print render($title_suffix);
?>
<?php
if ($feeds) {
?>
<div class="feed">
<?php
print $feeds;
?>
</div>
<?php
}
?>
<div class="pane-content">
<?php
print render($content);
?>
</div>
<?php
if ($links) {
?>
<div class="links">
<?php
print $links;
?>
</div>
<?php
}
?>
<?php
if ($more) {
?>
<div class="more-link">
<?php
print $more;
?>
</div>
<?php
}
?>
</div>
<?php
if ($pane_suffix) {
?>
<?php
print $pane_suffix;
}