_getList()->setIpp($limit)->setIsDisabledLimit(false); } $item = $this->_getListItem(); if (empty($item['list'])) { return null; } $item['blockId'] = Qs_SiteMap::classToId($this) . 'block'; $item['calendarUrl'] = EventView::getPageUrlByType(ConfigForm::TYPE_CALENDAR); $item['detailsUrl'] = EventView::getPageUrlByType(ConfigForm::TYPE_DETAILS); $item['stylesheet'][] = ['css/thirdpart/royalslider-default.css']; $item['stylesheet'][] = ['css/thirdpart/royalslider.css']; $item['script'][] = ['js/royalslider/jquery.royalslider.js']; $item['script'][] = ['js/royalslider/jquery.rs.auto-height.js']; $item['script'][] = ['js/royalslider/jquery.rs.autoplay.js']; $options = [ 'blockId' => $item['blockId'], ]; $item['script'][] = ['js/app/event/sideBlock.js']; $item['initObject'][] = ['app.event.SideBlock', [$options]]; return $item; } protected function _doList() { if (null === ($externalItem = $this->getSideBlockItem())) { return $this; } $block = [ 'blockType' => \App_SideBlock_Obj::TYPE_UPCOMING_EVENTS, 'title' => $this->getConfig('title'), 'linkType' => \App_SideBlock_Obj::LINK_NONE, 'externalItem' => new \Qs_Doc_Item($externalItem), ]; $item = [ 'list' => [$block], 'tpl' => 'SideBlock/list.tpl', ]; $this->_doc->addItemResources($block['externalItem']); $this->_addItem($item); return $this; } }