From: vincent@cubedesigners.com Date: Wed, 4 Nov 2020 11:43:26 +0000 (+0000) Subject: wait #4042 @0:15 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=4804bf10f70e2971123a0b4178ebda47f8e628da;p=cubeextranet.git wait #4042 @0:15 --- diff --git a/fluidbook/sounds/woosh/flip.mp3 b/fluidbook/sounds/woosh/flip.mp3 new file mode 100644 index 000000000..1e6d9060e Binary files /dev/null and b/fluidbook/sounds/woosh/flip.mp3 differ diff --git a/inc/ws/Metier/class.ws.book.parametres.php b/inc/ws/Metier/class.ws.book.parametres.php index eb186ae65..bd47f1c0c 100644 --- a/inc/ws/Metier/class.ws.book.parametres.php +++ b/inc/ws/Metier/class.ws.book.parametres.php @@ -386,7 +386,8 @@ class wsBookParametres extends wsParametres __('Classique') => 'classic', __("Papier épais") => 'heavy', __("Papier fin") => 'light', - __("Silencieux") => 'silent')); + __("Silencieux") => 'silent', + __('Woosh') => 'woosh')); $this->fields['soundOn'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __("Activer les effets sonores à l'ouverture")); $this->forms['sound'] = array('label' => __('Effets sonores'), 'fieldsnames' => array('soundTheme', 'soundOn', '|', 'ambientSound', 'ambientSoundVolume')); diff --git a/inc/ws/Util/html5/master/class.ws.html5.compiler.php b/inc/ws/Util/html5/master/class.ws.html5.compiler.php index f4800b52d..67dee5341 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -834,6 +834,7 @@ class wsHTML5Compiler if ($this->book->parametres->soundTheme == '') { return; } + $this->config->simpleSoundTheme=file_exists(WS_SOUNDS . '/' . $this->book->parametres->soundTheme.'/flip.mp3'); $this->vdir->copyDirectory(WS_SOUNDS . '/' . $this->book->parametres->soundTheme, 'data/sounds'); }