[SPIP] +2.1.12
[velocampus/web/www.git] / www / squelettes-dist / modeles / article_traductions.html
diff --git a/www/squelettes-dist/modeles/article_traductions.html b/www/squelettes-dist/modeles/article_traductions.html
new file mode 100644 (file)
index 0000000..69ceb8e
--- /dev/null
@@ -0,0 +1,18 @@
+[(#REM)
+       Affiche les traductions disponibles d'un article.
+       La langue de l'article courant s'affiche en gras, sans lien.
+][(#REM)
+
+       Note : le lien <a rel="alternate" hreflang="xx" ...> indique qu'il
+       s'agit d'une traduction (version alternative dans la langue xx)
+
+]<BOUCLE_article(ARTICLES){id_article}>
+<B_traductions>
+<p class="traductions">
+       <:trad_article_traduction:>
+       <BOUCLE_traductions(ARTICLES) {traduction} {par lang}>[(#TOTAL_BOUCLE|>{1}|?{' '})
+       <span lang="#LANG" xml:lang="#LANG" dir="#LANG_DIR"[ class="(#EXPOSE)"]>&#91;[(#EXPOSE{'',<a href="#URL_ARTICLE" rel="alternate" hreflang="#LANG"[ title="(#TITRE|attribut_html|couper{80})"]>})][(#LANG|traduire_nom_langue)]#EXPOSE{'',</a>}&#93;</span>
+       ]</BOUCLE_traductions>
+</p>
+</B_traductions>
+</BOUCLE_article>
\ No newline at end of file