default.inc
Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 function panels_default_panels_styles() {
00016 return array(
00017 'default' => array(
00018 'title' => t('Default'),
00019 'description' => t('The default panel rendering style; displays each pane with a separator.'),
00020 'render panel' => 'panels_default_style_render_panel',
00021 ),
00022 );
00023 }
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 function theme_panels_default_style_render_panel($display, $panel_id, $panes, $settings) {
00034 $output = '';
00035
00036 $print_separator = FALSE;
00037 foreach ($panes as $pane_id => $content) {
00038
00039 if ($print_separator) {
00040 $output .= '<div class="panel-separator"></div>';
00041 }
00042 $output .= $text = panels_render_pane($content, $display->content[$pane_id], $display);
00043
00044
00045
00046 $print_separator = (bool) $text;
00047 }
00048
00049 return $output;
00050 }
00051