From 570f4563b3a53a37dc232bff9d130c88908d02c5 Mon Sep 17 00:00:00 2001
From: "real3t@gmail.com" <>
Date: Tue, 28 May 2019 20:03:08 +0000
Subject: [PATCH] =?UTF-8?q?[SoyezCr=C3=A9ateurs]=20Harmonisation=20de=20la?=
 =?UTF-8?q?=20navigation=20entre=20les=203=20pages=20de=20plan/antichono?=
 =?UTF-8?q?=20(liste)/antichrono=20(visuel)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .gitattributes                          |  1 +
 antichrono.html                         | 64 +++++--------------------
 antichrono_grid.html                    |  8 +++-
 lang/soyezcreateurs_fr.php              |  4 +-
 noisettes/plan/inc_antichrono.html      | 58 ++++++++++++++++++++++
 noisettes/plan/inc_antichrono_grid.html |  5 +-
 noisettes/plan/plan.html                |  8 +++-
 paquet.xml                              |  2 +-
 stylessoyezcreateurs.css.html           |  5 ++
 9 files changed, 97 insertions(+), 58 deletions(-)
 create mode 100644 noisettes/plan/inc_antichrono.html

diff --git a/.gitattributes b/.gitattributes
index e10f8b63..eb6f192a 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -794,6 +794,7 @@ noisettes/navigation/ads_search.html -text
 noisettes/navigation/frmrechercheparmots.html -text
 noisettes/navigation/inc_frmabonnement_mailsubscriber.html -text
 noisettes/navigation/nuagedemotcle.html -text
+noisettes/plan/inc_antichrono.html -text
 noisettes/plan/inc_antichrono_grid.html -text
 noisettes/plan/inc_plan_articles_liste.html -text
 noisettes/plan/plan.html -text
diff --git a/antichrono.html b/antichrono.html
index 30c6923d..373b35ed 100644
--- a/antichrono.html
+++ b/antichrono.html
@@ -13,7 +13,13 @@
 </div>
 ]
 <div id="letexte">
