]> _ Git - cubeextranet.git/commitdiff
wait #4042 @0:15
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 4 Nov 2020 11:43:26 +0000 (11:43 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 4 Nov 2020 11:43:26 +0000 (11:43 +0000)
fluidbook/sounds/woosh/flip.mp3 [new file with mode: 0644]
inc/ws/Metier/class.ws.book.parametres.php
inc/ws/Util/html5/master/class.ws.html5.compiler.php

diff --git a/fluidbook/sounds/woosh/flip.mp3 b/fluidbook/sounds/woosh/flip.mp3
new file mode 100644 (file)
index 0000000..1e6d906
Binary files /dev/null and b/fluidbook/sounds/woosh/flip.mp3 differ
index eb186ae65906bf4bcf9255a8193d63e8deed4de7..bd47f1c0c926bae9a6390a14f8dce80c18c67452 100644 (file)
@@ -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'));
index f4800b52da4b96efd682f5dc771401f293a61d69..67dee5341853e74591044d65e09498541ecfd5d0 100644 (file)
@@ -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');
     }