Skip to content

Add ability to use a brandImage with the navbar #171

@Ariestattoo

Description

@Ariestattoo

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions