PHP Classes

File: application/views/templates/site.php

Recommend this page to a friend!
  Classes of harold rita   Coloftech PHP Multiple Sites Blog System   application/views/templates/site.php   Download  
File: application/views/templates/site.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Coloftech PHP Multiple Sites Blog System
CMS to Manage multiple blog sites
Author: By
Last change:
Date: 2 years ago
Size: 5,858 bytes
 

Contents

Class file image Download
<!DOCTYPE html>
<html>
<head>
    <title><?=$site_title;?></title>


  <meta property="og:url" content="<?=isset($link) ? $link : site_url();?>" />
  <meta property="og:type" content="website" />
  <meta property="og:title" content="<?=isset($meta_title) ? $meta_title : 'Bohol Island State University - Bilar'; ?>" />
  <meta property="og:description" content="<?=isset($description) ? $description : 'Bohol Island State University - Bilar a premier Science and Technology University for the formation of World class and virtuous human resource for sustainable development in Bohol and the Country.'; ?>" />
  <meta property="og:image" content="<?=isset($featured_image) ? $featured_image : base_url('public/images/4.png'); ?>" />

        <link rel="shortcut icon" href="<?=base_url();?>public/images/fav-bisu.png"/>
        <link rel="stylesheet" type="text/css" href="<?=base_url();?>public/assets/bootstrap/css/bootstrap.min.css">
        <link rel="stylesheet" type="text/css" href="<?=base_url();?>public/assets/bootstrap/css/font-awesome.css">


        <?php // add css files
       
$this->minify->css(array('animate.css','site/index.site.css','print.css'));
        echo
$this->minify->deploy_css();
       
   
?>

        <!-- CORE PLUGINS -->
        <script src="<?=base_url('public/assets/js/jquery.11.min.js');?>" type="text/javascript"></script>
        <script src="<?=base_url('public/assets/bootstrap/js/bootstrap.min.js');?>" type="text/javascript"></script>
        <script src="<?=base_url('public/assets/js/notify/dist/notify.js');?>" type="text/javascript"></script>
</head>
<body class="site" data-spy="scroll" data-target=".navbar" data-offset="50">
    <div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.12&appId=1376312065724577&autoLogAppEvents=1';
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<header >
    <div id="top"></div>
    <div class="header-menu">
    <?php include 'common/site_menu.php'; ?>
</div>
               <?php
       
if(!isset($is_index)){

       
$page = $this->input->get('p') ? $this->input->get('p') : 'bilar';
        if(
$sitename = $this->site_m->getSiteName($page)){
            echo
"<div class='container'><h3>".$sitename[0]->site_name."</h3></div>";
        }else{
           
redirect();
        }

        }
        
?>
</header>
<div class="site-body" >
    <?php echo $body; ?>
</div>

<footer>
    <div class="container">
       
    <div class="footer-top">
        <div class="col-md-4 aboutus">
            <h3>HOSTED SITE</h3>
            <ul id="menu-campuses-menu" class="menu">
                <?=$this->auto_m->getSites()?>
</ul>
        </div>
        <div class="col-md-4 recentspost">
            <h3>RECENT POST</h3></div>
        <div class="col-md-4 campuses">
           
            <h3>BISU CAMPUSES</h3>
<ul id="menu-campuses-menu" class="menu"><li class="menu-balilihan-campus"><a href="http://balilihan.bisu.edu.ph">Balilihan Campus</a></li>
<li class="menu-bilar-campus"><a href="http://bilar.bisu.edu.ph">Bilar Campus</a></li>
<li class="menu-calape-campus"><a href="http://calape.bisu.edu.ph">Calape Campus</a></li>
<li class="menu-candijay-campus"><a href="http://candijay.bisu.edu.ph">Candijay Campus</a></li>
<li class="menu-clarin-campus"><a href="http://bisuclarin.edu.ph">Clarin Campus</a></li>
</ul>
        </div>
    </div>
    <div class="footer-center"><a href="#top" class="btn btn-top">TOP</a></div>
     <div class="footer-bottom">
        
     </div>

    </div>
</footer>
<script type="text/javascript">
    $(document).ready(function(){

/**
 * This object controls the nav bar. Implement the add and remove
 * action over the elements of the nav bar that we want to change.
 *
 * @type {{flagAdd: boolean, elements: string[], add: Function, remove: Function}}
 */
var myNavBar = {

    flagAdd: true,

    elements: [],

    init: function (elements) {
        this.elements = elements;
    },

    add : function() {
        if(this.flagAdd) {
            for(var i=0; i < this.elements.length; i++) {
                document.getElementById(this.elements[i]).className += " fixed-theme";
            }
            this.flagAdd = false;
        }
    },

    remove: function() {
        for(var i=0; i < this.elements.length; i++) {
            document.getElementById(this.elements[i]).className =
                    document.getElementById(this.elements[i]).className.replace( /(?:^|\s)fixed-theme(?!\S)/g , '' );
        }
        this.flagAdd = true;
    }

};

/**
 * Init the object. Pass the object the array of elements
 * that we want to change when the scroll goes down
 */
myNavBar.init( [
    "header",
    "header-container",
    "brand"
]);

/**
 * Function that manage the direction
 * of the scroll
 */
function offSetManager(){

    var yOffset = 0;
    var currYOffSet = window.pageYOffset;

    if(yOffset < currYOffSet) {
        myNavBar.add();
    }
    else if(currYOffSet == yOffset){
        myNavBar.remove();
    }

}

/**
 * bind to the document scroll detection
 */
window.onscroll = function(e) {
    offSetManager();
}

/**
 * We have to do a first detectation of offset because the page
 * could be load with scroll down set.
 */
offSetManager();
});

/*
    $('#navbar').on('resize', function () {
    $('.pull-right').toggleClass('pull-left', $(window).width() < 768);
});
*/

</script>

        <script src="<?=base_url('public/assets/js/col-script.js');?>" type="text/javascript"></script>
</body>
</html>


<?php

$slug
= $this->input->get('slug');
$visit = new Visitors();
$visit->run($slug);

   
    
?>