diff --git a/base/librealire.php b/base/librealire.php index d5da4e7..c8a0978 100644 --- a/base/librealire.php +++ b/base/librealire.php @@ -117,5 +117,26 @@ function librealire_declarer_champs_extras($champs = array()) { ) ) ); + + $champs['spip_mots']['soustitre'] = array( + 'saisie' => 'input',//Type du champ (voir plugin Saisies) + 'options' => array( + 'nom'=>'soustitre', + 'sql' => "text NOT NULL DEFAULT ''", + 'rechercher' => true, + 'label' => _T('librealire:soustitre'), + 'explication' => _T('librealire:soustitre_explications'), + 'obligatoire' => false + ) +// 'options' => array( +// 'nom' => 'titre_court', +// 'label' => _T('titrecourt:titre_court'), +// 'sql' => "varchar(30) NOT NULL DEFAULT ''", +// 'defaut' => '',// Valeur par défaut +// 'restrictions'=>array('voir' => array('auteur' => ''),//Tout le monde peut voir +// 'modifier' => array('auteur' => 'webmestre')),//Seuls les webmestres peuvent modifier +// ), + ); + return $champs; } diff --git a/export_formulaires/formulaire-signaler.yaml b/export_formulaires/formulaire-signaler.yaml new file mode 100644 index 0000000..a47f81e --- /dev/null +++ b/export_formulaires/formulaire-signaler.yaml @@ -0,0 +1,70 @@ +id_formulaire: '2' +identifiant: signaler +titre: 'signaler une erreur, poser une question' +descriptif: '' +css: '' +message_retour: 'Votre message nous est bien parvenu, nous vous répondrons dès que possible !' +saisies: + - + options: { label: 'Adresse email', type: text, size: '40', autocomplete: defaut, obligatoire: on, nom: email_1 } + verifier: { type: email, options: { mode: rfc5322 } } + identifiant: '@5fc2b3f5a9aca' + saisie: email + - + options: { label: Message, rows: '5', cols: '40', longueur_max: '1000', obligatoire: on, nom: textarea_1 } + identifiant: '@5fc2b409d01f6' + verifier: { } + saisie: textarea + - + options: { label: 'Origine du formulaire', type: text, disable_avec_post: on, readonly: on, size: '40', autocomplete: off, nom: input_1 } + identifiant: '@5fc2b4d9cc145' + verifier: { } + saisie: input +traitements: + enregistrement: + moderation: posteriori + moderer_admins: null + multiple: on + modifiable: '' + effacement: '' + effacement_delai: null + identification: null + variable_php: null + unicite: '' + message_erreur_unicite: null + anonymiser: on + ip: '' + invalider: '' + resume_reponse: '' + analyse_exclure_champs: '' + identification_reponses: null + email: + modification_reponse: '' + champ_sujet: '' + champ_sujet_modif_reponse: '' + champ_sujet_valeurs_brutes: '' + exclure_champs_email: '' + pj: '' + masquer_liens: '' + activer_ip: '' + masquer_champs_vides: '' + destinataires_plus: jean@choc02.com + destinataires_selon_champ: '' + champ_courriel_destinataire_form: null + champ_courriel: '' + activer_vrai_envoyeur: '' + champ_nom: '' + activer_accuse: null + sujet_accuse: null + texte_accuse: null + masquer_valeurs_accuse: null + courriel_envoyeur_accuse: null + nom_envoyeur_accuse: null +public: non +apres: valeurs +url_redirect: '' +statut: publie +date_creation: '2020-11-28 20:39:55' +maj: '2020-11-28 21:58:24' +composition: '' +composition_lock: '0' diff --git a/formulaires/configurer_librealire.html b/formulaires/configurer_librealire.html index bdea050..0e27c80 100644 --- a/formulaires/configurer_librealire.html +++ b/formulaires/configurer_librealire.html @@ -10,9 +10,10 @@ #ACTION_FORMULAIRE{#ENV{action}}
diff --git a/lang/librealire_fr.php b/lang/librealire_fr.php index 48c4343..0bc1c2d 100644 --- a/lang/librealire_fr.php +++ b/lang/librealire_fr.php @@ -6,7 +6,13 @@ if (!defined('_ECRIRE_INC_VERSION')) { } $GLOBALS[ $GLOBALS['idx_lang'] ] = array( + + 'titre_page_configurer' => 'Libre à Lire', + 'titre_page_configurer_librealire' => 'Configurer le site', + 'transcriptions' => 'transcriptions', + 'avertissement_label' => 'Avertissements', + 'avertissement_explications' => 'Texte présent au bas de toutes les transcriptions (cf composition = transcriptions).', 'transcriptions_label' => 'Transcriptions', 'titre_t' => 'Titre', 'titre_t_explications' => 'Le titre du média d’origine', @@ -32,4 +38,6 @@ $GLOBALS[ $GLOBALS['idx_lang'] ] = array( 'd_apres_un_media_publie_le' => 'D’après un média publié le', + 'soustitre' => 'Sous-titre', + ); diff --git a/librealire_administrations.php b/librealire_administrations.php index d10fdc6..be087b0 100644 --- a/librealire_administrations.php +++ b/librealire_administrations.php @@ -36,6 +36,8 @@ function librealire_upgrade($nom_meta_base_version, $version_cible) { cextras_api_upgrade(librealire_declarer_champs_extras(), $maj['0.2.0']); cextras_api_upgrade(librealire_declarer_champs_extras(), $maj['0.3.0']); cextras_api_upgrade(librealire_declarer_champs_extras(), $maj['0.3.1']); + cextras_api_upgrade(librealire_declarer_champs_extras(), $maj['0.3.2']); + cextras_api_upgrade(librealire_declarer_champs_extras(), $maj['0.3.3']); // $maj['1.1.4'] = array( // array('maj_tables', array('spip_roles_documents')), // ); diff --git a/librealire_fonctions.php b/librealire_fonctions.php index a357e3a..9110393 100644 --- a/librealire_fonctions.php +++ b/librealire_fonctions.php @@ -8,3 +8,8 @@ function retiremot($chaine) { $chaine = str_replace('mot','',$chaine); return $chaine; } + +include_spip('inc/cextras_autoriser'); +// restreindre les champs extras +restreindre_extras('article', 'transcriptions', 'transcriptions', 'composition'); +restreindre_extras('mot', 'soustitre', 5, 'groupemot'); diff --git a/paquet.xml b/paquet.xml old mode 100755 new mode 100644 index 279099c..7c4c548 --- a/paquet.xml +++ b/paquet.xml @@ -1,12 +1,12 @@
(#PAGINATION{page})
] + +