function panels_renderer_ipe::render_region in Panels 6.3
Same name and namespace in other branches
- 7.3 panels_ipe/plugins/display_renderers/panels_renderer_ipe.class.php \panels_renderer_ipe::render_region()
Add an 'empty' pane placeholder above all the normal panes.
Parameters
$region_id:
$panes:
Overrides panels_renderer_editor::render_region
File
- panels_ipe/
plugins/ display_renderers/ panels_renderer_ipe.class.php, line 98
Class
- panels_renderer_ipe
- Renderer class for all In-Place Editor (IPE) behavior.
Code
function render_region($region_id, $panes) {
// Generate this region's 'empty' placeholder pane from the IPE plugin.
$empty_ph = theme('panels_ipe_placeholder_pane', $region_id, $this->plugins['layout']['panels'][$region_id]);
// Wrap the placeholder in some guaranteed markup.
$panes['empty_placeholder'] = '<div class="panels-ipe-placeholder panels-ipe-on panels-ipe-portlet-marker panels-ipe-portlet-static">' . $empty_ph . "</div>";
// Generate this region's add new pane button. FIXME waaaaay too hardcoded
$panes['add_button'] = theme('panels_ipe_add_pane_button', $region_id, $this->display, $this);
$output = parent::render_region($region_id, $panes);
$output = theme('panels_ipe_region_wrapper', $output, $region_id, $this->display);
$classes = 'panels-ipe-region';
return "<div id='panels-ipe-regionid-{$region_id}' class='panels-ipe-region'>{$output}</div>";
}