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

24 lines
807 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') ?>',
onOpenDatabase: '<?= $this->getEventHandler('onOpenDatabase') ?>',
onDelete: '<?= $this->getEventHandler('onDelete') ?>'
}"
:crop-options="{
aspectRatio: <?= $aspectRatio ?>,
minWidth: <?= $minWidth ?>,
}"
:value="<?= $value; ?>"
:meta="<?= $meta; ?>"
></app>
</div>
</div>
<?php endif ?>