1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/spip_ynh.git synced 2024-09-03 20:25:59 +02:00
spip_ynh/sources/prive/modeles/pagination_prive.html
2015-04-28 17:10:23 +02:00

45 lines
No EOL
1.7 KiB
HTML

#ENV*{bloc_ancre}
#SET{bornes,#ENV{page_courante}|bornes_pagination{#ENV{nombre_pages},10}}
#SET{premiere, #GET{bornes}|reset}
#SET{derniere, #GET{bornes}|end}
#SET{pages,#GET{premiere}|range{#GET{derniere}}}
#SET{sep,#ENV{separateur,' | '}}
<B_pages>
[<span
class='label'>(#ENV{label,''})</span>][
(#SET{item, #ENV{page_courante}|moins{2}|mult{#ENV{pas}} })
]<span
class="pages">[<a
href='[(#ENV{url}|parametre_url{#ENV{debut},''})]##ENV{ancre}'
class='lien_pagination'
rel='nofollow'>(#GET{premiere}|>{1}|?{0})</a><span
class="tbc">[<span
class='sep'>(#GET*{sep})</span>]...[<span
class='sep'>(#GET*{sep})</span>]</span
>]<BOUCLE_pages(POUR){tableau #GET{pages}}>[
(#SET{item, #VALEUR|moins{1}|mult{#ENV{pas}} })
][(#ENV{url}
|parametre_url{#ENV{debut},#GET{item}|?{#GET{item}}}
|ancre_url{#ENV{ancre}}
|lien_ou_expose{#GET{item},#VALEUR|=={#ENV{page_courante}},lien_pagination,'',nofollow})][<span
class='sep'>(#VALEUR|<{#GET{derniere}}|?{#GET{sep}})</span
>]</BOUCLE_pages>[<span
class="tbc">[<span
class='sep'>(#GET*{sep})</span>]...[<span
class='sep'>(#GET*{sep})</span>]</span><a
href='[(#ENV{url}|parametre_url{#ENV{debut},#ENV{nombre_pages}|moins{1}|mult{#ENV{pas}}})]##ENV{ancre}'
class='lien_pagination'
rel='nofollow'>(#GET{derniere}|<{#ENV{nombre_pages}}|?{#ENV{nombre_pages}|moins{1}|mult{#ENV{pas}}})</a>]</span>[
(#ENV{nombre_pages}|moins{1}|mult{#ENV{pas}}|<{1000}|oui)[
(#SET{item, #ENV{page_courante}|mult{#ENV{pas}} })
][<span
class="all[(#ENV{page_courante}|=={0}|oui)disabled]">[<span
class='sep'>(#GET*{sep})</span>](#ENV{url}
|parametre_url{#ENV{debut},-1}
|ancre_url{#ENV{ancre}}
|lien_ou_expose{<:lien_tout_afficher:>,#ENV{page_courante}|=={0},lien_pagination,'',nofollow})</span>]]
</B_pages>