<header>
	<div class="h_menu">
		<div class="h_feedback">
			<a href="{{$vk_link}}" target="_blank" class="h_vk"></a>
		</div>

		<div class="h_profile">
			<a href="/profile"><span class="h_lk">Ваш профиль</span></a>
			<a href="/purse"><span class="h_purse">Ваш баланс: {balance}р</span></a>
			<a href="/exit"><span class="h_logout">Выход с сайта</span></a>
		</div>
	</div>
	<div class="inner">
		<div class="logo">
			<a href="/" class="logo_p"></a>
		</div>
	</div>
</header>
<div class="inner">
	<div class="content"> 
		<div class="side_top">
			<nav>
				<ul id="nav">
					{menu}
				</ul>
			</nav>
		</div>
		<div class="side_content">
			<div class="left_block">
				<script>
					$(document).ready(function(){
						$(".right_block").prepend("<div class='user_profile'>\
							<div class='user_top'>\
								<div class='balance right'>{balance}руб.</div>\
								{if('{tickets}' > '0')}
									<a style='margin-right: 5px;background: rgb(0, 101, 182);' title='Есть запросы в поддержке' href='../support/all_tickets' class='balance right'><span class='glyphicon glyphicon-exclamation-sign'></span> +{tickets}</a>\
								{/if}
								{if('{bans}' > '0')}
									<a style='margin-right: 5px;background: rgb(153, 106, 100);' title='Есть заявки на разбан' href='../bans/index' class='balance right'><span class='glyphicon glyphicon-info-sign'></span> +{bans}</a>\
								{/if}
								<div class='username'>{login}</div>\
							</div>\
							<div class='user_profile_info2'>\
								<img src='/{avatar}' alt='' class='avatar'>\
								<div class='user_rows'>\
									<div class='user_row'><a href='../profile'>Профиль</a></div>\
									<div class='user_row'><a href='../purse'>Пополнить  баланс</a></div>\
									<div class='user_row'><a href='../messages'>Сообщения</a></div>\
									<div class='user_row'><a href='../friends'>Друзья</a></div>\
									<div class='user_row'><a href='../my_stores'>Услуги</a></div>\
									<div class='user_row'><a href='../settings'>Настройки</a></div>\
									<div class='user_row'><a href='../exit'>выход</a></div>\
								</div>\
							</div>\
						</div>\
						");
					});
					check_news();
				</script>
				<div id="check_mess"></div>
