<?if($PAGE_ID$="login")?>
<div class="lb-soc">
<div>Войти через:</div>
<a href="javascript://" onclick="return uSocialLogin('vkontakte');" target="_blank" rel="nofollow"><img src="/images/social/vk.png" /></a>
<a href="javascript://" onclick="return uSocialLogin('ok');" target="_blank" rel="nofollow"><img src="/images/social/ok.png" /></a>
<a href="javascript://" onclick="return uSocialLogin('facebook');" target="_blank" rel="nofollow"><img src="/images/social/fb.png" /></a>
<a href="javascript://" onclick="return uSocialLogin('twitter');" target="_blank" rel="nofollow"><img src="/images/social/twitter.jpg" /></a>
<a href="javascript://" onclick="return uSocialLogin('google');" target="_blank" rel="nofollow"><img src="/images/social/google.png" /></a>
<a href="javascript://" onclick="return uSocialLogin('yandex');" target="_blank" rel="nofollow"><img src="/images/social/yandex.png" /></a>
</div>

<input type="text" name="user" id="login_name" placeholder="Ваш логин"/><br>
<input type="password" name="password" id="login_password" placeholder="Ваш пароль" /><br>

<div class="wr-fx-row wr-fx-between wr-fx-center">
<button type="submit" title="Вход">Войти на сайт</button>

<div class="lb-check">
<input id="rem$PAGE_ID$" type="checkbox" name="rem" value="1" checked="checked"/>
<label for="login_not_save">Запомнить меня</label> 
</div>
</div>

<div class="lb-lnk wr-fx-row wr-fx-between wr-fx-center">
<a href="$REMINDER_LINK$">Забыли пароль?</a>
<a href="$REGISTER_LINK$" class="log-register">Регистрация</a>
</div>
<?else?>
<input type="text" name="user" id="login_name" placeholder="Ваш логин"/>
<input type="password" name="password" id="login_password" placeholder="Ваш пароль" />

<div class="wr-fx-row wr-fx-between wr-fx-center">
<button type="submit" title="Вход">Войти на сайт</button>

<div class="lb-check">
<input id="rem$PAGE_ID$" type="checkbox" name="rem" value="1" checked="checked"/>
<label for="login_not_save">Запомнить меня</label> 
</div>
</div>

<div class="lb-lnk wr-fx-row wr-fx-between wr-fx-center">
<a href="$REMINDER_LINK$">Забыли пароль?</a>
<a href="$REGISTER_LINK$" class="log-register">Регистрация</a>
</div>
<?endif?>

<style>
#uidLogButton {display:none;} 
#baseLogForm {display: block !important;} 
#uidLogButtonAjx {display:none;} 
#baseLogFormAjx {display: block !important;}
</style>