You are here

function panels_renderer_simple::render_regions in Panels 6.3

Same name and namespace in other branches
  1. 7.3 plugins/display_renderers/panels_renderer_simple.class.php \panels_renderer_simple::render_regions()

Render all prepared regions, placing already-rendered panes into their appropriate positions therein.

Return value

array An array of rendered panel regions, keyed on the region name.

Overrides panels_renderer_standard::render_regions

File

plugins/display_renderers/panels_renderer_simple.class.php, line 13
Contains the simple display renderer.

Class

panels_renderer_simple
The simple display renderer renders a display normally, except each pane is already rendered content, rather than a pane containing CTools content to be rendered. Styles are not supported.

Code

function render_regions() {
  $this->rendered['regions'] = array();
  foreach ($this->display->content as $region_id => $content) {
    if (is_array($content)) {
      $content = implode('', $content);
    }
    $this->rendered['regions'][$region_id] = $content;
  }
  return $this->rendered['regions'];
}