{event name='stylesheets'}
<!-- Icons -->
- <link rel="apple-touch-icon" sizes="180x180" href="{@$__wcf->getPath()}images/favicon/default.apple-touch-icon.png">
- <link rel="manifest" href="{@$__wcf->getPath()}images/favicon/default.manifest.json">
- <link rel="shortcut icon" href="{@$__wcf->getPath()}images/favicon/default.favicon.ico">
- <meta name="msapplication-config" content="{@$__wcf->getPath()}images/favicon/default.browserconfig.xml">
- <meta name="theme-color" content="#3a6d9c">
+ {if PACKAGE_ID && $__wcf->getStyleHandler()->getDefaultStyle()}
+ <link rel="apple-touch-icon" sizes="180x180" href="{$__wcf->getStyleHandler()->getDefaultStyle()->getFaviconAppleTouchIcon()}">
+ <link rel="manifest" href="{@$__wcf->getStyleHandler()->getDefaultStyle()->getFaviconManifest()}">
+ <link rel="shortcut icon" href="{@$__wcf->getPath()}{@$__wcf->getStyleHandler()->getDefaultStyle()->getRelativeFavicon()}">
+ <meta name="msapplication-config" content="{@$__wcf->getStyleHandler()->getDefaultStyle()->getFaviconBrowserconfig()}">
+ <meta name="theme-color" content="{$__wcf->getStyleHandler()->getDefaultStyle()->getVariable('wcfPageThemeColor', true)}">
+ {else}
+ <link rel="apple-touch-icon" sizes="180x180" href="{@$__wcf->getP1ath()}images/favicon/default.apple-touch-icon.png">
+ <link rel="manifest" href="{@$__wcf->getPath()}images/favicon/default.manifest.json">
+ <link rel="shortcut icon" href="{@$__wcf->getPath()}images/favicon/default.favicon.ico">
+ <meta name="msapplication-config" content="{@$__wcf->getPath()}images/favicon/default.browserconfig.xml">
+ <meta name="theme-color" content="#3a6d9c">
+ {/if}
<script>
var SID_ARG_2ND = '';
use wcf\data\style\StyleEditor;
use wcf\system\cache\builder\StyleCacheBuilder;
use wcf\system\exception\SystemException;
+use wcf\system\request\RequestHandler;
use wcf\system\SingletonFactory;
use wcf\system\WCF;
use wcf\util\JSON;
return $this->icons;
}
+ /**
+ * Retrieves the default style for requests originating from the ACP. May return `null`
+ * if there is no default style.
+ *
+ * @return Style|null
+ */
+ public function getDefaultStyle() {
+ if (!RequestHandler::getInstance()->isACPRequest()) {
+ throw new SystemException('Illegal request, please use `getStyle()` for frontend requests.');
+ }
+
+ $styleID = $this->cache['default'];
+ if ($styleID) {
+ return $this->cache['styles'][$styleID];
+ }
+
+ return null;
+ }
+
/**
* Reads the available icon names from the variable definition file.
*/