public function dsDisplay::regionRender in Display Suite 6.3
Render a region
1 call to dsDisplay::regionRender()
- dsDisplay::regionsRenderAll in includes/
dsDisplay.php - Wrapper to render all region content
File
- includes/
dsDisplay.php, line 502 - Class definition for a Display Suite Display object
Class
- dsDisplay
- The Display Suite Display object
Code
public function regionRender($key) {
if ($this
->regionIsActive($key)) {
$theme = DS_DEFAULT_THEME_REGION;
if (isset($this->regions[$key]['#theme']) && !empty($this->regions[$key]['#theme'])) {
$theme = $this->regions[$key]['#theme'];
}
// Do any last minute region tasks
$this
->regionFinalise($key);
$vars = array();
$vars['attributes'] = $this->regions[$key]['attributes'];
$vars['content'] = $this->regions[$key]['#field_content'];
$vars['count'] = $this->regions[$key]['#count'];
$this->regions[$key]['content'] = theme($theme, $vars);
}
}