Exemple #1
0
<?php

use webvimark\modules\UserManagement\components\GhostMenu;
use webvimark\modules\UserManagement\UserManagementModule;
echo GhostMenu::widget(['encodeLabels' => false, 'activateParents' => true, 'items' => [['label' => 'Backend routes', 'items' => UserManagementModule::menuItems()], ['label' => 'Frontend routes', 'items' => [['label' => 'Login', 'url' => ['/user-management/auth/login']], ['label' => 'Logout', 'url' => ['/user-management/auth/logout']], ['label' => 'Registration', 'url' => ['/user-management/auth/registration']], ['label' => 'Change own password', 'url' => ['/user-management/auth/change-own-password']], ['label' => 'Password recovery', 'url' => ['/user-management/auth/password-recovery']], ['label' => 'E-mail confirmation', 'url' => ['/user-management/auth/confirm-email']]]]]]);
Exemple #2
0
use webvimark\modules\UserManagement\components\GhostMenu;
use webvimark\modules\UserManagement\UserManagementModule;
?>

<aside class="left-side sidebar-offcanvas">
	<section class="sidebar">
		<div class="sidebar-form">
			<div class="input-group">
				<input type="text" id="side-menu-search" class="form-control" placeholder="Search...">
                          	  <span class="input-group-btn">
                                <button class="btn btn-flat"><i class="fa fa-search"></i></button>
                            </span>
			</div>
		</div>
		<?php 
echo GhostMenu::widget(['options' => ['class' => 'sidebar-menu'], 'encodeLabels' => false, 'submenuTemplate' => "\n<ul class=\"treeview-menu\">\n{items}\n</ul>\n", 'activateParents' => true, 'items' => require_once Yii::getAlias('@app') . '/backend_sidemenu_items/__item_collector.php']);
?>
	</section>

</aside>

<?php 
$this->registerJs(<<<JS
\$("#side-menu-search").keyup(function(){

        // Retrieve the input field text and reset the count to zero
        var filter = \$(this).val();

        if ( filter.length > 0 )
        {
\t\t\$('.treeview-menu').slideDown();
Exemple #3
0
<?php

use webvimark\modules\UserManagement\components\GhostMenu;
$this->title = 'Система опросов';
$this->params['breadcrumbs'][] = $this->title;
echo GhostMenu::widget(['encodeLabels' => false, 'activateParents' => true, 'options' => ['style' => ['width' => '500px']], 'itemOptions' => ['class' => 'list-group-item'], 'items' => [['label' => 'Конструктор', 'url' => ['/unicred/question-list-constructor/index']], ['label' => 'Управление опросами', 'url' => ['/unicred/answer-list/index']], ['label' => 'Мои опросные листы', 'url' => ['/unicred/write-test/index']], ['label' => 'Пользователи и роли', 'url' => ['/unicred/users-offices/index']], ['label' => 'Выход', 'url' => ['/user-management/auth/logout']], ['label' => 'Вход', 'url' => ['/user-management/auth/login']]]]);