naked.inc in Panels 7.3
Same filename and directory in other branches
Definition of the 'naked' panel style.
File
plugins/styles/naked.incView source
<?php
/**
* @file
* Definition of the 'naked' panel style.
*/
// Plugin definition.
$plugin = array(
'title' => t('No markup at all'),
'description' => t('Display the pane or region with no markup, not even a title.'),
'render region' => 'panels_naked_style_render_region',
'render pane' => 'panels_naked_style_render_pane',
'weight' => -5,
);
/**
* Render callback.
*
* @ingroup themeable
*/
function theme_panels_naked_style_render_region($vars) {
return implode($vars['panes']);
}
/**
* Render callback.
*
* @ingroup themeable
*/
function theme_panels_naked_style_render_pane($vars) {
return render($vars['content']->content);
}
Functions
Name | Description |
---|---|
theme_panels_naked_style_render_pane | Render callback. |
theme_panels_naked_style_render_region | Render callback. |