File: APP/views/inc/header.php

Recommend this page to a friend!
  Classes of Taranpreet Singh  >  PHP End Game Engine Website  >  APP/views/inc/header.php  >  Download  
File: APP/views/inc/header.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP End Game Engine Website
Build Web sites for promoting games
Author: By
Last change:
Date: 1 year ago
Size: 3,716 bytes


Class file image Download
use APP\Helpers\URL_Helper as URL;
APP\Core\Session as Session;
APP\Models\Settings as Settings;
<!DOCTYPE html>
<html lang="en">
    <title><?= $data['page_title'] ? $data['page_title'] : SITE_NAME ?></title>
    <meta charset="UTF-8">
    <meta name="description" content="<?= isset($data['page_desc']) ? $data['page_desc'] : 'Developed By TweekersNut Network' ?>">
    <meta name="keywords" content="<?= isset($data['page_key']) ? $data['page_key'] : 'TweekersNut,Network' ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Favicon -->
        <link href="<?= (new Settings)->getValue('site.favicon')->_val ?>" rel="shortcut icon"/>

    <!-- Google Font -->
    <link href=",400i,500,500i,700,700i,900,900i" rel="stylesheet">

    <!-- Stylesheets -->
    <!--link rel="stylesheet" href="<?= URL_ROOT ?>css/bootstrap.min.css"/-->
        <link rel="stylesheet" href="" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
    <link href="" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
    <link rel="stylesheet" href="<?= URL_ROOT ?>css/slicknav.min.css"/>
    <link rel="stylesheet" href="<?= URL_ROOT ?>css/owl.carousel.min.css"/>
    <link rel="stylesheet" href="<?= URL_ROOT ?>css/magnific-popup.css"/>
    <link rel="stylesheet" href="<?= URL_ROOT ?>css/animate.css"/>

    <!-- Main Stylesheets -->
    <link rel="stylesheet" href="<?= URL_ROOT ?>css/style.css"/>

    <!--[if lt IE 9]>
          <script src=""></script>
      <script src=""></script>

    <!-- Page Preloder -->
    <div id="preloder">
        <div class="loader"></div>

    <!-- Header section -->
    <header class="header-section">
        <div class="header-warp">
            <div class="header-social d-flex justify-content-end">
                <a href="#"><i class="fa fa-facebook"></i></a>
                <a href="#"><i class="fa fa-twitter"></i></a-->
            <div class="header-bar-warp d-flex">
                <!-- site logo -->
                <a href="#" class="site-logo">
                                        <img src="<?= (new Settings)->getValue('site.logo')->_val ?>" alt="">
                <nav class="top-nav-area w-100">
                    <div class="user-panel">
                                                <?php if(Session::exists('isLoggedIn')): ?>
<a href="<?= URL::baseURL('users/logout') ?>">Logout?</a> <a href="<?= URL::baseURL('admin/index') ?>">/ Admin. Area</a>
                                                <?php else: ?>
<a href="<?= URL::baseURL('users/login') ?>">Login</a> <!--a href="">/ Register</a-->
                                                <?php endif; ?>

                    <!-- Menu -->
                    <ul class="main-menu primary-menu">
                        <li><a href="<?= URL::baseURL('home') ?>">Home</a></li>
                        <li><a href="<?= URL::baseURL('blog/games') ?>">Games</a>
                            <!--ul class="sub-menu">
                                <li><a href="game-single.html">Game Singel</a></li>
                        <li><a href="<?= URL::baseURL('blog/reviews') ?>">Reviews</a></li>
                        <li><a href="<?= URL::baseURL('blog/') ?>">Blog</a></li>
                        <li><a href="<?= URL::baseURL('contact') ?>">Contact</a></li>
    <!-- Header section end -->

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