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 ""',
|
'ogg' => 'varchar(255) NOT NULL DEFAULT ""',
|
||||||
'drupal_guid' => 'varchar(255) NOT NULL DEFAULT ""',
|
'drupal_guid' => 'varchar(255) NOT NULL DEFAULT ""',
|
||||||
'drupal_pubdate' => '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'
|
'maj' => 'timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP'
|
||||||
),
|
),
|
||||||
'key' => array(
|
'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']);
|
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.0'] = array(array('maj_tables', array('spip_chapitres')));
|
||||||
|
$maj['0.1.1'] = array(array('maj_tables', array('spip_chapitres')));
|
||||||
|
|
||||||
include_spip('base/upgrade');
|
include_spip('base/upgrade');
|
||||||
maj_plugin($nom_meta_base_version, $version_cible, $maj);
|
maj_plugin($nom_meta_base_version, $version_cible, $maj);
|
||||||
|
@ -13,12 +13,12 @@ function filtre_decode_html($texte) {
|
|||||||
return html_entity_decode($texte);
|
return html_entity_decode($texte);
|
||||||
}
|
}
|
||||||
|
|
||||||
function filtre_mes_supp_numero($texte) {
|
function filtre_libreavous_supp_numero($texte) {
|
||||||
$idx = strpos($texte, "-");
|
$idx = strpos($texte, "-");
|
||||||
return trim(substr($texte, $idx +1));
|
return trim(substr($texte, $idx +1));
|
||||||
}
|
}
|
||||||
|
|
||||||
function balise_MES_IMPORT($p) {
|
function balise_LIBREAVOUS_IMPORT($p) {
|
||||||
$id_rubrique = "''";
|
$id_rubrique = "''";
|
||||||
$id_secteur = "''";
|
$id_secteur = "''";
|
||||||
if (($v = interprete_argument_balise(1,$p))!==NULL){
|
if (($v = interprete_argument_balise(1,$p))!==NULL){
|
||||||
@ -27,11 +27,11 @@ $id_secteur = "''";
|
|||||||
$id_secteur = $v;
|
$id_secteur = $v;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$p->code = "mes_Import()";
|
$p->code = "libreavous_Import()";
|
||||||
return $p;
|
return $p;
|
||||||
}
|
}
|
||||||
|
|
||||||
function mes_Import_Historique() {
|
function libreavous_Import_Historique() {
|
||||||
$historique = simplexml_load_file ("/var/www/exemole.fr/libreavous/historique.xml");
|
$historique = simplexml_load_file ("/var/www/exemole.fr/libreavous/historique.xml");
|
||||||
foreach ($historique->item as $item) {
|
foreach ($historique->item as $item) {
|
||||||
$code = $item['code'];
|
$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");
|
$emissions = simplexml_load_file ("/var/www/exemole.fr/libreavous/verspip.xml");
|
||||||
foreach ($emissions->emission as $emission) {
|
foreach ($emissions->emission as $emission) {
|
||||||
$code = $emission["code"];
|
$code = $emission["code"];
|
||||||
@ -79,7 +79,7 @@ function mes_Import($id_rubrique, $id_secteur) {
|
|||||||
'ps' => "",
|
'ps' => "",
|
||||||
'statut' => 'publie',
|
'statut' => 'publie',
|
||||||
'accepter_forum' => 'non',
|
'accepter_forum' => 'non',
|
||||||
'date' => mes_toDateIso($emission["code"]),
|
'date' => libreavous_toDateIso($emission["code"]),
|
||||||
'podcast_code' => $emission["code"],
|
'podcast_code' => $emission["code"],
|
||||||
'podcast_duree' => $emission["duree"],
|
'podcast_duree' => $emission["duree"],
|
||||||
'podcast_mp3' => $emission["mp3"],
|
'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";
|
$texte = substr($code, 0, 4)."-".substr($code,4,2)."-".substr($code,6,2)." 15:30:00";
|
||||||
return $texte;
|
return $texte;
|
||||||
}
|
}
|
||||||
|
|
||||||
function filtre_mes_mio($number) {
|
function filtre_libreavous_conversionDrupal($shortdate) {
|
||||||
$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) {
|
|
||||||
$annee = substr($shortdate, 0, 4);
|
$annee = substr($shortdate, 0, 4);
|
||||||
$mois = substr($shortdate, 4, 2);
|
$mois = substr($shortdate, 4, 2);
|
||||||
$jour = substr($shortdate, 6, 2);
|
$jour = substr($shortdate, 6, 2);
|
||||||
if (substr($jour, 0, 1) == "0") {
|
if (substr($jour, 0, 1) == "0") {
|
||||||
$jour = substr($jour, 1, 1);
|
$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) {
|
switch($mois) {
|
||||||
case "01":
|
case "01":
|
||||||
return "janvier";
|
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
|
<paquet
|
||||||
prefix="libreavous"
|
prefix="libreavous"
|
||||||
categorie="squelette"
|
categorie="squelette"
|
||||||
version="0.2.0"
|
version="0.2.2"
|
||||||
schema="0.1.0"
|
schema="0.1.1"
|
||||||
etat="dev"
|
etat="dev"
|
||||||
compatibilite="[3.2.8;4.0.*]"
|
compatibilite="[3.2.8;4.0.*]"
|
||||||
>
|
>
|
||||||
|
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>
|
<h2>#TITRE</h2>
|
||||||
<p>
|
<p>
|
||||||
Dans <BOUCLE_article(ARTICLES){id_article}>
|
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>
|
</BOUCLE_article>
|
||||||
</p>
|
</p>
|
||||||
[<h3 class="spip">Références</h3>
|
[<h3 class="spip">Références</h3>
|
||||||
(#REFERENCES_SUJET|propre)]
|
(#REFERENCES_SUJET|propre)]
|
||||||
<h3 class="spip">Fichiers</h3>
|
<h3 class="spip">Fichiers</h3>
|
||||||
<ul>
|
<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)].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|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|taille_en_octets)] Mio)</li>
|
||||||
</ul>
|
</ul>
|
||||||
</BOUCLE_chroniques>
|
</BOUCLE_chroniques>
|
||||||
|
|
||||||
|
@ -4,18 +4,18 @@
|
|||||||
|
|
||||||
<header class="cartouche">
|
<header class="cartouche">
|
||||||
|
|
||||||
<h1></h1>
|
<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>[
|
||||||
<h1><span class="surtitre #EDIT{surtitre}">#[(#SURTITRE)] - </span><span class="#EDIT{titre} article__titre">[(#TITRE|mes_supp_numero)]</span>[
|
|
||||||
<small class="#EDIT{soustitre} soustitre">(#SOUSTITRE)</small>
|
<small class="#EDIT{soustitre} soustitre">(#SOUSTITRE)</small>
|
||||||
]</h1>
|
]</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">
|
#FORMULAIRE_NOTATION
|
||||||
[<span class="article__date">Émission Libre à vous du (#DATE|nom_jour) [(#DATE|affdate)]</span>]
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<div class="postmeta">
|
<div class="postmeta">
|
||||||
#MODELE{article_traductions}
|
#MODELE{article_traductions}
|
||||||
@ -34,60 +34,66 @@
|
|||||||
|
|
||||||
<div class="main">
|
<div class="main">
|
||||||
|
|
||||||
|
<div class="fb">
|
||||||
[<div class="emission-Programme">(#CHAPO)</div>]
|
|
||||||
|
|
||||||
[<h2>Transcription</h2> <p><a href="#PODCAST_TRANSCRIPTION">(#PODCAST_TRANSCRIPTION)</a></p>]
|
|
||||||
|
|
||||||
<!-- Zone Podlove -->
|
<!-- Zone Podlove -->
|
||||||
<h2>Écouter</h2>
|
[<div id="podlove">
|
||||||
<div id="podlove">
|
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
podlovePlayer('#podlove', 'podlove-#ID_ARTICLE.json?var_mode=recalcul');
|
podlovePlayer('#podlove', '(#URL_PAGE{podlove_json}|parametre_url{id_article,#ID_ARTICLE,&})');
|
||||||
</script>
|
</script>
|
||||||
<!-- / Zone Podlove -->
|
]<!-- / 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" class="#EDIT{podcast_transcription}">(#PODCAST_TRANSCRIPTION)</a></p>]
|
||||||
|
|
||||||
[<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>
|
</div>
|
||||||
|
|
||||||
|
[<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>
|
<B_chapitres_references_chroniques>
|
||||||
<h3 class="spip">Références des chroniques</h3>
|
<h3 class="spip">Références des chroniques</h3>
|
||||||
<BOUCLE_chapitres_references_chroniques(CHAPITRES){id_article}{type_sujet IN 'CH'}>
|
<BOUCLE_chapitres_references_chroniques(CHAPITRES){id_article}{type_sujet=CH}>
|
||||||
[<h4>#TITRE</h4>
|
[<h4>#TITRE</h4>
|
||||||
(#REFERENCES_SUJET|propre)]
|
(#REFERENCES_SUJET|propre)]
|
||||||
</BOUCLE_chapitres_references_chroniques>
|
</BOUCLE_chapitres_references_chroniques>
|
||||||
|
|
||||||
|
|
||||||
<h2>Télécharger</h2>
|
[(#REM)
|
||||||
<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>
|
<h2>Chapitres</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<BOUCLE_chapitres(CHAPITRES){id_article}>
|
<BOUCLE_chapitres(CHAPITRES){id_article}>
|
||||||
<li>
|
<li>
|
||||||
<p><strong>#TYPE_SUJET</strong> [(<a href="spip.php?page=chronique&chronique=#CHRONIQUE">(#CHRONIQUE)</a>)] #TITRE</p>
|
<strong>[(#TYPE_SUJET|libreavous_nomtypesujet) : ]</strong> [(<a href="spip.php?page=chronique&chronique=#CHRONIQUE">(#CHRONIQUE)</a>)] #TITRE
|
||||||
<ul>
|
<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)].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|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|taille_en_octets)])</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</BOUCLE_chapitres>
|
</BOUCLE_chapitres>
|
||||||
</ul>
|
</ul>
|
||||||
|
]
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
[<aside>
|
[<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>]
|
[<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>]
|
[<div class="article__notes">(#NOTES)</div>]
|
||||||
|
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -11,14 +11,14 @@
|
|||||||
<h2>#TITRE</h2>
|
<h2>#TITRE</h2>
|
||||||
<p>
|
<p>
|
||||||
Dans <BOUCLE_article(ARTICLES){id_article}>
|
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>
|
</BOUCLE_article>
|
||||||
</p>
|
</p>
|
||||||
[<h3 class="spip">Références</h3>
|
[<h3 class="spip">Références</h3>
|
||||||
(#REFERENCES_SUJET|propre)]
|
(#REFERENCES_SUJET|propre)]
|
||||||
<h3 class="spip">Fichiers</h3>
|
<h3 class="spip">Fichiers</h3>
|
||||||
<ul>
|
<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)].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|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|taille_en_octets)] Mio)</li>
|
||||||
</ul>
|
</ul>
|
||||||
</BOUCLE_chroniques>
|
</BOUCLE_chroniques>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<p>Importation vers : #TITRE</p>
|
<p>Importation vers : #TITRE</p>
|
||||||
#MES_IMPORT{#ID_RUBRIQUE,#ID_SECTEUR}
|
#LIBREAVOUS_IMPORT{#ID_RUBRIQUE,#ID_SECTEUR}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
</BOUCLE_principale>
|
</BOUCLE_principale>
|
||||||
|
@ -3,5 +3,3 @@
|
|||||||
[<meta name="description" content="(#INTRODUCTION|couper{150}|textebrut)" />]
|
[<meta name="description" content="(#INTRODUCTION|couper{150}|textebrut)" />]
|
||||||
[<link rel="canonical" href="(#URL_ARTICLE|url_absolue)" />]
|
[<link rel="canonical" href="(#URL_ARTICLE|url_absolue)" />]
|
||||||
</BOUCLE_article_head>
|
</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;
|
$typo-texte: $typo-labeur;
|
||||||
|
|
||||||
|
$couleur-titres: $couleurPrincipale;
|
||||||
|
$couleur-lien: $couleurPrincipale;
|
||||||
|
|
||||||
body {
|
body {
|
||||||
$_computed_bfs: strip-unit($body-font-size) / strip-unit($_base-font-size);
|
$_computed_bfs: strip-unit($body-font-size) / strip-unit($_base-font-size);
|
||||||
font-size: $_computed_bfs * (14/strip-unit($body-font-size))*1em;
|
font-size: $_computed_bfs * (14/strip-unit($body-font-size))*1em;
|
||||||
@ -30,7 +33,7 @@ body {
|
|||||||
font-family: $typo-texte;
|
font-family: $typo-texte;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
line-height: $typo-line-height;
|
line-height: $typo-line-height;
|
||||||
color: $couleur-texte;
|
color: $couleurPrincipale;
|
||||||
text-rendering: geometricPrecision;
|
text-rendering: geometricPrecision;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,10 +43,14 @@ html.rtl * {
|
|||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
border-bottom:1px solid $couleurSecondaire;
|
||||||
color: $couleur-lien;
|
text-decoration:none;
|
||||||
|
&.spip_out {
|
||||||
|
color: $couleurTertiaire;
|
||||||
|
border-bottom-color:$couleurTertiaire;
|
||||||
|
}
|
||||||
&:hover, &:focus {
|
&:hover, &:focus {
|
||||||
text-decoration: underline;
|
text-decoration: none;
|
||||||
color: $couleur-lien-hover;
|
color: $couleur-lien-hover;
|
||||||
border-color: $couleur-lien-hover;
|
border-color: $couleur-lien-hover;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
@ -58,6 +65,9 @@ a {
|
|||||||
//fill: white !important;
|
//fill: white !important;
|
||||||
}
|
}
|
||||||
}*/
|
}*/
|
||||||
|
.sociaux & {
|
||||||
|
border:0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav.principale {
|
.nav.principale {
|
||||||
@ -87,9 +97,9 @@ h6, .h6,
|
|||||||
}
|
}
|
||||||
|
|
||||||
h1, .h1 {
|
h1, .h1 {
|
||||||
font-size: em(26px);
|
font-size: em(35px);
|
||||||
@include media($bp-medium-up) {
|
@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 {
|
.page_content, .page_aside {
|
||||||
width:100%;
|
width:100%;
|
||||||
margin:0 0 ($spacer*2);
|
margin:0 0 ($spacer*2);
|
||||||
padding:$spacer;
|
padding:$spacer ($spacer*4);
|
||||||
}
|
}
|
||||||
.page_content {
|
.page_content {
|
||||||
background-color:white;
|
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;
|
width:150px;
|
||||||
margin:-1rem 0 0 -1rem;
|
|
||||||
padding:0.5rem;
|
padding:0.5rem;
|
||||||
|
margin-right:1.5rem;
|
||||||
font-weight:700;
|
font-weight:700;
|
||||||
font-size:2.4rem;
|
font-size:2.8rem;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
color:$couleurSecondaire;
|
color:$couleurSecondaire;
|
||||||
background:$couleurBackgroundTexte;
|
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 {
|
.sociaux .socicon {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
@ -8,6 +8,9 @@ $couleurSecondaire: #f7651a;
|
|||||||
/* $blancTransparent: rgba(white,0.7); */
|
/* $blancTransparent: rgba(white,0.7); */
|
||||||
|
|
||||||
$couleurBackgroundTexte: #ffe9e0;
|
$couleurBackgroundTexte: #ffe9e0;
|
||||||
|
$couleurTertiaire: #00c4f5;
|
||||||
|
|
||||||
|
$couleur-lien-hover: $couleurTertiaire;
|
||||||
|
|
||||||
|
|
||||||
$container-width: 1100px;
|
$container-width: 1100px;
|
||||||
|
Loading…
Reference in New Issue
Block a user