podcast/fabrique_diff.diff

272 lines
11 KiB
Diff
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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',
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
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" />
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')));
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
>
> // -----------------
> // Objet podcasts
>
>
> /**
> * 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)
> *
> * @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_voir_dist($faire, $type, $id, $qui, $opt) {
> return true;
> }
>
> /**
> * Autorisation de voir (podcast)
> *
> * @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_podcast_voir_dist($faire, $type, $id, $qui, $opt) {
> return true;
> }
>
> /**
> * Autorisation de créer (podcast)
> *
> * @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_podcast_creer_dist($faire, $type, $id, $qui, $opt) {
> return in_array($qui['statut'], array('0minirezo', '1comite'));
> }
>
> /**
> * Autorisation de modifier (podcast)
> *
> * @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_podcast_modifier_dist($faire, $type, $id, $qui, $opt) {
> return in_array($qui['statut'], array('0minirezo', '1comite'));
> }
>
> /**
> * Autorisation de supprimer (podcast)
> *
> * @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_podcast_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
> *
> * @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_article_creerpodcastdans_dist($faire, $type, $id, $qui, $opt) {
> return ($id and autoriser('voir', 'articles', $id) and autoriser('creer', 'podcast'));
> }
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'];
>
> if ($e['type'] === 'article') {
> $flux['data'] .= recuperer_fond(
> 'prive/objets/liste/podcasts',
> array(
> 'titre' => _T('podcast:titre_podcasts'),
> 'id_article' => $id_objet
> )
> );
>
> if (autoriser('creerpodcastdans', 'articles', $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',
> '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);
> }
> }
> 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