oc-shopaholic/oc-shopaholic-plugin

View on GitHub
controllers/promoblocks/preview.htm

Summary

Maintainability
Test Coverage
<?php Block::put('breadcrumb') ?>
    <ul>
        <li><a href="<?= Backend::url('lovata/shopaholic/promoblocks') ?>"><?= e(trans('lovata.shopaholic::lang.promo_block.list_title')) ?></a></li>
        <li><?= e($this->pageTitle) ?></li>
    </ul>
<?php Block::endPut() ?>

<?php if (!$this->fatalError): ?>

    <div class="form-preview">
        <?= $this->formRenderPreview() ?>
    </div>

<?php else: ?>
    <p class="flash-message static error"><?= e($this->fatalError) ?></p>
<?php endif ?>

<p>
    <a href="<?= Backend::url('lovata/shopaholic/promoblocks') ?>" class="btn btn-default oc-icon-chevron-left">
        <?= e(trans('backend::lang.form.return_to_list')) ?>
    </a>
</p>