You are here

function panels_render_pane in Panels 5.2

Same name and namespace in other branches
  1. 6.3 includes/display-render.inc \panels_render_pane()
  2. 6.2 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

./panels.module, line 1126
panels.module Core API for Panels. Provides display editing and rendering capabilities.

Code

function panels_render_pane($content, $pane, $display) {
  if (!empty($pane->configuration['style'])) {
    $style = panels_get_style($pane->configuration['style']);
    if (isset($style)) {
      $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);
  }
}