vendor/terminal42/contao-fineuploader/contao/templates/fineuploader_frontend.html5 line 30

Open in your IDE?
  1. <?php $this->extend('form_row'); ?>
  2. <?php $this->block('label'); ?>
  3. <?php if ($this->label): ?>
  4.     <label for="ctrl_<?= $this->id ?>"<?php if ($this->class): ?> class="<?= $this->class ?>"<?php endif; ?>>
  5.         <?php if ($this->mandatory): ?>
  6.             <span class="invisible"><?= $this->mandatoryField ?> </span><?= $this->label ?><span class="mandatory">*</span>
  7.         <?php else: ?>
  8.             <?= $this->label ?>
  9.         <?php endif; ?>
  10.     </label>
  11. <?php endif; ?>
  12. <?php $this->endblock(); ?>
  13. <?php $this->block('field'); ?>
  14. <?php if ($this->hasErrors()): ?>
  15.     <p class="error"><?= $this->getErrorAsString() ?></p>
  16. <?php endif; ?>
  17. <div id="fineuploader-widget-<?= $this->id ?>" class="fineuploader-wrapper">
  18.     <div class="fineuploader-container" data-fineuploader="ajax-container">
  19.         <?= $this->parseValues() ?>
  20.     </div>
  21.     <script type="text/template" id="qq-template-<?= $this->id ?>">
  22.         <?php
  23.         // Temporarily set the debug mode to false to avoid debug template tags like <!-- TEMPLATE START: ... -->
  24.         $debug = \Contao\Config::get('debugMode'); \Contao\Config::set('debugMode'false);
  25.         ?>
  26.         <?php $this->insert('fineuploader_uploader'$this->arrConfiguration?>
  27.         <?php \Contao\Config::set('debugMode'$debug); ?>
  28.     </script>
  29.     <div id="<?= $this->id ?>-fineuploader" class="upload-container" data-fineuploader="uploader"></div>
  30.     <?php $this->includeAssets(); ?>
  31.     <script>
  32.         (function() {
  33.             new ContaoFineUploaderFrontend(
  34.                 document.getElementById('fineuploader-widget-<?= $this->id ?>'),
  35.                 <?= json_encode($this->jsConfig?>,
  36.                 {errorMessage: '<?= $GLOBALS['TL_LANG']['ERR']['general'?>'}
  37.             );
  38.         }());
  39.     </script>
  40. </div>
  41. <?php $this->endblock(); ?>