<?php
$this->common_model = model('CommonModel');
$header_data = $this->common_model->GetSiteSettings('site');

if(!$header_data) {
	$header_data = $this->common_model->GetSettingall('site');
}

foreach ($header_data as $row) {
	$headers[$row->site_key] = $row->site_value;
}



?>
	<title><?php echo $headers['site_meta_title'];?></title>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="keywords" content="<?php echo $headers['site_meta_key'];?>" />
	<meta name="description" content="<?php echo $headers['site_meta_description'];?>" />
	
	<link rel="icon" href="<?=base_url()?><?php echo base_url("content/favicon/").site_info('site_favicon');?>" type="image/ico">

	<!-- Global stylesheets -->
	<link href="https://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700,900" rel="stylesheet" type="text/css">
	<link href="<?php echo base_url('assets/css/icons/icomoon/styles.css')?>" rel="stylesheet" type="text/css">
	<link href="<?php echo base_url('assets/css/bootstrap.css')?>" rel="stylesheet" type="text/css">
	<link href="<?php echo base_url('assets/css/core.css')?>" rel="stylesheet" type="text/css">
	<link href="<?php echo base_url('assets/css/components.css')?>" rel="stylesheet" type="text/css">
	<link href="<?php echo base_url('assets/css/colors.css')?>" rel="stylesheet" type="text/css">
	<link href="<?php echo base_url('assets/css/icons/fontawesome/styles.min.css')?>" rel="stylesheet" type="text/css">
	<!-- /global stylesheets -->

	
	<!-- Core JS files -->
	<script type="text/javascript" src="<?php echo base_url('assets/js/plugins/loaders/pace.min.js')?>"></script>
	<script type="text/javascript" src="<?php echo base_url('assets/js/core/libraries/jquery.min.js')?>"></script>
	<script type="text/javascript" src="<?php echo base_url('assets/js/core/libraries/bootstrap.min.js')?>"></script>
	<script type="text/javascript" src="<?php echo base_url('assets/js/plugins/loaders/blockui.min.js')?>"></script>
	<script type="text/javascript" src="<?php echo base_url('assets/js/plugins/ui/nicescroll.min.js')?>"></script>
	<script type="text/javascript" src="<?php echo base_url('assets/js/plugins/ui/drilldown.js')?>"></script>
	<!-- /core JS files -->
	<script type="text/javascript">
	(function($) {
		$(document).ready(function() {
			$.jGrowl.defaults.closer = false;
			<?php
			$session = \Config\Services::session();
			 if($session->getFlashData('info_message')) { ?>
				$.jGrowl("<?php echo $session->getFlashData('info_message');?>", {
		            header: 'Warning!',
		            theme: 'bg-warning'
		        });
            <?php } ?>
	    });
    })(jQuery);
    </script>

	