<!DOCTYPE html>
<html class="no-js">
	<head>
		<meta charset="utf-8">
		<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><![endif]-->
		<title>{$_cfg.core.title|strip_tags|escape}</title>
		<link rel="icon" href="{$base}/favicon.ico" type="image/x-icon" />
		<meta name="keywords" content="{$_cfg.core.keywords|escape}" />
		<meta name="description" content="{$_cfg.core.description|escape}" />
		<meta name="viewport" content="width=device-width">

		{foreach $css as $item}
			<link rel="stylesheet" type="text/css" href="{$item.path}" media="{$item.media}" />
		{/foreach}
		{foreach $feed_rss as $item}
			<link href="{$item.path}" rel="alternate" type="application/rss+xml" title="{$item.name|escape}" />
		{/foreach}

		<script src="{$base}/js/vendor/modernizr-2.6.2.min.js"></script>
		<script src="{$base}/js/vendor/jquery-1.10.2.min.js"></script>
		<script src="{$base}/js/vendor/bootstrap.min.js"></script>
		{foreach $js as $item}
			<script src="{$item}"></script>
		{/foreach}

	</head>
	<body>
		<header>
			<div class="navbar navbar-default">
				<div class="container">
					<nav>
						<div class="navbar-header">
							<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
							  <span class="icon-bar"></span>
							  <span class="icon-bar"></span>
							  <span class="icon-bar"></span>
							</button>
							<a class="navbar-brand" href="/">{$_cfg.core.site_name}</a>
						</div>
						<div class="collapse navbar-collapse">
							{$_module_menu_level}
							{$_module_menu_tree}
							<form action="{url href=getModulePath("search")}" class="navbar-form navbar-right" role="search">
								<div class="input-group">
									<input type="search" role="search" name="search" class="form-control" placeholder="Введите текст">
									<span class="input-group-btn">
										<button class="btn btn-default" type="button">Найти</button>
									</span>
								</div>
								<input type="hidden" name="all" value="on" />
							</form>
							{if $feed_rss}
							<ul class="nav navbar-nav navbar-right">
								<li class="dropdown">
									<a href="#" class="dropdown-toggle" data-toggle="dropdown"><img src="/skins/default/images/icons/simple_rss.png" alt="" /> <b class="caret"></b></a>
									<ul class="dropdown-menu">
										{foreach $feed_rss as $item}
										<li><a href="{$item.path}" title="{$item.name|escape}">{$item.name|escape}</a></li>
										{/foreach}
									</ul>
								</li>
							</ul>
							{/if}
						</div>
					</nav>
				</div>
			</div>
		</header>
			<div class="container">
				<div class="row">
					<div class="col-md-3">
						<div class="list-group">
							{if $_module_login_static}
								{$_module_login_static}
							{/if}
							{if $_module_lc_pm_notify}
								{$_module_lc_pm_notify}
							{/if}
							{if $_user->group_id==1}
								<a class="list-group-item" title="{t}Управление сайтом{/t}" href="{url href=getModulePath("admin")}">{t}Управление сайтом{/t}</a>
							{/if}
						</div>
						{$_module_lc_guide}
						{$_module_top_news}
					</div>
					<div class="col-md-9">
						{$_module_breadcrumb}
						
						{if access('admin')}
							<div class="alert alert-warning" id="new_version" style="display: none"></div>
							<script type="text/javascript">
								lc_version='{$_cfg.core.version}.{$_cfg.core.revision}';
								lc_branch='{$_cfg.core.branch}';
							</script>
							<script type="text/javascript" src="/skins/default/js/vendor/version_checker.js"></script>
						{/if}
						
						{if $errors}
							<div class="alert alert-danger">
								<a href="#" class="close" data-dismiss="alert">&times;</a>
								<h4 class="alert-heading">{t}Ошибка!{/t}</h4>
								<ul class="list-unstyled no-margin">
								{foreach $errors as $error_msg}
									<li>{$error_msg}</li>
								{/foreach}
								</ul>
							</div>
						{/if}

						{if $system_message}
							<div class="alert alert-info">
								{if $system_message.html}
									{$system_message.html}
								{else}
									{$system_message.text|escape}
								{/if}
							</div>
						{/if}
						{$_component}
					</div>
				</div>
			</div>
		<div id="footer">
			<div class="container">
				{if $_user->group_id==1}<p class="text-muted credit pull-right">{$stat}</p>{/if}
				<p class="text-muted credit"><a href="http://labcms.ru" title="">LabCMS v. {$_cfg.core.version}</a></p>
			</div>
		</div>
	</body>
</html>