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

23 lines
724 B
HTML

<?php if ($this->previewMode && !$fileList->count()): ?>
<div class="form-control">
<?= $value ?>
</div>
<?php else: ?>
<div data-responsiveimage>
<div>
<app formid="<?php echo $this->getId(); ?>" name="<?= $name ?>" :handlers="{
onUpload: '<?= $this->getEventHandler('onUpload') ?>',
onDelete: '<?= $this->getEventHandler('onDelete') ?>'
}"
:crop-options="{
aspectRatio: <?= $aspectRatio ?>,
minWidth: <?= $minWidth ?>,
}"
:value="<?= $value; ?>"
:meta="<?= $meta; ?>"
></app>
</div>
</div>
<?php endif ?>