'sorter'); $item['tpl'] = $this->getTemplate('list.tpl'); $this->dataObj->setIdPage($idPage); $list = $this->dataObj->getList($params); foreach (array_keys($list) as $k) { if ($list[$k]['blockType'] == 'news') { $list[$k]['news'] = $this->dataObj->getNewsList(); } } $item['list'] = $list; $item['viewAlias'] = BASE_URL . '/' . Qs_SiteMap::find(null, array('type' => 'News_'), array('type' => 'default'), 'fullAlias'); if (!is_array($item['list']) || empty($item['list'])) { return null; } return $item; } }