You are here

public function dsDisplay::displayRender in Display Suite 6.3

Render the display

1 call to dsDisplay::displayRender()
dsDisplay::render in includes/dsDisplay.php
Render content

File

includes/dsDisplay.php, line 550
Class definition for a Display Suite Display object

Class

dsDisplay
The Display Suite Display object

Code

public function displayRender() {

  // Most of the time, the default theme function will be called
  $theme = DS_DEFAULT_THEME_REGIONS;
  if (isset($this->layout['theme'])) {
    $theme = $this->layout['theme'];
  }

  // Set up template variables
  $vars = array();
  foreach ($this->regions as $key => $region) {
    if ($this
      ->regionIsActive($key)) {
      $vars['regions'][$key] = $region;
    }
  }
  $vars['attributes'] = $this->layout['attributes'];

  // Render the content and store for later
  $this->content = theme($theme, $vars);
}