From: vincent@cubedesigners.com Date: Tue, 2 Dec 2014 13:59:50 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=38ee9ad5d8e90b75e570354f8e823b62efba0deb;p=cubeextranet.git --- diff --git a/inc/ws/DAO/class.ws.dao.book.php b/inc/ws/DAO/class.ws.dao.book.php index 2d9e9bdb4..5367d6927 100644 --- a/inc/ws/DAO/class.ws.dao.book.php +++ b/inc/ws/DAO/class.ws.dao.book.php @@ -1211,7 +1211,7 @@ class wsDAOBook extends commonDAO { } } - $externalsOptions = array('ongletsSWF', 'tabs2DSWF', 'externalChapters', 'externalArchives'); + $externalsOptions = array('ongletsSWF', 'tabs2DSWF', 'externalChapters', 'externalArchives', 'ambientSound'); foreach ($externalsOptions as $e) { if (isset($book->parametres->$e) && $book->parametres->$e != '') { $f = $workingDir . '/' . $book->parametres->$e; diff --git a/inc/ws/Metier/class.ws.book.parametres.php b/inc/ws/Metier/class.ws.book.parametres.php index 892c10f67..c333be530 100644 --- a/inc/ws/Metier/class.ws.book.parametres.php +++ b/inc/ws/Metier/class.ws.book.parametres.php @@ -38,6 +38,10 @@ class wsBookParametres extends wsParametres { $epsFilter->name = __('Fichier vectoriel') . ' (*.ai, *.eps)'; $epsFilter->extensions = '*.ai;*.eps'; + $soundFilter = new stdClass(); + $soundFilter->name = __('Fichier sonore') . ' (*.mp3, *.wav)'; + $soundFilter->extensions = '*.mp3;*.wav'; + $this->fields['version'] = array('type' => 'combo', 'default' => '2', 'editable' => true, 'label' => __('Version'), 'datas' => array('1' => '1', '2' => '2'), 'grade' => 3); $this->fields['title'] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __("Titre de la publication"), 'embed' => false); $this->fields['url_link'] = array('type' => 'text', 'default' => 'http://', 'editable' => true, 'label' => __("URL du lien de retour au site")); @@ -160,8 +164,10 @@ class wsBookParametres extends wsParametres { __("Papier épais") => 'heavy', __("Papier fin") => 'light')); $this->fields['soundOn'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __("Activer les effets sonores à l'ouverture")); + $this->fields['ambientSound'] = array('type' => 'freefile', 'default' => '', 'editable' => true, + 'label' => __('Ambiance sonore'), 'grade' => 3, 'fileFilter' => $soundFilter); $this->forms['sound'] = array('label' => __('Effets sonores'), - 'fieldsnames' => array('soundTheme', 'soundOn')); + 'fieldsnames' => array('soundTheme', 'soundOn', 'ambientSound')); // . $this->fields['pdf'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __("Activer les fonctions de téléchargement")); $this->fields['pdfName'] = array('type' => 'text', 'default' => 'document.pdf', 'editable' => true, 'label' => __("Nom du fichier PDF"));