|
|
|
@ -1,110 +1,76 @@
|
|
|
|
|
Only in ../sites/fabrique.spip/tmp/cache/fabrique/podcast/: action
|
|
|
|
|
Only in ../sites/fabrique.spip/tmp/cache/fabrique/podcast/: base
|
|
|
|
|
Only in ../sites/fabrique.spip/tmp/cache/fabrique/podcast/formulaires: editer_podcast.html
|
|
|
|
|
Only in ../sites/fabrique.spip/tmp/cache/fabrique/podcast/formulaires: editer_podcast.php
|
|
|
|
|
diff -r -x . -x .. -x fabrique_diff.diff -x fabrique_podcast.php ../sites/fabrique.spip/tmp/cache/fabrique/.backup/podcast/lang/podcast_fr.php ../sites/fabrique.spip/tmp/cache/fabrique/podcast/lang/podcast_fr.php
|
|
|
|
|
7a8
|
|
|
|
|
>
|
|
|
|
|
10,11c11,12
|
|
|
|
|
< // P
|
|
|
|
|
< 'podcast_titre' => 'podcast',
|
|
|
|
|
---
|
|
|
|
|
> // A
|
|
|
|
|
> 'ajouter_lien_podcast' => 'Ajouter ce podcast',
|
|
|
|
|
14,16c15,34
|
|
|
|
|
< 'cfg_exemple' => 'Exemple',
|
|
|
|
|
< 'cfg_exemple_explication' => 'Explication de cet exemple',
|
|
|
|
|
< 'cfg_titre_parametrages' => 'Paramétrages',
|
|
|
|
|
---
|
|
|
|
|
> 'champ_code_explication' => 'Code de l\'émission sous la forme « 20210119 »',
|
|
|
|
|
> 'champ_code_label' => 'code',
|
|
|
|
|
> 'champ_duree_explication' => 'La durée de l\'émission sous la forme « ?? »',
|
|
|
|
|
> 'champ_duree_label' => 'durée',
|
|
|
|
|
> 'confirmer_supprimer_podcast' => 'Confirmez-vous la suppression de ce podcast ?',
|
|
|
|
|
>
|
|
|
|
|
> // I
|
|
|
|
|
> 'icone_creer_podcast' => 'Créer un podcast',
|
|
|
|
|
> 'icone_modifier_podcast' => 'Modifier ce podcast',
|
|
|
|
|
> 'info_1_podcast' => 'Un podcast',
|
|
|
|
|
> 'info_aucun_podcast' => 'Aucun podcast',
|
|
|
|
|
> 'info_nb_podcasts' => '@nb@ podcasts',
|
|
|
|
|
> 'info_podcasts_auteur' => 'Les podcasts de cet auteur',
|
|
|
|
|
>
|
|
|
|
|
> // R
|
|
|
|
|
> 'retirer_lien_podcast' => 'Retirer ce podcast',
|
|
|
|
|
> 'retirer_tous_liens_podcasts' => 'Retirer tous les podcasts',
|
|
|
|
|
>
|
|
|
|
|
> // S
|
|
|
|
|
> 'supprimer_podcast' => 'Supprimer ce podcast',
|
|
|
|
|
19c37,47
|
|
|
|
|
< 'titre_page_configurer_podcast' => 'podcast',
|
|
|
|
|
---
|
|
|
|
|
> 'texte_ajouter_podcast' => 'Ajouter un podcast',
|
|
|
|
|
> 'texte_changer_statut_podcast' => 'Ce podcast est :',
|
|
|
|
|
> 'texte_creer_associer_podcast' => 'Créer et associer un podcast',
|
|
|
|
|
> 'texte_definir_comme_traduction_podcast' => 'Ce podcast est une traduction du podcast numéro :',
|
|
|
|
|
> 'titre_langue_podcast' => 'Langue de ce podcast',
|
|
|
|
|
> 'titre_logo_podcast' => 'Logo de ce podcast',
|
|
|
|
|
> 'titre_objets_lies_podcast' => 'Liés à ce podcast',
|
|
|
|
|
> 'titre_page_podcasts' => 'Les podcasts',
|
|
|
|
|
> 'titre_podcast' => 'Podcast',
|
|
|
|
|
> 'titre_podcasts' => 'Podcasts',
|
|
|
|
|
> 'titre_podcasts_rubrique' => 'Podcasts de la rubrique',
|
|
|
|
|
Only in ../sites/fabrique.spip/tmp/cache/fabrique/podcast/action: supprimer_chapitre.php
|
|
|
|
|
diff -r -x . -x .. -x fabrique_diff.diff -x fabrique_podcast.php ../sites/fabrique.spip/tmp/cache/fabrique/.backup/podcast/base/podcast.php ../sites/fabrique.spip/tmp/cache/fabrique/podcast/base/podcast.php
|
|
|
|
|
28a29
|
|
|
|
|
> $interfaces['table_des_tables']['chapitres'] = 'chapitres';
|
|
|
|
|
63a65,91
|
|
|
|
|
> 'tables_jointures' => array(),
|
|
|
|
|
>
|
|
|
|
|
>
|
|
|
|
|
> );
|
|
|
|
|
>
|
|
|
|
|
> $tables['spip_chapitres'] = array(
|
|
|
|
|
> 'type' => 'chapitre',
|
|
|
|
|
> 'principale' => 'oui',
|
|
|
|
|
> 'field'=> array(
|
|
|
|
|
> 'id_chapitre' => 'bigint(21) NOT NULL',
|
|
|
|
|
> 'id_podcast' => 'bigint(21) NOT NULL DEFAULT 0',
|
|
|
|
|
> 'titre' => 'tinytext NOT NULL DEFAULT ""',
|
|
|
|
|
> 'nom_identifiant' => 'tinytext NOT NULL DEFAULT ""',
|
|
|
|
|
> 'sujet_principal' => 'int(6) NOT NULL DEFAULT 0',
|
|
|
|
|
> 'debut' => 'varchar(25) NOT NULL DEFAULT ""',
|
|
|
|
|
> 'fin' => 'varchar(25) NOT NULL DEFAULT ""',
|
|
|
|
|
> 'maj' => 'TIMESTAMP NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP'
|
|
|
|
|
> ),
|
|
|
|
|
> 'key' => array(
|
|
|
|
|
> 'PRIMARY KEY' => 'id_chapitre',
|
|
|
|
|
> 'KEY id_podcast' => 'id_podcast',
|
|
|
|
|
> ),
|
|
|
|
|
> 'titre' => 'titre AS titre, "" AS lang',
|
|
|
|
|
> #'date' => '',
|
|
|
|
|
> 'champs_editables' => array('titre', 'nom_identifiant', 'sujet_principal', 'debut', 'fin', 'id_podcast'),
|
|
|
|
|
> 'champs_versionnes' => array('titre', 'nom_identifiant', 'sujet_principal', 'debut', 'fin', 'id_podcast'),
|
|
|
|
|
> 'rechercher_champs' => array("titre" => 5),
|
|
|
|
|
Only in ../sites/fabrique.spip/tmp/cache/fabrique/podcast/formulaires: editer_chapitre.html
|
|
|
|
|
Only in ../sites/fabrique.spip/tmp/cache/fabrique/podcast/formulaires: editer_chapitre.php
|
|
|
|
|
Only in ../sites/fabrique.spip/tmp/cache/fabrique/podcast/lang: chapitre_fr.php
|
|
|
|
|
diff -r -x . -x .. -x fabrique_diff.diff -x fabrique_podcast.php ../sites/fabrique.spip/tmp/cache/fabrique/.backup/podcast/paquet.xml ../sites/fabrique.spip/tmp/cache/fabrique/podcast/paquet.xml
|
|
|
|
|
12c12
|
|
|
|
|
< Paquet généré le 2021-02-10 06:55:22
|
|
|
|
|
< Paquet généré le 2021-02-10 07:11:23
|
|
|
|
|
---
|
|
|
|
|
> Paquet généré le 2021-02-10 07:11:23
|
|
|
|
|
44a45,46
|
|
|
|
|
> <necessite nom="saisies" compatibilite="[3.23.2;]" />
|
|
|
|
|
>
|
|
|
|
|
47a50,54
|
|
|
|
|
> <pipeline nom="declarer_tables_objets_sql" inclure="base/podcast.php" />
|
|
|
|
|
> <pipeline nom="declarer_tables_interfaces" inclure="base/podcast.php" />
|
|
|
|
|
> <pipeline nom="affiche_enfants" inclure="podcast_pipelines.php" />
|
|
|
|
|
> <pipeline nom="boite_infos" inclure="podcast_pipelines.php" />
|
|
|
|
|
> <pipeline nom="objet_compte_enfants" inclure="podcast_pipelines.php" />
|
|
|
|
|
48a56
|
|
|
|
|
> <menu nom="podcasts" titre="podcast:titre_podcasts" parent="menu_edition" icone="images/podcast-16.png" action="podcasts" />
|
|
|
|
|
> Paquet généré le 2021-02-11 09:30:30
|
|
|
|
|
diff -r -x . -x .. -x fabrique_diff.diff -x fabrique_podcast.php ../sites/fabrique.spip/tmp/cache/fabrique/.backup/podcast/podcast_administrations.php ../sites/fabrique.spip/tmp/cache/fabrique/podcast/podcast_administrations.php
|
|
|
|
|
53a54,55
|
|
|
|
|
> $maj['create'] = array(array('maj_tables', array('spip_podcasts')));
|
|
|
|
|
>
|
|
|
|
|
76a79,88
|
|
|
|
|
> sql_drop_table('spip_podcasts');
|
|
|
|
|
>
|
|
|
|
|
> # Nettoyer les liens courants (le génie optimiser_base_disparus se chargera de nettoyer toutes les tables de liens)
|
|
|
|
|
> sql_delete('spip_documents_liens', sql_in('objet', array('podcast')));
|
|
|
|
|
> sql_delete('spip_mots_liens', sql_in('objet', array('podcast')));
|
|
|
|
|
> sql_delete('spip_auteurs_liens', sql_in('objet', array('podcast')));
|
|
|
|
|
> # Nettoyer les versionnages et forums
|
|
|
|
|
> sql_delete('spip_versions', sql_in('objet', array('podcast')));
|
|
|
|
|
> sql_delete('spip_versions_fragments', sql_in('objet', array('podcast')));
|
|
|
|
|
> sql_delete('spip_forum', sql_in('objet', array('podcast')));
|
|
|
|
|
54c54
|
|
|
|
|
< $maj['create'] = array(array('maj_tables', array('spip_podcasts')));
|
|
|
|
|
---
|
|
|
|
|
> $maj['create'] = array(array('maj_tables', array('spip_podcasts', 'spip_chapitres')));
|
|
|
|
|
79a80
|
|
|
|
|
> sql_drop_table('spip_chapitres');
|
|
|
|
|
82,84c83,85
|
|
|
|
|
< sql_delete('spip_documents_liens', sql_in('objet', array('podcast')));
|
|
|
|
|
< sql_delete('spip_mots_liens', sql_in('objet', array('podcast')));
|
|
|
|
|
< sql_delete('spip_auteurs_liens', sql_in('objet', array('podcast')));
|
|
|
|
|
---
|
|
|
|
|
> sql_delete('spip_documents_liens', sql_in('objet', array('podcast', 'chapitre')));
|
|
|
|
|
> sql_delete('spip_mots_liens', sql_in('objet', array('podcast', 'chapitre')));
|
|
|
|
|
> sql_delete('spip_auteurs_liens', sql_in('objet', array('podcast', 'chapitre')));
|
|
|
|
|
86,88c87,89
|
|
|
|
|
< sql_delete('spip_versions', sql_in('objet', array('podcast')));
|
|
|
|
|
< sql_delete('spip_versions_fragments', sql_in('objet', array('podcast')));
|
|
|
|
|
< sql_delete('spip_forum', sql_in('objet', array('podcast')));
|
|
|
|
|
---
|
|
|
|
|
> sql_delete('spip_versions', sql_in('objet', array('podcast', 'chapitre')));
|
|
|
|
|
> sql_delete('spip_versions_fragments', sql_in('objet', array('podcast', 'chapitre')));
|
|
|
|
|
> sql_delete('spip_forum', sql_in('objet', array('podcast', 'chapitre')));
|
|
|
|
|
diff -r -x . -x .. -x fabrique_diff.diff -x fabrique_podcast.php ../sites/fabrique.spip/tmp/cache/fabrique/.backup/podcast/podcast_autorisations.php ../sites/fabrique.spip/tmp/cache/fabrique/podcast/podcast_autorisations.php
|
|
|
|
|
39a40,143
|
|
|
|
|
>
|
|
|
|
|
143a144,233
|
|
|
|
|
> // -----------------
|
|
|
|
|
> // Objet podcasts
|
|
|
|
|
> // Objet chapitres
|
|
|
|
|
>
|
|
|
|
|
>
|
|
|
|
|
> /**
|
|
|
|
|
> * Autorisation de voir un élément de menu (podcasts)
|
|
|
|
|
> *
|
|
|
|
|
> * @param string $faire Action demandée
|
|
|
|
|
> * @param string $type Type d'objet sur lequel appliquer l'action
|
|
|
|
|
> * @param int $id Identifiant de l'objet
|
|
|
|
|
> * @param array $qui Description de l'auteur demandant l'autorisation
|
|
|
|
|
> * @param array $opt Options de cette autorisation
|
|
|
|
|
> * @return bool true s'il a le droit, false sinon
|
|
|
|
|
> **/
|
|
|
|
|
> function autoriser_podcasts_menu_dist($faire, $type, $id, $qui, $opt) {
|
|
|
|
|
> return true;
|
|
|
|
|
> }
|
|
|
|
|
>
|
|
|
|
|
>
|
|
|
|
|
> /**
|
|
|
|
|
> * Autorisation de voir (podcasts)
|
|
|
|
|
> * Autorisation de voir (chapitres)
|
|
|
|
|
> *
|
|
|
|
|
> * @param string $faire Action demandée
|
|
|
|
|
> * @param string $type Type d'objet sur lequel appliquer l'action
|
|
|
|
@ -113,12 +79,12 @@ diff -r -x . -x .. -x fabrique_diff.diff -x fabrique_podcast.php ../sites/fabriq
|
|
|
|
|
> * @param array $opt Options de cette autorisation
|
|
|
|
|
> * @return bool true s'il a le droit, false sinon
|
|
|
|
|
> **/
|
|
|
|
|
> function autoriser_podcasts_voir_dist($faire, $type, $id, $qui, $opt) {
|
|
|
|
|
> function autoriser_chapitres_voir_dist($faire, $type, $id, $qui, $opt) {
|
|
|
|
|
> return true;
|
|
|
|
|
> }
|
|
|
|
|
>
|
|
|
|
|
> /**
|
|
|
|
|
> * Autorisation de voir (podcast)
|
|
|
|
|
> * Autorisation de voir (chapitre)
|
|
|
|
|
> *
|
|
|
|
|
> * @param string $faire Action demandée
|
|
|
|
|
> * @param string $type Type d'objet sur lequel appliquer l'action
|
|
|
|
@ -127,12 +93,12 @@ diff -r -x . -x .. -x fabrique_diff.diff -x fabrique_podcast.php ../sites/fabriq
|
|
|
|
|
> * @param array $opt Options de cette autorisation
|
|
|
|
|
> * @return bool true s'il a le droit, false sinon
|
|
|
|
|
> **/
|
|
|
|
|
> function autoriser_podcast_voir_dist($faire, $type, $id, $qui, $opt) {
|
|
|
|
|
> function autoriser_chapitre_voir_dist($faire, $type, $id, $qui, $opt) {
|
|
|
|
|
> return true;
|
|
|
|
|
> }
|
|
|
|
|
>
|
|
|
|
|
> /**
|
|
|
|
|
> * Autorisation de créer (podcast)
|
|
|
|
|
> * Autorisation de créer (chapitre)
|
|
|
|
|
> *
|
|
|
|
|
> * @param string $faire Action demandée
|
|
|
|
|
> * @param string $type Type d'objet sur lequel appliquer l'action
|
|
|
|
@ -141,12 +107,12 @@ diff -r -x . -x .. -x fabrique_diff.diff -x fabrique_podcast.php ../sites/fabriq
|
|
|
|
|
> * @param array $opt Options de cette autorisation
|
|
|
|
|
> * @return bool true s'il a le droit, false sinon
|
|
|
|
|
> **/
|
|
|
|
|
> function autoriser_podcast_creer_dist($faire, $type, $id, $qui, $opt) {
|
|
|
|
|
> function autoriser_chapitre_creer_dist($faire, $type, $id, $qui, $opt) {
|
|
|
|
|
> return in_array($qui['statut'], array('0minirezo', '1comite'));
|
|
|
|
|
> }
|
|
|
|
|
>
|
|
|
|
|
> /**
|
|
|
|
|
> * Autorisation de modifier (podcast)
|
|
|
|
|
> * Autorisation de modifier (chapitre)
|
|
|
|
|
> *
|
|
|
|
|
> * @param string $faire Action demandée
|
|
|
|
|
> * @param string $type Type d'objet sur lequel appliquer l'action
|
|
|
|
@ -155,12 +121,12 @@ diff -r -x . -x .. -x fabrique_diff.diff -x fabrique_podcast.php ../sites/fabriq
|
|
|
|
|
> * @param array $opt Options de cette autorisation
|
|
|
|
|
> * @return bool true s'il a le droit, false sinon
|
|
|
|
|
> **/
|
|
|
|
|
> function autoriser_podcast_modifier_dist($faire, $type, $id, $qui, $opt) {
|
|
|
|
|
> function autoriser_chapitre_modifier_dist($faire, $type, $id, $qui, $opt) {
|
|
|
|
|
> return in_array($qui['statut'], array('0minirezo', '1comite'));
|
|
|
|
|
> }
|
|
|
|
|
>
|
|
|
|
|
> /**
|
|
|
|
|
> * Autorisation de supprimer (podcast)
|
|
|
|
|
> * Autorisation de supprimer (chapitre)
|
|
|
|
|
> *
|
|
|
|
|
> * @param string $faire Action demandée
|
|
|
|
|
> * @param string $type Type d'objet sur lequel appliquer l'action
|
|
|
|
@ -169,13 +135,13 @@ diff -r -x . -x .. -x fabrique_diff.diff -x fabrique_podcast.php ../sites/fabriq
|
|
|
|
|
> * @param array $opt Options de cette autorisation
|
|
|
|
|
> * @return bool true s'il a le droit, false sinon
|
|
|
|
|
> **/
|
|
|
|
|
> function autoriser_podcast_supprimer_dist($faire, $type, $id, $qui, $opt) {
|
|
|
|
|
> function autoriser_chapitre_supprimer_dist($faire, $type, $id, $qui, $opt) {
|
|
|
|
|
> return in_array($qui['statut'], array('0minirezo', '1comite'));
|
|
|
|
|
> }
|
|
|
|
|
>
|
|
|
|
|
>
|
|
|
|
|
> /**
|
|
|
|
|
> * Autorisation de créer l'élément (podcast) dans un articles
|
|
|
|
|
> * Autorisation de créer l'élément (chapitre) dans un podcasts
|
|
|
|
|
> *
|
|
|
|
|
> * @param string $faire Action demandée
|
|
|
|
|
> * @param string $type Type d'objet sur lequel appliquer l'action
|
|
|
|
@ -184,89 +150,45 @@ diff -r -x . -x .. -x fabrique_diff.diff -x fabrique_podcast.php ../sites/fabriq
|
|
|
|
|
> * @param array $opt Options de cette autorisation
|
|
|
|
|
> * @return bool true s'il a le droit, false sinon
|
|
|
|
|
> **/
|
|
|
|
|
> function autoriser_article_creerpodcastdans_dist($faire, $type, $id, $qui, $opt) {
|
|
|
|
|
> return ($id and autoriser('voir', 'articles', $id) and autoriser('creer', 'podcast'));
|
|
|
|
|
> function autoriser_podcast_creerchapitredans_dist($faire, $type, $id, $qui, $opt) {
|
|
|
|
|
> return ($id and autoriser('voir', 'podcasts', $id) and autoriser('creer', 'chapitre'));
|
|
|
|
|
> }
|
|
|
|
|
diff -r -x . -x .. -x fabrique_diff.diff -x fabrique_podcast.php ../sites/fabrique.spip/tmp/cache/fabrique/.backup/podcast/podcast_pipelines.php ../sites/fabrique.spip/tmp/cache/fabrique/podcast/podcast_pipelines.php
|
|
|
|
|
21a22,96
|
|
|
|
|
>
|
|
|
|
|
>
|
|
|
|
|
> /**
|
|
|
|
|
> * Ajouter les objets sur les vues des parents directs
|
|
|
|
|
> *
|
|
|
|
|
> * @pipeline affiche_enfants
|
|
|
|
|
> * @param array $flux Données du pipeline
|
|
|
|
|
> * @return array Données du pipeline
|
|
|
|
|
> **/
|
|
|
|
|
> function podcast_affiche_enfants($flux) {
|
|
|
|
|
> if (
|
|
|
|
|
> $e = trouver_objet_exec($flux['args']['exec'])
|
|
|
|
|
> and $e['edition'] === false
|
|
|
|
|
> ) {
|
|
|
|
|
> $id_objet = $flux['args']['id_objet'];
|
|
|
|
|
57a58,78
|
|
|
|
|
>
|
|
|
|
|
> if ($e['type'] === 'article') {
|
|
|
|
|
> if ($e['type'] === 'podcast') {
|
|
|
|
|
> $flux['data'] .= recuperer_fond(
|
|
|
|
|
> 'prive/objets/liste/podcasts',
|
|
|
|
|
> 'prive/objets/liste/chapitres',
|
|
|
|
|
> array(
|
|
|
|
|
> 'titre' => _T('podcast:titre_podcasts'),
|
|
|
|
|
> 'id_article' => $id_objet
|
|
|
|
|
> 'titre' => _T('chapitre:titre_chapitres'),
|
|
|
|
|
> 'id_podcast' => $id_objet
|
|
|
|
|
> )
|
|
|
|
|
> );
|
|
|
|
|
>
|
|
|
|
|
> if (autoriser('creerpodcastdans', 'articles', $id_objet)) {
|
|
|
|
|
> if (autoriser('creerchapitredans', 'podcasts', $id_objet)) {
|
|
|
|
|
> include_spip('inc/presentation');
|
|
|
|
|
> $flux['data'] .= icone_verticale(
|
|
|
|
|
> _T('podcast:icone_creer_podcast'),
|
|
|
|
|
> generer_url_ecrire('podcast_edit', "id_article=$id_objet"),
|
|
|
|
|
> 'podcast-24.png',
|
|
|
|
|
> _T('chapitre:icone_creer_chapitre'),
|
|
|
|
|
> generer_url_ecrire('chapitre_edit', "id_podcast=$id_objet"),
|
|
|
|
|
> 'chapitre-24.png',
|
|
|
|
|
> 'new',
|
|
|
|
|
> 'right'
|
|
|
|
|
> ) . "<br class='nettoyeur' />";
|
|
|
|
|
> }
|
|
|
|
|
> }
|
|
|
|
|
> }
|
|
|
|
|
> return $flux;
|
|
|
|
|
> }
|
|
|
|
|
>
|
|
|
|
|
> /**
|
|
|
|
|
> * Afficher le nombre d'éléments dans les parents
|
|
|
|
|
> *
|
|
|
|
|
> * @pipeline boite_infos
|
|
|
|
|
> * @param array $flux Données du pipeline
|
|
|
|
|
> * @return array Données du pipeline
|
|
|
|
|
> **/
|
|
|
|
|
> function podcast_boite_infos($flux) {
|
|
|
|
|
> if (isset($flux['args']['type']) and isset($flux['args']['id']) and $id = intval($flux['args']['id'])) {
|
|
|
|
|
> $texte = '';
|
|
|
|
|
> if ($flux['args']['type'] == 'article' and $nb = sql_countsel('spip_podcasts', array('id_article=' . $id))) {
|
|
|
|
|
> $texte .= '<div>' . singulier_ou_pluriel($nb, 'podcast:info_1_podcast', 'podcast:info_nb_podcasts') . "</div>\n";
|
|
|
|
|
> }
|
|
|
|
|
> if ($texte and $p = strpos($flux['data'], '<!--nb_elements-->')) {
|
|
|
|
|
> $flux['data'] = substr_replace($flux['data'], $texte, $p, 0);
|
|
|
|
|
74a96,98
|
|
|
|
|
> if ($flux['args']['type'] == 'podcast' and $nb = sql_countsel('spip_chapitres', array('id_podcast=' . $id))) {
|
|
|
|
|
> $texte .= '<div>' . singulier_ou_pluriel($nb, 'chapitre:info_1_chapitre', 'chapitre:info_nb_chapitres') . "</div>\n";
|
|
|
|
|
> }
|
|
|
|
|
92a117,119
|
|
|
|
|
> }
|
|
|
|
|
> return $flux;
|
|
|
|
|
> }
|
|
|
|
|
>
|
|
|
|
|
>
|
|
|
|
|
> /**
|
|
|
|
|
> * Compter les enfants d'un objet
|
|
|
|
|
> *
|
|
|
|
|
> * @pipeline objets_compte_enfants
|
|
|
|
|
> * @param array $flux Données du pipeline
|
|
|
|
|
> * @return array Données du pipeline
|
|
|
|
|
> **/
|
|
|
|
|
> function podcast_objet_compte_enfants($flux) {
|
|
|
|
|
> if ($flux['args']['objet'] == 'article' and $id_article = intval($flux['args']['id_objet'])) {
|
|
|
|
|
> $flux['data']['podcasts'] = sql_countsel('spip_podcasts', 'id_article= ' . intval($id_article));
|
|
|
|
|
> }
|
|
|
|
|
>
|
|
|
|
|
> return $flux;
|
|
|
|
|
> }
|
|
|
|
|
Only in ../sites/fabrique.spip/tmp/cache/fabrique/podcast/prive: objets
|
|
|
|
|
Only in ../sites/fabrique.spip/tmp/cache/fabrique/podcast/prive/squelettes/contenu: podcast_edit.html
|
|
|
|
|
Only in ../sites/fabrique.spip/tmp/cache/fabrique/podcast/prive/squelettes: hierarchie
|
|
|
|
|
Only in ../sites/fabrique.spip/tmp/cache/fabrique/podcast/prive: themes
|
|
|
|
|
Only in ../sites/fabrique.spip/tmp/cache/fabrique/podcast/: saisies
|
|
|
|
|
Only in ../sites/fabrique.spip/tmp/cache/fabrique/podcast/: saisies-vues
|
|
|
|
|
> if ($flux['args']['objet'] == 'podcast' and $id_podcast = intval($flux['args']['id_objet'])) {
|
|
|
|
|
> $flux['data']['chapitres'] = sql_countsel('spip_chapitres', 'id_podcast= ' . intval($id_podcast));
|
|
|
|
|
Only in ../sites/fabrique.spip/tmp/cache/fabrique/podcast/prive/objets/contenu: chapitre.html
|
|
|
|
|
Only in ../sites/fabrique.spip/tmp/cache/fabrique/podcast/prive/objets/infos: chapitre.html
|
|
|
|
|
Only in ../sites/fabrique.spip/tmp/cache/fabrique/podcast/prive/objets/liste: chapitres.html
|
|
|
|
|
Only in ../sites/fabrique.spip/tmp/cache/fabrique/podcast/prive/squelettes/contenu: chapitre_edit.html
|
|
|
|
|
Only in ../sites/fabrique.spip/tmp/cache/fabrique/podcast/prive/squelettes/hierarchie: chapitre.html
|
|
|
|
|
Only in ../sites/fabrique.spip/tmp/cache/fabrique/podcast/prive/squelettes/hierarchie: chapitre_edit.html
|
|
|
|
|
Only in ../sites/fabrique.spip/tmp/cache/fabrique/podcast/saisies: chapitres.html
|
|
|
|
|
Only in ../sites/fabrique.spip/tmp/cache/fabrique/podcast/saisies-vues: chapitres.html
|