class panels_renderer_simple in Panels 6.3
Same name and namespace in other branches
- 7.3 plugins/display_renderers/panels_renderer_simple.class.php \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.
Hierarchy
- class \panels_renderer_standard
- class \panels_renderer_simple
Expanded class hierarchy of panels_renderer_simple
1 string reference to 'panels_renderer_simple'
- simple.inc in plugins/
display_renderers/ simple.inc
File
- plugins/
display_renderers/ panels_renderer_simple.class.php, line 12 - Contains the simple display renderer.
View source
class panels_renderer_simple extends panels_renderer_standard {
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'];
}
function render_panes() {
// NOP
}
function prepare($external_settings = NULL) {
$this->prep_run = TRUE;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
panels_renderer_simple:: |
function |
Prepare the attached display for rendering. Overrides panels_renderer_standard:: |
||
panels_renderer_simple:: |
function |
Render all prepared panes, first by dispatching to their plugin's render
callback, then handing that output off to the pane's style plugin. Overrides panels_renderer_standard:: |
||
panels_renderer_simple:: |
function |
Render all prepared regions, placing already-rendered panes into their
appropriate positions therein. Overrides panels_renderer_standard:: |
||
panels_renderer_standard:: |
property | TRUE if this renderer is rendering in administrative mode which will allow layouts to have extra functionality. | 1 | |
panels_renderer_standard:: |
property | The fully-loaded Panels display object that is to be rendered. "Fully loaded" is defined as: 1. Having been produced by panels_load_displays(), whether or this page request or at some time in the past and the object was exported. 2. Having… | ||
panels_renderer_standard:: |
property | Where to add standard meta information. There are three possibilities: | ||
panels_renderer_standard:: |
property | The plugin that defines this handler. | ||
panels_renderer_standard:: |
property | An associative array of loaded plugins. Used primarily as a central location for storing plugins that require additional loading beyond reading the plugin definition, which is already statically cached by ctools_get_plugins(). An example is layout… | ||
panels_renderer_standard:: |
property | Include rendered HTML prior to the layout. | ||
panels_renderer_standard:: |
property | A multilevel array of data prepared for rendering. The first level of the array indicates the type of prepared data. The standard renderer populates and uses two top-level keys, 'panes' and 'regions': | ||
panels_renderer_standard:: |
property | Boolean state variable, indicating whether or not the prepare() method has been run. | ||
panels_renderer_standard:: |
property | A multilevel array of rendered data. The first level of the array indicates the type of rendered data, typically with up to three keys: 'layout', 'regions', and 'panes'. The relevant rendered data is stored as the value… | ||
panels_renderer_standard:: |
property | Include rendered HTML after the layout. | ||
panels_renderer_standard:: |
function | Add CSS information to the renderer. | ||
panels_renderer_standard:: |
function | Attach out-of-band page metadata (e.g., CSS and JS). | 1 | |
panels_renderer_standard:: |
function | Receive and store the display object to be rendered. | 1 | |
panels_renderer_standard:: |
function | Prepare the list of panes to be rendered, accounting for visibility/access settings and rendering order. | ||
panels_renderer_standard:: |
function | Prepare the list of regions to be rendered. | ||
panels_renderer_standard:: |
function | Build inner content, then hand off to layout-specified theme function for final render step. | 2 | |
panels_renderer_standard:: |
function | Perform display/layout-level render operations. | ||
panels_renderer_standard:: |
function | Render a pane using its designated style. | 1 | |
panels_renderer_standard:: |
function | Render the interior contents of a single pane. | 1 | |
panels_renderer_standard:: |
function | Render a single panel region. | 1 |