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', [
'carousel_id' => 'ic_' . ++$id,
'height' => $block->dataValue('height'),
'duration' => $block->dataValue('duration'),
'perPage' => $block->dataValue('perPage'),
'loop' => $block->dataValue('loop'),
@ -104,7 +104,7 @@ class Carousel extends AbstractBlockLayout
'images' => $images,
'autoSlide' => $block->dataValue('autoSlide'),
'autoSlideInt' => $block->dataValue('autoSlideInt'),
'wrapStyle' => $block->dataValue('wrapStyle'),
'wrapStyle' => $wrap,
'imgStyle' => $block->dataValue('imgStyle'),
'ui_background' => $block->dataValue('ui_background'),
'renderSourceLink' => $block->dataValue('renderSourceLink'),

View File

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