function panels_renderer_editor::render_region in Panels 7.3
Same name and namespace in other branches
- 6.3 plugins/display_renderers/panels_renderer_editor.class.php \panels_renderer_editor::render_region()
Render a single panel region.
Primarily just a passthrough to the panel region rendering callback specified by the style plugin that is attached to the current panel region.
Parameters
$region_id: The ID of the panel region being rendered
$panes: An array of panes that are assigned to the panel that's being rendered.
Return value
string The rendered, HTML string output of the passed-in panel region.
Overrides panels_renderer_standard::render_region
1 call to panels_renderer_editor::render_region()
- panels_renderer_ipe::render_region in panels_ipe/
plugins/ display_renderers/ panels_renderer_ipe.class.php - Add an 'empty' pane placeholder above all the normal panes.
1 method overrides panels_renderer_editor::render_region()
- panels_renderer_ipe::render_region in panels_ipe/
plugins/ display_renderers/ panels_renderer_ipe.class.php - Add an 'empty' pane placeholder above all the normal panes.
File
- plugins/
display_renderers/ panels_renderer_editor.class.php, line 84 - Class file to control the main Panels editor.
Class
- panels_renderer_editor
- @file Class file to control the main Panels editor.
Code
function render_region($region_id, $panes) {
// Pass through to normal rendering if not in admin mode.
if (!$this->admin) {
return parent::render_region($region_id, $panes);
}
$content = implode('', $panes);
$panel_buttons = $this
->get_region_links($region_id);
$output = "<div class='panel-region' id='panel-region-{$region_id}'>";
$output .= $panel_buttons;
$output .= "<h2 class='label'>" . check_plain($this->plugins['layout']['regions'][$region_id]) . "</h2>";
$output .= $content;
$output .= "</div>";
return $output;
}