<?php
/*
 * Copyright (c) 2018 Earworks.
 * Codeigniter Project Template Modification
 * Please contact our email for more information :
 * contact@earworks.co.id
 */
defined('BASEPATH') OR exit('No direct script access allowed');
/*
 * Website template
 * All content on this file will allways appear on all page
 * 
 * @var $render_css string rendered css
 * @var $render_js string rendered js
 * @var $render_meta string rendered meta
 * @var $render_maps array list of breadcrumbs map
 * @var $title string if not set will display CI_NAME constant value
 * @var $content string view content
 */
$min = (ENVIRONMENT == 'development') ? null : '.min';
$user = $this->session->userdata(CI_NAME .'log');
?>
<!DOCTYPE html>
<html lang="id">
    <head>
        <meta>
        <meta>
        <?php echo $render_meta ?>
        <link rel="shortcut icon" href="<?php echo base_url('assets/img/logo.png') ?>" />
        <title><?php echo $title ?></title>
        <!-- BEGIN GLOBAL STYLE -->
        <link type="text/css" rel="stylesheet" href="<?php echo base_url('assets/backoffice/css/fonts.css') ?>" />
        <link type="text/css" rel="stylesheet" href="<?php echo base_url("assets/plugins/font-awesome/css/font-awesome" . $min . ".css") ?>" />
        <link type="text/css" rel="stylesheet" href="<?php echo base_url("assets/plugins/bootstrap/css/bootstrap" . $min . ".css") ?>" />
        <link type="text/css" rel="stylesheet" href="<?php echo base_url("assets/plugins/bootstrap-switch/css/bootstrap-switch" . $min . ".css") ?>" />
        <!-- END GLOBAL STYLE -->
        <!-- BEGIN THEME GLOBAL STYLE -->
        <link type="text/css" rel="stylesheet" href="<?php echo base_url("assets/backoffice/css/components" . $min . ".css") ?>" />
        <link type="text/css" rel="stylesheet" href="<?php echo base_url("assets/backoffice/css/plugins" . $min . ".css") ?>" />
        <!-- END GLOBAL THEME STYLE -->
        <?php echo $render_css ?>
        <!-- BEGIN CUSTOM CSS -->
        <link type="text/css" rel="stylesheet" href="<?php echo base_url("assets/backoffice/css/style.css") ?>" />
        <!-- END CUSTOM CSS -->
    </head>
    <body class="viewtestride">
    <?php echo $content ?>
    <!-- BEGIN CORE PLUGINS -->
    <script src="<?php echo base_url("assets/plugins/jquery/jquery.min.js") ?>"></script>
    <script src="<?php echo base_url("assets/plugins/bootstrap/js/bootstrap" . $min . ".js") ?>"></script>
    <script src="<?php echo base_url("assets/backoffice/js/js.cookie.min.js") ?>"></script>
    <script src="<?php echo base_url("assets/plugins/jquery-slimscroll/jquery.slimscroll" . $min . ".js") ?>"></script>
    <script src="<?php echo base_url("assets/backoffice/js/jquery.blockui.min.js") ?>"></script>
    <script src="<?php echo base_url("assets/plugins/bootstrap-switch/js/bootstrap-switch" . $min . ".js") ?>"></script>
    <!-- END CORE PLUGINS -->
    <?php echo $render_js ?>
    <script src="<?php echo base_url("assets/backoffice/js/script.js") ?>"></script>
    </body>
</html>