-
-
Notifications
You must be signed in to change notification settings - Fork 190
Add ability to use a brandImage with the navbar #171
Copy link
Copy link
Closed
Labels
type:enhancementEnhancementEnhancement
Milestone
Description
Bootstrap Navbar allows the use of an image in the navbar instead of txt
http://getbootstrap.com/components/#navbar-brand-image
Simple addition of the property and code allows this enhancement, I have a fix to push however it does dig the hole deeper for issue #164
http://getbootstrap.com/components/#navbar-brand-image
if ($this->brandImage !== false) {
Html::addCssClass($this->brandOptions, ['widget' => 'navbar-brand']);
echo Html::a(Html::img($this->brandImage), $this->brandUrl === false ? Yii::$app->homeUrl : $this->brandUrl, $this->brandOptions);
}| Q | A |
|---|---|
| Yii vesion | 2.1 |
| PHP version | 7.1 |
| Operating system | Ubuntu 16.04 |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type:enhancementEnhancementEnhancement