samdark/yii2-iconized-menu-widget

IconizedMenu automatically adds favicons in front of menu links

Fund package maintenance!
samdark
Patreon

Installs: 209

Dependents: 0

Suggesters: 0

Security: 0

Stars: 8

Watchers: 3

Forks: 8

Open Issues: 0

Type:yii2-extension

1.3.2 2014-04-06 17:32 UTC

This package is auto-updated.

Last update: 2024-10-24 03:41:53 UTC


README

Allows you to create a menu with the corresponding favicon on the left of each item.

Screenshot of the menu

Installation

Add the following to require section of your composer.json:

"samdark/yii2-iconized-menu-widget": "*"

Then do composer install.

Usage

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/'],
	],
]);