From 970b97190196c9b8f2be04e296f6d4b769985296 Mon Sep 17 00:00:00 2001 From: Vincent Calame Date: Sat, 10 Jul 2021 14:58:55 +0200 Subject: [PATCH] Nouveau champ podcast_references --- base/libreavous.php | 21 +++++++++++++++++---- libreavous_autorisations.php | 1 + paquet.xml | 2 +- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/base/libreavous.php b/base/libreavous.php index 4a24ad1..67cc9c2 100644 --- a/base/libreavous.php +++ b/base/libreavous.php @@ -84,21 +84,34 @@ function libreavous_declarer_champs_extras($champs = array()) { 'options' => array( 'nom' => 'podcast_personnes', 'label' => 'Personnes participantes', - 'rows' => '5', + 'rows' => '10', 'cols' => '40', 'sql' => 'text DEFAULT \'\' NOT NULL', ), 'verifier' => array( ), ); + + $champs['spip_articles']['podcast_references'] = array( + 'saisie' => 'textarea', + 'options' => array( + 'nom' => 'podcast_references', + 'label' => 'Références', + 'rows' => '20', + 'cols' => '40', + 'sql' => 'text DEFAULT \'\' NOT NULL', + ), + 'verifier' => array( + ), + ); $champs['spip_articles']['podcast_galeriephotos'] = array( - 'saisie' => 'textarea', + 'saisie' => 'input', 'options' => array( 'nom' => 'podcast_galeriephotos', 'label' => 'Galerie Photos', - 'rows' => '5', - 'cols' => '40', + 'type' => 'text', + 'size' => '40', 'sql' => 'text DEFAULT \'\' NOT NULL', ), 'verifier' => array( diff --git a/libreavous_autorisations.php b/libreavous_autorisations.php index 178a83d..602ca1b 100644 --- a/libreavous_autorisations.php +++ b/libreavous_autorisations.php @@ -36,6 +36,7 @@ restreindre_extras('article', array( 'podcast_ogg', 'podcast_transcription', 'podcast_personnes', + 'podcast_references', 'podcast_galeriephotos', 'podcast_musique', 'drupal_guid', diff --git a/paquet.xml b/paquet.xml index 3ab4595..fa4da72 100644 --- a/paquet.xml +++ b/paquet.xml @@ -1,7 +1,7 @@