Projet

Général

Profil

Paste
Télécharger (661 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / panels / plugins / styles / naked.inc @ 64156087

1
<?php
2

    
3
/**
4
 * @file
5
 * Definition of the 'naked' panel style.
6
 */
7

    
8
// Plugin definition.
9
$plugin = array(
10
  'title' => t('No markup at all'),
11
  'description' => t('Display the pane or region with no markup, not even a title.'),
12
  'render region' => 'panels_naked_style_render_region',
13
  'render pane' => 'panels_naked_style_render_pane',
14
  'weight' => -5,
15
);
16

    
17
/**
18
 * Render callback.
19
 *
20
 * @ingroup themeable
21
 */
22
function theme_panels_naked_style_render_region($vars) {
23
  return implode($vars['panes']);
24
}
25

    
26
/**
27
 * Render callback.
28
 *
29
 * @ingroup themeable
30
 */
31
function theme_panels_naked_style_render_pane($vars) {
32
  return render($vars['content']->content);
33
}