-<div class="chapo"><p><:soyezcreateurs:voirle:> <a href="#URL_PAGE{plan}" title="<:plan_site|attribut_html:>"><:plan_site:></a> ou <a href="#URL_PAGE{antichrono_grid}">[(#CONFIG{soyezcreateurs/texte_actualite_toutes}|typo|sinon{<:soyezcreateurs:actualite_toutes:>})] (<:soyezcreateurs:actualite_toutes_blocs:>)</a></p></div>
+	<div class="onglets">
+		<ul>
+			<li><a href="#URL_PAGE{plan}" title="<:plan_site|attribut_html:>"><:plan_site:></a></li>
+			<li><strong>[(#CONFIG{soyezcreateurs/texte_actualite_toutes}|typo|sinon{<:soyezcreateurs:actualite_toutes:>})] (<:soyezcreateurs:actualite_toutes_arbo:>)</strong></li>
+			<li><a href="#URL_PAGE{antichrono_grid}">[(#CONFIG{soyezcreateurs/texte_actualite_toutes}|typo|sinon{<:soyezcreateurs:actualite_toutes:>})] (<:soyezcreateurs:actualite_toutes_blocs:>)</a></li>
+		</ul>
+	</div>
 <BOUCLE_ExclureRubriquesDuPlan(RUBRIQUES){titre_mot=PasDansPlan}><BOUCLE_ExclureArticlesDuPlan(ARTICLES){id_rubrique}{doublons articlesannees}{doublons articlesmois}{doublons articles}{lang} /><BOUCLE_ExclureBreveDuPlan(BREVES){id_rubrique}{doublons brevesannees}{doublons brevesmois}{doublons breves}{lang} /></BOUCLE_ExclureRubriquesDuPlan>
 <BOUCLE_ExclureArticlesDuPlan2(ARTICLES){titre_mot=PasDansPlan}{doublons articlesannees}{doublons articlesmois}{doublons articles}{lang} />
 #SET{listeliens,#ARRAY}
@@ -72,56 +78,12 @@
 	</BOUCLE_AnneeSites>
 </B_AnneeSites>
 
-<BOUCLE_Min2anness(DATA)
-		{source table,#GET{listeliens}}
-		{!par date}
-		{fusion year}
-		{1,1}
-	> </BOUCLE_Min2anness>
-<div id='sommaire'><h2><:soyezcreateurs:sommaire:></h2>
-	<B_Sommaire>
-	<ul>
-	<BOUCLE_Sommaire(DATA)
-		{source table,#GET{listeliens}}
-		{!par date}
-		{fusion year}
-	>
-		<li><a href="#annee_#YEAR">#YEAR</a></li>
-	</BOUCLE_Sommaire>
-	</ul>
-	</B_Sommaire>
-</div>
-</B_Min2anness>
-
-
-<B_AnneeObjet>
-	<BOUCLE_AnneeObjet(DATA)
-		{source table,#GET{listeliens}}
-		{!par date}
-		{fusion year}
-	>
-	<B_ListeMois>
-	<h2 id="annee_#YEAR">[(#YEAR)]</h2>
-		<BOUCLE_ListeMois(DATA)
-			{liste 12,11,10,9,8,7,6,5,4,3,2,1}
-		>
-		<B_ObjetsDuMois>
-		<h3>[(#YEAR|concat{-,#_ListeMois:VALEUR#VAL,-01}|nom_mois|ucfirst)]</h3>
-		<ul class="spip">
-			<BOUCLE_ObjetsDuMois(DATA)
-				{source table,#GET{listeliens}}
-				{year=#_AnneeObjet:YEAR}
-				{month=#_ListeMois:VALEUR}
-				{!par date}
-			>
-			<li[ class="(#CLASS)"]>[<span class="date">(#DATE|affdate)</span>]&nbsp;: <a href="#URL"[ title="(#DESCRIPTIF|attribut_html)"]>[(#TITRE)]</a>[ <span class="secondary-information">((#TYPE))</span>]</li>
-			</BOUCLE_ObjetsDuMois>
-		</ul>
-		</B_ObjetsDuMois>
-		</BOUCLE_ListeMois>
-	</B_ListeMois>
-	</BOUCLE_AnneeObjet>
-</B_AnneeObjet>
+<INCLURE{
+	fond=noisettes/plan/inc_antichrono,
+	listeliens=#GET{listeliens},
+	env,
+	ajax
+} />
 
 </div>
 </main>
diff --git a/antichrono_grid.html b/antichrono_grid.html
index 4686c452..4d6430ac 100644
--- a/antichrono_grid.html
+++ b/antichrono_grid.html
@@ -13,7 +13,13 @@
 </div>
 ]
 <div id="letexte">
-<div class="chapo"><p><:soyezcreateurs:voirle:> <a href="#URL_PAGE{plan}" title="<:plan_site|attribut_html:>"><:plan_site:></a> ou <a href="#URL_PAGE{antichrono}">[(#CONFIG{soyezcreateurs/texte_actualite_toutes}|typo|sinon{<:soyezcreateurs:actualite_toutes:>})] (<:soyezcreateurs:actualite_toutes_arbo:>)</a></p></div>
+	<div class="onglets">
+		<ul>
+			<li><a href="#URL_PAGE{plan}" title="<:plan_site|attribut_html:>"><:plan_site:></a></li>
+			<li><a href="#URL_PAGE{antichrono}">[(#CONFIG{soyezcreateurs/texte_actualite_toutes}|typo|sinon{<:soyezcreateurs:actualite_toutes:>})] (<:soyezcreateurs:actualite_toutes_arbo:>)</a></li>
+			<li><strong>[(#CONFIG{soyezcreateurs/texte_actualite_toutes}|typo|sinon{<:soyezcreateurs:actualite_toutes:>})] (<:soyezcreateurs:actualite_toutes_blocs:>)</strong></li>
+		</ul>
+	</div>
 <BOUCLE_ExclureRubriquesDuPlan(RUBRIQUES){titre_mot=PasDansPlan}><BOUCLE_ExclureArticlesDuPlan(ARTICLES){id_rubrique}{doublons articlesannees}{doublons articlesmois}{doublons articles}{lang} /><BOUCLE_ExclureBreveDuPlan(BREVES){id_rubrique}{doublons brevesannees}{doublons brevesmois}{doublons breves}{lang} /></BOUCLE_ExclureRubriquesDuPlan>
 <BOUCLE_ExclureArticlesDuPlan2(ARTICLES){titre_mot=PasDansPlan}{doublons articlesannees}{doublons articlesmois}{doublons articles}{lang} />
 
diff --git a/lang/soyezcreateurs_fr.php b/lang/soyezcreateurs_fr.php
index 3edecae1..6ea48ba6 100644
--- a/lang/soyezcreateurs_fr.php
+++ b/lang/soyezcreateurs_fr.php
@@ -15,8 +15,8 @@ $GLOBALS[$GLOBALS['idx_lang']] = array(
 	'accueil' => 'Accueil',
 	'accueil_site' => 'Revenir à l’Accueil du site',
 	'actualite_toutes' => 'Derniers articles mis en ligne',
-	'actualite_toutes_arbo' => 'arborescense',
-	'actualite_toutes_blocs' => 'blocs',
+	'actualite_toutes_arbo' => 'liste',
+	'actualite_toutes_blocs' => 'visuels',
 	'agenda' => 'Agenda',
 	'agenda_exporter_ical' => 'Exporter au format iCal',
 	'agenda_fsd' => 'Du @djour_l@ @djour@ @dmois_l@ @dannee@ à @dheure@<html>:</html>@dminutes@ au @fjour_l@ @fjour@ @fmois_l@ @fannee@ à @fheure@<html>:</html>@fminutes@',
diff --git a/noisettes/plan/inc_antichrono.html b/noisettes/plan/inc_antichrono.html
new file mode 100644
index 00000000..0b21a61a
--- /dev/null
+++ b/noisettes/plan/inc_antichrono.html
@@ -0,0 +1,58 @@
+<BOUCLE_FirstYear(DATA)
+		{source table,#ENV{listeliens}}
+		{!par date}
+		{fusion year}
+		{0,1}
+	>#SET{firstyear,#YEAR}</BOUCLE_FirstYear>
+<BOUCLE_Min2anness(DATA)
+		{source table,#ENV{listeliens}}
+		{!par date}
+		{fusion year}
+		{1,1}
+	> </BOUCLE_Min2anness>
+<div class="onglets">
+	<B_Sommaire>
+	<ul>
+	<BOUCLE_Sommaire(DATA)
+		{source table,#ENV{listeliens}}
+		{!par date}
+		{fusion year}
+	>
+		<li>[(#ENV{year,#GET{firstyear}}|=={#YEAR}|?{<strong>,<a href="[(#SELF|parametre_url{'year',[(#YEAR|!={#GET{firstyear}}|?{#YEAR,''})]})]" class="ajax">})]#YEAR[(#ENV{year}|=={#YEAR}|?{</strong>,</a>})]</li>
+	</BOUCLE_Sommaire>
+	</ul>
+	</B_Sommaire>
+</div>
+</B_Min2anness>
+
+
+<B_AnneeObjet>
+	<BOUCLE_AnneeObjet(DATA)
+		{source table,#ENV{listeliens}}
+		{year=#ENV{year,#GET{firstyear}}}
+		{!par date}
+		{fusion year}
+	>
+	<B_ListeMois>
+	<h2 id="annee_#YEAR">[(#YEAR)]</h2>
+		<BOUCLE_ListeMois(DATA)
+			{liste 12,11,10,9,8,7,6,5,4,3,2,1}
+		>
+		<B_ObjetsDuMois>
+		<h3>[(#YEAR|concat{-,#_ListeMois:VALEUR#VAL,-01}|nom_mois|ucfirst)]</h3>
+		<ul class="spip">
+			<BOUCLE_ObjetsDuMois(DATA)
+				{source table,#ENV{listeliens}}
+				{year=#_AnneeObjet:YEAR}
+				{month=#_ListeMois:VALEUR}
+				{!par date}
+			>
+			<li[ class="(#CLASS)"]>[<span class="date">(#DATE|affdate)</span>]&nbsp;: <a href="#URL"[ title="(#DESCRIPTIF|attribut_html)"]>[(#TITRE)]</a>[ <span class="secondary-information">((#TYPE))</span>]</li>
+			</BOUCLE_ObjetsDuMois>
+		</ul>
+		</B_ObjetsDuMois>
+		</BOUCLE_ListeMois>
+	</B_ListeMois>
+	</BOUCLE_AnneeObjet>
+</B_AnneeObjet>
+#FILTRE{mini_html}
\ No newline at end of file
diff --git a/noisettes/plan/inc_antichrono_grid.html b/noisettes/plan/inc_antichrono_grid.html
index 7437f1ab..72798bb7 100644
--- a/noisettes/plan/inc_antichrono_grid.html
+++ b/noisettes/plan/inc_antichrono_grid.html
@@ -14,7 +14,7 @@
 	> </BOUCLE_Min2anness>
 	<B_Sommaire>
 <div class="onglets">
-	<ul id='liste_tabs'>
+	<ul>
 	<BOUCLE_Sommaire(DATA)
 		{source table,#ENV{listeliens}}
 		{!par date}
@@ -76,4 +76,5 @@
 	</B_ListeMois>
 	</BOUCLE_AnneeObjet>
 </div>
-</B_AnneeObjet>
\ No newline at end of file
+</B_AnneeObjet>
+#FILTRE{mini_html}
\ No newline at end of file
diff --git a/noisettes/plan/plan.html b/noisettes/plan/plan.html
index 196ac4bf..ff3ff1d7 100644
--- a/noisettes/plan/plan.html
+++ b/noisettes/plan/plan.html
@@ -1,6 +1,12 @@
 <div id="letexte">
 	<B_Autres>
-	<div class="chapo"><p><:soyezcreateurs:voirarticlespar:> <a href="#URL_PAGE{#CONFIG{soyezcreateurs/page_antichrono,antichrono}}"><:soyezcreateurs:ordreantichronologique:></a></p></div>
+	<div class="onglets">
+		<ul>
+			<li><strong><:plan_site:></strong></li>
+			<li><a href="#URL_PAGE{antichrono}">[(#CONFIG{soyezcreateurs/texte_actualite_toutes}|typo|sinon{<:soyezcreateurs:actualite_toutes:>})] (<:soyezcreateurs:actualite_toutes_arbo:>)</a></li>
+			<li><a href="#URL_PAGE{antichrono_grid}">[(#CONFIG{soyezcreateurs/texte_actualite_toutes}|typo|sinon{<:soyezcreateurs:actualite_toutes:>})] (<:soyezcreateurs:actualite_toutes_blocs:>)</a></li>
+		</ul>
+	</div>
 	<BOUCLE_Min50Articles(ARTICLES){49,1}> </BOUCLE_Min50Articles>
 	<div id='sommaire'><h2><:soyezcreateurs:sommaire:></h2>
 		<B_Sommaire>
diff --git a/paquet.xml b/paquet.xml
index 1b80029e..ee5b33a6 100644
--- a/paquet.xml
+++ b/paquet.xml
@@ -1,7 +1,7 @@
 <paquet
 	prefix="soyezcreateurs"
 	categorie="squelette"
-	version="5.0.54"
+	version="5.0.55"
 	etat="stable"
 	compatibilite="[3.1.8;3.2.*]"
 	logo="img_pack/soyezcreateurs_48.png"
diff --git a/stylessoyezcreateurs.css.html b/stylessoyezcreateurs.css.html
index 81d8811e..d97eafe9 100644
--- a/stylessoyezcreateurs.css.html
+++ b/stylessoyezcreateurs.css.html
@@ -979,6 +979,7 @@ table.programmation caption { text-align: left; }
 #sommaire h2 { width: auto; padding: 0 1em; margin-bottom: 0.6em; background-color: [(#GET{c_titraille_bk})]; color: [ (#GET{c_titraille})];}
 #sommaire > ul { margin-left: 3em; margin-bottom: 0;}
 #sommaire > ul > li { list-style-type: initial; }
+#sommaire > ul ul { margin: 0; }
 
 /* menu en haut du contenu (onglets) */
 #menuhaut { background-color: #GET{c_menuhaut_bk}; color: #GET{c_menuhaut};
@@ -2617,7 +2618,11 @@ a.button.triadeC:focus,
 .portailcognac #sommaire > ul {
   margin-left: 1.5rem;
   padding: 1rem;
+  columns: 2;
+  column-rule: 1px dotted #ccc;
+  column-gap: 4em;
 }
+.portailcognac #letexte #sommaire > ul ul { margin: 0; }
 .portailcognac .cartouche .logo_article,
 .portailcognac .cartouche .logo_rubrique {
   float: right;
-- 
GitLab