surcharge inc-rss-item + logo cause commune
This commit is contained in:
parent
de15896b80
commit
7cc5be7d35
@ -16,5 +16,6 @@
|
||||
|
||||
<div class="colophon">
|
||||
<span class="april"><img src="#CHEMIN{images/logo_april_b.png}" alt="logo APRIL" /></span>
|
||||
<span class="april"><img src="#CHEMIN{images/logo-cause-commune.png}" alt="logo Cause Commune" /></span>
|
||||
#INCLURE{fond=inclure/menu, env, identifiant=pied}
|
||||
</div
|
||||
|
BIN
squelettes/images/logo-cause-commune-20180828.png
Normal file
BIN
squelettes/images/logo-cause-commune-20180828.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 38 KiB |
BIN
squelettes/images/logo-cause-commune.png
Normal file
BIN
squelettes/images/logo-cause-commune.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
84
squelettes/inc-rss-item.html
Normal file
84
squelettes/inc-rss-item.html
Normal file
@ -0,0 +1,84 @@
|
||||
<BOUCLE_un_article(ARTICLES){id_article}{id_rubrique IN 1,8}>
|
||||
<item>
|
||||
<title>[(#TITRE|attribut_html|texte_backend)]</title>
|
||||
<link>[(#URL_ARTICLE|url_absolue)]</link>
|
||||
[<guid isPermaLink="false">(#DRUPAL_GUID|supprimer_tags|texte_backend)</guid>]
|
||||
[(#REM)
|
||||
[<pubDate>(#DRUPAL_PUBDATE)</pubDate>]
|
||||
]
|
||||
[(#DRUPAL_PUBDATE|choixsivide{<pubDate>[(#DATE|date_822)]</pubDate>,<pubDate>#DRUPAL_PUBDATE</pubDate>})]
|
||||
|
||||
[(#PODCAST_CODE|choixsivide{"",<enclosure length="0" type="audio/ogg" url="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#PODCAST_CODE)]/libre-a-vous-[(#PODCAST_CODE)].ogg"/>
|
||||
<enclosure length="0" type="audio/mpeg" url="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#PODCAST_CODE)]/libre-a-vous-[(#PODCAST_CODE)].mp3"/>})]
|
||||
|
||||
[(#REM)
|
||||
Le bloc qui suit diffuse les mots-cles a la mode RSS
|
||||
|
||||
]<BOUCLE_mots_rss(MOTS){id_article}>
|
||||
[<dc:subject>(#TITRE|texte_backend)</dc:subject>]</BOUCLE_mots_rss>
|
||||
|
||||
<description>[(#INTRODUCTION|texte_backend)]
|
||||
|
||||
[(#REM)
|
||||
Le bloc qui suit diffuse la rubrique et les mots-cles
|
||||
sous forme de "microformats"
|
||||
|
||||
]<BOUCLE_rubrique_mf(RUBRIQUES){id_rubrique}>-
|
||||
[<a href="[(#URL_RUBRIQUE|url_absolue)]" rel="directory">(#TITRE|supprimer_tags|texte_backend)</a>]
|
||||
</BOUCLE_rubrique_mf><B_mots_mf>
|
||||
/ <BOUCLE_mots_mf(MOTS){id_article}{", "}>
|
||||
[<a href="[(#URL_MOT|url_absolue)]" rel="tag">(#TITRE|texte_backend)</a>]</BOUCLE_mots_mf>
|
||||
|
||||
</description>
|
||||
|
||||
[(#REM)
|
||||
Le bloc qui suit diffuse aussi le texte integral de l'article,
|
||||
ce qui permet une syndication plus riche (mais plus "lourde").
|
||||
Fonction desactivable depuis les reglages du site.
|
||||
][
|
||||
(#CONFIG{syndication_integrale}|=={oui}|?{' ',''})<content:encoded>[(#LOGO_ARTICLE{right}|image_reduire{150,150}|texte_backend)
|
||||
][<div class='rss_chapo'>(#CHAPO|texte_backend)</div>
|
||||
][<div class='rss_texte'>(#TEXTE|
|
||||
image_reduire{500,0}|texte_backend)</div>
|
||||
][<div class="hyperlien"><:voir_en_ligne|html2unicode:> : <a href="(#URL_SITE)" class="spip_out">[(#NOM_SITE|sinon{[(#URL_SITE|couper{80})]}|texte_backend)]</a></div>
|
||||
][<hr />
|
||||
<div class='rss_notes'>(#NOTES|texte_backend)</div>
|
||||
][<div class='rss_ps'>(#PS|texte_backend)</div>]
|
||||
</content:encoded>
|
||||
]
|
||||
|
||||
[(#REM)
|
||||
Le bloc qui suit diffuse l'adresse des documents associes aux articles ;
|
||||
ajouter par ex. {extension=mp3} pour limiter a un certain type de document.
|
||||
] <BOUCLE_documents(DOCUMENTS){id_article}{mode=document}{doublons}>[
|
||||
<enclosure url="(#URL_DOCUMENT|url_absolue|unique)"[ length="(#TAILLE)"][ type="(#MIME_TYPE)"] />]
|
||||
</BOUCLE_documents>
|
||||
|
||||
</item>
|
||||
</BOUCLE_un_article>
|
||||
|
||||
<BOUCLE_chapitres(CHAPITRES){id_article}>
|
||||
|
||||
<item>
|
||||
<title>[(#TITRE|attribut_html|texte_backend)]</title>
|
||||
<link>[(#URL_ARTICLE|url_absolue)]</link>
|
||||
[<guid isPermaLink="false">(#DRUPAL_GUID|supprimer_tags|texte_backend)</guid>]
|
||||
[<pubDate>(#DRUPAL_PUBDATE)</pubDate>]
|
||||
<enclosure length="0" type="audio/ogg" url="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#CODE_PODCAST)]/libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].ogg"/>
|
||||
<enclosure length="0" type="audio/mpeg" url="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#CODE_PODCAST)]/libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].mp3"/>
|
||||
<description>[(#INTRODUCTION|texte_backend)]
|
||||
[(#REM)
|
||||
Le bloc qui suit diffuse la rubrique et les mots-cles
|
||||
sous forme de "microformats"
|
||||
|
||||
]<BOUCLE_rubrique_mf(RUBRIQUES){id_rubrique}>-
|
||||
[<a href="[(#URL_RUBRIQUE|url_absolue)]" rel="directory">(#TITRE|supprimer_tags|texte_backend)</a>]
|
||||
</BOUCLE_rubrique_mf><B_mots_mf>
|
||||
/ <BOUCLE_mots_mf(MOTS){id_article}{", "}>
|
||||
[<a href="[(#URL_MOT|url_absolue)]" rel="tag">(#TITRE|texte_backend)</a>]</BOUCLE_mots_mf>
|
||||
|
||||
</description>
|
||||
|
||||
</item>
|
||||
|
||||
</BOUCLE_chapitres>
|
Loading…
Reference in New Issue
Block a user