source: spip-zone/_plugins_/app/trunk/modeles/pagination_atom.html

Last change on this file was 54613, checked in by rastapopoulos@…, 9 years ago

La #PAGINATION{atom} dans un flux Atom : un <link rel="previous"> et un <link rel="next">

File size: 598 bytes
Line 
1#SET{bornes,#ENV{page_courante}|bornes_pagination{#ENV{nombre_pages},10}}
2#SET{premiere, #GET{bornes}|reset}
3#SET{derniere, #GET{bornes}|end}
4#SET{i,#ENV{page_courante}|moins{1}}
5
6[(#ENV{page_courante}|>{1}|oui)
7        [(#SET{item, #ENV{page_courante}|moins{2}|mult{#ENV{pas}} })]
8        <link rel="previous" href="[(#ENV{url}|url_absolue|parametre_url{#ENV{debut},#GET{item}|?{#GET{item}}})]" />
9]
10[(#ENV{page_courante}|<{#ENV{nombre_pages}}|oui)
11        [(#SET{item, #ENV{page_courante}|mult{#ENV{pas}} })]
12        <link rel="next" href="[(#ENV{url}|url_absolue|parametre_url{#ENV{debut},#GET{item}|?{#GET{item}}})]" />
13]
Note: See TracBrowser for help on using the repository browser.