https://github.com/samdark/yii2-iconized-menu-widget
Menu with favicons for each item.
https://github.com/samdark/yii2-iconized-menu-widget
favicon icons widget yii2
Last synced: 6 months ago
JSON representation
Menu with favicons for each item.
- Host: GitHub
- URL: https://github.com/samdark/yii2-iconized-menu-widget
- Owner: samdark
- License: bsd-3-clause
- Created: 2014-01-09T17:29:45.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2019-05-23T15:48:26.000Z (over 6 years ago)
- Last Synced: 2025-03-27T12:38:26.091Z (6 months ago)
- Topics: favicon, icons, widget, yii2
- Language: PHP
- Size: 9.77 KB
- Stars: 8
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
Iconized menu
=============Allows you to create a menu with the corresponding favicon on the left of each item.

Installation
------------Add the following to `require` section of your `composer.json`:
```
"samdark/yii2-iconized-menu-widget": "*"
```Then do `composer install`.
Usage
-----```php
use samdark\iconizedMenu;
echo Menu::widget([
'items' => [
['label' => 'Yii Framework', 'url' => 'http://yiiframework.com/'],
['label' => 'RMCreative', 'url' => 'http://rmcreative.ru/', 'items' => [
['label' => 'Yii Framework Russia', 'url' => 'http://yiiframework.ru/'],
]],
['label' => 'Twitter', 'url' => 'http://twitter.com/'],
],
]);
```