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.
|
- <?php
-
- use yii\helpers\Html;
-
- ?>
-
- <?php if($display && $message): ?>
- <div class="alert alert-<?= $type ?>">
- <?php if(isset($title) && $title): ?>
- <h4>
- <?php if($icon): ?>
- <i class="icon fa fa-<?= $icon ?>"></i>
- <?php endif; ?>
- <?= $title ?>
- </h4>
- <?php endif; ?>
- <p>
- <?php if((!isset($title) || !$title) && $icon): ?>
- <i class="icon fa fa-<?= $icon ?>"></i>
- <?php endif; ?>
- <?php if(is_array($message)): ?>
- <?php foreach($message as $key => $mess): ?>
- <?= nl2br($mess); ?>
- <?php if($key !== array_key_last($message)): ?><br /><?php endif; ?>
- <?php endforeach; ?>
- <?php else: ?>
- <?= nl2br($message); ?>
- <?php endif; ?>
- </p>
- </div>
- <?php endif; ?>
|