system/modules/pct_theme_templates/templates/form/form_textfield.html5 line 34

Open in your IDE?
  1. <?php // strip fontawesome from input class
  2. $class $this->class;
  3. if($this->addFontIcon)
  4. {
  5.     $class str_replace(array($this->fontIcon,'fa'),array('',''),$class);
  6. }
  7. ?>
  8. <?php $this->extend('form_row'); ?>
  9. <?php $this->block('label'); ?>
  10.   <?php if ($this->label): ?>
  11.     <label for="ctrl_<?= $this->id ?>"<?php if ($this->class): ?> class="<?= $class ?>"<?php endif; ?>>
  12.       <?php if ($this->mandatory): ?>
  13.         <span class="invisible"><?= $this->mandatoryField ?> </span><?= $this->label ?><span class="mandatory">*</span>
  14.       <?php else: ?>
  15.         <?= $this->label ?>
  16.       <?php endif; ?>
  17.     </label>
  18.   <?php endif; ?>
  19. <?php $this->endblock(); ?>
  20. <?php $this->block('field'); ?>
  21.   <?php if ($this->hasErrors()): ?>
  22.     <p class="error"><?= $this->getErrorAsString() ?></p>
  23.   <?php endif; ?>
  24.   <?php if ($this->addFontIcon): ?>
  25.   <div class="formicon-wrapper">
  26.   <span class="input-group-addon"><i class="<?php echo $this->fontIcon?>"></i></span>
  27.   <?php endif; ?>
  28.   
  29.   <input type="<?= $this->type ?>" name="<?= $this->name ?>" id="ctrl_<?= $this->id ?>" class="text<?php if ($this->hideInput) echo ' password'?><?php if ($class) echo ' ' $class?>" value="<?= specialchars($this->value?>"<?= $this->getAttributes() ?>>
  30.   <?php if ($this->addSubmit): ?>
  31.     <input type="submit" id="ctrl_<?= $this->id ?>_submit" class="submit" value="<?= $this->slabel ?>">
  32.   <?php endif; ?>
  33.   <?php if ($this->addFontIcon): ?>
  34.   </div>
  35.   <?php endif; ?>
  36. <?php $this->endblock(); ?>