<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>

    <!-- Title -->
    <title><?php echo APP_NAME;?></title>

    <!-- Meta Data -->
    <meta charset="UTF-8">
    <meta name="description" content="HTML templeate by Sufain Khan" >
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="author" content="Sufian Khan bdcodex.net">

    <!-- Mobile Specific Meta -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!--[if IE]><meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'><![endif]-->


    <!-- Favicon -->
    <link rel="shortcut icon" type="image/x-icon" href="<?php echo assetsPath();?>img/favicon/favicon.ico">
    <link rel="apple-touch-icon" sizes="72x72" href="<?php echo assetsPath();?>img/favicon/apple-touch-icon-72x72.png">
    <link rel="apple-touch-icon" sizes="114x114" href="<?php echo assetsPath();?>img/favicon/apple-touch-icon-114x114.png">
    <link rel="apple-touch-icon" sizes="144x144" href="<?php echo assetsPath();?>img/favicon/apple-touch-icon.png">


    <!-- Fonts -->
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="<?php echo assetsPath();?>css/font-awesome.min.css">
    <link rel="stylesheet" href="<?php echo assetsPath();?>css/icon.css">


    <!-- CSS -->
    <link rel="stylesheet" href="<?php echo assetsPath();?>css/bootstrap.min.css">
    <link rel="stylesheet" href="<?php echo assetsPath();?>css/bootstrap-datetimepicker.min.css">
    <link rel="stylesheet" href="<?php echo assetsPath();?>css/normalize.css">
    <link rel="stylesheet" href="<?php echo assetsPath();?>css/main.css?v=8">
    <link rel="stylesheet" href="<?php echo assetsPath();?>css/responsive.css">


    <!-- JQuery -->
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
    <script>window.jQuery || document.write('<script src="<?php echo assetsPath();?>js/vendor/jquery-1.11.2.min.js"><\/script>')</script>

    <!-- Prefixing JS -->
    <script src="<?php echo assetsPath();?>js/vendor/modernizr-2.8.3.min.js"></script>
    <script src="<?php echo assetsPath();?>js/vendor/html5-3.6-respond-1.4.2.min.js"></script>

</head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->

<!-- Content Start here  -->

<header id="header">

    <nav class="navbar navbar-default">

        <div class="container">
            <!-- Brand and toggle get grouped for better mobile display -->

            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="<?php echo baseUrl('dashboard.php');?>"><?php echo APP_NAME . ' ' . APP_VERSION;?></a>

            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="navbar-collapse">


                <ul class="nav navbar-nav navbar-right navbar-top">



                    <?php if(!empty($fb_user['user']) && $fb_user['user']) { ?>
                        <li><a href="<?php echo $fb_user['link'];?>" class="user-drop" title="<?php echo $fb_user['fb_user_name'];?>">  <img  class="user-img" src="https://graph.facebook.com/<?php echo $fb_user['fb_user_id'];?>/picture" alt="User Image">  </a></li>
                    <?php } ?>

                    <?php if(check_admin()) { ?>
                        <li><a class="app_link" href="<?php echo baseUrl('users.php');?>" title="User"><i class="icon_profile"></i></a></li>
                    <?php } ?>
                    <li><a class="app_link" href="<?php echo baseUrl('settings.php');?>" title="Settings"><i class="icon_cog"></i></a></li>
                    <li><a class="app_link" href="<?php echo baseUrl('schedule.php');?>" title="Scheduled "><i class="icon_calendar"></i></a></li>
                    <li><a class="app_link" href="<?php echo baseUrl('logout.php');?>" title="Log Out"> <i class="fa fa-sign-out"></i></a></li>

                </ul>

            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>

</header>

