| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
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 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |