<script src="{THEME}/js/bootstrap-modal.js"></script>
<script src="{THEME}/js/bootstrap-dropdown.js"></script>
[not-group=5]
<div style="float:right;margin-top:10px" class="btn-group">
                <button class="btn"><span class="label label-info">{new-pm}</span> Сообщения</button>
				<button class="btn btn-warning dropdown-toggle" data-toggle="dropdown"><i class="icon-plus"></i></button>
                <ul class="dropdown-menu">
				[admin-link]<li><a target="_blank" href="{admin-link}"><i class="icon-wrench"></i>Админпанель</a></li>[/admin-link]
                  <li><a href="{profile-link}"><i class="icon-user"></i> Мой профиль</a></li>
                  <li><a href="{pm-link}"><i class="icon-envelope"></i> Мои сообщения</a></li>
                  <li><a href="{favorites-link}"><i class="icon-star"></i> Мои закладки</a></li>
                  <li><a href="{logout-link}"><i class="icon-off"></i> Выход</a></li>
                </ul>
</div>
[/not-group]
[group=5]
<div style="float:right;margin-top:10px" class="btn-group">
<a href="#myModal" role="button" class="btn btn-warning" data-toggle="modal">Войти</a>
   <a class="btn btn-danger" href="{registration-link}">Регистрация</a>
</div>
 
<div style="display:none;" class="modal" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h3 id="myModalLabel">Авторизация</h3>
  </div>
  <div class="modal-body">
   		<form method="post" action="" style="float:left">
            <center><label>Логин:</label></center>
			<input style="text-align:center" name="login_name" type="text" class="login-input-text span4" autocomplete="off" /><br><br>
			<center><label>Пароль:</label></center>
			<input style="text-align:center" name="login_password" type="password" class="login-input-text span4" autocomplete="off"/>
			<div style="clear: both;"></div>
  </div>
  <div class="modal-footer">
  <input onclick="submit();" type="submit" class="btn btn-info" value="Войти" title="Войти" /><input name="login" type="hidden" id="login" value="submit" />
       </form>
	   <a href="{lostpassword-link}"><button class="btn btn-danger">Забыл пароль</button></a>
  </div>
</div>
[/group]