<!DOCTYPE html>
<html lang="ru">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title><?=$set['title']?></title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="<?= THEMES ?>/assets/css/bootstrap.css">
  <link rel="stylesheet" href="<?= THEMES ?>/assets/css/design.css">
  <link rel="stylesheet" href="<?= THEMES ?>/assets/css/all-skins.css">
  <link rel="stylesheet" href="<?= THEMES ?>/assets/css/awesome.css">
  <link rel="stylesheet" href="<?= THEMES ?>/assets/css/ionicons.css">
  <link rel="stylesheet" href="<?= THEMES ?>/plugin/icheck/design.css">
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
  <!--[if lt IE 9]>
  <script src="<?= THEMES ?>/assets/js/html5shiv.min.js"></script>
  <script src="<?= THEMES ?>/assets/js/respond.min.js"></script>
  <![endif]-->
</head>
  <body class="hold-transition layout-boxed sidebar-mini skin-red">
	<div class="wrapper">
	  <header class="main-header">
		<a href="<?= $site['url'] ?>" class="logo"><span class="logo-mini"><b><?=$site['name_mini']?></b></span><span class="logo-lg"><b><?=$site['name_full']?></b></span></a>
	<nav class="navbar navbar-static-top">
		<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button"><span class="sr-only">Переключить навигацию</span></a>
	<div class="navbar-custom-menu">
	  <ul class="nav navbar-nav">
		<!-- Скачать продукт WORLDCMS -->
		<li><a href="<?=$product['down']?>"><i class="fa fa-download"></i> Скачать</a></li>
		<!-- Анкета випадающее меню -->
<li class="dropdown user user-menu">
<? if (isset($user)) {?>
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <img src="/kernel/image/avatar.png" class="user-image" alt="User Image">
              <span class="hidden-xs"><?=user::nick($user['id'], 0)?></span>
            </a>
<ul class="dropdown-menu">

<li class="user-header">
<img src="/kernel/image/avatar.png" class="img-circle" alt="User Image">
<p>Николай Довгопол</p>
<span class="count_frame"><i class="fa fa-rub fa-fw"></i><font color="gray"><b>0</b></font></span>
<span class="count_frame"><i class="fa fa-bar-chart fa-fw"></i><font color="gray"><b>0</b></font></span>
<span class="count_frame"><i class="fa fa-star fa-fw"></i><font color="gray"><b>0</b></font></span>
</li>

              <li class="user-body">
                <div class="row">
                  <div class="col-xs-4 text-center">
                    <a href="/profile/<?=$user['id']?>">Анкета <font color="red">+1</font></a>
                  </div>
                  <div class="col-xs-4 text-center">
                    <a href="/">Лента <font color="red">+1</font></a>
                  </div>
                  <div class="col-xs-4 text-center">
                    <a href="/">Друзья <font color="red">+1</font></a>
                  </div>
                </div>
              </li>
              <!-- Menu Footer-->
              <li class="user-footer">
                <div class="pull-left">
                  <a href="/module/account/cabinet/" class="btn btn-default btn-flat">Кибинет</a>
                </div>
                <div class="pull-right">
                  <a href="/module/account/output.php" class="btn btn-default btn-flat">Выход</a>
                </div>
              </li>
            </ul>
<? } else { ?>
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <img src="/kernel/image/avatar.png" class="user-image" alt="User Image">
              <span class="hidden-xs">Аккаунт</span>
            </a>
			<ul class="dropdown-menu">


  <div class="login-box-body">
    <p class="login-box-msg">Войдите, чтобы начать сеанс</p>
    <form action="/module/sign-in/checkup.php" method="post">
   
      <div class="form-group has-feedback">
        <input type='text' name='nick' maxlength='15' class="form-control" placeholder="Ваш ник">
        <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
      </div>
      
      <div class="form-group has-feedback">
        <input type='password' name='pass' maxlength='15' class="form-control" placeholder="Ваш пароль">
        <span class="glyphicon glyphicon-lock form-control-feedback"></span>
      </div>
    
  
  
<div class="row">
<div class="col-xs-8">
<div class="checkbox icheck">
<label><input type="checkbox" name="aut_save" value="1"> Запомнить меня</label>
</div>
</div>

<div class="col-xs-4">
	<button type="submit" class="btn btn-primary btn-block btn-flat">Войти</button>
</div>

</form>
</div><hr>
<a href="#">Я забыл свой пароль</a><br>
<a href="/module/sign-up/" class="text-center">Создать новый аккаунт</a>

</ul>
<? } ?>
</li>

		<!-- Настройки видвижная панель -->
		<li><a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a></li>
	  </ul>
	</div>
  </nav>
</header>



<? require_once H.''.THEMES.'/source/sidebar_left.php'; ?>
<div class="content-wrapper">