From cd26798f403e03411e84aad8de630825c4b6bf47 Mon Sep 17 00:00:00 2001 From: "real3t@gmail.com" <> Date: Mon, 3 Dec 2018 14:15:43 +0000 Subject: [PATCH] =?UTF-8?q?Mode=20Cognac=20:=20pouvoir=20afficher=202=20ou?= =?UTF-8?q?=203=20=C3=A9l=C3=A9ments=20par=20ligne=20pour=20le=20bloc=205?= =?UTF-8?q?=20(ZoomSur2/DessousBreve=20:=20https://contrib.spip.net/Mode-C?= =?UTF-8?q?ognac-pour-SoyezCreateurs)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- formulaires/configurer_soyezcreateurs.html | 13 +++++++++++++ lang/soyezcreateursprive_fr.php | 4 ++++ paquet.xml | 2 +- stylesportailcognac.css.html | 14 ++++++++------ 4 files changed, 26 insertions(+), 7 deletions(-) diff --git a/formulaires/configurer_soyezcreateurs.html b/formulaires/configurer_soyezcreateurs.html index 2082b37b..fe17c21e 100755 --- a/formulaires/configurer_soyezcreateurs.html +++ b/formulaires/configurer_soyezcreateurs.html @@ -56,6 +56,19 @@ if (!function_exists('sc_ouinon_default')) { }, defaut=parnum} )] + + [(#CONFIG{soyezcreateurs/mode_affichage,communiquant}|=={portailcognac}|oui) + [(#SAISIE{radio,variante_blocprojet, + label=<:soyezcreateursprive:cfg_variante_blocprojet_label:>, + datas=#ARRAY{ + par2,<:soyezcreateursprive:cfg_variante_blocprojet_par2:>, + par3,<:soyezcreateursprive:cfg_variante_blocprojet_par3:>, + }, + defaut=par2, + explication=<:soyezcreateursprive:cfg_variante_blocprojet_explications:>} + )] + ] + [(#CONFIG{soyezcreateurs/mode_affichage,communiquant}|=={communiquant}|oui) [(#SAISIE{radio,largeur_slideshow_communiquant, diff --git a/lang/soyezcreateursprive_fr.php b/lang/soyezcreateursprive_fr.php index c81b7309..f5811226 100644 --- a/lang/soyezcreateursprive_fr.php +++ b/lang/soyezcreateursprive_fr.php @@ -331,6 +331,10 @@ $GLOBALS[$GLOBALS['idx_lang']] = array( 'cfg_url_feedflare' => 'URL FeedFlare', 'cfg_url_redirection' => 'URL de l’ancien site (pour redirection 301 si article existe pas)', 'cfg_url_xiti' => 'URL de votre marqueur Xiti', + 'cfg_variante_blocprojet_explications' => 'Variantes de positionnement du bloc 5 du Mode Cognac', + 'cfg_variante_blocprojet_label' => 'Gros Blocs accueil', + 'cfg_variante_blocprojet_par2' => '2 par ligne', + 'cfg_variante_blocprojet_par3' => '3 par ligne', 'cfg_videoalaune' => 'Video à la une', 'cfg_vignettes' => 'Vignettes mode portail', 'cfg_vignettes_choix_auto' => 'Vignettes calculées automatiquement', diff --git a/paquet.xml b/paquet.xml index 3ec6bf96..5661e2a5 100644 --- a/paquet.xml +++ b/paquet.xml @@ -1,7 +1,7 @@ <paquet prefix="soyezcreateurs" categorie="squelette" - version="5.0.13" + version="5.0.14" etat="stable" compatibilite="[3.1.8;3.2.*]" logo="img_pack/soyezcreateurs_48.png" diff --git a/stylesportailcognac.css.html b/stylesportailcognac.css.html index ee26ca9f..99acefc1 100644 --- a/stylesportailcognac.css.html +++ b/stylesportailcognac.css.html @@ -255,15 +255,11 @@ select { margin: 0; padding: 0; } -#projets projet { - width: 50%; - float: left; -} #projets a { display: flex; flex-direction: row; align-content: center; - height: 20vw; + height: [(#CONFIG{soyezcreateurs/variante_blocprojet,par2}|=={par2}|?{20vw,12vw})]; color: white; border: none; } @@ -1048,12 +1044,18 @@ LC: #GET{LargeurContaineur} } @media only screen and (min-width: 641px) { #projets .projet { +[(#CONFIG{soyezcreateurs/variante_blocprojet,par2}|=={par2}|oui) width: 50%; +] +[(#CONFIG{soyezcreateurs/variante_blocprojet,par2}|=={par3}|oui) + width: 25%; + margin-left: 4%; + margin-right: 4%; +] float: left; } } - #projets .projet:hover { background-color: #aaa; } -- GitLab