widget.html.configure.php 754 B

1234567891011121314151617181920
  1. <?php
  2. $html = empty( $widget->data('html')) ? '<div class="p-3">Votre texte ici</div>': $widget->data('html');
  3. ?>
  4. <div id="dashboard-widget-html-form">
  5. <div>
  6. <label class="m-0">Titre / couleur de la fenetre :</label>
  7. <div class="input-group mb-2">
  8. <input class="form-control" type="text" value="<?php echo $widget->data('title'); ?>" id="widget-html-title">
  9. <input class="form-control" data-type="color" type="text" value="<?php echo $widget->data('color'); ?>" id="widget-html-color">
  10. </div>
  11. </div>
  12. <div>
  13. <label class="m-0">Code html à afficher :</label>
  14. <textarea data-type="wysiwyg" data-script-allow="true" class="mt-0 mb-2" id="widget-html-content" style="height:400px;"><?php echo $html; ?></textarea>
  15. </div>
  16. </div>