function theme_panels_default_style_render_region in Panels 6.3
Same name and namespace in other branches
- 7.3 plugins/styles/default.inc \theme_panels_default_style_render_region()
 
Render callback.
File
- plugins/
styles/ default.inc, line 21  - Definition of the 'default' panel style.
 
Code
function theme_panels_default_style_render_region($display, $region_id, $panes, $settings) {
  $output = '';
  $print_separator = FALSE;
  foreach ($panes as $pane_id => $pane_output) {
    // Add the separator if we've already displayed a pane.
    if ($print_separator) {
      $output .= '<div class="panel-region-separator"></div>';
    }
    $output .= $pane_output;
    // If we displayed a pane, this will become true; if not, it will become
    // false.
    $print_separator = (bool) $pane_output;
  }
  return $output;
}