From e9c6768e9dc6c91608395dfcc5b59c5ccacf9cba Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 18 Nov 2019 14:03:27 +0000 Subject: [PATCH] wip #3120 @1 --- inc/ws/Metier/class.ws.book.parametres.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/ws/Metier/class.ws.book.parametres.php b/inc/ws/Metier/class.ws.book.parametres.php index 8cc4722eb..1b28327db 100644 --- a/inc/ws/Metier/class.ws.book.parametres.php +++ b/inc/ws/Metier/class.ws.book.parametres.php @@ -376,8 +376,10 @@ class wsBookParametres extends wsParametres $this->fields['flatTabsAbsolute'] = array('type' => 'boolean', 'default' => false, "editable" => true, 'label' => __("Positionnement relatif à l'interface"), 'grade' => 5); + $this->fields['tabsPriority'] = ['type' => 'integer', 'min' => 0, 'max' => 100, 'default' => 15, 'editable' => true, 'label' => 'Priorité des onglets sur les contenus (%)', 'hint' => 'La valeur indique la réduction permise de la taille de la publication.']; + $this->forms['tabs'] = array('label' => __('Onglets'), - 'fieldsnames' => array('ongletsSWF', 'ongletsXML', '|', 'tabs2DSWF', 'flatTabsAbsolute', '|', 'tabsHTML5')); + 'fieldsnames' => array('ongletsSWF', 'ongletsXML', '|', 'tabs2DSWF', 'flatTabsAbsolute', '|', 'tabsHTML5', 'tabsPriority')); $this->fields['customLinkClass'] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __('Classe pour les liens personnalisés'), 'grade' => 5); $this->fields['permanentLinks'] = array('type' => 'boolean', 'default' => false, 'editable' => true, 'label' => __('Liens visibles en permanence'), 'grade' => 3); -- 2.39.5