spip_nursit/prive/modeles/pagination_precedent_suivant.html
2023-06-01 17:30:12 +02:00

29 lines
1.2 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{sep,#ENV{separateur,' | '}}
[<span
class='label'>(#ENV{label,''})</span>][
(#SET{item, #ENV{page_courante}|moins{2}|mult{#ENV{pas}} })
][<span
class="prev[(#ENV{page_courante}|<={1}|oui)disabled]">(#ENV{url_precedent,#ENV{url}
|parametre_url{#ENV{debut},#GET{item}|?{#GET{item}}}}
|ancre_url{#ENV{ancre}}
|lien_ou_expose{#ENV{label_precedent,<:public:page_precedente:>},#ENV{page_courante}|<={1},'lien_pagination','',nofollow}
|inserer_attribut{rel,prev}
)[<span (#ENV{page_courante}|<{#ENV{nombre_pages}}|et{#GET*{sep}}|oui)
class='sep'>#GET*{sep}</span>]</span>][
(#SET{item, #ENV{page_courante}|mult{#ENV{pas}} })
][<span
class="next[(#ENV{page_courante}|>={#ENV{nombre_pages}}|oui)disabled]">[<span (#ENV{page_courante}|>={#ENV{nombre_pages}}|et{#GET*{sep}}|oui)
class='sep'>#GET*{sep}</span>](#ENV{url_suivant,#ENV{url}
|parametre_url{#ENV{debut},#GET{item}|?{#GET{item}}}}
|ancre_url{#ENV{ancre}}
|lien_ou_expose{#ENV{label_suivant,<:public:page_suivante:>},#ENV{page_courante}|>={#ENV{nombre_pages}},'lien_pagination','',nofollow}
|inserer_attribut{rel,next}
)</span>]