<!DOCTYPE html PUBLIC "-//W3C//DTDXHTML1.0Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{% apply spaceless %}
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
		<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"/>
		{{ metatags }}
		{{ canonical }}
		{{ htmlvars }}
		 <script type="text/javascript" src="{{ tpl_url }}/js/jquery.js"></script>
		 <script type="text/javascript" src="{{ tpl_url }}/js/jqueryui.js"></script>
		<link rel="stylesheet" href="{{ tpl_url }}/css/style.css" type="text/css"/> <!--[if lte IE 7]>
																<link rel="stylesheet" href="{{ tpl_url }}/css/style-ie.css" type="text/css" />
																<![endif]-->
		<!--[if IE 8]>
												<link rel="stylesheet" href="{{ tpl_url }}/css/style-ie8.css" type="text/css" />
												<![endif]-->
		 <script type="text/javascript" src="{{ tpl_url }}/js/shareTT.js"> </script>
		 <script type="text/javascript" src="{{ tpl_url }}/js/active.js"></script>
		 <script type="text/javascript" src="{{ tpl_url }}/js/jquery.carouFredSel-5.6.4-packed.js"></script>
			{% if pluginIsActive('rss_export') %}
		<link href="{{ home }}/rss.xml" rel="alternate" type="application/rss+xml" title="RSS"/> {% endif %}
		 <script type="text/javascript" src="{{ scriptLibrary }}/functions.js"></script>
		 <script type="text/javascript" src="{{ scriptLibrary }}/ajax.js"></script>
		<link
		rel="stylesheet" href="{{ scriptLibrary }}/notify.css">
		 <script src="{{ scriptLibrary }}/notify.js"></script>
		<title>
			{{ titles }}
			{% if pagination_total and pagination_current and pagination_current > 1 %}
				- Страница
				{{ pagination_current }}
			{% endif %}
		</title>
	</head>
	<body>
		{% block body %}
		<div id="loading-layer"><img src="{{ tpl_url }}/images/loading.gif" alt=""/></div>
		<div class="body">
			<div class="top-line">
				<div class="main">
					<div class="login-block">
						<div class="enter-reg">
							{% if (global.user.status == 0) %}
								<div class="login" style="right: 115px;">
									<span><img src="{{ tpl_url }}/images/ent.png" alt="enter"/>Вход</span>
								</div>
								<div class="enter-reg-line">|</div>
								<a href="/register/" class="registration">Регистрация</a>
							{% else %}
								<div class="login" style="right: 75px;">
									<span>Кабинет</span>
								</div>
								<div class="enter-reg-line" style="right: 69px;">|</div>
								<a href="/logout/" class="registration" style="right: 16px;">Выйти</a>
							{% endif %}
						</div>
					</div>
				</div>
			</div>
			<div class="header">
				<div class="main">
					<div style="position: relative;">
						<a href="{{ home }}" class="logo"></a>
						<div class="search-block">
							{{ search_form }}
						</div>
					</div>
				</div>
			</div>
			<div class="main">
				<div class="top-menu-block">
					<ul>
						<li>
							<a href="{{ home }}" class="menu-link">Главная</a>
							<div class="hidden-menu-block">
								<a class="hidden-menu-link" href="#">
									<span>Украина</span>
								</a>
							</span>
							<a class="hidden-menu-link" href="#">
								<span>Киев</span>
							</a>
							<a class="hidden-menu-link" href="#">
								<span>Мир</span>
							</a>
							<a class="hidden-menu-link" href="#">
								<span>Россия</span>
							</a>
							<a class="hidden-menu-link" href="#">
								<span>Мир о нас</span>
							</a>
							<a class="hidden-menu-link" href="#">
								<span>Наука и здоровье</span>
							</a>
							<a class="hidden-menu-link" href="#">
								<span>Шоу-биз и культура</span>
							</a>
							<a class="hidden-menu-link" href="#">
								<span>Споры</span>
							</a>
							<a class="hidden-menu-link" href="#">
								<span>Странности</span>
							</a>
							<a class="hidden-menu-link" href="#">
								<span>Стиль жизни</span>
							</a>
							<div style="clear: both;"></div>
							</div>
				</li>
				<li>
					<a href="#" class="menu-link">Новости</a>
					<div class="hidden-menu-block">
						<a class="hidden-menu-link" href="#">
							<span>Подменю 1</span>
						</a>
						<a class="hidden-menu-link" href="#">
							<span>Подменю 2</span>
						</a>
						<div style="clear: both;"></div>
					</div>
				</li>
				<li>
					<a href="#" class="menu-link">Статьи</a>
					<div class="hidden-menu-block">
						<a class="hidden-menu-link" href="#">
							<span>Подменю 1</span>
						</a>
						<a class="hidden-menu-link" href="#">
							<span>Подменю 2</span>
						</a>
						<div style="clear: both;"></div>
					</div>
				</li>
				<li>
					<a href="#" class="menu-link">Фото</a>
					<div class="hidden-menu-block">
						<a class="hidden-menu-link" href="#">
							<span>Подменю 1</span>
						</a>
						<a class="hidden-menu-link" href="#">
							<span>Подменю 2</span>
						</a>
						<div style="clear: both;"></div>
					</div>
				</li>
				<li>
					<a href="#" class="menu-link">Видео</a>
					<div class="hidden-menu-block">
						<a class="hidden-menu-link" href="#">
							<span>Подменю 1</span>
						</a>
						<a class="hidden-menu-link" href="#">
							<span>Подменю 2</span>
						</a>
						<div style="clear: both;"></div>
					</div>
				</li>
				<li>
					<a href="#" class="menu-link">Игры</a>
					<div class="hidden-menu-block">
						<a class="hidden-menu-link" href="#">
							<span>Подменю 1</span>
						</a>
						<a class="hidden-menu-link" href="#">
							<span>Подменю 2</span>
						</a>
						<div style="clear: both;"></div>
					</div>
				</li>
				<li>
					<a href="#" class="menu-link">Журналы</a>
					<div class="hidden-menu-block">
						<a class="hidden-menu-link" href="#">
							<span>Подменю 1</span>
						</a>
						<a class="hidden-menu-link" href="#">
							<span>Подменю 2</span>
						</a>
						<div style="clear: both;"></div>
					</div>
				</li>
				<li>
					<a href="#" class="menu-link">Музыка</a>
					<div class="hidden-menu-block">
						<a class="hidden-menu-link" href="#">
							<span>Подменю 1</span>
						</a>
						<a class="hidden-menu-link" href="#">
							<span>Подменю 2</span>
						</a>
						<div style="clear: both;"></div>
					</div>
				</li>
				<li>
					<a href="#" class="menu-link">Контакты
					</a>
					<div class="hidden-menu-block">
						<a class="hidden-menu-link" href="#">
							<span>Подменю 1</span>
						</a>
						<a class="hidden-menu-link" href="#">
							<span>Подменю 2</span>
						</a>
						<div style="clear: both;"></div>
					</div>
				</li>
				<div style="clear: both;"></div>
			</ul>
		</div>
		<div class="content-main">
			<div style="clear: both; height: 20px;"></div>
			<div class="banner">
				<a href="#"><img src="{{ tpl_url }}/images/banner1.jpg" alt="banner"/></a>
			</div>
			<div class="banner" style="margin: 0 0 0 24px;">
				<a href="#"><img src="{{ tpl_url }}/images/banner2.jpg" alt="banner"/></a>
			</div>
			<div style="clear: both; height: 15px;"></div>
			<div class="left-col">
				{% if not isHandler('news:main') %}
					<div class='ng-content'>{{ mainblock }}</div>
				{% endif %}
				{% if isHandler('news:main') %}
					<div class="slaider-bg">
						<div class="slaider-block">
							{{ callPlugin('xnews.show', {'extractEmbeddedItems' : true, 'order' : 'last', 'categories' : '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15', 'count': '4', 'template' : 'xnews1'}) }}
						</div>
					</div>
					<div class="left-col2">
						<div class='ng-content'>{{ mainblock }}</div>
					</div>
					<div class="right-col2">
						<a href="#"><img src="{{ tpl_url }}/images/banner3.jpg" alt=""/></a>
						<div style="clear: both;height: 20px;"></div>
						<div class="anons-block">
							<div class="anons-block-title">Анонс</div>
							<div class="anons-block-content">
								{{ callPlugin('xnews.show', {'extractEmbeddedItems' : true, 'order' : 'last', 'categories' : '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15', 'count': '1', 'template' : 'xnews2'}) }}
								<a href="#" class="all-link">Показать все</a>
							</div>
						</div>
						<a href="#"><img src="{{ tpl_url }}/images/banner4.jpg" alt=""/></a>
						{% if pluginIsActive('voting') %}
							<div style="clear: both;height: 20px;"></div>
							<div class="vote-block-repeat">
								<div class="vote-block-top">
									<div class="vote-block-bottom">
										<div class="vote-block-text">
											<div class="vote-block-text-title">Опрос</div>
											<div class="vote-block-text-content">
												{{ voting }}
											</div>
										</div>
									</div>
								</div>
							</div>
						{% endif %}
					</div>
					<div style="clear: both;"></div>
				{% endif %}
			</div>
			<div class="right-col">
				<div class="topnews-block-repeat">
					<div class="topnews-block-top">
						<div class="topnews-block-bottom">
							<div class="topnews-block-text">
								<div class="topnews-block-text-title">У нас читают</div>
								<div class="topnews-block-text-content">
									{{ callPlugin('xnews.show', {'extractEmbeddedItems' : true, 'order' : 'last', 'categories' : '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15', 'count': '10', 'template' : 'xnews3'}) }}
								</div>
								<div class="link-all-top">Показать все</div>
							</div>
						</div>
					</div>
				</div>
				<div style="clear: both;"></div>
				<div class="video-block">
					<div class="video-block-title">Видео</div>
					<div class="video-block-content">
						{{ callPlugin('xnews.show', {'extractEmbeddedItems' : true, 'order' : 'last', 'categories' : '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15', 'count': '4', 'template' : 'xnews4'}) }}
						<div class="all-link-video">
							<a href="#" class="all-link" style="bottom: -6px; left: 80px;">Показать все</a>
						</div>
					</div>
				</div>
				{% if pluginIsActive('calendar') %}
					<div class="calendar-block">
						<div class="calendar-block-title">Календарь</div>
						<div class="calendar-block-content">{{ plugin_calendar }}</div>
					</div>
				{% endif %}
			</div>
			<div style="clear: both;"></div>
		</div>
		<div class="main-content-bottom"></div>
		<div style="clear: both; height: 20px;"></div>
		<div class="article-block">
			<div class="article-block-title">Статьи</div>
			<div class="article-block-content">
				{{ callPlugin('xnews.show', {'extractEmbeddedItems' : true, 'order' : 'last', 'categories' : '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15', 'count': '2', 'template' : 'xnews5'}) }}
				<div style="clear: both;"></div>
			</div>
		</div>
			{% if pluginIsActive('archive') %}
			<div class="archiv-block">
				<div class="archiv-block-title">Архивы</div>
				<div class="archiv-block-content">
					{{ callPlugin('archive.show', {'template': 'archive', 'cacheExpire': 0, 'maxnum': 50}) }}
				</div>
			</div>
			<div style="clear: both; height: 25px;"></div>
		{% endif %}
		{# Вывод накопленных уведомлений (notify.js должен быть подключен выше) #}
		{{ notify|raw }}
			</div>
</div></div></div>
<div class="footer">
<div class="main">
<div style="position: relative;">
	<div class="copir">
		Powered by
		<a title="Next Generation CMS" target="_blank" href="http://ngcms.org/">NG CMS</a>
		2007 — 2013.
	</div>
	<div class="footer-menu">
		<a href="#">Главная</a>
		<a href="#">Новости</a>
		<a href="#">Статьи</a>
		<a href="#">Фото</a>
		<a href="#">Видео</a>
		<a href="#">Игры</a>
		<a href="#">Журналы</a>
		<a href="#">Фильмы</a>
		<a href="#">Музыка</a>
	</div>
	<div style="clear: both;"></div>
</div>
</div>
</div>
<div class="login-block-hidden-dark"></div>
{{ personal_menu }}
<!--[if IE 6]>
							<a href="http://www.microsoft.com/rus/windows/internet-explorer/worldwide-sites.aspx" class="alert"></a>
							<![endif]-->
		{% endblock %}
	</body>
{% endapply %}
</html>
