libreavous/squelettes/json/podlove.html

64 lines
1.9 KiB
HTML

<BOUCLE_principale(ARTICLES) {id_article}>
{
"show": {
"title": "[(#NOM_SITE_SPIP|textebrut|escape_json)]",
["subtitle": "(#SLOGAN_SITE_SPIP|textebrut|escape_json)",]
"summary": "[(#DESCRIPTIF_SITE_SPIP|textebrut|escape_json)]",
"poster": "#URL_SITE_SPIP/[(#LOGO_SITE_SPIP|extraire_attribut{src})]",
"link": "#URL_SITE_SPIP"
},
"reference": {
"base": "/node_modules/@podlove/podlove-web-player/dist",
"config": "[(#URL_PAGE{podlove_json}|parametre_url{id_article,#ID_ARTICLE,&})]"
},
"theme": {
"main":"#edf1f5",
"highlight":"#005184"
},
"visibleComponents": [
"controlChapters",
"controlSteppers",
"episodeTitle",
"poster",
"progressbar",
"showTitle",
"subtitle",
"tabAudio",
"tabChapters",
[(#REM)"tabShare",]
"tabTranscripts"
],
"title": "#[(#TITRE|mes_supp_numero|decode_html|textebrut|escape_json)]",
"subtitle": "Émission du [(#DATE|nom_jour)] [(#DATE|affdate)]",
"summary": "[(#DESCRIPTIF|textebrut|escape_json)]",
"publicationDate": "[(#DATE|date_iso)]",
"poster": "#URL_SITE_SPIP/[(#LOGO_ARTICLE_RUBRIQUE|extraire_attribut{src})]",
"link": "#URL_SITE_SPIP/#URL_ARTICLE",
"duration":"#PODCAST_DUREE",
"audio": [
{
"url": "https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/#PODCAST_CODE/libre-a-vous-#PODCAST_CODE.ogg",
"size": "#PODCAST_OGG",
"title": "Ogg Vorbis Audio (oga)",
"mimeType": "audio/ogg"
},
{
"url": "https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/#PODCAST_CODE/libre-a-vous-#PODCAST_CODE.mp3",
"size":"#PODCAST_MP3",
"title":"MP3 Audio (mp3)"
,"mimeType":"audio/mpeg"
}
],
"chapters": [
<BOUCLE_chapitres(CHAPITRES){id_article}{par debut}>
{
"start": "[(#DEBUT)]" ,
"title": "[(#TITRE|decode_html|textebrut|escape_json)]"
}[(#COMPTEUR_BOUCLE|<{#TOTAL_BOUCLE}|?{',',''})]
</BOUCLE_chapitres>
]
}
</BOUCLE_principale>