You are here

function theme_panels_stylizer_stylizer_style_render_region in Panels 6.3

Same name and namespace in other branches
  1. 7.3 plugins/styles/stylizer.inc \theme_panels_stylizer_stylizer_style_render_region()

Region render theme.

File

plugins/styles/stylizer.inc, line 111
Definition of the 'stylizer' panel style.

Code

function theme_panels_stylizer_stylizer_style_render_region($display, $owner_id, $panes, $style_settings, $region_id, $plugin) {
  $output = '';
  foreach ($panes as $pane_id => $pane_output) {
    $output .= $pane_output;
  }
  $settings = _panels_stylizer_get_style($plugin, $style_settings);
  if (!empty($settings)) {
    ctools_include('stylizer');
    $plugin = ctools_get_style_base($settings['style_base']);
    ctools_stylizer_add_css($plugin, $settings);
    return theme($plugin['theme'], $settings, ctools_stylizer_get_css_class($plugin, $settings), $output);
  }
  else {

    // if the style is gone, just display the output.
    return $output;
  }
}