You are here

function theme_panels_ipe_add_pane_button in Panels 6.3

Same name and namespace in other branches
  1. 7.3 panels_ipe/panels_ipe.module \theme_panels_ipe_add_pane_button()
1 theme call to theme_panels_ipe_add_pane_button()
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

panels_ipe/panels_ipe.module, line 111

Code

function theme_panels_ipe_add_pane_button($region_id, $display, $renderer) {
  $attr = array(
    'class' => 'ctools-use-modal',
  );
  $link = l(t('Add new pane'), $renderer
    ->get_url('select-content', $region_id), array(
    'attributes' => $attr,
  ));
  return '<div class="panels-ipe-newblock panels-ipe-on panels-ipe-portlet-static">' . $link . '</div>';
}