panels_renderer_simple.class.php

  1. 7.x panels/plugins/display_renderers/panels_renderer_simple.class.php
  2. 6.x-3.x panels/plugins/display_renderers/panels_renderer_simple.class.php

Contains the simple display renderer.

Classes

Namesort descending Description
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.

File

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