From 52b9b401856f4513a931d28f0f80916437e87a7d Mon Sep 17 00:00:00 2001 From: fredtempez Date: Fri, 4 Jun 2021 17:51:21 +0200 Subject: [PATCH] =?UTF-8?q?V=C3=A9rification=20entre=20v10=20et=20v11?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 2 +- core/layout/common.css | 85 ++++++++++++++------ core/module/addon/view/index/index.help.html | 2 +- core/module/config/view/backup/backup.php | 2 +- core/module/config/view/index/index.php | 2 +- core/module/install/install.php | 7 +- 6 files changed, 66 insertions(+), 34 deletions(-) diff --git a/core/core.php b/core/core.php index 798ab25f..e3e2a21a 100644 --- a/core/core.php +++ b/core/core.php @@ -3056,7 +3056,7 @@ class layout extends common { foreach($vendorFiles as $vendorFile) { switch(pathinfo($vendorFile, PATHINFO_EXTENSION)) { case 'css': - // Force le rechargement lors d'une mise à jour² du jeu d'icônes + // Force le rechargement lors d'une mise à jour du jeu d'icônes $reload = $vendorPath === 'core/vendor/zwiico/' ? '?' . md5_file('core/vendor/zwiico/css/zwiico-codes.css') : ''; diff --git a/core/layout/common.css b/core/layout/common.css index ced1cd47..92eae48d 100755 --- a/core/layout/common.css +++ b/core/layout/common.css @@ -29,7 +29,7 @@ body { } -@media (min-width: 769px) { +@media screen and (min-width: 769px) { body { /*margin:0px 10px;*/ margin: 0; @@ -41,7 +41,7 @@ body { /** * Petits écrans inférieurs à 768px de largeur, on supprime les marges */ -@media (max-width: 768px) { +@media screen and (max-width: 768px) { body { margin: 0px; } @@ -65,7 +65,7 @@ body { -@media (max-width: 768px) { +@media screen and (max-width: 768px) { .siteContainer { display: flex; flex-direction: column; @@ -237,12 +237,12 @@ td>.col12 { } /* Tableau sur les écrans de petites tailles */ -@media (max-width: 768px) { +@media screen and (max-width: 768px) { .table thead { font-size: 0.8em; } } -@media (max-width: 668px) { +@media screen and (max-width: 668px) { .table thead { display:none; } @@ -408,7 +408,7 @@ td>.col12 { background-color: rgba(255, 255, 255, 1); } -@media (min-width: 769px) { +@media screen and (min-width: 769px) { #bar #barLeft { float: left; } @@ -419,7 +419,7 @@ td>.col12 { } } -@media (max-width: 768px) { +@media screen and (max-width: 768px) { #bar { text-align: center; padding: 0 1; @@ -455,7 +455,7 @@ td>.col12 { overflow: hidden; } /* Dans theme.css -@media (min-width:768px) { +@media screen and (min-width:768px) { #site { margin: 20px auto; } @@ -464,7 +464,7 @@ td>.col12 { /* Bannière */ -@media (min-width:768px) { +@media screen and (min-width:768px) { body>header { margin: 0; /*-10px;*/ @@ -598,13 +598,13 @@ nav::before { display: flex; } -@media (min-width: 769px) { +@media screen and (min-width: 769px) { nav #menu { display: block; } } -@media (max-width: 768px) { +@media screen and (max-width: 768px) { body>nav { margin: 0; } @@ -691,41 +691,69 @@ li .menuSideChild { /* Container des drapeaux */ -#i18nContainer { - z-index: 100; + +#i18nContainerNav, #i18nContainerSite { position: relative ; float: right; - width: auto; + /*width: auto; height: auto; - margin-top: -25px; + margin-top: -25px;*/ } -#i18nContainer ul { +#i18nContainerNav ul, #i18nContainerSite ul { list-style: none; } -#i18nContainer li { +#i18nContainerNav li, #i18nContainerSite li { display: inline-block; position: relative; } -#i18nContainer img { - width: 80%; +#i18nFlag { + width: 70%; +} + +#i18nFlagSelected { + width: 100%; } +/* +* Position du bloc dans le site sur les petits écrans +*/ - -#i18nContainer img { - margin: 2px; +#i18nContainerNav { + display: block; +} +#i18nContainerSite { + display: none; } +@media screen and (max-width:1024px){ + #i18nContainerNav { + display: none; + } + #i18nContainerSite { + display: block; + margin-top: -10px; + } + #i18nFlag { + width: 100%; + padding: 5px; + } + + #i18nFlagSelected { + width: 130%; + padding: 5px; + } + + } /* Corps */ -@media (min-width:768px) { +@media screen and (min-width:768px) { section { padding: 20px; } @@ -822,7 +850,7 @@ footer #footerbody>div { } /* Conserve le pied de page sur une ligne */ -@media (max-width: 768px) { +@media screen and (max-width: 768px) { body>footer { margin: 0; } @@ -1031,6 +1059,7 @@ footer #footerSocials .zwiico-github:hover { user-select: none; } + /* Lightbox */ .lightbox { background: #FFF; @@ -1367,7 +1396,7 @@ input[type='checkbox']:disabled+label:before { display: inline-block; } -@media (min-width: 769px) { +@media screen and (min-width: 769px) { .col1 { width: 8.33333333%; } @@ -1556,7 +1585,7 @@ th.col12 { } /* Tableau sur les écrans de très petites tailles */ -@media (max-width: 480px){ +@media screen and (max-width: 480px){ .table tr{ display: block; margin-bottom: 10px; @@ -1710,3 +1739,7 @@ th.col12 { border-radius: 5px; z-index: 30; } + +.helpDisplayButton { + cursor: pointer; +} diff --git a/core/module/addon/view/index/index.help.html b/core/module/addon/view/index/index.help.html index 41a9a067..21145db7 100644 --- a/core/module/addon/view/index/index.help.html +++ b/core/module/addon/view/index/index.help.html @@ -1,5 +1,5 @@

IMPORTER OU METTRE A JOUR

-

Vous avez au préalable charger le fichier zip du module sur votre serveur par 'Gérer les fichiers'.

+

Vous avez au préalable chargé le fichier zip du module sur votre serveur par 'Gérer les fichiers'.

Lors d'une mise à jour Zwii contrôle la version du module à installer, pour réinstaller un module de même numéro de version vous devez cocher 'Mise à jour forcée'. Il est déconseillé d'installer un module plus ancien.

EXPORTER IMPORTER

diff --git a/core/module/config/view/backup/backup.php b/core/module/config/view/backup/backup.php index a284ef9f..0ba3a31c 100644 --- a/core/module/config/view/backup/backup.php +++ b/core/module/config/view/backup/backup.php @@ -18,7 +18,7 @@
-

Paramètre

+

Paramètres de la sauvegarde

'Aucune'] , helper::arrayCollumn($pages, 'title', 'SORT_ASC') ) , [ 'label' => 'Recherche dans le site', 'selected' => $this->getData(['locale', 'searchPageId']), - 'help' => 'Sélectionner la page "Recherche" ou une page contenant le module "Recherche". Une option du pied de page ajoute un lien discret vers cette page.' + 'help' => 'Sélectionnez une page contenant le module \'Recherche\'. Une option du pied de page ajoute un lien discret vers cette page.' ]); ?>
diff --git a/core/module/install/install.php b/core/module/install/install.php index 6f21854b..d3a9bb8a 100644 --- a/core/module/install/install.php +++ b/core/module/install/install.php @@ -164,10 +164,9 @@ class install extends common { break; // Téléchargement case 2: - // Téléchargement depuis le serveur de ZwiiCMS - // URL de téléchargement sur le site + // Téléchargement depuis le serveur de Zwii //$success = (file_put_contents(self::TEMP_DIR.'update.tar.gz', helper::urlGetContents('https://zwiicms.fr/update/' . common::ZWII_UPDATE_CHANNEL . '/update.tar.gz')) !== false); - // URL sur le git hub + // URL sur le git //$newVersion = helper::urlGetContents('https://zwiicms.fr/update/' . common::ZWII_UPDATE_CHANNEL . '/version'); $success = (file_put_contents(self::TEMP_DIR.'update.tar.gz', helper::urlGetContents(common::ZWII_UPDATE_URL . common::ZWII_UPDATE_CHANNEL . '/update.tar.gz')) !== false); // Valeurs en sortie @@ -265,4 +264,4 @@ class install extends common { } -} \ No newline at end of file +}