/** * Add an 'empty' pane placeholder above all the normal panes. * * @param $region_id * @param $panes */ function render_region($region_id, $panes) { // Generate this region's 'empty' placeholder pane from the IPE plugin. $empty_ph = theme('panels_ipe_placeholder_pane', array('region_id' => $region_id, 'region_title' => $this->plugins['layout']['regions'][$region_id])); // Wrap the placeholder in some guaranteed markup. $control = '<div class="panels-ipe-placeholder panels-ipe-on panels-ipe-portlet-marker panels-ipe-portlet-static">' . $empty_ph . theme('panels_ipe_add_pane_button', array('region_id' => $region_id, 'display' => $this->display, 'renderer' => $this)) . "</div>"; $output = parent::render_region($region_id, $panes); $output = theme('panels_ipe_region_wrapper', array('output' => $output, 'region_id' => $region_id, 'display' => $this->display, 'controls' => $control, 'renderer' => $this)); $classes = 'panels-ipe-region'; return "<div id='panels-ipe-regionid-{$region_id}' class='panels-ipe-region'>{$output}</div>"; }
/** * Add an 'empty' pane placeholder above all the normal panes. * * @param $region_id * @param $panes */ 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'; ctools_include('cleanstring'); $region_id = ctools_cleanstring($region_id); return "<div id='panels-ipe-regionid-{$region_id}' class='panels-ipe-region'>{$output}</div>"; }