12345678910111213141516171819202122232425262728293031323334 |
- <?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);
- }
|