jqueryslidetopmenu JQuerySlideTopMenu

  1. Documentation
  2. Change Log

This extension is a very simple to use multi-level top menu based on jqueryslidemenu : http://www.dynamicdrive.com/style/csslibrary/item/jquery_multi_level_css_menu_2/

Resources

Documentation

Requirements
  • Yii 1.0 or above
Installation
  • Extract the release file under protected/components
Usage

See the following code example:

<?php
$this->widget('application.components.JQuerySlideTopMenu.JQuerySlideTopMenu', array(
	'items'=>array(
		array('label'=>'Home', 'url'=>array('site/index')),
        array('label'=>'WIKI', 'url'=>'#', 'subs'=>array(
                array('label'=>'New article', 'url'=>'#'),
            ), 'visible'=>!Yii::app()->user->isGuest),
        array('label'=>'Blog', 'url'=>'#', 'subs'=>array(
                array('label'=>'New post', 'url'=>'#'),
            ), 'visible'=>!Yii::app()->user->isGuest),
        array('label'=>'Admin tools', 'url'=>'#', 'subs' => array(
                array('label'=>'Users', 'url'=>'#', 'subs' => array(
                        array('label'=>'Add new user', 'url'=>array('auth.users/create')),
                        array('label'=>'List', 'url'=>array('auth.users/list')),
                    )),
                array('label'=>'Customers', 'url'=>'#', 'subs' => array(
                        array('label'=>'Add new', 'url'=>'#'),
                        array('label'=>'List', 'url'=>'#'),
                    )),
                array('label'=>'Projects', 'url'=>'#', 'subs' => array(
                        array('label'=>'Add new', 'url'=>'#'),
                        array('label'=>'List', 'url'=>'#'),
                    )),
                array('label'=>'Accounting setup', 'url'=>'#', 'subs' => array(
                        array('label'=>'Employees', 'url'=>'#'),
                        array('label'=>'Bank accounts', 'url'=>'#'),
                        array('label'=>'Settings', 'url'=>'#'),
                    )),
                array('label'=>'Roles & Permissions', 'url'=>'#'),
                array('label'=>'Settings', 'url'=>'#'),
            ), 'visible'=>!Yii::app()->user->isGuest),
        array('label'=>'My profile', 'url'=>'#', 'visible'=>!Yii::app()->user->isGuest),
		array('label'=>'Login', 'url'=>array('site/login'), 'visible'=>Yii::app()->user->isGuest),
		array('label'=>'Logout', 'url'=>array('site/logout'), 'visible'=>!Yii::app()->user->isGuest)
	),
));

?>

Change Log

February 24, 2009
  • Initial release.
10 1
5 followers
3 712 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Tags:
Developed by: oleksiy
Created on: Feb 24, 2009
Last updated: 9 years ago

Downloads

show all