]> _ Git - fluidbook-toolbox.git/commitdiff
wait #6567 @1.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 11 Dec 2023 13:22:02 +0000 (14:22 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 11 Dec 2023 13:22:02 +0000 (14:22 +0100)
app/Models/Traits/PublicationSettings.php

index 48f891cf0fd4af63a61a8e4265a8fc2a56189f39..74021424c7a566e6eea624694a499dab2418352a 100644 (file)
@@ -64,9 +64,15 @@ trait PublicationSettings
         $this->_elearning();
         $this->_secure();
         $this->_advanced();
+        $this->_disabled();
         stop_measure('set settings fields');
     }
 
+    protected function _disabled(){
+        $this->addSettingField('ambientSound', Hidden::class, $this->__('Ambiance sonore'));
+        $this->addSettingField('ambientSoundVolume', Hidden::class, $this->__('Volume de l\'ambiance sonore'));
+    }
+
     protected function _mainSettings()
     {
         $this->_description();
@@ -924,21 +930,6 @@ trait PublicationSettings
             'default' => 100,
             'suffix' => '%',
         ]);
-//        $this->addSettingField('', FormSeparator::class);
-//        $this->addSettingField('ambientSound', FilesOrURL::class, $this->__('Ambiance sonore'), [
-//            'v2' => '{"type":"freefile","default":"","editable":false,"label":"\\u00a7!\\u00a7Ambiance sonore!\\u00a7!","grade":3,"fileFilter":{"name":"\\u00a7!\\u00a7Fichier sonore!\\u00a7! (*.mp3, *.wav)","extensions":"*.mp3;*.wav"}}',
-//            'accept' => [
-//                0 => '*.mp3',
-//                0 => '*.wav',
-//            ],
-//        ]);
-//        $this->addSettingField('ambientSoundVolume', Integer::class, $this->__('Volume de l\'ambiance sonore'), [
-//            'v2' => '{"type":"integer","default":50,"editable":false,"label":"\\u00a7!\\u00a7Volume de l\'ambiance sonore!\\u00a7!","min":0,"max":100}',
-//            'min' => 0,
-//            'max' => 100,
-//            'default' => 50,
-//            'suffix' => '%',
-//        ]);
     }
 
     protected function _downloadpdf()