PHP Classes

File: Template/header/user_dropdown.php

Recommend this page to a friend!
  Classes of kiran  >  Kanboard Group Assign  >  Template/header/user_dropdown.php  >  Download  
File: Template/header/user_dropdown.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Kanboard Group Assign
Plugin to assign tasks to groups or multiple users
Author: By
Last change:
Date: 11 months ago
Size: 2,095 bytes
 

Contents

Class file image Download
<div class="dropdown">
    <a href="#" class="dropdown-menu dropdown-menu-link-icon"><?= $this->avatar->currentUserSmall('avatar-inline') ?><i class="fa fa-caret-down"></i></a>
    <ul>
        <li class="no-hover"><strong><?= $this->text->e($this->user->getFullname()) ?></strong></li>
        <li>
            <?= $this->url->icon('tachometer', t('My dashboard'), 'DashboardController', 'show', array('user_id' => $this->user->getId())) ?>
</li>
        <li>
            <?= $this->url->icon('home', t('My profile'), 'UserViewController', 'show', array('user_id' => $this->user->getId())) ?>
</li>
        <li>
            <?= $this->url->icon('folder', t('Projects management'), 'ProjectListController', 'show') ?>
</li>
        <?php if ($this->user->hasAccess('GroupListController', 'index') && $_SESSION['user']['role'] == 'app-manager'): ?>
<li>
                <?= $this->url->icon('group', t('Groups management'), 'GroupListController', 'index') ?>
</li>
        <?php endif ?>
<?php if ($this->user->hasAccess('UserListController', 'show')): ?>
<li>
                <?= $this->url->icon('user', t('Users management'), 'UserListController', 'show') ?>
</li>
            <li>
                <?= $this->url->icon('group', t('Groups management'), 'GroupListController', 'index') ?>
</li>
            <li>
                <?= $this->url->icon('cubes', t('Plugins'), 'PluginController', 'show') ?>
</li>
            <li>
                <?= $this->url->icon('cog', t('Settings'), 'ConfigController', 'index') ?>
</li>
        <?php endif ?>

        <?= $this->hook->render('template:header:dropdown') ?>

        <li>
            <i class="fa fa-fw fa-life-ring" aria-hidden="true"></i>
            <?= $this->url->doc(t('Documentation'), 'index') ?>
</li>
        <?php if (! DISABLE_LOGOUT): ?>
<li>
                <?= $this->url->icon('sign-out', t('Logout'), 'AuthController', 'logout') ?>
</li>
        <?php endif ?>
</ul>
</div>

For more information send a message to info at phpclasses dot org.