]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 2 Dec 2014 13:59:50 +0000 (13:59 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 2 Dec 2014 13:59:50 +0000 (13:59 +0000)
inc/ws/DAO/class.ws.dao.book.php
inc/ws/Metier/class.ws.book.parametres.php

index 2d9e9bdb429546776e8d68cf2534713d4c5985b4..5367d69272dd01be6840d2077589f7eb3ed8db08 100644 (file)
@@ -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;
index 892c10f67e8f84a9be94a4bd51346373e8552772..c333be5301f662bc6972afe92e6ef9556e6cd81f 100644 (file)
@@ -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"));