isSideBlock()) { $this->_showSideBlock(); return $this; } return parent::exec(); } protected function _showSideBlock() { if ('y' != Qs_SiteMap::findFirst(null, ['type' => 'Testimonial_'], null, 'enabled')) { return null; } if (!($item = $this->_getDataObj()->getRandom())) { return null; } $item['tpl'] = $this->getTemplate('sideBlock.tpl'); $this->_addItem($item); return $this; } }