tri périodique des transcriptions
This commit is contained in:
parent
c78181fc8a
commit
99391ddeb1
@ -37,6 +37,7 @@ $GLOBALS[ $GLOBALS['idx_lang'] ] = array(
|
||||
'sanssommaire' => 'Sans sommaire',
|
||||
'sanssommaire_explications' => 'Ne pas afficher le sommaire automatique, qui est parfois inutile (trop peu d’inter-titres en haut de page par exemple).',
|
||||
|
||||
'tri_periodique_toutes_transcriptions' => 'Tri périodique de toutes les transcriptions',
|
||||
|
||||
'd_apres_un_media_publie_le' => 'D’après un média publié le',
|
||||
|
||||
|
1
squelettes/aside/recherche.html
Normal file
1
squelettes/aside/recherche.html
Normal file
@ -0,0 +1 @@
|
||||
<INCLURE{fond=inclure/listetranscriptions_selectionperiode,env} />
|
31
squelettes/inclure/listetranscriptions_selectionperiode.html
Normal file
31
squelettes/inclure/listetranscriptions_selectionperiode.html
Normal file
@ -0,0 +1,31 @@
|
||||
[(#REM) modele <listetranscriptions|>
|
||||
* sans paramètre = le mois en cours
|
||||
* periode = sous forme stricte Y-m
|
||||
soit |periode=2020-02
|
||||
]
|
||||
|
||||
[(#SET{'borne_debut_mois', [(#ENV{periode}|baz_moisdecal{0,'Y-m-d'})]})]
|
||||
[(#SET{'borne_fin_mois', [(#ENV{periode}|baz_moisdecal{1,'Y-m-d'})]})]
|
||||
|
||||
<BOUCLE_compo(RUBRIQUES){composition=transcriptions}>
|
||||
<B_trans>
|
||||
<ul class="spip">
|
||||
<BOUCLE_trans(ARTICLES){id_rubrique}{par date}{date >= #GET{borne_debut_mois}}{date < #GET{borne_fin_mois}}>
|
||||
<li><a href="#URL_ARTICLE">#TITRE</a>[ - (#DATE|affdate)][ - (#DUREE)]</li>
|
||||
</BOUCLE_trans>
|
||||
</ul>
|
||||
</B_trans>
|
||||
|
||||
<B_transselect>
|
||||
<div class="liste periode">
|
||||
<h2 class="h2"><:librealire:tri_periodique_toutes_transcriptions:></h2>
|
||||
<div class="clear">
|
||||
<BOUCLE_transselect(ARTICLES){id_rubrique}{fusion YEAR(date)}{fusion MONTH(date)}{!par date}>
|
||||
[<span class="annees archive[(#DATE|affdate{Y-m}|=={[(#ENV{periode})]}|oui) ouvert]"> - (#DATE|affdate{Y}|unique)</span>]
|
||||
<a[ href="(#SELF|parametre_url{periode,[(#DATE|affdate{Y-m})]})"] class="mois[ (#ENV{periode}|=={[(#DATE|affdate{Y-m})]}|oui) on]">[(#DATE|affdate{m})]</a>
|
||||
</BOUCLE_transselect>
|
||||
</div>
|
||||
</div>
|
||||
</B_transselect>
|
||||
|
||||
</BOUCLE_compo>
|
@ -17,4 +17,14 @@
|
||||
</BOUCLE_trans>
|
||||
</ul>
|
||||
</B_trans>
|
||||
|
||||
<B_transselect>
|
||||
<ul>
|
||||
<BOUCLE_transselect(ARTICLES){si #ENV{methode}|=={selection}}{id_rubrique}{fusion YEAR(date)}{fusion MONTH(date)}{!par date}>
|
||||
<li><a[ href="(#SELF|parametre_url{periode,[(#DATE|affdate{Y-m})]})"]>[(#DATE|affdate{m-Y})]</li>
|
||||
</BOUCLE_transselect>
|
||||
</ul>
|
||||
</B_transselect>
|
||||
|
||||
|
||||
</BOUCLE_compo>
|
||||
|
Loading…
Reference in New Issue
Block a user