|
@@ 148-152 (lines=5) @@
|
| 145 |
|
} |
| 146 |
|
|
| 147 |
|
// Set badge if exists |
| 148 |
|
if ($badge = $this->data->getBadge()) { |
| 149 |
|
$badge = Utils\Html::el('span') |
| 150 |
|
->addAttributes(['class' => 'badge badge-' . $badge]) |
| 151 |
|
->render(); |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
// Set icon if exists |
| 155 |
|
if ($icon = $this->data->getIcon()) { |
|
@@ 155-159 (lines=5) @@
|
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
// Set icon if exists |
| 155 |
|
if ($icon = $this->data->getIcon()) { |
| 156 |
|
$icon = Utils\Html::el('span') |
| 157 |
|
->addAttributes(['class' => 'icon icon-' . $icon]) |
| 158 |
|
->render(); |
| 159 |
|
} |
| 160 |
|
|
| 161 |
|
// Assign basic widget data to template |
| 162 |
|
$this->template->add('badge', $badge); |