BX_DOL_URL_STUDIO, ]; if(($oProfile = BxDolProfile::getInstance()) !== false && ($sModule = $oProfile->getModule()) != 'system') { $oModule = BxDolModule::getInstance($sModule); if($oModule !== null && isset($oModule->_oConfig->CNF['URI_VIEW_ENTRY'])) $aMarkers['own_profile_url'] = 'page.php?i=' . $oModule->_oConfig->CNF['URI_VIEW_ENTRY']; } $this->addMarkers($aMarkers); } protected function getMenuItemsRaw () { return $this->getMenuItemsRawProfileRelated(); } /** * Check if menu items is visible with extended checking for friends notifications * @param $a menu item array * @return boolean */ protected function _isVisible ($a) { if(!parent::_isVisible($a)) return false; switch ($a['name']) { case 'studio': if (!isAdmin()) return false; break; case 'cart': $oPayments = BxDolPayments::getInstance(); if(!$oPayments->isActive()) return false; break; case 'orders': $oPayments = BxDolPayments::getInstance(); if(!$oPayments->isActive()) return false; break; } return true; } protected function _getTmplVarsAddon($mixedAddon, $aMenuItem) { $aAddon = parent::_getTmplVarsAddon($mixedAddon, $aMenuItem); $sAddonF = ''; if(!empty($aAddon['addon'])) $sAddonF = $this->_oTemplate->parseHtmlByTemplateName('menu_item_addon', array( 'content' => $aAddon['addon'] )); return array( 'addon' => $aAddon['addon'], 'addonf' => $sAddonF ); } } /** @} */