v0.2.0 : podlove fonctionnel et avance d'intégration
This commit is contained in:
parent
d664840a3d
commit
c20253b219
@ -196,6 +196,7 @@ function libreavous_declarer_tables_objets_sql($tables) {
|
||||
'ogg' => 'varchar(255) NOT NULL DEFAULT ""',
|
||||
'drupal_guid' => 'varchar(255) NOT NULL DEFAULT ""',
|
||||
'drupal_pubdate' => 'varchar(255) NOT NULL DEFAULT ""',
|
||||
'references_sujet' => 'text NOT NULL DEFAULT ""',
|
||||
'maj' => 'timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP'
|
||||
),
|
||||
'key' => array(
|
||||
|
22
formulaires/configurer_libreavous.html
Normal file
22
formulaires/configurer_libreavous.html
Normal file
@ -0,0 +1,22 @@
|
||||
<div class="formulaire_spip formulaire_configurer formulaire_#FORM">
|
||||
|
||||
<h3 class="titrem"><:libreavous:titre_page_configurer_libreavous:/></h3>
|
||||
|
||||
[<p class="reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})</p>]
|
||||
[<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>]
|
||||
|
||||
<form method="post" action="#ENV{action}">
|
||||
<div>
|
||||
#ACTION_FORMULAIRE{#ENV{action}}
|
||||
<ul class="editer-groupe">
|
||||
|
||||
[(#SAISIE{textarea,licence,
|
||||
label=<:libreavous:licence_label:>,
|
||||
explication=<:libreavous:licence_explications:>,
|
||||
inserer_barre=edition})]
|
||||
|
||||
</ul>
|
||||
<p class="boutons"><span class="image_loading"> </span><input type="submit" class="submit" value="<:bouton_enregistrer:/>" /></p>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
@ -58,6 +58,7 @@ function libreavous_upgrade($nom_meta_base_version, $version_cible) {
|
||||
cextras_api_upgrade(libreavous_declarer_champs_extras(), $maj['0.0.1']);
|
||||
|
||||
$maj['0.1.0'] = array(array('maj_tables', array('spip_chapitres')));
|
||||
$maj['0.1.1'] = array(array('maj_tables', array('spip_chapitres')));
|
||||
|
||||
include_spip('base/upgrade');
|
||||
maj_plugin($nom_meta_base_version, $version_cible, $maj);
|
||||
|
@ -13,12 +13,12 @@ function filtre_decode_html($texte) {
|
||||
return html_entity_decode($texte);
|
||||
}
|
||||
|
||||
function filtre_mes_supp_numero($texte) {
|
||||
function filtre_libreavous_supp_numero($texte) {
|
||||
$idx = strpos($texte, "-");
|
||||
return trim(substr($texte, $idx +1));
|
||||
}
|
||||
|
||||
function balise_MES_IMPORT($p) {
|
||||
function balise_LIBREAVOUS_IMPORT($p) {
|
||||
$id_rubrique = "''";
|
||||
$id_secteur = "''";
|
||||
if (($v = interprete_argument_balise(1,$p))!==NULL){
|
||||
@ -27,11 +27,11 @@ $id_secteur = "''";
|
||||
$id_secteur = $v;
|
||||
}
|
||||
}
|
||||
$p->code = "mes_Import()";
|
||||
$p->code = "libreavous_Import()";
|
||||
return $p;
|
||||
}
|
||||
|
||||
function mes_Import_Historique() {
|
||||
function libreavous_Import_Historique() {
|
||||
$historique = simplexml_load_file ("/var/www/exemole.fr/libreavous/historique.xml");
|
||||
foreach ($historique->item as $item) {
|
||||
$code = $item['code'];
|
||||
@ -62,7 +62,7 @@ function mes_Import_Historique() {
|
||||
}
|
||||
}
|
||||
|
||||
function mes_Import($id_rubrique, $id_secteur) {
|
||||
function libreavous_Import($id_rubrique, $id_secteur) {
|
||||
$emissions = simplexml_load_file ("/var/www/exemole.fr/libreavous/verspip.xml");
|
||||
foreach ($emissions->emission as $emission) {
|
||||
$code = $emission["code"];
|
||||
@ -79,7 +79,7 @@ function mes_Import($id_rubrique, $id_secteur) {
|
||||
'ps' => "",
|
||||
'statut' => 'publie',
|
||||
'accepter_forum' => 'non',
|
||||
'date' => mes_toDateIso($emission["code"]),
|
||||
'date' => libreavous_toDateIso($emission["code"]),
|
||||
'podcast_code' => $emission["code"],
|
||||
'podcast_duree' => $emission["duree"],
|
||||
'podcast_mp3' => $emission["mp3"],
|
||||
@ -126,37 +126,22 @@ function mes_Import($id_rubrique, $id_secteur) {
|
||||
}
|
||||
}
|
||||
|
||||
function mes_toDateIso($code) {
|
||||
function libreavous_toDateIso($code) {
|
||||
$texte = substr($code, 0, 4)."-".substr($code,4,2)."-".substr($code,6,2)." 15:30:00";
|
||||
return $texte;
|
||||
}
|
||||
|
||||
function filtre_mes_mio($number) {
|
||||
$mio = round($number / (1024 * 1024), 1);
|
||||
if ($mio < 10) {
|
||||
$mio = round($mio, 2);
|
||||
return number_format($mio, 2, ',', ' ');
|
||||
} else if ($mio < 100) {
|
||||
$mio = round($mio, 1);
|
||||
return number_format($mio, 1, ',', ' ');
|
||||
} else {
|
||||
$mio = round($mio, 0);
|
||||
return number_format($mio, 0, ',', ' ');
|
||||
}
|
||||
return $mio;
|
||||
}
|
||||
|
||||
function filtre_mes_conversionDrupal($shortdate) {
|
||||
function filtre_libreavous_conversionDrupal($shortdate) {
|
||||
$annee = substr($shortdate, 0, 4);
|
||||
$mois = substr($shortdate, 4, 2);
|
||||
$jour = substr($shortdate, 6, 2);
|
||||
if (substr($jour, 0, 1) == "0") {
|
||||
$jour = substr($jour, 1, 1);
|
||||
}
|
||||
return $jour."-".mes_conversionMoisDrupal($mois)."-".$annee;
|
||||
return $jour."-".libreavous_conversionMoisDrupal($mois)."-".$annee;
|
||||
}
|
||||
|
||||
function mes_conversionMoisDrupal($mois) {
|
||||
function libreavous_conversionMoisDrupal($mois) {
|
||||
switch($mois) {
|
||||
case "01":
|
||||
return "janvier";
|
||||
@ -187,4 +172,16 @@ function mes_conversionMoisDrupal($mois) {
|
||||
}
|
||||
}
|
||||
|
||||
function libreavous_nomtypesujet($abbr) {
|
||||
switch($abbr) {
|
||||
case "CH":
|
||||
return "Chronique";
|
||||
case "SL":
|
||||
return "Sujet libre";
|
||||
case "AN":
|
||||
return "Annonce";
|
||||
default:
|
||||
return $abbr;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
<paquet
|
||||
prefix="libreavous"
|
||||
categorie="squelette"
|
||||
version="0.2.0"
|
||||
schema="0.1.0"
|
||||
version="0.2.2"
|
||||
schema="0.1.1"
|
||||
etat="dev"
|
||||
compatibilite="[3.2.8;4.0.*]"
|
||||
>
|
||||
@ -28,6 +28,6 @@
|
||||
<pipeline nom="boite_infos" inclure="libreavous_pipelines.php" />
|
||||
<pipeline nom="objet_compte_enfants" inclure="libreavous_pipelines.php" />
|
||||
|
||||
<!-- <menu nom="configurer_librealire" titre="librealire:options_lal" parent="menu_squelette" icone="images/baz_april-16.png" /> -->
|
||||
<!-- <menu nom="configurer_librealire" titre="librealire:options_lal" parent="menu_squelette" icone="images/baz_april-16.png" /> -->
|
||||
|
||||
</paquet>
|
||||
|
7
prive/squelettes/contenu/configurer_libreavous.html
Normal file
7
prive/squelettes/contenu/configurer_libreavous.html
Normal file
@ -0,0 +1,7 @@
|
||||
[(#AUTORISER{configurer,_libreavous}|sinon_interdire_acces)]
|
||||
|
||||
<h1 class="grostitre"><:libreavous:titre_page_configurer:/></h1>
|
||||
|
||||
<div class="ajax">
|
||||
#FORMULAIRE_CONFIGURER_LIBREAVOUS
|
||||
</div>
|
@ -38,15 +38,15 @@
|
||||
<h2>#TITRE</h2>
|
||||
<p>
|
||||
Dans <BOUCLE_article(ARTICLES){id_article}>
|
||||
<a href="#URL_ARTICLE">#[(#SURTITRE)] - [(#TITRE|mes_supp_numero)]</a>
|
||||
<a href="#URL_ARTICLE">#[(#SURTITRE)] - [(#TITRE|libreavous_supp_numero)]</a>
|
||||
</BOUCLE_article>
|
||||
</p>
|
||||
[<h3 class="spip">Références</h3>
|
||||
(#REFERENCES_SUJET|propre)]
|
||||
<h3 class="spip">Fichiers</h3>
|
||||
<ul>
|
||||
<li><a href="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#CODE_PODCAST)]/libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].ogg">libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].ogg</a> ([(#OGG|mes_mio)] Mio)</li>
|
||||
<li><a href="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#CODE_PODCAST)]/libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].mp3">libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].mp3</a> ([(#MP3|mes_mio)] Mio)</li>
|
||||
<li><a href="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#CODE_PODCAST)]/libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].ogg">libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].ogg</a> ([(#OGG|taille_en_octets)] Mio)</li>
|
||||
<li><a href="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#CODE_PODCAST)]/libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].mp3">libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].mp3</a> ([(#MP3|taille_en_octets)] Mio)</li>
|
||||
</ul>
|
||||
</BOUCLE_chroniques>
|
||||
|
||||
|
@ -3,19 +3,19 @@
|
||||
<article>
|
||||
|
||||
<header class="cartouche">
|
||||
|
||||
<h1></h1>
|
||||
|
||||
|
||||
<h1><span class="surtitre #EDIT{surtitre}">#[(#SURTITRE)] - </span><span class="#EDIT{titre} article__titre">[(#TITRE|mes_supp_numero)]</span>[
|
||||
|
||||
<p class="article__infos">
|
||||
<span class="num_emission #EDIT{surtitre}">#[(#SURTITRE)]</span>
|
||||
[<span class="article__date">Émission du [(#DATE|jour)/][(#DATE|mois)/](#DATE|annee)</span>]
|
||||
</p>
|
||||
|
||||
<h1><span class="#EDIT{titre} article__titre">[(#TITRE|libreavous_supp_numero)]</span>[
|
||||
<small class="#EDIT{soustitre} soustitre">(#SOUSTITRE)</small>
|
||||
]</h1>
|
||||
|
||||
<p><a href="https://april.org/libre-a-vous-diffusee-mardi-[(#PODCAST_CODE|mes_conversionDrupal)]-sur-radio-cause-commune">Page originale sur le site de l'April</a></p>
|
||||
|
||||
<p class="article__infos">
|
||||
[<span class="article__date">Émission Libre à vous du (#DATE|nom_jour) [(#DATE|affdate)]</span>]
|
||||
</p>
|
||||
|
||||
#FORMULAIRE_NOTATION
|
||||
|
||||
|
||||
<div class="postmeta">
|
||||
#MODELE{article_traductions}
|
||||
@ -34,60 +34,66 @@
|
||||
|
||||
<div class="main">
|
||||
|
||||
<div class="fb">
|
||||
|
||||
[<div class="emission-Programme">(#CHAPO)</div>]
|
||||
<!-- Zone Podlove -->
|
||||
[<div id="podlove">
|
||||
</div>
|
||||
<script>
|
||||
podlovePlayer('#podlove', '(#URL_PAGE{podlove_json}|parametre_url{id_article,#ID_ARTICLE,&})');
|
||||
</script>
|
||||
]<!-- / Zone Podlove -->
|
||||
|
||||
<ul class="telecharger">
|
||||
<li><a href="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#PODCAST_CODE)]/libre-a-vous-[(#PODCAST_CODE)].ogg">libre-a-vous-[(#PODCAST_CODE)].ogg</a> ([(#PODCAST_OGG|taille_en_octets)])</li>
|
||||
<li><a href="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#PODCAST_CODE)]/libre-a-vous-[(#PODCAST_CODE)].mp3">libre-a-vous-[(#PODCAST_CODE)].mp3</a> ([(#PODCAST_MP3|taille_en_octets)])</li>
|
||||
</ul>
|
||||
|
||||
[<div class="emission-Programme #EDIT{chapo}">(#CHAPO)</div>]
|
||||
|
||||
[<h2>Transcription</h2> <p><a href="#PODCAST_TRANSCRIPTION">(#PODCAST_TRANSCRIPTION)</a></p>]
|
||||
[<h2>Transcription</h2> <p><a href="#PODCAST_TRANSCRIPTION" class="#EDIT{podcast_transcription}">(#PODCAST_TRANSCRIPTION)</a></p>]
|
||||
|
||||
<!-- Zone Podlove -->
|
||||
<h2>Écouter</h2>
|
||||
<div id="podlove">
|
||||
</div>
|
||||
<script>
|
||||
podlovePlayer('#podlove', 'podlove-#ID_ARTICLE.json?var_mode=recalcul');
|
||||
</script>
|
||||
<!-- / Zone Podlove -->
|
||||
|
||||
[<h2>Galerie photos</h2>
|
||||
<div class="">(#PODCAST_GALERIEPHOTOS|propre)</div>
|
||||
]
|
||||
[<h2>Personnes participantes</h2>
|
||||
<div class="">(#PODCAST_PERSONNES|propre)</div>
|
||||
]
|
||||
[<h2>Pauses musicales</h2>
|
||||
<div class="">(#PODCAST_MUSIQUE|propre)</div>
|
||||
]
|
||||
<h2>Références</h2>
|
||||
<div class="emission-References">
|
||||
[(#TEXTE)]
|
||||
[<div class="fl">
|
||||
<h2 id="galeriephotos">Galerie photos</h2>
|
||||
<div class="#EDIT{podcast_galeriephotos}">(#PODCAST_GALERIEPHOTOS|propre)</div>
|
||||
</div>]
|
||||
|
||||
<div class="fb">
|
||||
|
||||
[<h2 id="personnesparticipantes">Personnes participantes</h2>
|
||||
<div class="#EDIT{podcast_personnes}">(#PODCAST_PERSONNES|propre)</div>]
|
||||
|
||||
[<h2 id="pausesmusicales">Pauses musicales</h2>
|
||||
<div class="#EDIT{podcast_musique}">(#PODCAST_MUSIQUE|propre)</div>]
|
||||
|
||||
[<h2 id="references">Références</h2>
|
||||
<div class="emission-references texte #EDIT{texte}">(#TEXTE)</div>]
|
||||
|
||||
<B_chapitres_references_chroniques>
|
||||
<h3 class="spip">Références des chroniques</h3>
|
||||
<BOUCLE_chapitres_references_chroniques(CHAPITRES){id_article}{type_sujet=CH}>
|
||||
[<h4>#TITRE</h4>
|
||||
(#REFERENCES_SUJET|propre)]
|
||||
</BOUCLE_chapitres_references_chroniques>
|
||||
|
||||
|
||||
[(#REM)
|
||||
<h2>Chapitres</h2>
|
||||
<ul>
|
||||
<BOUCLE_chapitres(CHAPITRES){id_article}>
|
||||
<li>
|
||||
<strong>[(#TYPE_SUJET|libreavous_nomtypesujet) : ]</strong> [(<a href="spip.php?page=chronique&chronique=#CHRONIQUE">(#CHRONIQUE)</a>)] #TITRE
|
||||
<ul>
|
||||
<li><a href="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#CODE_PODCAST)]/libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].ogg">libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].ogg</a> ([(#OGG|taille_en_octets)])</li>
|
||||
<li><a href="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#CODE_PODCAST)]/libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].mp3">libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].mp3</a> ([(#MP3|taille_en_octets)])</li>
|
||||
</ul>
|
||||
</li>
|
||||
</BOUCLE_chapitres>
|
||||
</ul>
|
||||
]
|
||||
</div>
|
||||
<B_chapitres_references_chroniques>
|
||||
<h3 class="spip">Références des chroniques</h3>
|
||||
<BOUCLE_chapitres_references_chroniques(CHAPITRES){id_article}{type_sujet IN 'CH'}>
|
||||
[<h4>#TITRE</h4>
|
||||
(#REFERENCES_SUJET|propre)]
|
||||
</BOUCLE_chapitres_references_chroniques>
|
||||
|
||||
|
||||
<h2>Télécharger</h2>
|
||||
<ul>
|
||||
<li><a href="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#PODCAST_CODE)]/libre-a-vous-[(#PODCAST_CODE)].ogg">libre-a-vous-[(#PODCAST_CODE)].ogg</a> ([(#PODCAST_OGG|mes_mio)] Mio)</li>
|
||||
<li><a href="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#PODCAST_CODE)]/libre-a-vous-[(#PODCAST_CODE)].mp3">libre-a-vous-[(#PODCAST_CODE)].mp3</a> ([(#PODCAST_MP3|mes_mio)] Mio)</li>
|
||||
</ul>
|
||||
|
||||
<h2>Chapitres</h2>
|
||||
<ul>
|
||||
<BOUCLE_chapitres(CHAPITRES){id_article}>
|
||||
<li>
|
||||
<p><strong>#TYPE_SUJET</strong> [(<a href="spip.php?page=chronique&chronique=#CHRONIQUE">(#CHRONIQUE)</a>)] #TITRE</p>
|
||||
<ul>
|
||||
<li><a href="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#CODE_PODCAST)]/libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].ogg">libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].ogg</a> ([(#OGG|mes_mio)] Mio)</li>
|
||||
<li><a href="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#CODE_PODCAST)]/libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].mp3">libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].mp3</a> ([(#MP3|mes_mio)] Mio)</li>
|
||||
</ul>
|
||||
</li>
|
||||
</BOUCLE_chapitres>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
[<aside>
|
||||
@ -98,6 +104,8 @@
|
||||
|
||||
[<p class="#EDIT{hyperlien} article__hyperlien"><:voir_en_ligne:/> : <a href="(#URL_SITE)" class="spip_out">[(#NOM_SITE|sinon{[(#URL_SITE|couper{80})]})]</a></p>]
|
||||
|
||||
[<div class="licence">(#CONFIG{libreavous/licence}|propre)</div>]
|
||||
|
||||
[<div class="article__notes">(#NOTES)</div>]
|
||||
|
||||
</footer>
|
||||
|
@ -11,14 +11,14 @@
|
||||
<h2>#TITRE</h2>
|
||||
<p>
|
||||
Dans <BOUCLE_article(ARTICLES){id_article}>
|
||||
<a href="#URL_ARTICLE">#[(#SURTITRE)] - [(#TITRE|mes_supp_numero)]</a>
|
||||
<a href="#URL_ARTICLE">#[(#SURTITRE)] - [(#TITRE|libreavous_supp_numero)]</a>
|
||||
</BOUCLE_article>
|
||||
</p>
|
||||
[<h3 class="spip">Références</h3>
|
||||
(#REFERENCES_SUJET|propre)]
|
||||
<h3 class="spip">Fichiers</h3>
|
||||
<ul>
|
||||
<li><a href="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#CODE_PODCAST)]/libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].ogg">libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].ogg</a> ([(#OGG|mes_mio)] Mio)</li>
|
||||
<li><a href="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#CODE_PODCAST)]/libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].mp3">libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].mp3</a> ([(#MP3|mes_mio)] Mio)</li>
|
||||
<li><a href="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#CODE_PODCAST)]/libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].ogg">libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].ogg</a> ([(#OGG|taille_en_octets)] Mio)</li>
|
||||
<li><a href="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#CODE_PODCAST)]/libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].mp3">libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].mp3</a> ([(#MP3|taille_en_octets)] Mio)</li>
|
||||
</ul>
|
||||
</BOUCLE_chroniques>
|
||||
|
@ -8,7 +8,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<p>Importation vers : #TITRE</p>
|
||||
#MES_IMPORT{#ID_RUBRIQUE,#ID_SECTEUR}
|
||||
#LIBREAVOUS_IMPORT{#ID_RUBRIQUE,#ID_SECTEUR}
|
||||
</body>
|
||||
</html>
|
||||
</BOUCLE_principale>
|
||||
|
@ -3,5 +3,3 @@
|
||||
[<meta name="description" content="(#INTRODUCTION|couper{150}|textebrut)" />]
|
||||
[<link rel="canonical" href="(#URL_ARTICLE|url_absolue)" />]
|
||||
</BOUCLE_article_head>
|
||||
<!-- Script Podlove -->
|
||||
[<script src="(#CHEMIN{javascript/podlove/embed.js})"></script>]
|
||||
|
30
squelettes/inclure/head.html
Normal file
30
squelettes/inclure/head.html
Normal file
@ -0,0 +1,30 @@
|
||||
[(#REM)
|
||||
Head standard de toutes les pages ; les elements specifiques
|
||||
(title, description) figurent dans le squelette article.html
|
||||
]
|
||||
|
||||
<meta name="generator" content="SPIP[ (#SPIP_VERSION)]" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
#INSERT_HEAD_CSS
|
||||
|
||||
#INSERT_HEAD
|
||||
|
||||
[<link rel="stylesheet" href="(#CSS{css/spip.css})" type="text/css" />]
|
||||
[<link rel="stylesheet" href="(#CSS{css/media.css})" type="text/css" />]
|
||||
|
||||
[(#REM) Thème SCSS du plugin ]
|
||||
[<link rel="stylesheet" href="(#CSS{scss/baz_fonts.css})" type="text/css" />]
|
||||
[<link rel="stylesheet" href="(#CSS{scss/theme.css})" type="text/css" />]
|
||||
[<link rel="stylesheet" href="(#CSS{css/perso.css})" type="text/css" />]
|
||||
|
||||
[(#REM) scripts génériques ]
|
||||
[<script type="text/javascript" src="(#CHEMIN{javascript/script.js}|timestamp)"></script>]
|
||||
[<script type="text/javascript" src="(#CHEMIN{javascript/perso.js}|timestamp)"></script>]
|
||||
|
||||
[(#REM) flux RSS ]
|
||||
[<link rel="alternate" type="application/rss+xml" title="<:syndiquer_site:/>" href="(#URL_PAGE{backend}|url_absolue)" />]
|
||||
|
||||
<!-- Script Podlove -->
|
||||
[<script src="(#CHEMIN{javascript/podlove/embed.js})"></script>]
|
||||
<!-- / Script Podlove -->
|
File diff suppressed because one or more lines are too long
64
squelettes/json/podlove.html
Normal file
64
squelettes/json/podlove.html
Normal file
@ -0,0 +1,64 @@
|
||||
<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": {
|
||||
"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",
|
||||
"tabFiles",
|
||||
"tabInfo",
|
||||
[(#REM)"tabShare",]
|
||||
"tabTranscripts"
|
||||
],
|
||||
"title": "#[(#SURTITRE)] - [(#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}>
|
||||
{
|
||||
"start": "[(#DEBUT)]" ,
|
||||
"title": "[(#TITRE|decode_html|textebrut|escape_json)]"
|
||||
}[(#COMPTEUR_BOUCLE|<{#TOTAL_BOUCLE}|?{',',''})]
|
||||
</BOUCLE_chapitres>
|
||||
]
|
||||
}
|
||||
</BOUCLE_principale>
|
@ -1,6 +0,0 @@
|
||||
<BOUCLE_principale(RUBRIQUES) {id_rubrique}>
|
||||
<div class="importons">
|
||||
<p>Importation vers : #TITRE</p>
|
||||
#MES_IMPORT{#ID_RUBRIQUE,#ID_SECTEUR}
|
||||
</div>
|
||||
</BOUCLE_principale>
|
@ -1,6 +0,0 @@
|
||||
<BOUCLE_principale(RUBRIQUES) {id_rubrique}>
|
||||
<div class="importons">
|
||||
<p>Importation vers : #TITRE</p>
|
||||
#MES_IMPORT{#ID_RUBRIQUE,#ID_SECTEUR}
|
||||
</div>
|
||||
</BOUCLE_principale>
|
2
squelettes/podlove_json.html
Normal file
2
squelettes/podlove_json.html
Normal file
@ -0,0 +1,2 @@
|
||||
#HTTP_HEADER{Content-Type: application/json; charset=#CHARSET}
|
||||
[(#INCLURE{fond=json/podlove,env})]
|
@ -14,6 +14,9 @@ $typo-titre: 'Metropolis', sans-serif;
|
||||
|
||||
$typo-texte: $typo-labeur;
|
||||
|
||||
$couleur-titres: $couleurPrincipale;
|
||||
$couleur-lien: $couleurPrincipale;
|
||||
|
||||
body {
|
||||
$_computed_bfs: strip-unit($body-font-size) / strip-unit($_base-font-size);
|
||||
font-size: $_computed_bfs * (14/strip-unit($body-font-size))*1em;
|
||||
@ -30,7 +33,7 @@ body {
|
||||
font-family: $typo-texte;
|
||||
font-weight: normal;
|
||||
line-height: $typo-line-height;
|
||||
color: $couleur-texte;
|
||||
color: $couleurPrincipale;
|
||||
text-rendering: geometricPrecision;
|
||||
}
|
||||
|
||||
@ -40,10 +43,14 @@ html.rtl * {
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: $couleur-lien;
|
||||
border-bottom:1px solid $couleurSecondaire;
|
||||
text-decoration:none;
|
||||
&.spip_out {
|
||||
color: $couleurTertiaire;
|
||||
border-bottom-color:$couleurTertiaire;
|
||||
}
|
||||
&:hover, &:focus {
|
||||
text-decoration: underline;
|
||||
text-decoration: none;
|
||||
color: $couleur-lien-hover;
|
||||
border-color: $couleur-lien-hover;
|
||||
outline: 0;
|
||||
@ -58,6 +65,9 @@ a {
|
||||
//fill: white !important;
|
||||
}
|
||||
}*/
|
||||
.sociaux & {
|
||||
border:0;
|
||||
}
|
||||
}
|
||||
|
||||
.nav.principale {
|
||||
@ -87,9 +97,9 @@ h6, .h6,
|
||||
}
|
||||
|
||||
h1, .h1 {
|
||||
font-size: em(26px);
|
||||
font-size: em(35px);
|
||||
@include media($bp-medium-up) {
|
||||
font-size: em(30px);
|
||||
font-size: em(50px);
|
||||
}
|
||||
}
|
||||
|
||||
|
BIN
squelettes/scss/img/delete.png
Normal file
BIN
squelettes/scss/img/delete.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 169 B |
BIN
squelettes/scss/img/star.png
Normal file
BIN
squelettes/scss/img/star.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
@ -117,23 +117,52 @@
|
||||
.page_content, .page_aside {
|
||||
width:100%;
|
||||
margin:0 0 ($spacer*2);
|
||||
padding:$spacer;
|
||||
padding:$spacer ($spacer*4);
|
||||
}
|
||||
.page_content {
|
||||
background-color:white;
|
||||
}
|
||||
|
||||
.surtitre {
|
||||
.article__infos {
|
||||
position:relative;
|
||||
height:auto;
|
||||
margin:0;
|
||||
width: auto;
|
||||
white-space: inherit;
|
||||
clip: unset;
|
||||
clip-path: unset;
|
||||
font-size:1em;
|
||||
margin:-$spacer 0 0 -($spacer*4);
|
||||
overflow:visible;
|
||||
}
|
||||
.num_emission {
|
||||
display:inline-block;
|
||||
width:150px;
|
||||
margin:-1rem 0 0 -1rem;
|
||||
padding:0.5rem;
|
||||
margin-right:1.5rem;
|
||||
font-weight:700;
|
||||
font-size:2.4rem;
|
||||
font-size:2.8rem;
|
||||
text-align:center;
|
||||
color:$couleurSecondaire;
|
||||
background:$couleurBackgroundTexte;
|
||||
font-family:$typo-titre;
|
||||
|
||||
}
|
||||
.article_emission {
|
||||
.article__date {
|
||||
font-size:1.5rem;
|
||||
color:$couleurSecondaire;
|
||||
font-weight:700;
|
||||
font-family:$typo-titre;
|
||||
}
|
||||
}
|
||||
|
||||
div.star-rating, div.star-rating a {
|
||||
background-image:url('img/star.png');
|
||||
}
|
||||
div.rating-cancel a {
|
||||
background-image:url('img/delete.png');
|
||||
}
|
||||
|
||||
.sociaux .socicon {
|
||||
display: inline-block;
|
||||
|
@ -8,6 +8,9 @@ $couleurSecondaire: #f7651a;
|
||||
/* $blancTransparent: rgba(white,0.7); */
|
||||
|
||||
$couleurBackgroundTexte: #ffe9e0;
|
||||
$couleurTertiaire: #00c4f5;
|
||||
|
||||
$couleur-lien-hover: $couleurTertiaire;
|
||||
|
||||
|
||||
$container-width: 1100px;
|
||||
|
Loading…
Reference in New Issue
Block a user