]> _ Git - fluidbook-toolbox.git/commitdiff
wait #6740
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 21 Feb 2024 16:09:09 +0000 (17:09 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 21 Feb 2024 16:09:09 +0000 (17:09 +0100)
app/Models/Traits/PublicationSettings.php

index b20c1cb150cb62882db7e6e935bb207567ad355b..a430e2f35ed3b4c977ed7837d9e05c84444d139e 100644 (file)
@@ -1387,16 +1387,23 @@ trait PublicationSettings
 
     protected function _audioplayer()
     {
+        $themes = [
+            'native' => $this->__('Apparence native du navigateur'),
+            'invisible' => $this->__('Zone cliquable invisible'),
+            'redbull' => $this->__('Circulaire'),
+            'twostatesicon' => $this->__('Icône à deux états'),
+        ];
+
         $this->addSettingField('section_audio', FormSection::class, $this->__('Lecteur audio'));
         $this->addSettingField('audioPlayerTheme', SelectFromArray::class, $this->__('Apparence du lecteur audio'), [
             'v2' => '{"type":"combo","default":"native","editable":true,"label":"\\u00a7!\\u00a7Apparence du lecteur audio!\\u00a7!","datas":{"\\u00a7!\\u00a7Apparence native du navigateur!\\u00a7!":"native","\\u00a7!\\u00a7Zone cliquable invisible!\\u00a7!":"invisible","\\u00a7!\\u00a7Circulaire!\\u00a7!":"redbull"}}',
-            'options' => [
-                'native' => $this->__('Apparence native du navigateur'),
-                'invisible' => $this->__('Zone cliquable invisible'),
-                'redbull' => $this->__('Circulaire'),
-                'twostatesicon' => $this->__('Icône à deux états'),
-            ],
+            'options' => $themes,
+            'default' => 'native',
+        ]);
+
+        $this->addSettingField('audioPlayerThemePopup', SelectFromArray::class, $this->__('Apparence du lecteur audio en popup'), [
             'default' => 'native',
+            'options' => array_merge(['inline' => __('Même apparence que les audios insérés dans les pages')], $themes),
         ]);
     }