diff --git a/src/Form/SmartGalleryBlockForm.php b/src/Form/SmartGalleryBlockForm.php index f11fa81..617f33d 100644 --- a/src/Form/SmartGalleryBlockForm.php +++ b/src/Form/SmartGalleryBlockForm.php @@ -10,15 +10,6 @@ class SmartGalleryBlockForm extends Form public function init() { - $this->add([ - 'name' => 'o:block[__blockIndex__][o:data][width]', - 'type' => Element\Select::class, - 'options' => [ - 'label' => 'Width', - 'value_options' => Module::IMAGE_WIDTH, - ], - ]); - $this->add([ 'type' => Element\Checkbox::class, 'name' => 'o:block[__blockIndex__][o:data][renderSourceLink]', diff --git a/src/Site/BlockLayout/SmartGallery.php b/src/Site/BlockLayout/SmartGallery.php index 3112cbe..2e5bd6f 100644 --- a/src/Site/BlockLayout/SmartGallery.php +++ b/src/Site/BlockLayout/SmartGallery.php @@ -48,7 +48,6 @@ class SmartGallery extends AbstractBlockLayout : $this->defaultSettings; $form->setData([ 'o:block[__blockIndex__][o:data][title]' => $data['title'], - 'o:block[__blockIndex__][o:data][width]' => $data['width'], 'o:block[__blockIndex__][o:data][renderSourceLink]' => $data['renderSourceLink'], ]); $form->prepare(); @@ -100,20 +99,11 @@ class SmartGallery extends AbstractBlockLayout } } } - - - - $max_width = $block->dataValue('width'); return $view->partial('common/block-layout/smartGallery', [ 'gallery_id' => 'ig_' . ++$gallery_id, 'title' => $block->dataValue('title'), - //'item' => $item, 'images' => $images, - //'images' => $item->media(), - //'item_url' => $item_url, 'renderSourceLink' => $block->dataValue('renderSourceLink'), - 'width' => $block->dataValue('width'), - 'max_width' => $max_width, ]); } }