[PLUGINS] +les plugins de bases
[ptitvelo/web/www.git] / www / plugins / beespip / inclure / forum.html
1 [(#REM) Cette balise (invisible) provoque le recalcul du forum
2 la premiere fois qu'un message est poste (cf. inc/invalideur). ]
3 [(#PARAMETRES_FORUM|?{''})]
4
5 <div class="comments" id="comments">
6 [(#REM) Nombre total de messages ]
7 <BOUCLE_decompte(FORUMS) {id_rubrique ?}{id_article ?}{id_breve ?}{id_syndic ?} {plat} />[<h4>(#TOTAL_BOUCLE|>{0}|?{#TOTAL_BOUCLE,''})
8 [(#TOTAL_BOUCLE|=={1}|?{<:message:>,<:messages_forum:>})]</h4>]<//B_decompte>
9
10 [(#REM) Messages du forum ]
11 <B_forums>
12
13 <BOUCLE_forums(FORUMS) {id_rubrique ?}{id_article ?}{id_breve ?}{id_syndic ?} {par date}>
14 <ul class="forum comments-list">
15 <li class="forum-fil comment odd[ (#COMPTEUR_BOUCLE|=={1}|oui)first][ (#EXPOSE)]">
16 <div class="comment-message forum-message">
17 <div class="comment-meta forum-chapo">
18 <a href="#forum#ID_FORUM" title="#ID_FORUM" class="ancre permalink comment-number">#</a>
19 [(#LOGO_AUTEUR|image_reduire{40,0}|image_recadre{40,40,center}|sinon{<img alt="" src="[(#CHEMIN{images/gravatar.jpg})]" class="avatar" height="40" width="40" />})]<strong class="#EDIT{titre} forum-titre"><a href="#forum#ID_FORUM" name="forum#ID_FORUM" id="forum#ID_FORUM">#TITRE</a></strong>
20 [<span class="comment-author vcard">, <:par_auteur:> <strong class="fn n #EDIT{qui}">(#NOM)</strong></span><br />]
21 [<span class="comment-data">(#DATE|oui)<abbr class="date"[ title="(#DATE|date_iso)"]>
22 [(#SET{date,[(#DATE|affdate_jourcourt)]})]
23 [(#SET{heure,[(#DATE|heures)][:(#DATE|minutes)]})]
24 <:zpip:date_forum{date=#GET{date},heure=#GET{heure}}:></abbr></span>]
25 </div>
26 <div class="comment-content forum-texte">
27
28 [<div class="#EDIT{texte} comment-texte">(#TEXTE|lignes_longues)</div>]
29 [<div class="comment-notes">(#NOTES|safehtml|lignes_longues)</div>]
30 [<p class="#EDIT{hyperlien} comment-external-link hyperlien"><:voir_en_ligne:> : <a href="(#URL_SITE)" class="spip_out">[(#NOM_SITE|sinon{[(#URL_SITE|couper{80})]})]</a></p>]
31 <BOUCLE_doc(DOCUMENTS){id_forum}>
32 [(#EXTENSION|match{'^(gif|jpg|png)$'}|?{
33 [(#EMBED_DOCUMENT|image_reduire{300})]
34 ,
35 [(#LOGO_DOCUMENT|#URL_DOCUMENT)]
36 })]
37 </BOUCLE_doc>
38
39 </div>
40 </div>
41 </li>
42
43 <B_forums_fils>
44 <BOUCLE_forums_fils(FORUMS) {id_parent} {par date}>
45
46 <li class="forum-fil comment even[ (#EXPOSE)]">
47 <div class="comment-message forum-message">
48 <div class="comment-meta forum-chapo">
49 <a href="#forum#ID_FORUM" title="#ID_FORUM" class="ancre permalink comment-number">#</a>
50 [(#LOGO_AUTEUR|image_reduire{40,0}|image_recadre{40,40,center}|sinon{<img alt="" src="[(#CHEMIN{images/gravatar.jpg})]" class="avatar" height="40" width="40" />})]<strong class="#EDIT{titre} forum-titre"><a href="#forum#ID_FORUM" name="forum#ID_FORUM" id="forum#ID_FORUM">#TITRE</a></strong>
51 [<span class="comment-author vcard">, <:par_auteur:> <strong class="fn n #EDIT{qui}">(#NOM)</strong></span><br />]
52 [<span class="comment-data">(#DATE|oui)<abbr class="date"[ title="(#DATE|date_iso)"]>
53 [(#SET{date,[(#DATE|affdate_jourcourt)]})]
54 [(#SET{heure,[(#DATE|heures)][:(#DATE|minutes)]})]
55 <:zpip:date_forum{date=#GET{date},heure=#GET{heure}}:></abbr></span>]
56 </div>
57 <div class="comment-content forum-texte">
58 [<div class="#EDIT{texte} comment-texte">(#TEXTE|lignes_longues)</div>]
59 [<div class="comment-notes">(#NOTES|safehtml|lignes_longues)</div>]
60 [<p class="#EDIT{hyperlien} comment-external-link hyperlien"><:voir_en_ligne:> : <a href="(#URL_SITE)" class="spip_out">[(#NOM_SITE|sinon{[(#URL_SITE|couper{80})]})]</a></p>]
61
62 <BOUCLE_doc2(DOCUMENTS){id_forum}>
63 [(#EXTENSION|match{'^(gif|jpg|png)$'}|?{
64 [(#EMBED_DOCUMENT|image_reduire{300})]
65 ,
66 [(#LOGO_DOCUMENT|#URL_DOCUMENT)]
67 })]
68 </BOUCLE_doc2>
69
70 </div>
71 </div>
72 </li>
73
74 <BOUCLE_forums_boucle(boucle_forums_fils)></BOUCLE_forums_boucle>
75
76
77 </BOUCLE_forums_fils>
78 </B_forums_fils>
79 </ul>
80 [<p class="comment-reply repondre"><a href="(#PARAMETRES_FORUM|url_reponse_forum)" rel="noindex nofollow"><:beespip:repondre_message:></a></p>]
81
82 </BOUCLE_forums>
83 </B_forums>
84 </div>