spip_nursit/plugins/dist/squelettes/spipclear/inc-archives.html

39 lines
1.4 KiB
HTML
Raw Normal View History

2023-06-01 15:30:12 +00:00
#SET{date,#EVAL{date('Y-m')}}
[(#SET{annee_fin,[(#GET{date}|annee|plus{#ENV{decal,0}})]})]
[(#SET{annee_deb,[(#GET{annee_fin}|plus{#ENV{decal,0}|>{0}|?{1,-1}})]})]
<BOUCLE_reference(ARTICLES){id_secteur ?}
{par date}{inverse}{0,1}
{agenda date, periode, #GET{annee_deb}, (#GET{date}|mois), 1, #GET{annee_fin}, (#GET{date}|mois), 31}
><B_archives>
<div id="archives" class="menu">
<h2><:spipclear:archives:></h2>
<BOUCLE_recent(ARTICLES){id_secteur ?}{lang_select=non}{par date}{inverse}{0,1}{mois_relatif<0}>
<p class="recent">
<a class="ajax" href="[(#SELF|parametre_url{decal,[(#ENV{decal}|plus{1})]})]#archives">
<:spipclear:archives_suivants:>
</a>
</p>
</BOUCLE_recent>
<ul>
<BOUCLE_archives(ARTICLES){id_secteur ?}
{lang_select=non}{fusion DATE_FORMAT(date,'%Y-%m')}
{par date}{inverse}
{mois_relatif>=0}{mois_relatif<12}
>[<li>
<a href="[(#ENV{self}|parametre_url{#ENV{var_date,date},[(#DATE|affdate{Y-m})]})]"[
class="(#DATE|affdate{Y-m}|=={[(#ENV{date}|normaliser_date|affdate{Y-m})]}|?{on})"
]>(#DATE|affdate_mois_annee)</a>
</li>
]</BOUCLE_archives>
</ul>
<BOUCLE_ancien(ARTICLES){id_secteur ?}{lang_select=non}{par date}{inverse}{0,1}{mois_relatif>=12}>
<p class="ancien">
<a class="ajax" href="[(#SELF|parametre_url{decal,[(#ENV{decal}|moins{1})]})]#archives">
<:spipclear:archives_precedents:>
</a>
</p>
</BOUCLE_ancien>
</div>
</B_archives>
</BOUCLE_reference>