X-Git-Url: http://git.cyclocoop.org/?p=velocampus%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fplugins%2Fauto%2Fspip-bonux%2Fmodeles%2Fpagination_page.html;fp=www%2Fplugins%2Fauto%2Fspip-bonux%2Fmodeles%2Fpagination_page.html;h=cd3bc433840beed52edbbea1a29c7714f801bb91;hp=0000000000000000000000000000000000000000;hb=80b4d3e85f78d402ed2e73f8f5d1bf4c19962eed;hpb=aaf970bf4cdaf76689ecc10609048e18d073820c diff --git a/www/plugins/auto/spip-bonux/modeles/pagination_page.html b/www/plugins/auto/spip-bonux/modeles/pagination_page.html new file mode 100644 index 0000000..cd3bc43 --- /dev/null +++ b/www/plugins/auto/spip-bonux/modeles/pagination_page.html @@ -0,0 +1,16 @@ +#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{separateur,#ENV{separateur,'|'}} + +<:spip_bonux:pages:> +[(#GET{premiere}|>{1}|?{'...',''}) [(#GET*{separateur})]] + +[(#SET{item, #VALEUR|moins{1}|mult{#ENV{pas}} })] +[(#ENV{url}|parametre_url{#ENV{debut},#GET{item}}|ancre_url{#ENV{ancre}}|aoustrong{#VALEUR,#VALEUR|=={#ENV{page_courante}},lien_pagination,'',nofollow})] +[(#VALEUR|<{#GET{derniere}}|?{#GET{separateur}})] + +[[(#GET*{separateur})] (#GET{derniere}|<{#ENV{nombre_pages}}|?{'...',''})] + \ No newline at end of file