oc-resizer-plugin/formwidgets/responsiveimage/partials/_responsiveimage.htm

21 lines
669 B
HTML
Raw Normal View History

2020-10-21 00:02:20 +02:00
<?php if ($this->previewMode && !$fileList->count()): ?>
<div class="form-control">
<?= $value ?>
</div>
2020-10-21 00:02:20 +02:00
<?php else: ?>
<div data-responsiveimage>
<div>
<app formid="<?php echo $this->getId(); ?>" name="<?= $this->getFieldName() ?>" :handlers="{
onUpload: '<?= $this->getEventHandler('onUpload') ?>'
}"
:crop-options="{
aspectRatio: <?= $this->aspectRatio ?: 'null' ?>,
minWidth: <?= $this->minWidth ?: '0' ?>,
}"
mode="<?= $this->displayMode ?>"
></app>
2020-10-21 00:02:20 +02:00
</div>
</div>
2020-10-21 00:02:20 +02:00
<?php endif ?>