You are here

naked.inc in Panels 7.3

Same filename and directory in other branches
  1. 6.3 plugins/styles/naked.inc

Definition of the 'naked' panel style.

File

plugins/styles/naked.inc
View 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