PHP Classes

File: admin/menu-side.php

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra  >  Giga CMS  >  admin/menu-side.php  >  Download  
File: admin/menu-side.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Giga CMS
Multi-user content management system
Author: By
Last change:
Date: 5 years ago
Size: 1,849 bytes


Class file image Download
<div class="navmenu navmenu-default navmenu-fixed-left offcanvas-sm" style="background-color:#18a0e1">
  <a class="navmenu-brand visible-md visible-lg" href="#" style="color:#fff;">Welcome to Dasboard!</a>
    <ul class="nav navmenu-nav">
// we generate a simple menu this may need to be adjusted depending on your needs
        // but it should be ok for most common items
foreach ($page->navbar as $key => $v) {

            if (
$v[0] == 'item') {
"<li".($v[1]['class'] ? " class='".$v[1]['class']."'" : "").">
                    <a href='"
            } else if(
$v[0] == 'dropdown') {

"<li class='dropdown".
// extra classes
($v['class'] ? " ".$v['class'] : "")."'".
// extra style
($v['style'] ? " style='".$v['style']."'" : "").">
                    <a href='#' class='dropdown-toggle' data-toggle='dropdown'>"
.$v['name']." <span class='caret'></span></a>
                    <ul class='dropdown-menu navmenu-nav'>"
                foreach (
$v[1] as $k => $v)
$v['class'] ? " class='".$v['class']."'" : "").">

                        <a href='"
<li><a href="<?php echo $set->url; ?>"><i class="fa fa-eye" aria-hidden="true"></i> View Site</a></li>
<div class="navbar navbar-default navbar-fixed-top hidden-md hidden-lg" style="background-color:#18a0e1;">
  <button type="button" class="navbar-toggle" data-toggle="offcanvas" data-target=".navmenu" style="background-color:#fff">
    <span class="icon-bar"></span>
    <span class="icon-bar"></span>
    <span class="icon-bar"></span>
  <a class="navbar-brand" href="#" style="color:#fff">Welcome to Dasboard!</a>

<div class="container">

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