forked from ZwiiCMS-Team/ZwiiCMS
11503 Pb de fontes par cdn
This commit is contained in:
parent
269587a8f6
commit
136dfad982
@ -45,7 +45,7 @@ class common {
|
||||
|
||||
// Numéro de version
|
||||
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/';
|
||||
const ZWII_VERSION = '11.5.02';
|
||||
const ZWII_VERSION = '11.5.03';
|
||||
const ZWII_UPDATE_CHANNEL = "v11";
|
||||
|
||||
public static $actions = [];
|
||||
|
@ -1199,7 +1199,7 @@ class theme extends common {
|
||||
) {
|
||||
//Pré chargement à revoir
|
||||
//$fileContent .= '<link rel="preload" href="' . $fontValue['resource'] . '" crossorigin="anonymous" as="style">';
|
||||
$fileContent = '<link href="' . $fontValue['resource'] .'" rel="stylesheet">';
|
||||
$fileContent .= '<link href="' . $fontValue['resource'] .'" rel="stylesheet">';
|
||||
// Pré connect pour api.google
|
||||
$gf = strpos($fontValue['resource'], 'fonts.googleapis.com') === false ? $gf || false : $gf || true;
|
||||
}
|
||||
@ -1216,7 +1216,6 @@ class theme extends common {
|
||||
* Fontes installées localement
|
||||
*/
|
||||
$fileContentCss = '';
|
||||
$fileContent = '<!-- Fontes personnalisées -->';
|
||||
//if ( is_array($this->getData(['fonts', 'files'])) &&
|
||||
// !empty($this->getData(['fonts', 'files'])) ) {
|
||||
foreach ($this->getData(['fonts', 'files']) as $fontId => $fontValue) {
|
||||
|
Loading…
Reference in New Issue
Block a user