ajax sur liste articles blog
This commit is contained in:
parent
094b4e62b9
commit
24979e29e8
@ -9,30 +9,8 @@
|
|||||||
<div class="main">
|
<div class="main">
|
||||||
[<div class="#EDIT{texte} chapo">(#TEXTE|adaptive_images{#CONST{_CONTENT_WIDTH}})</div>]
|
[<div class="#EDIT{texte} chapo">(#TEXTE|adaptive_images{#CONST{_CONTENT_WIDTH}})</div>]
|
||||||
|
|
||||||
#SET{'debut_mois', (#ENV{datetri}|baz_moisdecal{0,'Y-m-d'})}
|
[(#REM) inclure en ajax la liste des articles]
|
||||||
#SET{'fin_mois', (#ENV{datetri}|baz_moisdecal{1,'Y-m-d'})}
|
<INCLURE{fond=inclure/liste/articles-blog, env, ajax} />
|
||||||
<B_articlesdate>
|
|
||||||
<div class="liste articles blog">
|
|
||||||
[<h2 class="h2[ (#ENV{datetri}|oui)date]">(#ENV{datetri}|affdate{nom_mois})[(#ENV{datetri}|affdate{Y}|!={[(#VAL{Y}|date)]}|oui)[ (#ENV{datetri}|affdate{Y})]]</h2>]
|
|
||||||
<ul class="liste-items">
|
|
||||||
<BOUCLE_articlesdate(ARTICLES){si #ENV{datetri}|?{' '}}{date < #GET{fin_mois}}{date >= #GET{debut_mois}}{id_rubrique}{tri_rubrique}>
|
|
||||||
<li class="item clearfix">#INCLURE{fond=inclure/resume/article,id_article,env,composition=blog,h=h3,pagination=oui}</li>
|
|
||||||
</BOUCLE_articlesdate>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</B_articlesdate>
|
|
||||||
<div class="liste articles blog">
|
|
||||||
[<h2 class="h2[ (#ENV{datetri}|oui)date]"><:baz_april:aucun_article_dans_cette_periode:> : (#ENV{datetri}|affdate{nom_mois})[(#ENV{datetri}|affdate{Y}|!={[(#VAL{Y}|date)]}|oui)[ (#ENV{datetri}|affdate{Y})]]</h2>]
|
|
||||||
<B_articles>#ANCRE_PAGINATION
|
|
||||||
<ul class="liste-items">
|
|
||||||
<BOUCLE_articles(ARTICLES){id_rubrique}{lang}{tri_rubrique}{pagination 10}>
|
|
||||||
<li class="item clearfix">#INCLURE{fond=inclure/resume/article,id_article,env,composition=blog,h=h3,pagination=oui}</li>
|
|
||||||
</BOUCLE_articles>
|
|
||||||
</ul>
|
|
||||||
[<nav class="pagination">(#PAGINATION)</nav>]
|
|
||||||
</B_articles>
|
|
||||||
</div>
|
|
||||||
<//B_articlesdate>
|
|
||||||
|
|
||||||
[(#REM) pour les sous-rubriques, on utilise le modele <rubriqueXX|rubriques> dans le texte si on veut]
|
[(#REM) pour les sous-rubriques, on utilise le modele <rubriqueXX|rubriques> dans le texte si on veut]
|
||||||
|
|
||||||
|
26
squelettes/inclure/liste/articles-blog.html
Normal file
26
squelettes/inclure/liste/articles-blog.html
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<BOUCLE_rubrique(RUBRIQUES){id_rubrique}>
|
||||||
|
#SET{'debut_mois', (#ENV{datetri}|baz_moisdecal{0,'Y-m-d'})}
|
||||||
|
#SET{'fin_mois', (#ENV{datetri}|baz_moisdecal{1,'Y-m-d'})}
|
||||||
|
<B_articlesdate>
|
||||||
|
<div class="liste articles blog">
|
||||||
|
[<h2 class="h2[ (#ENV{datetri}|oui)date]">(#ENV{datetri}|affdate{nom_mois})[(#ENV{datetri}|affdate{Y}|!={[(#VAL{Y}|date)]}|oui)[ (#ENV{datetri}|affdate{Y})]]</h2>]
|
||||||
|
<ul class="liste-items">
|
||||||
|
<BOUCLE_articlesdate(ARTICLES){si #ENV{datetri}|?{' '}}{date < #GET{fin_mois}}{date >= #GET{debut_mois}}{id_rubrique}{tri_rubrique}>
|
||||||
|
<li class="item clearfix">#INCLURE{fond=inclure/resume/article,id_article,env,composition=blog,h=h3,pagination=oui}</li>
|
||||||
|
</BOUCLE_articlesdate>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</B_articlesdate>
|
||||||
|
<div class="liste articles blog">
|
||||||
|
[<h2 class="h2[ (#ENV{datetri}|oui)date]"><:baz_april:aucun_article_dans_cette_periode:> : (#ENV{datetri}|affdate{nom_mois})[(#ENV{datetri}|affdate{Y}|!={[(#VAL{Y}|date)]}|oui)[ (#ENV{datetri}|affdate{Y})]]</h2>]
|
||||||
|
<B_articles>#ANCRE_PAGINATION
|
||||||
|
<ul class="liste-items">
|
||||||
|
<BOUCLE_articles(ARTICLES){id_rubrique}{lang}{tri_rubrique}{pagination 10}>
|
||||||
|
<li class="item clearfix">#INCLURE{fond=inclure/resume/article,id_article,env,composition=blog,h=h3,pagination=oui}</li>
|
||||||
|
</BOUCLE_articles>
|
||||||
|
</ul>
|
||||||
|
[<nav class="pagination">(#PAGINATION)</nav>]
|
||||||
|
</B_articles>
|
||||||
|
</div>
|
||||||
|
<//B_articlesdate>
|
||||||
|
</BOUCLE_rubrique>
|
Loading…
Reference in New Issue
Block a user