You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
2.0 KiB
HTML
45 lines
2.0 KiB
HTML
[(#REM)
|
|
Ce fichier sert à créer les flux RSS
|
|
qui permettent aux visiteurs de suivre l'actualité
|
|
de votre site depuis un lecteur de news.
|
|
|
|
Cette page génère un code XML/RSS adapté
|
|
|
|
][(#HTTP_HEADER{Content-type: text/xml[; charset=(#CHARSET)]})]<?xml
|
|
version="1.0"[ encoding="(#CHARSET)"]?>
|
|
<rss version="2.0" [(#REM) rss 2.0.9)]
|
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
xmlns:content="http://purl.org/rss/1.0/modules/content/"
|
|
xmlns:atom="http://www.w3.org/2005/Atom"
|
|
>
|
|
[(#PLUGIN{breves}|et{#CONFIG{activer_breves}|=={oui}}|et{#CONFIG{rssconfig_breves/activer}|!={non}}|et{#CONFIG{rssconfig_breves/flux,breves}|!={articles}}|oui)
|
|
<channel[ xml:lang="(#LANG)"]>
|
|
<title>[(#NOM_SITE_SPIP|textebrut|texte_backend)]</title>
|
|
<link>#URL_SITE_SPIP/</link>
|
|
[<description>(#DESCRIPTIF_SITE_SPIP|supprimer_tags|texte_backend)</description>]
|
|
<language>#LANG</language>
|
|
<generator>SPIP - www.spip.net</generator>
|
|
<atom:link href="[(#SELF|url_absolue)]" rel="self" type="application/rss+xml" />
|
|
|
|
[ <image>
|
|
<title>[(#NOM_SITE_SPIP|texte_backend)]</title>
|
|
<url>(#LOGO_SITE_SPIP|image_reduire{144,400}|extraire_attribut{src}|url_absolue|texte_backend)</url>
|
|
<link>#URL_SITE_SPIP/</link>
|
|
[<height>(#LOGO_SITE_SPIP|image_reduire{144,400}|extraire_attribut{height})</height>]
|
|
[<width>(#LOGO_SITE_SPIP|image_reduire{144,400}|extraire_attribut{width})</width>]
|
|
</image>
|
|
]
|
|
|
|
[(#REM) Si la saisie des rubriques a ete faites avec le selecteur, on utilise le filtre picker_selected
|
|
sinon, on explode la chaine saisie ]
|
|
#SET{rubriques_a_inclure,#CONFIG{rssconfig_breves/rubriques_a_inclure}|picker_selected{rubrique}}
|
|
[(#GET{rubriques_a_inclure}|count|=={0}|et{#GET{rubriques_a_inclure}|is_array|non}|oui) #SET{rubriques_a_inclure,#CONFIG{rssconfig_breves/rubriques_a_inclure}|explode{','}}]
|
|
|
|
#SET{id_rubrique,#ENV{id_rubrique,#GET{rubriques_a_inclure}}}
|
|
<INCLURE{fond=inclure/rss-liste-items-breves}{env}{id_rubrique=#GET{id_rubrique}}>
|
|
|
|
</channel>
|
|
|
|
</rss>
|
|
]
|