Removing translation directories
[project/panels.git] / plugins / display_renderers / panels_renderer_simple.class.php
CommitLineData
946024d2
SB
1<?php
2/**
3 * @file
4 * Contains the simple display renderer.
5 */
6
7/**
8 * The simple display renderer renders a display normally, except each pane
9 * is already rendered content, rather than a pane containing CTools content
10 * to be rendered. Styles are not supported.
11 */
12class panels_renderer_simple extends panels_renderer_standard {
13 function render_regions() {
14 $this->rendered['regions'] = array();
15 foreach ($this->display->content as $region_id => $content) {
16 if (is_array($content)) {
17 $content = implode('', $content);
18 }
19
20 $this->rendered['regions'][$region_id] = $content;
21 }
22 return $this->rendered['regions'];
23 }
24
25 function render_panes() {
26 // NOP
27 }
28
29 function prepare() {
30 $this->prep_run = TRUE;
31 }
32}