PHP Classes

File: apps/views/compui/navbar/dore.navbar-admin.php

Recommend this page to a friend!
  Classes of fathurrahman   mnTemplate   apps/views/compui/navbar/dore.navbar-admin.php   Download  
File: apps/views/compui/navbar/dore.navbar-admin.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: mnTemplate
Route HTTP requests to callback functions
Author: By
Last change:
Date: 1 year ago
Size: 5,505 bytes
 

Contents

Class file image Download
<?php
   
if(isset($navbarConf) && !empty($navbarConf))
       
extract($navbarConf);
   
$bg = isset($customBg) && $customBg && $bgtype == 'script' && isset($bg) ? $b : null;
   
$bgclass = isset($customBg) && $customBg && $bgtype == 'class' && isset($bg) ? $b : null;
?>
<nav style="background-color: <?php echo $bg ?>" class="navbar fixed-top <?php echo !empty($bgclass) ? 'bg-' . $bgclass : null?>">
    <div class="d-flex align-items-center navbar-left">
    <?php if (isset($adaSidebar) && $adaSidebar): ?>
<a href="#" class="menu-button d-none d-md-block">
            <svg class="main" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9 17">
                <rect x="0.48" y="0.5" width="7" height="1" />
                <rect x="0.48" y="7.5" width="7" height="1" />
                <rect x="0.48" y="15.5" width="7" height="1" />
            </svg>
            <svg class="sub" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 17">
                <rect x="1.56" y="0.5" width="16" height="1" />
                <rect x="1.56" y="7.5" width="16" height="1" />
                <rect x="1.56" y="15.5" width="16" height="1" />
            </svg>
        </a>

        <a href="#" class="menu-button-mobile d-xs-block d-sm-block d-md-none">
            <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 17">
                <rect x="0.5" y="0.5" width="25" height="1" />
                <rect x="0.5" y="7.5" width="25" height="1" />
                <rect x="0.5" y="15.5" width="25" height="1" />
            </svg>
        </a>
        <?php endif ?>
<?php if(isset($pencarian) && $pencarian):?>
<div class="search" data-search-path="Layouts.Search.html?q=">
            <input placeholder="Search...">
            <span class="search-icon">
                <i class="simple-icon-magnifier"></i>
            </span>
        </div>
        <?php endif?>
</div>


    <a style="background: url('<?php echo isset($navbarLogo) ? $navbarLogo : null ?>') no-repeat; width: 50px; height: 50px" class="navbar-logo" href="<?php echo isset($homePath) ? $homePath : null ?>">
        <span class="logo d-none d-xs-block"></span>
        <span class="logo-mobile d-block d-xs-none"></span>
    </a>

    <div class="navbar-right">
        <div class="header-icons d-inline-block align-middle">
            <div class="position-relative d-none d-sm-inline-block">
                <?php if(isset($navbarApps) && is_array($navbarApps)): ?>
<button class="header-icon btn btn-empty" type="button" id="iconMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                    <i class="simple-icon-grid"></i>
                </button>
                <div class="dropdown-menu dropdown-menu-right mt-3 position-absolute" id="iconMenuDropdown">
                    <?php foreach($navbarApps as $k => $v): ?>
<a href="<?php echo $v['link']?>" class="icon-menu-item">
                        <i class="<?php echo isset($v['icon']) ? $v['icon'] : null ?>"></i>
                        <span><?php echo $v['name'] ?></span>
                    </a>
                    <?php endforeach?>
</div>
                <?php endif?>
</div>
           
            <?php if(isset($adaNotif) && $adaNotif): ?>
<div class="position-relative d-inline-block">
                <button class="header-icon btn btn-empty" type="button" id="notificationButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                    <i class="simple-icon-bell"></i>
                    <span class="count"></span>
                </button>
                <div class="dropdown-menu dropdown-menu-right mt-3 scroll position-absolute" id="notificationDropdown">
                </div>
            </div>
            <?php endif ?>
<?php if(isset($bisaFullScreen) && $bisaFullScreen): ?>
<button class="header-icon btn btn-empty d-none d-sm-inline-block" type="button" id="fullScreenButton">
                <i class="simple-icon-size-fullscreen"></i>
                <i class="simple-icon-size-actual"></i>
            </button>
            <?php endif ?>
</div>

        <div class="user d-inline-block">
            <button class="btn btn-empty p-0" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                <span class="name"><?php echo !empty(sessiondata('login', 'nama')) ? sessiondata('login', 'nama') : sessiondata('login', 'username') ?></span>
                <span>
                    <img alt="Profile Picture" src="<?php echo BASEURL . 'public/img/anggota/' . sessiondata('login', 'photo') ?>" />
                </span>
            </button>

            <div class="dropdown-menu dropdown-menu-right mt-3">
                <?php if(isset($userMenu) && is_array($userMenu)) :
                    foreach(
$userMenu as $menu): ?>
<p id="<?php echo $menu['id']?>" style="cursor: pointer;" class="dropdown-item" data-link="<?php echo $menu['link'] ?>" ><?php echo $menu['link']; ?></p>
                    <?php endforeach ?>
<?php else: ?>
<p id="akun" style="cursor: pointer;" class="dropdown-item" data-link="" >Akun saya</p>
                    <p id="logout" style="cursor: pointer;" class="dropdown-item" data-link="auth/logout" >Keluar</p>
                <?php endif ?>
</div>
        </div>
    </div>
</nav>