Skip to content

Commit

Permalink
Alert
Browse files Browse the repository at this point in the history
  • Loading branch information
hail committed Jun 17, 2021
1 parent a1298b4 commit 67454f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Alert.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Alert extends Widget

public $type;

public $title = 'Alert';
public $title = 'Alert!';

public $icon;

Expand Down Expand Up @@ -81,7 +81,7 @@ public function run()
if (!$this->simple) {
$icon = $this->icon ?? $this->alertTypes[$this->type]['icon'] ?? null;
$iconHtml = $icon ? '<i class="icon fas '.$icon.'"></i>' : '';
$head = '<h5>'.$iconHtml.' '.$this->title.'!</h5>';
$head = '<h5>'.$iconHtml.' '.$this->title.'</h5>';
}

echo \yii\bootstrap4\Alert::widget([
Expand Down

0 comments on commit 67454f5

Please sign in to comment.