/** * @param string $sTab * @param ap_Screen $oScreen */ protected function initStandardMenuByTab($sTab, ap_Screen &$oScreen) { switch ($sTab) { case AP_TAB_SYSTEM: $this->JsAddFile('system.js'); $oScreen->AddMenuItem(WM_MODE_LOGGING, WM_MODE_LOGGING_NAME, $this->sPath . '/templates/logging.php', array()); $oScreen->SetDefaultMode(WM_MODE_LOGGING); break; } }
/** * @param string $sTab * @param ap_Screen $oScreen */ protected function initStandardMenuByTab($sTab, ap_Screen &$oScreen) { switch ($sTab) { case AP_TAB_SYSTEM: $oScreen->AddMenuItem(CM_MODE_DB, CM_MODE_DB_NAME, $this->sPath . '/templates/db.php'); $oScreen->AddMenuItem(CM_MODE_SECURITY, CM_MODE_SECURITY_NAME, $this->sPath . '/templates/security.php'); $oScreen->SetDefaultMode(CM_MODE_DB); break; case AP_TAB_COMMON: if (\CApi::GetConf('labs.allow-social-integration', true)) { $oScreen->AddMenuItem(CM_MODE_SOCIAL, CM_MODE_SOCIAL_NAME, $this->sPath . '/templates/social-header.php'); /* if ($this->oAdminPanel->AType) { $oScreen->AddMenuItem(CM_MODE_SOCIAL, CM_MODE_SOCIAL_NAME, $this->sPath.'/templates/social-aurora.php'); } */ $oScreen->AddMenuItem(CM_MODE_SOCIAL, CM_MODE_SOCIAL_NAME, $this->sPath . '/templates/social.php'); $oScreen->AddMenuItem(CM_MODE_SOCIAL, CM_MODE_SOCIAL_NAME, $this->sPath . '/templates/social-footer.php'); } break; } }