[not-group=5]
<div class="login login--logged d-none">
	<div class="login__header d-flex jc-space-between ai-center">
		<div class="login__avatar img-box"><img src="{foto}" title="{login}" alt="{login}" /></div>
		<div class="login__title stretch-free-width ws-nowrap">{login} [admin-link]<a href="{admin-link}" target="_blank">Admin</a>[/admin-link]</div>
		<div class="login__close"><span class="fal fa-times"></span></div>
	</div>
	<ul class="login__content login__menu d-flex jc-space-between">
		<li><a href="{addnews-link}"><span class="fal fa-plus"></span>Add post</a></li>
		<li><a href="{profile-link}"><span class="fal fa-cog"></span>My profile</a></li>
		<li><a href="{pm-link}"><span class="fal fa-envelope"></span>Messages: ({new-pm})</a></li>
		<li><a href="{favorites-link}"><span class="fal fa-heart"></span>Bookmarks (<span id="l-fav">{favorite-count}</span>)</a></li>
		 <li><a href="{stats-link}"><span class="fal fa-chart-bar"></span>Statistics</a></li>
		<li><a href="{newposts-link}"><span class="fal fa-file-alt"></span>New</a></li>
		<li><a href="/?do=lastcomments"><span class="fal fa-comments"></span>Comments</a></li>
		<li><a href="{logout-link}"><span class="fal fa-sign-out"></span>Logout</a></li>
	</ul>
</div>
[/not-group]
[group=5]
<div class="login login--not-logged d-none">
	<div class="login__header d-flex jc-space-between ai-center">
		<div class="login__title stretch-free-width ws-nowrap">Sign in <a href="/?do=register">Register</a></div>
		<div class="login__close"><span class="fal fa-times"></span></div>
	</div>
	<form method="post">
	<div class="login__content">
		<div class="login__row">
			<div class="login__caption">Username:</div>
			<div class="login__input"><input type="text" name="login_name" id="login_name" placeholder="Your username"/></div>
			<span class="fal fa-user"></span>
		</div>
		<div class="login__row">
			<div class="login__caption">Password: <a href="{lostpassword-link}">Forgot password?</a></div>
			<div class="login__input"><input type="password" name="login_password" id="login_password" placeholder="Your password" /></div>
			<span class="fal fa-lock"></span>
		</div>
		<label class="login__row checkbox" for="login_not_save">
			<input type="checkbox" name="login_not_save" id="login_not_save" value="1"/>
			<span>Don't remember me</span>
		</label>
		<div class="login__row">
			<button onclick="submit();" type="submit" title="Sign in">Sign in</button>
			<input name="login" type="hidden" id="login" value="submit" />
		</div>
	</div>
	<div class="login__social">
		<div class="login__social-caption">Or sign in with</div>
		<div class="login__social-btns">
[vk]<a href="{vk_url}" rel="nofollow" target="_blank" title="Sign in with VK"><img src="{THEME}/images/social/vk.png"></a>[/vk]
[odnoklassniki]<a href="{odnoklassniki_url}" rel="nofollow" target="_blank" title="Sign in with Odnoklassniki"><img src="{THEME}/images/social/ok.png"></a>[/odnoklassniki]
[facebook]<a href="{facebook_url}" rel="nofollow" target="_blank" title="Sign in with Facebook"><img src="{THEME}/images/social/fb.png"></a>[/facebook]
[mailru]<a href="{mailru_url}" rel="nofollow" target="_blank" title="Sign in with Mail.ru"><img src="{THEME}/images/social/mailru.png"></a>[/mailru]
[yandex]<a href="{yandex_url}" rel="nofollow" target="_blank" title="Sign in with Yandex"><img src="{THEME}/images/social/yandex.png"></a>[/yandex]
[google]<a href="{google_url}" rel="nofollow" target="_blank" title="Sign in with Google"><img src="{THEME}/images/social/google.png"></a>[/google]
		</div>
	</div>
	</form>
</div>
[/group]