/** * @return bool */ public static function IsMainModule() { return !CApi::IsMobileApplication() && !CApi::IsHelpdeskModule() && !CApi::IsCalendarPubModule() && !CApi::IsFilesPubModule(); }
/** * @return string */ private function getIndexHTML() { if (\CApi::IsMobileApplication()) { return $this->indexHTML(false, '', '', '', true); } else { return $this->indexHTML(); } }
/** * Returns css links for building in html. * * @return string */ public function buildHeadersLink() { list($sLanguage, $sTheme, $sSiteName) = $this->getThemeAndLanguage(); $sMobileSuffix = \CApi::IsMobileApplication() ? '-mobile' : ''; $sTenantName = \CApi::getTenantName(); $oSettings =& CApi::GetSettings(); if ($oSettings->GetConf('EnableMultiTenant') && $sTenantName) { $sS = '<link type="text/css" rel="stylesheet" href="./static/styles/libs/libs.css' . '?' . CApi::VersionJs() . '" />' . '<link type="text/css" rel="stylesheet" href="./tenants/' . $sTenantName . '/static/styles/themes/' . $sTheme . '/styles' . $sMobileSuffix . '.css' . '?' . CApi::VersionJs() . '" />'; } else { $sS = '<link type="text/css" rel="stylesheet" href="./static/styles/libs/libs.css' . '?' . CApi::VersionJs() . '" />' . '<link type="text/css" rel="stylesheet" href="./static/styles/themes/' . $sTheme . '/styles' . $sMobileSuffix . '.css' . '?' . CApi::VersionJs() . '" />'; } return $sS; }