<!DOCTYPE html>
<html lang="ru">
<head>
<title><?if($SEARCH_QUERY$)?>$SEARCH_QUERY$ - <?endif?>Поиск</title>
<link type="text/css" rel="StyleSheet" href="/_st/my.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="/images/favicon.png" />
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<link href='https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700,700italic&subset=latin,cyrillic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="/style/social-likes_flat.css">
<script src="/js/social-likes.min.js"></script>
</head>

<body>
<div class="all-wrap" id="all-wrap">
<header class="head-wr">
$GLOBAL_AHEADER$
</header>
 
<!-- подключаем полную новость и все остальное -->
<div class="full-wr" id="full-wr">
<div class="content-box clearfix">
<div class="speedbar"><a href="$HOME_PAGE_LINK$" title="Главная">$SITE_NAME$</a> » Поиск<?if($SEARCH_QUERY$)?> » $SEARCH_QUERY$<?endif?></div>
<div style="padding:20px 0px 0px 0px;">$SEARCHFORM$</div>
<div class="form-wrap">
$BODY$
<?if($PAGE_SELECTOR$)?>
<div class="clr"></div>
<div class="pagi-nav clearfix">
<span class="navigation">$PAGE_SELECTOR$</span>
</div>
<?endif?>
</div>
<style>
.queryField {float: left !important;}
.searchSbmFl { float: right !important; margin-top: 3px !important; }
</style>
</div>

<footer class="footer-wr">
$GLOBAL_BFOOTER$
</footer>
</div>
<!-- end all-wrap -->
<?if($USER_LOGGED_IN$)?>
<!--noindex-->
<div class="overlay" id="overlay">
<div class="login-box">
<div class="login-title">$USERNAME$</div>
<div class="login-avatar">
<div class="avatar-box"><img src="<?if($USER_AVATAR_URL$)?>$USER_AVATAR_URL$<?else?>/dleimages/noavatar.png<?endif?>" title="$USERNAME$" alt="$USERNAME$" /></div>
<?if($USER_GROUP$='Администраторы')?><a href="/panel/" target="_blank">Админпанель</a><?endif?>
</div>

<ul class="login-menu">
<?if($ADD_ENTRY_LINK$)?><li><a href="$ADD_ENTRY_LINK$">Добавить пост</a></li><?endif?>
<li><a href="$PERSONAL_PAGE_LINK$">Мой профиль</a></li>
<li><a href="$PM_URL$">Сообщения: ($IS_NEW_PM$)</a></li>
<li><a href="/index/11">Редактировать</a></li>
<li><a href="#">Статистика</a></li>
<li><a href="/video/">Непрочитанное</a></li>
<li><a href="/index/34-$USER_ID$">Мои комментарии</a></li>
<li><a href="$LOGOUT_LINK$">Выйти</a></li>
</ul>
</div>
</div>
<!--/noindex-->
<?else?>
$LOGIN_FORM$
<?endif?>
</body>
</html>