inc-forum.html 2.82 KB
Newer Older
chris's avatar
chris committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
[(#REM) Cette balise (invisible) provoque le recalcul du forum
la premiere fois qu'un message est poste (cf. inc/invalideur). ]
[(#PARAMETRES_FORUM|?{''})]

[(#REM) Nombre total de messages ]
<BOUCLE_decompte(FORUMS) {id_rubrique ?}{id_article ?}{id_breve ?}{id_syndic ?} {plat} />[<h2>(#TOTAL_BOUCLE|>{0}|?{#TOTAL_BOUCLE,''})
[(#TOTAL_BOUCLE|=={1}|?{<:message:>,<:messages_forum:>})]</h2>]<//B_decompte>

[(#REM) Messages du forum ]
<B_forums>
<ul class="forum">

	<BOUCLE_forums(FORUMS) {id_rubrique ?}{id_article ?}{id_breve ?}{id_syndic ?} {par date}>

	<li class="forum-fil">

		<div class="forum-message">
			<div class="forum-chapo">
				<strong class="#EDIT{titre} forum-titre"><a href="#forum#ID_FORUM" name="forum#ID_FORUM" id="forum#ID_FORUM">#TITRE</a></strong>
				<small>[(#DATE|affdate_jourcourt)][&nbsp;(#DATE|heures)][:(#DATE|minutes)][, <:par_auteur:> <span class="#EDIT{qui}">(#NOM|couper{80})</span>]</small>
			</div>
			<div class="#EDIT{texte} forum-texte">
				[(#TEXTE|lignes_longues)]
				[<div class="notes surlignable">(#NOTES|safehtml|lignes_longues)</div>]
				[<p class="#EDIT{hyperlien} hyperlien"><:voir_en_ligne:> : <a href="(#URL_SITE)" class="spip_out">[(#NOM_SITE|sinon{[(#URL_SITE|couper{80})]})]</a></p>]

				<BOUCLE_doc(DOCUMENTS){id_forum}>
				[(#EXTENSION|match{'^(gif|jpg|png)$'}|?{
					[(#MODELE{emb}|image_reduire{300})]
				,
					[(#LOGO_DOCUMENT{#URL_DOCUMENT})]
				})]
				</BOUCLE_doc>

				[<p class="repondre"><a href="(#PARAMETRES_FORUM|url_reponse_forum)" rel="noindex nofollow"><:repondre_message:></a></p>]
			</div>
		</div>

		<B_forums_fils>
		<ul>
			<BOUCLE_forums_fils(FORUMS) {id_parent} {par date}>

			<li>
				<div class="forum-message">
					<div class="forum-chapo">
						<strong class="#EDIT{titre} forum-titre"><a href="#forum#ID_FORUM" name="forum#ID_FORUM" id="forum#ID_FORUM">#TITRE</a></strong>
						<small>[(#DATE|affdate_jourcourt)][&nbsp;(#DATE|heures)][:(#DATE|minutes)][, <:par_auteur:> <span class="#EDIT{qui}">(#NOM|couper{80})</span>]</small>
					</div>
					<div class="#EDIT{texte} forum-texte">
						[(#TEXTE|lignes_longues)]
						[<div class="notes surlignable">(#NOTES|safehtml|lignes_longues)</div>]
						[<p class="#EDIT{hyperlien} hyperlien"><:voir_en_ligne:> : <a href="(#URL_SITE)" class="spip_out">[(#NOM_SITE|sinon{[(#URL_SITE|couper{80})]})]</a></p>]

				<BOUCLE_doc2(DOCUMENTS){id_forum}>
				[(#EXTENSION|match{'^(gif|jpg|png)$'}|?{
					[(#MODELE{emb}|image_reduire{300})]
				,
					[(#LOGO_DOCUMENT{#URL_DOCUMENT})]
				})]
				</BOUCLE_doc2>


						[<p class="repondre"><a href="(#PARAMETRES_FORUM|url_reponse_forum)" rel="noindex nofollow"><:repondre_message:></a></p>]
					</div>
				</div>

				<BOUCLE_forums_boucle(boucle_forums_fils)></BOUCLE_forums_boucle>

			</li>

			</BOUCLE_forums_fils>
		</ul>
		</B_forums_fils>

	</li>
	</BOUCLE_forums>

</ul>
</B_forums>