You are here

function panels_render_pane in Panels 6.2

Same name and namespace in other branches
  1. 5.2 panels.module \panels_render_pane()
  2. 6.3 includes/display-render.inc \panels_render_pane()

Render a pane using the appropriate style.

$content The already rendered content via panels_render_pane_content() $pane The $pane information from the display $display The display.

3 calls to panels_render_pane()
theme_panels_default_style_render_panel in styles/default.inc
Render callback.
theme_panels_list_style_render_panel in styles/list.inc
Render callback.
theme_panels_rounded_corners_style_render_panel in styles/rounded_corners.inc
Render callback.

File

includes/display-render.inc, line 235
Contains Panels display rendering functions.

Code

function panels_render_pane($content, $pane, $display) {
  if (!empty($pane->configuration['style'])) {
    $style = panels_get_style($pane->configuration['style']);
    if (isset($style) && isset($style['render pane'])) {
      $output = theme($style['render pane'], $content, $pane, $display);

      // This could be null if no theme function existed.
      if (isset($output)) {
        return $output;
      }
    }
  }
  if (!empty($content)) {

    // fallback
    return theme('panels_pane', $content, $pane, $display);
  }
}