function theme_panels_stylizer_stylizer_style_render_region in Panels 7.3
Same name and namespace in other branches
- 6.3 plugins/styles/stylizer.inc \theme_panels_stylizer_stylizer_style_render_region()
Region render theme.
File
- plugins/
styles/ stylizer.inc, line 120
Code
function theme_panels_stylizer_stylizer_style_render_region($vars) {
$display = $vars['display'];
$panes = $vars['panes'];
$style_settings = $vars['settings'];
$region_id = $vars['region_id'];
$plugin = $vars['style'];
$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'], array(
'settings' => $settings,
'class' => ctools_stylizer_get_css_class($plugin, $settings),
'content' => $output,
));
}
else {
// If the style is gone, just display the output.
return $output;
}
}