Go to the source code of this file.
Functions | |
| panels_default_panels_styles () | |
| theme_panels_default_style_render_panel ($display, $panel_id, $panes, $settings) | |
| panels_default_panels_styles | ( | ) |
Implementation of hook_panels_style_info().
Definition at line 15 of file default.inc.
00015 { 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 }
| theme_panels_default_style_render_panel | ( | $ | display, | |
| $ | panel_id, | |||
| $ | panes, | |||
| $ | settings | |||
| ) |
Render callback.
Definition at line 33 of file default.inc.
References panels_render_pane().
00033 { 00034 $output = ''; 00035 00036 $print_separator = FALSE; 00037 foreach ($panes as $pane_id => $content) { 00038 // Add the separator if we've already displayed a pane. 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 // If we displayed a pane, this will become true; if not, it will become 00045 // false. 00046 $print_separator = (bool) $text; 00047 } 00048 00049 return $output; 00050 }
1.5.6