From cca7cced4cc9db2046923069540c6601f5a7ad93 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 11 Dec 2023 14:22:02 +0100 Subject: [PATCH] wait #6567 @1.25 --- app/Models/Traits/PublicationSettings.php | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/app/Models/Traits/PublicationSettings.php b/app/Models/Traits/PublicationSettings.php index 48f891cf0..74021424c 100644 --- a/app/Models/Traits/PublicationSettings.php +++ b/app/Models/Traits/PublicationSettings.php @@ -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() -- 2.39.5