Changeset 43240 in spip-zone for _plugins_/pagination


Ignore:
Timestamp:
Dec 29, 2010, 11:01:13 PM (9 years ago)
Author:
cedric@…
Message:

eclaircir le modele pagination

Location:
_plugins_/pagination
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/pagination/modeles/pagination.html

    r43228 r43240  
    66#SET{sep,#ENV{separateur,'-'}}
    77<B_pages>
    8 <span class='label'><:pagination:pages:></span>[
    9 (#SET{item, #ENV{page_courante}|moins{2}|mult{#ENV{pas}} })
    10 ][<span
     8        <span
     9  class='label'><:pagination:pages:></span>[
     10
     11        (#SET{item, #ENV{page_courante}|moins{2}|mult{#ENV{pas}} })
     12
     13        ][<span
    1114        class="prev[(#ENV{page_courante}|<={1}|oui)disabled]">(#ENV{url}
    12 |parametre_url{#ENV{debut},#GET{item}}
    13 |ancre_url{#ENV{ancre}}
    14 |lien_ou_expose{<:pagination:prev:>,#ENV{page_courante}|<={1},'lien_pagination','',nofollow}
    15 |inserer_attribut{rel,prev}
    16 )[<span class='sep'>(#GET*{sep})</span>]</span>]<span class="pages">[<a
     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
    1722        href='[(#ENV{url}|parametre_url{#ENV{debut},''})]##ENV{ancre}'
    1823        class='lien_pagination'
     
    2025        class="tbc">[<span
    2126        class='sep'>(#GET*{sep})</span>]...[<span
    22         class='sep'>(#GET*{sep})</span>]</span>]<BOUCLE_pages(POUR){tableau #GET{pages}}>[
    23         (#SET{item, #VALEUR|moins{1}|mult{#ENV{pas}} })
    24         ][(#ENV{url}
    25         |parametre_url{#ENV{debut},#GET{item}}
    26         |ancre_url{#ENV{ancre}}
    27         |lien_ou_expose{#VALEUR,#VALEUR|=={#ENV{page_courante}},lien_pagination,'',nofollow})][<span
    28         class='sep'>(#VALEUR|<{#GET{derniere}}|?{#GET{sep}})</span>]</BOUCLE_pages>[<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
    2938        class="tbc">[<span
    3039        class='sep'>(#GET*{sep})</span>]...[<span
    3140        class='sep'>(#GET*{sep})</span>]</span><a
    32         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}})</a>]</span>[
     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>[
    3344        (#SET{item, #ENV{page_courante}|mult{#ENV{pas}} })
    3445        ][<span
    3546        class="next[(#ENV{page_courante}|>={#ENV{nombre_pages}}|oui)disabled]">[<span class='sep'>(#GET*{sep})</span>](#ENV{url}
    36 |parametre_url{#ENV{debut},#GET{item}}
    37 |ancre_url{#ENV{ancre}}
    38 |lien_ou_expose{<:pagination:next:>,#ENV{page_courante}|>={#ENV{nombre_pages}},'lien_pagination','',nofollow}
    39 |inserer_attribut{rel,next}
    40 )</span>]
     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>]
    4152</B_pages>
  • _plugins_/pagination/plugin.xml

    r43229 r43240  
    1111<prefix>pagination</prefix>
    1212<necessite id="SPIP" version="[;]" />
    13 <necessite id="spip_bonux" version="[1.8;]" />
     13<utilise id="spip_bonux" version="[1.8;]" />
    1414</plugin>
Note: See TracChangeset for help on using the changeset viewer.