recovers working carousel
This commit is contained in:
parent
79d366ca8c
commit
0183bb4428
|
@ -3,15 +3,17 @@
|
||||||
flex-wrap: nowrap !important;
|
flex-wrap: nowrap !important;
|
||||||
}
|
}
|
||||||
.siema {
|
.siema {
|
||||||
margin: 1rem 0;
|
/*margin: 1rem 0;*/
|
||||||
background-color: #000;
|
background-color: #000;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.siema-img {
|
.siema-img {
|
||||||
display: block;
|
display: block;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#siema-ui {
|
#siema-ui {
|
||||||
|
|
|
@ -92,10 +92,9 @@ class Carousel extends AbstractBlockLayout
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$wrap = $block->dataValue('wrapStyle') . 'height:'.$block->dataValue('height').';';
|
||||||
return $view->partial('common/block-layout/simple-carousel', [
|
return $view->partial('common/block-layout/simple-carousel', [
|
||||||
'carousel_id' => 'ic_' . ++$id,
|
'carousel_id' => 'ic_' . ++$id,
|
||||||
'height' => $block->dataValue('height'),
|
|
||||||
'duration' => $block->dataValue('duration'),
|
'duration' => $block->dataValue('duration'),
|
||||||
'perPage' => $block->dataValue('perPage'),
|
'perPage' => $block->dataValue('perPage'),
|
||||||
'loop' => $block->dataValue('loop'),
|
'loop' => $block->dataValue('loop'),
|
||||||
|
@ -104,7 +103,7 @@ class Carousel extends AbstractBlockLayout
|
||||||
'images' => $images,
|
'images' => $images,
|
||||||
'autoSlide' => $block->dataValue('autoSlide'),
|
'autoSlide' => $block->dataValue('autoSlide'),
|
||||||
'autoSlideInt' => $block->dataValue('autoSlideInt'),
|
'autoSlideInt' => $block->dataValue('autoSlideInt'),
|
||||||
'wrapStyle' => $block->dataValue('wrapStyle'),
|
'wrapStyle' => $wrap,
|
||||||
'imgStyle' => $block->dataValue('imgStyle'),
|
'imgStyle' => $block->dataValue('imgStyle'),
|
||||||
'ui_background' => $block->dataValue('ui_background'),
|
'ui_background' => $block->dataValue('ui_background'),
|
||||||
'renderSourceLink' => $block->dataValue('renderSourceLink'),
|
'renderSourceLink' => $block->dataValue('renderSourceLink'),
|
||||||
|
|
|
@ -7,9 +7,6 @@
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.siema { margin: 0; }
|
|
||||||
.siema-wrap { height: <?php echo $height ?>; }
|
|
||||||
.siema-img { width: 100%; }
|
|
||||||
#siema-ui {
|
#siema-ui {
|
||||||
/* background-color: <?php echo $ui_background ?>; */
|
/* background-color: <?php echo $ui_background ?>; */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue