<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<style>
#loading {
   width: 100%;
   height: 100%;
   top: 0;
   left: 0;
   position: fixed;
   display: block;
   opacity: 0.7;
   background-color: #fff;
   z-index: 99;
   text-align: center;
   font-size:50px;
}

#loading i {
  position: absolute;
  top: 40%;
  left: 40%;
  z-index: 100;
}

</style>
<div id="loading" class="hidden">
  
<i class="fa fa-spinner fa-spin fa-3x"></i>
  <!--<img id="loading-image" src="images/ajax-loader.gif" alt="Loading..." />-->
</div>

	<header>
<?php if(genel::site_bilgi()->lang_support==1){?>		
	<preheader class="preheader">
	<div class="container-fluid">
	<div class="row">
	<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 xs-taright sm-taright">

	<a class="btn btn-default" href="/lang/turkish/"><img src="/assets/u-files/flags/tr.svg" width="25px"><span>Türkçe</span></a><span class="xs-block20 sm-block20"></span>

	<a class="btn btn-default" href="/lang/english/"><img src="/assets/u-files/flags/gb.svg" width="25px"><span>English</span></a><span class="xs-block20 sm-block20"></span>
	
	<a class="btn btn-default" href="/lang/deutsch/"><img src="/assets/u-files/flags/de.svg" width="25px"><span>Deutsch</span><span class="xs-block20 sm-block20"></span></a>

	<a class="btn btn-default" href="/lang/francais"><img src="/assets/u-files/flags/fr.svg" width="25px"><span>Français</span></a>

</div>
	</div>
	</div>
	</preheader>
<?php }?>	
	<div class="container-fluid hidden-xs hidden-sm navBar">
	<div class="sm-spacer15">
	</div>
<?php 
$ana_menu1=Genel::get_main_menu(0,3);

?>	
	<div class="row mxgp-rowH">
	<div class="col-md-5 sm-taright mxgp-col mxgp-colL">
<?php foreach ($ana_menu1 as $ana_menu) { ?>
	<a class="btn btn-default xs-taleft sm-taleft" href="<?=str_replace("{grup_id}",$grup_id,$ana_menu->link)?>"><?=$ana_menu->menu?></a>
	<span class="md-block15"></span>
<?php }?>	


	</div>
	
	<div class="col-md-2 sm-tacenter mxgp-colLogo">
	<a style="position: absolute; left: 0; 
  right: 0; 
  margin-left: auto; 
  <?php if(genel::site_bilgi()->lang_support==1){?>
  top: -45px;
  <?php }else{?>
top: -10px;
  <?php }?>
  margin-right: auto; " href="/grup/<?=$grup_id?>/anasayfa" ><img src="<?=genel::sistem_ayarlari(23)?><?=$grup_detay->logo?>" alt="<?=$grup_detay->group_name?>" width="150px"></a>
	</div>

<?php 
$ana_menu2=Genel::get_main_menu(3,3);

?>


	<div class="col-md-5 sm-taleft mxgp-col mxgp-colR">

<?php foreach ($ana_menu2 as $ana_menu) { ?>
	<a class="btn btn-default xs-taleft sm-taleft" href="<?=str_replace("{grup_id}",$grup_id,$ana_menu->link)?>"><?=$ana_menu->menu?></a>
	<span class="md-block15"></span>
<?php }?>	


	
	</div>
	</div>
	<div class="sm-spacer15">
	</div>
	</div>
	<nav class="navbar navbar-default hidden-md hidden-lg">
	<div class="container-fluid">
	<div class="navbar-header">
	<a href="#" class="menu-button navbar-toggle collapsed" id="menuButton" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
	<span class="burger-icon">
	</span>
	</a>
	<a class="navbar-brand" href="/grup/<?=$grup_id?>/anasayfa">
	<img style="position: absolute;top:-20px" src="<?=genel::sistem_ayarlari(23)?><?=$grup_detay->logo?>" alt="<?=$grup_detay->group_name?>"  width="200px">
	</a>
	</div>
	<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
	<ul class="nav navbar-nav navbar-right">
<?php foreach ($ana_menu1 as $ana_menu) { ?>
	<li><a href="<?=str_replace("{grup_id}",$grup_id,$ana_menu->link)?>" role="button"><?=$ana_menu->menu?></a></li>
<?php }?>	
<?php foreach ($ana_menu2 as $ana_menu) { ?>
	<li><a href="<?=str_replace("{grup_id}",$grup_id,$ana_menu->link)?>" role="button"><?=$ana_menu->menu?></a></li>
<?php }?>

	</ul>
	</div>
	</div>
	</nav>
	</header>