array( 'title' => t('Default'), 'description' => t('The default panel rendering style; displays each pane with a separator.'), // This can restrict a style to specific implementations 'panels implementations' => array(), // This is a theme function 'render panel' => 'panels_default_style_render_panel', ), ); } /** * Panel style: default (panes separated by whitespace). */ function theme_panels_default_style_render_panel($display, $panel_id, $panes, $settings) { $output = ''; $print_separator = FALSE; foreach ($panes as $pane) { // Add the separator if we've already displayed a pane. if ($print_separator) { $output .= '
'; } $output .= $text = theme('panels_pane', $pane, $display); // If we displayed a pane, this will become true; if not, it will become false. $print_separator = (bool) $text; } return $output; }