[SPIP] +2.1.12
[velocampus/web/www.git] / www / plugins / auto / aveline / 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 [(#SET{titre_noisette, #ENV{titre_noisette}|sinon{nb_messages}})]
5 [(#SET{titre,[(#GET{titre_noisette}|=={titre_perso}|?{[(#ENV**{titre_noisette_perso}|propre)],[(#GET{titre_noisette}|_T)]})]})]
6 [(#SET{thread, #ENV{thread}|sinon{complet}})]
7
8 <a href="#forum" name="forum" id="forum"></a>
9 <div class="comments" id="comments">
10 <BOUCLE_test_titre(CONDITION){si (#GET{titre_noisette}|=={nb_messages}|et{#ENV{afficher_titre_noisette}})}>
11 [(#REM) Nombre total de messages ]
12 <BOUCLE_decompte(FORUMS) {id_rubrique ?}{id_article ?}{id_breve ?}{id_syndic ?} {plat} />[<h2 class="h2">(#TOTAL_BOUCLE|>{0}|?{#TOTAL_BOUCLE,''})
13 [(#TOTAL_BOUCLE|=={1}|?{<:message:>,<:messages_forum:>})]</h2>]<//B_decompte>
14 </BOUCLE_test_titre>
15 <BOUCLE_decompte2(FORUMS) {id_rubrique ?}{id_article ?}{id_breve ?}{id_syndic ?} {plat} {0,1}>[(#ENV{afficher_titre_noisette}|oui)[<h2 class="h2">(#GET{titre})</h2>]]</BOUCLE_decompte2>
16 <//B_test_titre>
17
18 <BOUCLE_test_thread_complet(CONDITION){si (#GET{thread}|=={complet})}>
19 <B_comments-pieds>
20 <ul class="forum comments-ul thread-complet">
21 <BOUCLE_comments-pieds(FORUMS) {statut IN publie} {id_rubrique ?}{id_article ?}{id_breve ?}{id_syndic ?} {par date}{inverse #ENV{senstri}}>
22 <li class="forum-fil comment-li[ (#COMPTEUR_BOUCLE|alterner{'odd','even'})][ (#COMPTEUR_BOUCLE|=={1}|oui)first][ (#EXPOSE)] #ME">
23 [(#MODELE{comment}{id_forum}{afficher_logo_auteur}{afficher_titre_message}{taille_max_logo}{repondre=oui}{thread=oui}{formulaire_reponse_volant})]
24 <B_comments-fils>
25 <ul class="comments-ul comments-fils">
26 <BOUCLE_comments-fils(FORUMS){id_parent}{par date}>
27 <li class="forum-fil comment-li[ (#COMPTEUR_BOUCLE|alterner{'odd','even'})][ (#COMPTEUR_BOUCLE|=={1}|oui)first][ (#EXPOSE)] #ME">
28 [(#MODELE{comment}{id_forum}{afficher_logo_auteur}{afficher_titre_message}{taille_max_logo}{repondre=oui}{thread=oui}{formulaire_reponse_volant})]
29 <BOUCLE_comments-fils-etc(boucle_comments-fils)></BOUCLE_comments-fils-etc>
30 </li>
31 </BOUCLE_comments-fils>
32 </ul>
33 </B_comments-fils>
34 </li>
35 </BOUCLE_comments-pieds>
36 </ul>
37 </B_comments-pieds>
38 </BOUCLE_test_thread_complet>
39
40 <BOUCLE_test_thread_simple(CONDITION){si (#GET{thread}|=={simple})}>
41 <B_comments-pieds2>
42 <ul class="forum comments-ul thread-simple">
43 <BOUCLE_comments-pieds2(FORUMS) {statut IN publie} {id_rubrique ?}{id_article ?}{id_breve ?}{id_syndic ?} {par date}{inverse #ENV{senstri}}>
44 <li class="forum-fil comment-li[ (#COMPTEUR_BOUCLE|alterner{'odd','even'})][ (#COMPTEUR_BOUCLE|=={1}|oui)first][ (#EXPOSE)] #ME">
45 <B_comments-fils2>
46 [(#MODELE{comment}{id_forum}{afficher_logo_auteur}{afficher_titre_message}{taille_max_logo}{thread=oui}{formulaire_reponse_volant})]
47 <ul class="comments-ul comments-fils">
48 <BOUCLE_comments-fils2(FORUMS){id_thread}{id_forum!=#ID_FORUM}{plat}{par date}>
49 <li class="forum-fil comment-li[ (#COMPTEUR_BOUCLE|alterner{'odd','even'})][ (#COMPTEUR_BOUCLE|=={1}|oui)first][ (#EXPOSE)] #ME">
50 [(#SET{repondre,#COMPTEUR_BOUCLE|=={#TOTAL_BOUCLE}})]
51 [(#MODELE{comment}{id_forum}{afficher_logo_auteur}{afficher_titre_message}{taille_max_logo}{repondre=#GET{repondre}}{thread=oui}{formulaire_reponse_volant})]
52 </li>
53 </BOUCLE_comments-fils2>
54 </ul>
55 </B_comments-fils2>
56 [(#MODELE{comment}{id_forum}{afficher_logo_auteur}{afficher_titre_message}{taille_max_logo}{thread=oui}{formulaire_reponse_volant}{repondre='on'})]
57 <//B_comments-fils2>
58 </li>
59 </BOUCLE_comments-pieds2>
60 </ul>
61 </B_comments-pieds2>
62 </BOUCLE_test_thread_simple>
63
64 <B_comments-list>
65 <ul class="forum comments-ul plat">
66 <BOUCLE_comments-list(FORUMS) {statut IN publie} {id_rubrique ?}{id_article ?}{id_breve ?}{id_syndic ?} {plat} {par date}{inverse #ENV{senstri}}>
67 <li class="forum-fil comment-li[ (#COMPTEUR_BOUCLE|alterner{'odd','even'})][ (#COMPTEUR_BOUCLE|=={1}|oui)first][ (#EXPOSE)] #ME">
68 [(#MODELE{comment}{id_forum}{afficher_logo_auteur}{afficher_titre_message}{taille_max_logo}{formulaire_reponse_volant})]
69 </li>
70 </BOUCLE_comments-list>
71 </ul>
72 </B_comments-list>
73
74 <//B_test_thread_simple>
75 <//B_test_thread_complet>
76 </div>
77
78 [(#ENV{formulaire_reponse_volant}|non)
79 [<p class="repondre"><a href="(#PARAMETRES_FORUM|url_reponse_forum)" rel="noindex nofollow">[(#ENV{repondre_objet}|_T)]</a></p>]
80 ]
81
82 [(#ENV{formulaire_reponse_volant}|oui)
83 [<div class="comment-form">
84 <a href="#forum-formulaire-principal" name="forum-formulaire-principal" id="forum-formulaire-principal"></a>
85 <h2 class="h2">[(#ENV{repondre_objet}|_T)]</h2>
86 (#FORMULAIRE_FORUM)
87 </div>
88 #INCLURE{fond=inclure/js_formulaire_reponse_volant}
89 ]]