From fb7b87db44cce03149e80781e40600443b66bd03 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Fri, 14 Dec 2012 16:21:15 +0000 Subject: [PATCH] --- .htaccess | 4 ++++ inc/ws/Metier/class.ws.book.parametres.php | 11 ++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.htaccess b/.htaccess index 05044698f..3e459f656 100644 --- a/.htaccess +++ b/.htaccess @@ -10,6 +10,10 @@ AddCharset UTF-8 log # ExpiresDefault "modification plus 1 month" + + Header set Access-Control-Allow-Origin "*" + + RewriteEngine on RewriteBase / diff --git a/inc/ws/Metier/class.ws.book.parametres.php b/inc/ws/Metier/class.ws.book.parametres.php index c6d5783ef..4487dff59 100644 --- a/inc/ws/Metier/class.ws.book.parametres.php +++ b/inc/ws/Metier/class.ws.book.parametres.php @@ -51,7 +51,6 @@ class wsBookParametres extends wsParametres { $this->fields['email_body'] = array('type' => 'textarea', 'default' => '', 'editable' => true, 'label' => __("Corps de l'email") . ' "' . __('Envoyer à un ami') . '"', 'hint' => __('Laisser vide pour utiliser la valeur par défaut')); $this->fields['email_editable'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __("Permettre au lecteur de modifier le corps de l'email")); $this->fields['askAcknowledge'] = array('type' => 'boolean', 'default' => false, 'editable' => true, 'label' => __("Demander au destinataire un accusé de réception"), 'grade' => 3); - $this->fields['email_attachment_bookmarks'] = array('type' => 'boolean', 'default' => false, 'editable' => true, 'label' => __("Joindre à l'email les pages marquées en PDF"), 'grade' => 3); $this->fields['facebook'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __('Facebook')); $this->fields['facebook_title'] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __("Titre facebook"), 'hint' => __('Titre proposé sur la fonction de partage facebook (par défaut, titre de la publication)')); $this->fields['facebook_description'] = array('type' => 'textarea', 'default' => '', 'editable' => true, 'label' => __("Description facebook"), 'grade' => 1, 'hint' => __('Description proposée sur la fonction de partage facebook (par défaut, vide)')); @@ -61,7 +60,7 @@ class wsBookParametres extends wsParametres { $this->fields['friendWidth'] = array('type' => 'integer', 'default' => 319, 'editable' => true, 'label' => __('Largeur du menu'), 'grade' => 5); $this->fields['friendHeight'] = array('type' => 'integer', 'default' => 500, 'editable' => true, 'label' => __('Largeur du menu'), 'grade' => 5); $this->forms['share'] = array('label' => __('Fonctions de partage'), - 'fieldsnames' => array('friend', 'email_title', 'email_body', 'email_editable', 'askAcknowledge', 'email_attachment_bookmarks', '|', + 'fieldsnames' => array('friend', 'email_title', 'email_body', 'email_editable', 'askAcknowledge', '|', 'facebook', 'facebook_title', 'facebook_description', '|', 'twitter', 'twitter_description', '|', 'customSharer', '|', 'friendWidth', 'friendHeight')); // . @@ -94,9 +93,10 @@ class wsBookParametres extends wsParametres { // $this->fields['bookmark'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __('Activer les marques-pages')); - $this->fields['bookmarkCorner'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __('Activer les marques-pages sur les coins des pages')); + $this->fields['bookmark_email_title'] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __("Titre de l'email") . ' "' . __('Envoyer à un ami') . '"', 'hint' => __('Laisser vide pour utiliser la valeur par défaut')); + $this->fields['bookmark_email_body'] = array('type' => 'textarea', 'default' => '', 'editable' => true, 'label' => __("Corps de l'email") . ' "' . __('Envoyer à un ami') . '"', 'hint' => __('Laisser vide pour utiliser la valeur par défaut')); $this->forms['bookmark'] = array('label' => __('Marques-pages'), - 'fieldsnames' => array('bookmark', 'bookmarkCorner')); + 'fieldsnames' => array('bookmark', '|', 'bookmark_email_title', 'bookmark_email_body')); $this->fields['help'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __("Activer l'aide")); $this->fields['helpStartup'] = array('type' => 'boolean', 'default' => false, 'editable' => true, 'label' => __("Afficher l'aide au démarrage")); @@ -289,7 +289,6 @@ class wsBookParametres extends wsParametres { $this->forms['seo'] = array('label' => __('Optimisation pour les moteurs de recherche'), 'fieldsnames' => array('seoVersion', 'seoRobots', 'seoDescription')); - $this->fields['home'] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __("Accueil de l'interface multibrochure"), 'grade' => 5); $this->fields['multilang'] = array('type' => 'textarea', 'default' => '', 'editable' => true, 'label' => 'Langues'); $this->forms['multibrochure'] = array('label' => __('Multibrochure'), @@ -312,8 +311,6 @@ class wsBookParametres extends wsParametres { $this->forms['widget'] = array('label' => __('Widget') . ' (' . __('Mini Fluidbook') . ')', 'fieldsnames' => array('widget', 'widgetCover', 'widgetSize', 'widgetQuality', 'widgetStart', 'widgetEnd')); - - $this->fields['extras'] = array('type' => 'textarea', 'default' => '', 'editable' => true, 'label' => __('Extras'), 'grade' => 3); $this->fields['v1SWF'] = array('type' => 'freefile', 'default' => '', 'editable' => true, 'label' => __('Index.swf spécifique'), 'grade' => 5, 'fileFilter' => $swfFilter); -- 2.39.5