SiteDoc($docArr, $options); $this->_initRightColumn($docArr); } function _initRightColumn($docArr) { $path = split('/', CURR_PAGE); if (count($path) > 1) { $DocObj = SiteMap::getObj('CMS/Doc/DocObj.php'); $parentAlias = $path[0]; $id_parent = $DocObj->_getPageidByAlias($parentAlias); $title = $DocObj->getFromDB($id_parent, 'title[eng]'); } else { $parentAlias = CURR_PAGE; $id_parent = $docArr['id']; $title = $docArr['title']; } if ($docArr['right_content'] != '') { $this->assign('_rightColumn', array('tpl' => 'Doc/right_content.tpl', 'text' => $docArr['right_content'], 'title'=>$title)); } } }