$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();
'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()