widget.configure.php 1.2 KB

123456789101112131415161718192021
  1. <div id="navigation-widget-form">
  2. <label for="">Icone / Titre / Couleur :</label>
  3. <div class="input-group mb-2">
  4. <input class="form-control" type="text" data-type="icon" value="<?php echo empty($widget->data('icon'))?'far fa-bookmark':$widget->data('icon'); ?>" id="widget-icon">
  5. <input class="form-control" type="text" value="<?php echo $widget->data('title'); ?>" id="widget-title">
  6. <input class="form-control" type="text" data-type="color" value="<?php echo empty($widget->data('color'))?'#000000':$widget->data('color'); ?>" id="widget-color">
  7. </div>
  8. <label for="">Adresse URL :</label>
  9. <div class="input-group mb-2">
  10. <div class="input-group-prepend">
  11. <div class="input-group-text">
  12. <label for="widget-redirect" class="pointer mb-0">Redirection</label>
  13. <input data-type="checkbox" name="widget-redirect" id="widget-redirect" <?php echo $widget->data('redirect') ? 'checked' : ''; ?>>
  14. </div>
  15. </div>
  16. <input class="form-control text-success" type="text" value="<?php echo $widget->data('url'); ?>" id="widget-url">
  17. <div class="input-group-append">
  18. <a href="<?php echo $widget->data('url'); ?>" target="_blank" class="text-success text-decoration-none input-group-text"><i class="fas fa-globe"></i></a>
  19. </div>
  20. </div>
  21. </div>