Changeset 34213 in spip-zone for _plugins_/comments
- Timestamp:
- Jan 6, 2010, 12:56:24 AM (11 years ago)
- Location:
- _plugins_/comments
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/comments/comments-feed.html
r33804 r34213 1 <p class="comments-feed">Suivre les commentaires 1 <p class="comments-feed">Suivre les commentaires : <a href="[(#URL_PAGE{comments-rss}|parametre_url{id_article,#ID_ARTICLE})]"><img src="#CHEMIN{feed/rss.png}" alt="RSS 2.0" /></a> | <a href="[(#URL_PAGE{comments-atom}|parametre_url{id_article,#ID_ARTICLE})]"><img src="#CHEMIN{feed/atom.png}" alt="Atom" /></a></p> -
_plugins_/comments/feed/comments-atom.html
r33804 r34213 5 5 <feed version="0.3" xmlns="http://purl.org/atom/ns#" xml:lang="#LANG"> 6 6 7 <title >[(#NOM_SITE_SPIP|textebrut|entites_html|entites_unicode)]<?php echo $type == "co" ? " (commentaires)":""; ?></title> 8 <link rel="alternate" type="text/html" href="#URL_SITE_SPIP"></link> 9 7 <BOUCLE_article(ARTICLES){id_article}> 8 <title>[(#TITRE|textebrut|entites_html|entites_unicode)] - <:comments:commentaires:></title> 9 [<link rel="alternate" type="text/html" href="(#URL_ARTICLE|url_absolue)"></link>] 10 </BOUCLE_article> 11 <title>[(#NOM_SITE_SPIP|textebrut|entites_html|entites_unicode)] - <:comments:commentaires:></title> 12 <link rel="alternate" type="text/html" href="#URL_SITE_SPIP"></link> 13 <//B_article> 10 14 11 <BOUCLE_date_du_dernier_article_de_la_rubrique(ARTICLES){id_rubrique}{par date}{inverse}{0,1}> 12 <modified>[(#DATE|date_iso)]</modified> 13 </BOUCLE_date_du_dernier_article_de_la_rubrique> 14 15 16 17 18 <?php 19 if ($GLOBALS['type'] == "co") { 20 ?> 21 22 <BOUCLE_1(FORUMS){id_article}{plat}{par date}{inverse}{0,20}> 23 <item> 24 <entry> 25 <title>[(#TITRE|texte_backend)]</title> 26 <link rel="alternate" type="text/html" href="[(#URL_FORUM|url_absolue)]"></link> 27 <issued>[(#DATE|date_iso)]</issued> 28 <id>[(#URL_FORUM|url_absolue)]</id> 29 <modified>[(#DATE|date_iso)]</modified> 30 <summary>[(#TEXTE|texte_backend)]</summary> 31 </entry> 32 </item> 33 </BOUCLE_1> 34 35 <BOUCLE_2(FORUMS){plat}{par date}{inverse}{0,20}> 36 <item> 37 <entry> 38 <title>[(#TITRE|texte_backend)]</title> 39 <link rel="alternate" type="text/html" href="[(#URL_FORUM|url_absolue)]"></link> 40 <issued>[(#DATE|date_iso)]</issued> 41 <id[(#URL_FORUM|url_absolue)]</id> 42 <modified>[(#DATE|date_iso)]</modified> 43 <summary>[(#TEXTE|texte_backend)]</summary> 44 </entry> 45 </item> 46 </BOUCLE_2> 47 48 <//B_1> 49 50 <?php 51 } 52 else 53 { 54 ?> 55 56 57 <BOUCLE_rub(RUBRIQUES){id_rubrique}> 58 <BOUCLE3(ARTICLES){branche}{par date}{inverse}{0,10}> 59 <entry> 60 <title>[(#TITRE|texte_backend)]</title> 61 <link rel="alternate" type="text/html" href="[(#URL_ARTICLE|url_absolue)]"></link> 62 <issued>[(#DATE|date_iso)]</issued> 63 <id>[(#URL_ARTICLE|url_absolue)]</id> 64 <modified>[(#DATE|date_iso)]</modified> 65 <summary>[(#INTRODUCTION|texte_backend)]</summary> 66 <author><name><BOUCLE23(AUTEURS){id_article}{", "}>[(#NOM|texte_backend)]</BOUCLE23>Inconnu<//B23></name></author> 67 </entry> 68 </BOUCLE3> 69 </BOUCLE_rub> 70 <//B_rub> 71 72 73 74 <?php 75 } 76 ?> 77 15 <BOUCLE_comments(FORUMS) {statut IN publie} {id_rubrique ?}{id_article ?}{id_breve ?}{id_syndic ?} {plat} {!par date}> 16 <item> 17 <entry> 18 [<title>(#TITRE|texte_backend)</title>] 19 [<link rel="alternate" type="text/html" href="(#URL_FORUM|url_absolue)"></link>] 20 [<issued>(#DATE|date_iso)</issued>] 21 [<id>(#URL_FORUM|url_absolue)</id>] 22 [<modified>(#DATE|date_iso)</modified>] 23 [<summary>(#TEXTE|texte_backend)</summary>] 24 </entry> 25 </item> 26 </BOUCLE_comments> 78 27 79 28 </feed> -
_plugins_/comments/feed/comments-rss.html
r33804 r34213 6 6 > 7 7 8 <channel> 9 <title>[(#NOM_SITE_SPIP|texte_backend)][(#ENV{type}|=={co}|oui) : commentaires]</title> 8 <channel[ xml:lang="(#LANG)"]> 9 <BOUCLE_article(ARTICLES){id_article}> 10 <title>[(#TITRE|texte_backend)] - <:comments:commentaires:></title> 11 <link>[(#URL_ARTICLE|url_absolue)]</link> 12 [<description>(#INTRODUCTION|supprimer_tags|texte_backend)</description>] 13 <language>#LANG</language> 14 <generator>SPIP - www.spip.net</generator> 15 16 [ <image> 17 <title>[(#TITRE|texte_backend)]</title> 18 <url>(#LOGO_ARTICLE||image_reduire{144,400}|extraire_attribut{src}|url_absolue|texte_backend)</url> 19 <link>[(#URL_ARTICLE|url_absolue)]</link> 20 [<height>(#LOGO_ARTICLE||image_reduire{144,400}|extraire_attribut{height})</height>] 21 [<width>(#LOGO_ARTICLE||image_reduire{144,400}|extraire_attribut{width})</width>] 22 </image> 23 ] 24 </BOUCLE_article> 25 <title>[(#NOM_SITE_SPIP|texte_backend)] - <:comments:commentaires:></title> 10 26 <link>#URL_SITE_SPIP/</link> 11 <description></description>27 [<description>(#DESCRIPTIF_SITE_SPIP|supprimer_tags|texte_backend)</description>] 12 28 <language>#LANG</language> 29 <generator>SPIP - www.spip.net</generator> 13 30 14 <image>31 [ <image> 15 32 <title>[(#NOM_SITE_SPIP|texte_backend)]</title> 16 <url> #URL_SITE_SPIP/images/logo.png</url>33 <url>(#LOGO_SITE_SPIP||image_reduire{144,400}|extraire_attribut{src}|url_absolue|texte_backend)</url> 17 34 <link>#URL_SITE_SPIP/</link> 18 <description></description> 35 [<height>(#LOGO_SITE_SPIP||image_reduire{144,400}|extraire_attribut{height})</height>] 36 [<width>(#LOGO_SITE_SPIP||image_reduire{144,400}|extraire_attribut{width})</width>] 19 37 </image> 38 ] 39 <//B_article> 20 40 21 22 <BOUCLE_feinte(ARTICLES){0,1}>[(#ENV{type}|!={co}|?{' '})]</BOUCLE_feinte> 23 <BOUCLE_rub(RUBRIQUES){id_rubrique}> 24 <BOUCLE3(ARTICLES){branche}{par date}{inverse}{0,10}> 25 <item> 26 <title>[(#TITRE|texte_backend)]</title> 27 <link>[(#URL_ARTICLE|url_absolue)]</link> 28 <dc:date>[(#DATE|date_iso)]</dc:date> 29 <description>[(#LOGO_ARTICLE|left||liens_absolus|texte_backend)][(#INTRODUCTION|texte_backend)]</description> 30 [(#CONFIG{syndication_integrale}|=={oui}|?{' ',''})<content:encoded>[(#LOGO_ARTICLE|right||image_reduire{150,150}|texte_backend) 31 ][<div class='rss_chapo'>(#CHAPO|texte_backend)</div> 32 ][<div class='rss_texte'>(#TEXTE| 33 image_reduire{500,0}|texte_backend)</div> 34 ][<hr /> 35 <div class='rss_notes'>(#NOTES|texte_backend)</div> 36 ][<div class='rss_ps'>(#PS|texte_backend)</div>] 37 </content:encoded>] 38 <dc:creator>(<BOUCLE23(AUTEURS){id_article}{", "}>[(#NOM|texte_backend)]</BOUCLE23>)</dc:creator> 39 </item> 40 </BOUCLE3> 41 </BOUCLE_rub> 42 </B_feinte> 43 <BOUCLE_1(FORUMS spip_articles){id_article?}{id_secteur IN #CONFIG{spipclear/secteurs}}{plat}{par date}{inverse}{0,25}> 44 <item> 45 <title>[(#TITRE|texte_backend)](1)</title> 46 <link>[(#URL_FORUM|url_absolue)]</link> 47 <dc:date>[(#DATE|date_iso)]</dc:date> 48 <description>[(#LOGO_ARTICLE|left||liens_absolus|texte_backend)][(#TEXTE|liens_absolus|texte_backend)]</description> 49 </item> 50 </BOUCLE_1> 51 <//B_feinte> 41 <BOUCLE_comments(FORUMS) {statut IN publie} {id_rubrique ?}{id_article ?}{id_breve ?}{id_syndic ?} {plat} {!par date}> 42 <item> 43 [<title>(#TITRE|texte_backend)</title>] 44 [<link>(#URL_FORUM|url_absolue)</link>] 45 <dc:date>[(#DATE|date_iso)]</dc:date> 46 [<description>(#TEXTE|texte_backend)</description>] 47 [<dc:creator>(#NOM|texte_backend)</dc:creator>] 48 </item> 49 </BOUCLE_comments> 52 50 53 51 </channel>
Note: See TracChangeset
for help on using the changeset viewer.