You are here

function panels_renderer_ipe::render_pane in Panels 6.3

Same name and namespace in other branches
  1. 7.3 panels_ipe/plugins/display_renderers/panels_renderer_ipe.class.php \panels_renderer_ipe::render_pane()

Override & call the parent, then pass output through to the dnd wrapper theme function.

Parameters

$pane:

Overrides panels_renderer_editor::render_pane

2 calls to panels_renderer_ipe::render_pane()
panels_renderer_ipe::command_add_pane in panels_ipe/plugins/display_renderers/panels_renderer_ipe.class.php
Create a command array to add a new pane.
panels_renderer_ipe::command_update_pane in panels_ipe/plugins/display_renderers/panels_renderer_ipe.class.php
Create a command array to redraw a pane.

File

panels_ipe/plugins/display_renderers/panels_renderer_ipe.class.php, line 55

Class

panels_renderer_ipe
Renderer class for all In-Place Editor (IPE) behavior.

Code

function render_pane(&$pane) {
  $output = parent::render_pane($pane);
  if (empty($output)) {
    return;
  }
  if (empty($pane->IPE_empty)) {

    // Add an inner layer wrapper to the pane content before placing it into
    // draggable portlet
    $output = "<div class=\"panels-ipe-portlet-content\">{$output}</div>";
  }
  else {
    $output = "<div class=\"panels-ipe-portlet-content panels-ipe-empty-pane\">{$output}</div>";
  }

  // Hand it off to the plugin/theme for placing draggers/buttons
  $output = theme('panels_ipe_pane_wrapper', $output, $pane, $this->display, $this);
  return "<div id=\"panels-ipe-paneid-{$pane->pid}\" class=\"panels-ipe-portlet-wrapper panels-ipe-portlet-marker\">" . $output . "</div>";
}