sets height per carousel

This commit is contained in:
buttle 2021-09-13 14:02:18 +02:00
parent 79d366ca8c
commit 1259955cb8
2 changed files with 3 additions and 4 deletions

View File

@ -93,9 +93,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 +104,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'),

View File

@ -8,7 +8,6 @@
<style> <style>
.siema { margin: 0; } .siema { margin: 0; }
.siema-wrap { height: <?php echo $height ?>; }
.siema-img { width: 100%; } .siema-img { width: 100%; }
#siema-ui { #siema-ui {
/* background-color: <?php echo $ui_background ?>; */ /* background-color: <?php echo $ui_background ?>; */
@ -69,7 +68,7 @@ $(document).ready(function() {
let caret_r = '<?php echo $caret_r;?>'; let caret_r = '<?php echo $caret_r;?>';
$('#siema-ui').append(caret); $('#siema-ui').append(caret);
$('#siema-ui').append(caret_r); $('#siema-ui accesskey=""').append(caret_r);
$('.caret#left').click(function () {siema.prev()}); $('.caret#left').click(function () {siema.prev()});
$('.caret#right').click(function () {siema.next()}); $('.caret#right').click(function () {siema.next()});