]> _ Git - fluidbook-toolbox.git/commitdiff
wait #6672 @0:10
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 24 Jan 2024 09:47:54 +0000 (10:47 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 24 Jan 2024 09:47:54 +0000 (10:47 +0100)
app/Models/Traits/PublicationSettings.php

index 89a289394fb6cd70d22c417530158f93ec2d8bae..3d23b5915f81a86fba943ca0763c749de796007c 100644 (file)
@@ -73,6 +73,10 @@ trait PublicationSettings
 
     protected function _disabled()
     {
+//        $this->addSettingField('', FormSeparator::class);
+        $this->addSettingField('mobileVideosPath', Hidden::class, $this->__('Chemin vers les vidéos'), [
+            'v2' => '{"type":"text","default":"","editable":true,"label":"\\u00a7!\\u00a7Chemin vers les vid\\u00e9os!\\u00a7!","grade":5}',
+        ]);
 
     }
 
@@ -933,7 +937,7 @@ trait PublicationSettings
         $this->addSettingField('soundVolume', Percent::class, $this->__('Volume des effets sonores'), ['default' => 100, 'when' => ['soundTheme' => ['operator' => '!=', 'value' => 'none']]]);
         $this->addSettingField('sep_ambientSound', FormSeparator::class);
         $this->addSettingField('ambientSound', FilesOrURL::class, $this->__('Ambiance sonore'));
-        $this->addSettingField('ambientSoundVolume', Percent::class, $this->__('Volume de l\'ambiance sonore'), ['default' => 50, 'when' => ['ambientSound' => ['operator' =>'not_empty']]]);
+        $this->addSettingField('ambientSoundVolume', Percent::class, $this->__('Volume de l\'ambiance sonore'), ['default' => 50, 'when' => ['ambientSound' => ['operator' => 'not_empty']]]);
     }
 
     protected function _downloadpdf()
@@ -1359,10 +1363,6 @@ trait PublicationSettings
             'v2' => '{"type":"boolean","default":false,"editable":true,"label":"\\u00a7!\\u00a7Int\\u00e9grer les webvid\\u00e9os en local!\\u00a7!"}',
             'default' => false,
         ]);
-//        $this->addSettingField('', FormSeparator::class);
-        $this->addSettingField('mobileVideosPath', Hidden::class, $this->__('Chemin vers les vidéos'), [
-            'v2' => '{"type":"text","default":"","editable":true,"label":"\\u00a7!\\u00a7Chemin vers les vid\\u00e9os!\\u00a7!","grade":5}',
-        ]);
         $this->addSettingField('', FormSeparator::class);
         $this->addSettingField('brightcovePlayerId', LongText::class, $this->__('Identifiant du player Brightcove'), [
             'v2' => '{"type":"text","default":"","editable":true,"label":"\\u00a7!\\u00a7Brightcove Player Id!\\u00a7!","grade":3}',