芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/templates.9/cassiopeia/offline.php
* @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\Helper\AuthenticationHelper; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Router\Route; use Joomla\CMS\Uri\Uri; /** @var JDocumentHtml $this */ $twofactormethods = AuthenticationHelper::getTwoFactorMethods(); $extraButtons = AuthenticationHelper::getLoginButtons('form-login'); $app = Factory::getApplication(); $wa = $this->getWebAssetManager(); $fullWidth = 1; // Template path $templatePath = 'templates/' . $this->template; // Color Theme $paramsColorName = $this->params->get('colorName', 'colors_standard'); $assetColorName = 'theme.' . $paramsColorName; $wa->registerAndUseStyle($assetColorName, $templatePath . '/css/global/' . $paramsColorName . '.css'); $this->getPreloadManager()->prefetch($wa->getAsset('style', $assetColorName)->getUri(), ['as' => 'style']); // Use a font scheme if set in the template style options $paramsFontScheme = $this->params->get('useFontScheme', false); if ($paramsFontScheme) { // Prefetch the stylesheet for the font scheme, actually we need to prefetch the font(s) $assetFontScheme = 'fontscheme.' . $paramsFontScheme; $wa->registerAndUseStyle($assetFontScheme, $templatePath . '/css/global/' . $paramsFontScheme . '.css'); $this->getPreloadManager()->prefetch($wa->getAsset('style', $assetFontScheme)->getUri(), ['as' => 'style']); } // Enable assets $wa->usePreset('template.cassiopeia.' . ($this->direction === 'rtl' ? 'rtl' : 'ltr')) ->useStyle('template.offline') ->useStyle('template.active.language') ->useStyle('template.user') ->useScript('template.user') ->addInlineStyle(':root { --hue: 214; --template-bg-light: #f0f4fb; --template-text-dark: #495057; --template-text-light: #ffffff; --template-link-color: #2a69b8; --template-special-color: #001B4C; }'); // Override 'template.active' asset to set correct ltr/rtl dependency $wa->registerStyle('template.active', '', [], [], ['template.cassiopeia.' . ($this->direction === 'rtl' ? 'rtl' : 'ltr')]); // Logo file or site title param $sitename = htmlspecialchars($app->get('sitename'), ENT_QUOTES, 'UTF-8'); // Browsers support SVG favicons $this->addHeadLink(HTMLHelper::_('image', 'joomla-favicon.svg', '', [], true, 1), 'icon', 'rel', ['type' => 'image/svg+xml']); $this->addHeadLink(HTMLHelper::_('image', 'favicon.ico', '', [], true, 1), 'alternate icon', 'rel', ['type' => 'image/vnd.microsoft.icon']); $this->addHeadLink(HTMLHelper::_('image', 'joomla-favicon-pinned.svg', '', [], true, 1), 'mask-icon', 'rel', ['color' => '#000']); if ($this->params->get('logoFile')) { $logo = '
'; } elseif ($this->params->get('siteTitle')) { $logo = '
' . htmlspecialchars($this->params->get('siteTitle'), ENT_COMPAT, 'UTF-8') . '
'; } else { $logo = '
'; } // Defer font awesome $wa->getAsset('style', 'fontawesome')->setAttribute('rel', 'lazy-stylesheet'); ?>
get('offline_image')) : ?> get('offline_image'), $sitename, [], false, 0); ?> get('display_offline_message', 1) == 1 && str_replace(' ', '', $app->get('offline_message')) != '') : ?>
get('offline_message'); ?>
get('display_offline_message', 1) == 2) : ?>
1) : ?>
="" onclick="" title="" id="" >