	</div>
</div>

<div id="main-slider" class="carousel slide d-none d-lg-block" data-ride="carousel">
	<ol class="carousel-indicators">
		{for($i=0;$i < count($slider);$i++)} 
		<li data-target="#main-slider" data-slide-to="{{$i}}" {if($i==0)}class="active"{/if}">
		{/for}
	</ol>
	<div class="carousel-inner">
		{for($i=0;$i < count($slider);$i++)}  
			<div class="carousel-item {if($i==0)}active{/if}">
				<img class="d-block w-100" src="{{$slider[$i]['image']}}">
				<div class="carousel-caption">
					<div class="slide-title">
						<div class="container">
							<div class="row">
								<h1>
									{if(!empty($slider[$i]['link']))}<a href="{{$slider[$i]['link']}}" target="_blank">{/if}
									{{$slider[$i]['title']}}
									{if(!empty($slider[$i]['link']))}</a>{/if}
								</h1>
							</div>
						</div>
					</div>
					<div class="slide-info">
						<div class="container">
							<div class="row">
								<p>
									{{$slider[$i]['content']}}

									{if(!empty($slider[$i]['link']))}
										<a href="{{$slider[$i]['link']}}" class="btn btn-outline-primary" target="_blank">Читать полностью</a>
									{/if}
								</p>
							</div>
						</div>
					</div>
				</div>
			</div>
		{/for}
	</div>
</div>

<div class="container page">
	<div class="row">

		<div class="col-lg-3 order-is-last">
			{include file="/index/authorization.tpl"}
			{include file="/elements/vk_widgets.tpl"}
			{include file="/index/sidebar.tpl"}
		</div>

		<div class="col-lg-9 order-is-first">
			<div class="block transparent mb-4">
				<div class="block_head">
					Наши сервера
				</div>

				<div id="servers" class="row monitoring">
					<div class="loader"></div>
					<script>get_servers2();</script>
				</div>
			</div>

			{include file="/elements/chat.tpl"}

			{if($conf->show_news != '0')}
			<div class="block transparent mb-1">
				<div class="block_head">
					Новости проекта
				</div> 
				<div id="new_news">
					{func Widgets:last_news($conf->show_news)}
				</div>
				<a class="btn btn-outline-primary float-right" href="../news/">Все новости</a>
				<div class="clearfix"></div>
			</div>
			{/if}

			<div class="block transparent">
				<div class="block_head">
					Форум
				</div> 
				<div id="forum">
					{func Forum:get_forums()}
				</div>
			</div>
		</div>

		<div class="disp-n" id="auth-result">{conf_mess}</div>
		<script>
			var conf_mess = $("#auth-result > p").text();
			
			if(conf_mess != '') {
				var conf_mess_style = $("#auth-result > p").attr("class");

				if(conf_mess_style.indexOf("danger") > 0) {
					conf_mess_style = 'error';
				} else {
					conf_mess_style = 'success';
				}

				show_noty('Down', 'error', conf_mess, 10000);
			}
		</script>

	</div>
</div>

<div class="clearfix"></div>

<div class="mailing">
	<div class="container">
		<div class="row">
			<div class="col-lg-4"></div>
			<div class="col-lg-4">
				<h3>Новости <span>и обзоры</span></h3>
				<p>Подпишись, чтобы быть первым</p>
				<input type="text" maxlength="255" class="form-control personal" id="subscription" placeholder="ВАШ EMAIL">
				<a href="#" class="btn btn-outline-primary">Подписаться</a>
			</div>
			<div class="col-lg-4"></div>
		</div>
