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

24 lines
807 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>
2020-10-25 23:02:13 +01:00
<app formid="<?php echo $this->getId(); ?>" name="<?= $name ?>" :handlers="{
onUpload: '<?= $this->getEventHandler('onUpload') ?>',
2020-10-28 01:28:36 +01:00
onOpenDatabase: '<?= $this->getEventHandler('onOpenDatabase') ?>',
2020-10-25 23:02:13 +01:00
onDelete: '<?= $this->getEventHandler('onDelete') ?>'
}"
:crop-options="{
2020-10-25 23:02:13 +01:00
aspectRatio: <?= $aspectRatio ?>,
minWidth: <?= $minWidth ?>,
}"
2020-10-25 23:02:13 +01:00
:value="<?= $value; ?>"
2020-10-27 01:49:52 +01:00
:meta="<?= $meta; ?>"
></app>
2020-10-21 00:02:20 +02:00
</div>
</div>
2020-10-21 00:02:20 +02:00
<?php endif ?>