naked.inc 661 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * @file
  4. * Definition of the 'naked' panel style.
  5. */
  6. // Plugin definition
  7. $plugin = array(
  8. 'title' => t('No markup at all'),
  9. 'description' => t('Display the pane or region with no markup, not even a title.'),
  10. 'render region' => 'panels_naked_style_render_region',
  11. 'render pane' => 'panels_naked_style_render_pane',
  12. 'weight' => -5,
  13. );
  14. /**
  15. * Render callback.
  16. *
  17. * @ingroup themeable
  18. */
  19. function theme_panels_naked_style_render_region($vars) {
  20. return implode($vars['panes']);
  21. }
  22. /**
  23. * Render callback.
  24. *
  25. * @ingroup themeable
  26. */
  27. function theme_panels_naked_style_render_pane($vars) {
  28. return render($vars['content']->content);
  29. }