SiteDoc($docArr, $options); $this->_initRightColumn($docArr); } function _initRightColumn($docArr) { $path = split('/', CURR_PAGE); $DocObj = SiteMap::getObj('CMS/Doc/DocObj.php'); if (count($path) > 1) { $parentAlias = $path[0]; $id_parent = $DocObj->_getPageidByAlias($parentAlias); $title = $DocObj->getFromDB($id_parent, 'menutitle[eng]'); } else { $parentAlias = CURR_PAGE; $id_parent = $docArr['id']; $title = $docArr['menutitle']['eng']; } $SiteMapShow = SiteMap::getObj('CMS/SiteMapShow/SiteMapShowView.php'); $docItems = $DocObj->getItems4SiteMap(); $deniedPages = $this->getDeniedPages($docItems); if (!in_array($id_parent, $deniedPages)) { $siteMap = $SiteMapShow->getSiteMap($parentAlias . '/', $id_parent, false, $deniedPages); $this->prepareMainMenu($siteMap); } if (is_array($siteMap) && !empty($siteMap)) { $this->assign('_rightColumn', array('tpl' => 'Doc/right_menu.tpl', 'siteMap' => $siteMap, 'title'=>$title)); } } }