source: spip-zone/_plugins_/pagination/modeles/pagination.html @ 117558

Last change on this file since 117558 was 43240, checked in by cedric@…, 10 years ago

eclaircir le modele pagination

File size: 2.0 KB
Line 
1#ENV*{bloc_ancre}
2#SET{bornes,#ENV{page_courante}|bornes_pagination{#ENV{nombre_pages},10}}
3#SET{premiere, #GET{bornes}|reset}
4#SET{derniere, #GET{bornes}|end}
5#SET{pages,#GET{premiere}|range{#GET{derniere}}}
6#SET{sep,#ENV{separateur,'-'}}
7<B_pages>
8        <span
9  class='label'><:pagination:pages:></span>[
10
11        (#SET{item, #ENV{page_courante}|moins{2}|mult{#ENV{pas}} })
12
13        ][<span
14        class="prev[(#ENV{page_courante}|<={1}|oui)disabled]">(#ENV{url}
15        |parametre_url{#ENV{debut},#GET{item}}
16        |ancre_url{#ENV{ancre}}
17        |lien_ou_expose{<:pagination:prev:>,#ENV{page_courante}|<={1},'lien_pagination','',nofollow}
18        |inserer_attribut{rel,prev}
19        )[<span
20        class='sep'>(#GET*{sep})</span>]</span>]<span
21        class="pages">[<a
22        href='[(#ENV{url}|parametre_url{#ENV{debut},''})]##ENV{ancre}'
23        class='lien_pagination'
24        rel='nofollow'>(#GET{premiere}|>{1}|?{1})</a><span
25        class="tbc">[<span
26        class='sep'>(#GET*{sep})</span>]...[<span
27        class='sep'>(#GET*{sep})</span>]</span
28
29                >]<BOUCLE_pages(POUR){tableau #GET{pages}}>[
30                (#SET{item, #VALEUR|moins{1}|mult{#ENV{pas}} })
31                ][(#ENV{url}
32                |parametre_url{#ENV{debut},#GET{item}}
33                |ancre_url{#ENV{ancre}}
34                |lien_ou_expose{#VALEUR,#VALEUR|=={#ENV{page_courante}},lien_pagination,'',nofollow})][<span
35                class='sep'>(#VALEUR|<{#GET{derniere}}|?{#GET{sep}})</span
36                >]</BOUCLE_pages>[<span
37
38        class="tbc">[<span
39        class='sep'>(#GET*{sep})</span>]...[<span
40        class='sep'>(#GET*{sep})</span>]</span><a
41        href='[(#ENV{url}|parametre_url{#ENV{debut},#ENV{nombre_pages}|moins{1}|mult{#ENV{pas}}})]##ENV{ancre}'
42        class='lien_pagination'
43        rel='nofollow'>(#GET{derniere}|<{#ENV{nombre_pages}}|?{#ENV{nombre_pages}})</a>]</span>[
44        (#SET{item, #ENV{page_courante}|mult{#ENV{pas}} })
45        ][<span
46        class="next[(#ENV{page_courante}|>={#ENV{nombre_pages}}|oui)disabled]">[<span class='sep'>(#GET*{sep})</span>](#ENV{url}
47        |parametre_url{#ENV{debut},#GET{item}}
48        |ancre_url{#ENV{ancre}}
49        |lien_ou_expose{<:pagination:next:>,#ENV{page_courante}|>={#ENV{nombre_pages}},'lien_pagination','',nofollow}
50        |inserer_attribut{rel,next}
51        )</span>]
52</B_pages>
Note: See TracBrowser for help on using the repository browser.