You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
586B

  1. <?php
  2. use yii\helpers\Html;
  3. ?>
  4. <?php if($display && $message): ?>
  5. <div class="alert alert-<?= $type ?>">
  6. <?php if($title): ?>
  7. <h4>
  8. <?php if($icon): ?>
  9. <i class="icon fa fa-<?= $icon ?>"></i>
  10. <?php endif; ?>
  11. <?= $title ?>
  12. </h4>
  13. <?php endif; ?>
  14. <p>
  15. <?php if(!$title && $icon): ?>
  16. <i class="icon fa fa-<?= $icon ?>"></i>
  17. <?php endif; ?>
  18. <?= nl2br(Html::encode($message)); ?>
  19. </p>
  20. </div>
  21. <?php endif; ?>