Skip to content
Snippets Groups Projects

fix #142673 fix display groups in widgets form settings

Merged Ghislain Loas requested to merge fix#142673_packs_for_themes into master
Compare and
3 files
+ 8
6
Preferences
Compare changes
Files
3
@@ -56,18 +56,20 @@ class Intonation_Library_FormCustomizer_Widget_Default extends Intonation_Librar
protected function _addStylesPack() : self {
return $this->_addPack('styles_pack',
$this->_template->getStylesPack(),
$this->_('Modèle de styles'));
$this->_('Modèle de styles'),
'addToStyleGroup');
}
protected function _addResponsivePack() : self {
return $this->_addPack('responsive_pack',
$this->_template->getResponsivePack(),
$this->_('Modèle d\'adaptabilité'));
$this->_('Modèle d\'adaptabilité'),
'addToResponsiveGroup');
}
protected function _addPack(string $id, array $packs, string $label) : self {
protected function _addPack(string $id, array $packs, string $label, string $group) : self {
$name = $this->_template->withNameSpace($id);
$multi_options = ['#' => ''];
@@ -81,7 +83,7 @@ class Intonation_Library_FormCustomizer_Widget_Default extends Intonation_Librar
'multiOptions' => $multi_options,
'value' => '#'])
->addToStyleGroup([$name]);
->$group([$name]);
return $this;
}