stableversion-3.0
Last change
on this file since 92213c1 was
4f375e3,
checked in by José Gregorio Puentes <jpuentes@…>, 8 años ago
|
se agrego el modulo panels
|
-
Propiedad mode establecida a
100644
|
File size:
901 octetos
|
Línea | |
---|
1 | <?php |
---|
2 | |
---|
3 | /** |
---|
4 | * @file |
---|
5 | * Definition of the 'default' panel style. |
---|
6 | */ |
---|
7 | |
---|
8 | // Plugin definition |
---|
9 | $plugin = array( |
---|
10 | 'title' => t('No style'), |
---|
11 | 'description' => t('The default panel rendering style; displays each pane with a separator.'), |
---|
12 | 'render region' => 'panels_default_style_render_region', |
---|
13 | 'weight' => -15, |
---|
14 | ); |
---|
15 | |
---|
16 | /** |
---|
17 | * Render callback. |
---|
18 | * |
---|
19 | * @ingroup themeable |
---|
20 | */ |
---|
21 | function theme_panels_default_style_render_region($display, $region_id, $panes, $settings) { |
---|
22 | $output = ''; |
---|
23 | |
---|
24 | $print_separator = FALSE; |
---|
25 | foreach ($panes as $pane_id => $pane_output) { |
---|
26 | // Add the separator if we've already displayed a pane. |
---|
27 | if ($print_separator) { |
---|
28 | $output .= '<div class="panel-region-separator"></div>'; |
---|
29 | } |
---|
30 | |
---|
31 | $output .= $pane_output; |
---|
32 | // If we displayed a pane, this will become true; if not, it will become |
---|
33 | // false. |
---|
34 | $print_separator = (bool) $pane_output; |
---|
35 | } |
---|
36 | |
---|
37 | return $output; |
---|
38 | } |
---|
Nota: Vea
TracBrowser
para ayuda de uso del navegador del repositorio.