diff --git a/core/core.php b/core/core.php index 0cd8964d..f29cd6af 100644 --- a/core/core.php +++ b/core/core.php @@ -34,7 +34,7 @@ class common { const TEMP_DIR = 'site/tmp/'; // Numéro de version - const ZWII_VERSION = '10.0.022.dev'; + const ZWII_VERSION = '10.0.023.dev'; public static $actions = []; public static $coreModuleIds = [ @@ -995,8 +995,6 @@ class common { // Préparation des clés de légendes pour la v10 // Construire une liste plate de parents et d'enfants - $pageList = array(); - $pageList = array(); foreach ($this->getHierarchy(null,null,null) as $parentKey=>$parentValue) { @@ -1818,14 +1816,25 @@ class layout extends common { * Affiche le favicon */ public function showFavicon() { - $favicon = $this->getData(['config', 'favicon']); + // Light scheme + $favicon = $this->getData(['config', 'favicon']); if($favicon && file_exists(self::FILE_DIR.'source/' . $favicon) ) { - echo ''; + echo ''; } else { - echo ''; + echo ''; } + // Dark scheme + $faviconDark = $this->getData(['config', 'faviconDark']); + if($faviconDark && + file_exists(self::FILE_DIR.'source/' . $faviconDark) + ) { + echo ''; + echo ''; + } else { + echo ''; + } } diff --git a/core/module/config/config.php b/core/module/config/config.php index 2adfcaf0..10841ebf 100755 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -390,6 +390,7 @@ class config extends common { 'maintenance' => $this->getInput('configMaintenance', helper::FILTER_BOOLEAN), 'cookieConsent' => $this->getInput('configCookieConsent', helper::FILTER_BOOLEAN), 'favicon' => $this->getInput('configFavicon'), + 'faviconDark' => $this->getInput('configFaviconDark'), 'social' => [ 'facebookId' => $this->getInput('configSocialFacebookId'), 'linkedinId' => $this->getInput('configSocialLinkedinId'), diff --git a/core/module/config/view/index/index.php b/core/module/config/view/index/index.php index b71d8609..f2cc3748 100755 --- a/core/module/config/view/index/index.php +++ b/core/module/config/view/index/index.php @@ -58,14 +58,22 @@

Réglages

-
+
1, 'help' => 'Pensez à supprimer le cache de votre navigateur si la favicon ne change pas.', - 'label' => 'Favicon', + 'label' => 'Favicon thème clair', 'value' => $this->getData(['config', 'favicon']) ]); ?>
+
+ 1, + 'help' => 'Sélectionnez une icône adaptée à un thème sombre.
Pensez à supprimer le cache de votre navigateur si la favicon ne change pas.', + 'label' => 'Favicon thème sombre', + 'value' => $this->getData(['config', 'faviconDark']) + ]); ?> +
'Articles par page', diff --git a/core/vendor/zwiico/ico/faviconDark.ico b/core/vendor/zwiico/ico/faviconDark.ico new file mode 100644 index 00000000..2063f4bf Binary files /dev/null and b/core/vendor/zwiico/ico/faviconDark.ico differ diff --git a/sitemap.xml.gz b/sitemap.xml.gz index de91fda4..8eae1a36 100644 Binary files a/sitemap.xml.gz and b/sitemap.xml.gz differ