Exemple #1
1
 /**
  * @param Form\Container\TabContainer $container
  */
 public function createConfig(Form\Container\TabContainer $container)
 {
     $container->addTab($this->createMainConfigTab());
     $tab = $this->createTab('responsive_tab', '__responsive_colors__');
     $container->addTab($tab);
     $tab->addElement($this->createBottomTabPanel());
 }
Exemple #2
1
 public function createConfig(Form\Container\TabContainer $container)
 {
     $tab = $this->createTab('swag_custom_theme', 'Custom theme');
     $container->addTab($tab);
     $fieldSet = $this->createFieldSet('swag_custom_theme_field_set', 'Badge configuration');
     $fieldSet->addElement($this->createColorPickerField('badge-seo-category-bg', 'Background seo category badge', '#e74c3c'));
     $fieldSet->addElement($this->createColorPickerField('badge-seo-category-color', 'Color seo category badge', '#fff'));
     $tab->addElement($fieldSet);
 }
Exemple #3
1
 public function createConfig(\Shopware\Components\Form\Container\TabContainer $container)
 {
     $container->addTab(new \Shopware\Components\Form\Container\Tab('bare', 'bare'));
 }
Exemple #4
0
 /**
  * @param Form\Container\TabContainer $container
  */
 public function createConfig(Form\Container\TabContainer $container)
 {
     $tab = $this->createTab('bareMain', '__bare_tab_header__', ['attributes' => ['layout' => 'anchor', 'autoScroll' => true, 'padding' => '0']]);
     $fieldSet = $this->createFieldSet('bareLogos', '__logos__', ['attributes' => ['padding' => '10', 'margin' => '5', 'layout' => 'anchor', 'defaults' => ['labelWidth' => 155, 'anchor' => '100%']]]);
     $fieldSet->addElement($this->createMediaField('mobileLogo', '__smartphone__', 'frontend/_public/src/img/logos/logo--mobile.png', ['attributes' => ['lessCompatible' => false]]));
     $fieldSet->addElement($this->createMediaField('tabletLogo', '__tablet__', 'frontend/_public/src/img/logos/logo--tablet.png', ['attributes' => ['lessCompatible' => false]]));
     $fieldSet->addElement($this->createMediaField('tabletLandscapeLogo', '__tablet_landscape__', 'frontend/_public/src/img/logos/logo--tablet.png', ['attributes' => ['lessCompatible' => false]]));
     $fieldSet->addElement($this->createMediaField('desktopLogo', '__desktop__', 'frontend/_public/src/img/logos/logo--tablet.png', ['attributes' => ['lessCompatible' => false]]));
     $tab->addElement($fieldSet);
     $fieldSet = $this->createFieldSet('Icons', '__icons__', ['attributes' => ['padding' => '10', 'margin' => '5', 'layout' => 'anchor', 'defaults' => ['labelWidth' => 155, 'anchor' => '100%']]]);
     $fieldSet->addElement($this->createMediaField('appleTouchIcon', '__apple_touch_icon__', 'frontend/_public/src/img/apple-touch-icon-precomposed.png', ['attributes' => ['lessCompatible' => false]]));
     $fieldSet->addElement($this->createCheckboxField('setPrecomposed', 'Precomposed Icon', true, $this->getLabelAttribute('apple_touch_icon_precomposed')));
     $fieldSet->addElement($this->createMediaField('win8TileImage', '__win8_tile_image__', 'frontend/_public/src/img/win-tile-image.png', ['attributes' => ['lessCompatible' => false]]));
     $fieldSet->addElement($this->createMediaField('favicon', '__favicon__', 'frontend/_public/src/img/favicon.ico', ['attributes' => ['lessCompatible' => false]]));
     $tab->addElement($fieldSet);
     $container->addTab($tab);
 }
Exemple #5
0
 /**
  * Creates a ext js tab panel.
  * @param $name
  * @param array $options
  * @return Form\Container\TabContainer
  */
 protected function createTabPanel($name, array $options = array())
 {
     $element = new Form\Container\TabContainer($name);
     $element->fromArray($options);
     return $element;
 }