panels_renderer_simple.class.php 791 B

123456789101112131415161718192021222324252627282930313233
  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. }