<!DOCTYPE html>
<!--[TWIG]-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{ lang['langcode'] }}" lang="{{ lang['langcode'] }}" dir="ltr">
	<head>
		<meta http-equiv="content-type" content="text/html; charset={{ lang['encoding'] }}"/>
		<meta http-equiv="content-language" content="{{ lang['langcode'] }}"/>
		<meta name="generator" content="{{ what }} {{ version }}"/>
		<meta name="document-state" content="dynamic"/>
		<meta name="viewport" content="width=device-width, initial-scale=1">
		{{ htmlvars }}
		<!-- get jQuery from the google apis -->
		<script type="text/javascript" src="{{ tpl_url }}/js/jquery.js"></script>
		<script type="text/javascript" src="{{ tpl_url }}/js/jqueryui.js"></script>
		<!-- Bootstrap -->
		<script src="{{ tpl_url }}/js/bootstrap.min.js"></script>
		<link href="{{ tpl_url }}/css/bootstrap.min.css" rel="stylesheet">
		<!-- Custom -->
		<link href="{{ tpl_url }}/css/custom.css" rel="stylesheet">
		<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
		<!--[if lt IE 9]>
			<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
			<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
		<![endif]-->
		<!-- fonts -->
		<link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
		<link rel="stylesheet" href="{{ tpl_url }}/font-awesome-4.0.3/css/font-awesome.min.css">
		<!-- CSS STYLE-->
		<link rel="stylesheet" type="text/css" href="{{ tpl_url }}/css/engine.css" media="screen" />
		{% if pluginIsActive('rss_export') %}
		<link href="{{ home }}/rss.xml" rel="alternate" type="application/rss+xml" title="RSS" />{% endif %}
		<script src="{{ scriptLibrary }}/jq/jquery.js"></script>
		<script type="text/javascript" src="{{ scriptLibrary }}/functions.js"></script>
		<script type="text/javascript" src="{{ scriptLibrary }}/ajax.js"></script>
		<title>{{ titles }}</title>
	</head>
	<body>
		{% block body %}
		<div id="loading-layer"><img src="{{ tpl_url }}/images/loading.gif" alt="{{ lang.theme.main_loading }}"/> {{ lang.theme.main_loading }}</div>
		<div class="container-fluid">
			<!-- Slider -->
			{% include "includes/slider.tpl" %}
			<!-- //Slider -->
			<div class="headernav">
				<div class="container">
					<div class="row">
						<div class="col-lg-1 col-xs-3 col-sm-2 col-md-2 logo">
							<a href="{{ home }}">
								<img src="{{ tpl_url }}/images/logo.jpg" alt=""  />
							</a>
						</div>
						<div class="col-lg-3 col-xs-9 col-sm-5 col-md-3 selecttopic">
							<div class="dropdown">
								<a data-toggle="dropdown" href="#">Borderlands 1</a> <b class="caret"></b>
								<ul class="dropdown-menu" role="menu">
									<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Borderlands 1</a></li>
									<li role="presentation"><a role="menuitem" tabindex="-2" href="#">Borderlands 2</a></li>
									<li role="presentation"><a role="menuitem" tabindex="-3" href="#">Borderlands 3</a></li>
								</ul>
							</div>
						</div>
						<div class="col-lg-4 search hidden-xs hidden-sm col-md-3">
							<div class="wrap">
								{{ search_form }}
							</div>
						</div>
						<div class="col-lg-4 col-xs-12 col-sm-5 col-md-4 avt">
							{{ personal_menu }}
						</div>
					</div>
				</div>
			</div>
			<section class="content">
				<div class="container" style="margin-top:30px;">
					<div class="row">
						<div class="col-lg-8 col-md-8">
							{{ mainblock }}
						</div>
						<div class="col-lg-4 col-md-4">
							{% include "includes/sidebar.tpl" %}
						</div>
					</div>
				</div>
			</section>
			<footer>
				<div class="container">
					<div class="row">
						<div class="col-lg-1 col-xs-3 col-sm-2 logo "><a href="{{ home }}"><img src="{{ tpl_url }}/images/logo.jpg" alt=""  /></a></div>
						<div class="col-lg-8 col-xs-9 col-sm-5 ">&copy; <a title="{{ home_title }}" href="{{ home }}">{{ home_title }}</a> Powered by <a title="Next Generation CMS" target="_blank" href="http://ngcms.ru/">NG CMS</a> 2007 — {{ now|date("Y") }}.</div>
						<div class="col-lg-3 col-xs-12 col-sm-5 sociconcent">
							<ul class="socialicons">
								<li><a href="#"><i class="fa fa-facebook-square"></i></a></li>
								<li><a href="#"><i class="fa fa-twitter"></i></a></li>
								<li><a href="#"><i class="fa fa-google-plus"></i></a></li>
								<li><a href="#"><i class="fa fa-dribbble"></i></a></li>
								<li><a href="#"><i class="fa fa-cloud"></i></a></li>
								<li><a href="#"><i class="fa fa-rss"></i></a></li>
							</ul>
						</div>
					</div>
				</div>
			</footer>
		</div>
		{% endblock %}
	</body>
</html>
<!--[/TWIG]-->