root / htmltest / sites / all / modules / panels / plugins / display_renderers / panels_renderer_simple.class.php @ c12e7e6a
1 | 85ad3d82 | Assos Assos | <?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 | */
|
||
12 | class 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($external_settings = NULL) { |
||
30 | $this->prep_run = TRUE; |
||
31 | } |
||
32 | } |