function content_5684d6e3ea4469_88607807($_smarty_tpl)
    {
        if (!is_callable('smarty_function_router')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.router.php';
        }
        $_smarty_tpl->tpl_vars['oPage'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['oPage']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['aPagesMain']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['oPage']->key => $_smarty_tpl->tpl_vars['oPage']->value) {
            $_smarty_tpl->tpl_vars['oPage']->_loop = true;
            ?>
	<li <?php 
            if ($_smarty_tpl->tpl_vars['sAction']->value == 'page' && $_smarty_tpl->tpl_vars['sEvent']->value == $_smarty_tpl->tpl_vars['oPage']->value->getUrl()) {
                ?>
class="active"<?php 
            }
            ?>
><a href="<?php 
            echo smarty_function_router(array('page' => 'page'), $_smarty_tpl);
            echo $_smarty_tpl->tpl_vars['oPage']->value->getUrlFull();
            ?>
/" ><?php 
            echo $_smarty_tpl->tpl_vars['oPage']->value->getTitle();
            ?>
</a><i></i></li>
<?php 
        }
        ?>
	<?php 
    }
    function content_559ae0fb327e68_20058240($_smarty_tpl)
    {
        if (!is_callable('smarty_function_cfg')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.cfg.php';
        }
        if (!is_callable('smarty_function_router')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.router.php';
        }
        ?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
  <ShortName><?php 
        echo smarty_function_cfg(array('name' => 'view.name'), $_smarty_tpl);
        ?>
</ShortName>
  <Description><?php 
        echo $_smarty_tpl->tpl_vars['sHtmlTitle']->value;
        ?>
</Description>
  <Contact><?php 
        echo $_smarty_tpl->tpl_vars['sAdminMail']->value;
        ?>
</Contact>
  <Url type="text/html" template="<?php 
        echo smarty_function_router(array('page' => 'search'), $_smarty_tpl);
        ?>
topics/?q={searchTerms}" />
  <LongName><?php 
        echo $_smarty_tpl->tpl_vars['sHtmlDescription']->value;
        ?>
</LongName>
  <Image height="64" width="64" type="image/png"><?php 
        echo smarty_function_cfg(array('name' => 'path.static.skin'), $_smarty_tpl);
        ?>
/images/logo.png</Image>
  <Image height="16" width="16" type="image/vnd.microsoft.icon"><?php 
        echo smarty_function_cfg(array('name' => 'path.static.skin'), $_smarty_tpl);
        ?>
/images/favicon.ico</Image>
  <Developer><?php 
        echo smarty_function_cfg(array('name' => 'view.name'), $_smarty_tpl);
        ?>
 (<?php 
        echo smarty_function_cfg(array('name' => 'path.root.web'), $_smarty_tpl);
        ?>
)</Developer>
  <Attribution>
  © «<?php 
        echo smarty_function_cfg(array('name' => 'view.name'), $_smarty_tpl);
        ?>
»
  </Attribution>
  <SyndicationRight>open</SyndicationRight>
  <AdultContent>false</AdultContent>
  <Language>ru-ru</Language>
  <OutputEncoding>UTF-8</OutputEncoding>
  <InputEncoding>UTF-8</InputEncoding>
</OpenSearchDescription><?php 
    }
    function content_568a8b5671e609_68528413($_smarty_tpl)
    {
        if (!is_callable('smarty_function_router')) {
            include 'D:\\OpenServer\\domains\\kprf.dev\\www/engine/modules/viewer/plugs\\function.router.php';
        }
        ?>
<nav id="nav">
	<?php 
        if ($_smarty_tpl->tpl_vars['menu']->value) {
            ?>
		<?php 
            if (in_array($_smarty_tpl->tpl_vars['menu']->value, $_smarty_tpl->tpl_vars['aMenuContainers']->value)) {
                echo $_smarty_tpl->tpl_vars['aMenuFetch']->value[$_smarty_tpl->tpl_vars['menu']->value];
            } else {
                echo $_smarty_tpl->getSubTemplate("menu." . $_smarty_tpl->tpl_vars['menu']->value . ".tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
            }
            ?>
	<?php 
        }
        ?>
	
	<?php 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value) {
            ?>
		<a href="<?php 
            echo smarty_function_router(array('page' => 'topic'), $_smarty_tpl);
            ?>
add/" class="button button-write js-write-window-show" id="modal_write_show"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['block_create'];
            ?>
</a>
	<?php 
        }
        ?>
	
	<div class="search-header">
		<div class="search-header-show" id="search-header-show"><i class="icon-synio-search"></i> <a href="#" class="link-dotted"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['search_submit'];
        ?>
</a></div>
		
		<form class="search-header-form" id="search-header-form" action="<?php 
        echo smarty_function_router(array('page' => 'search'), $_smarty_tpl);
        ?>
topics/" style="display: none">
			<input type="text" placeholder="<?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['search'];
        ?>
" maxlength="255" name="q" class="input-text">
			<input type="submit" value="" title="<?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['search_submit'];
        ?>
" class="input-submit">
		</form>
	</div>
</nav><?php 
    }
    function content_55d3380ee03570_87660797($_smarty_tpl)
    {
        if (!is_callable('smarty_function_router')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.router.php';
        }
        if (!is_callable('smarty_function_hook')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.hook.php';
        }
        ?>
<ul class="nav nav-menu">
	<?php 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value) {
            ?>
		<li <?php 
            if ($_smarty_tpl->tpl_vars['sMenuItemSelect']->value == 'user') {
                ?>
class="active"<?php 
            }
            ?>
><a href="<?php 
            echo smarty_function_router(array('page' => 'stream'), $_smarty_tpl);
            ?>
user/"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['stream_menu_user'];
            ?>
</a></li>
	<?php 
        }
        ?>
	<li <?php 
        if ($_smarty_tpl->tpl_vars['sMenuItemSelect']->value == 'all') {
            ?>
class="active"<?php 
        }
        ?>
><a href="<?php 
        echo smarty_function_router(array('page' => 'stream'), $_smarty_tpl);
        ?>
all/"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['stream_menu_all'];
        ?>
</a></li>

	<?php 
        echo smarty_function_hook(array('run' => 'menu_stream_item'), $_smarty_tpl);
        ?>

</ul>
<?php 
        echo smarty_function_hook(array('run' => 'menu_stream'), $_smarty_tpl);
        ?>

<?php 
    }
    function content_55d33fa2222402_37030499($_smarty_tpl)
    {
        if (!is_callable('smarty_function_hook')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.hook.php';
        }
        if (!is_callable('smarty_function_router')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.router.php';
        }
        echo $_smarty_tpl->getSubTemplate('header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>


  <h2 class="page-header"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['search'];
        ?>
</h2>

  <?php 
        echo smarty_function_hook(array('run' => 'search_begin'), $_smarty_tpl);
        ?>


  <form action="<?php 
        echo smarty_function_router(array('page' => 'search'), $_smarty_tpl);
        ?>
topics/" class="search" method="GET">
    <?php 
        echo smarty_function_hook(array('run' => 'search_form_begin'), $_smarty_tpl);
        ?>

    
    <input type="text" placeholder="<?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['search'];
        ?>
" maxlength="255" name="q" class="input-text" id="SS_SearchField">
    <input type="submit" value="" title="<?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['search_submit'];
        ?>
" class="input-submit icon icon-search">
    
    <?php 
        echo smarty_function_hook(array('run' => 'search_form_end'), $_smarty_tpl);
        ?>

  </form>

  <?php 
        echo smarty_function_hook(array('run' => 'search_end'), $_smarty_tpl);
        ?>


<?php 
        echo $_smarty_tpl->getSubTemplate('footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
    }
    function content_559c873bcd8536_96904361($_smarty_tpl)
    {
        if (!is_callable('smarty_function_router')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.router.php';
        }
        if ($_smarty_tpl->tpl_vars['aCountryList']->value && count($_smarty_tpl->tpl_vars['aCountryList']->value) > 0) {
            ?>
	<section class="block">
		<header class="block-header">
			<h3><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['block_country_tags'];
            ?>
</h3>
		</header>
		
		
		<div class="block-content">
			<ul class="tag-cloud word-wrap">
				<?php 
            $_smarty_tpl->tpl_vars['oCountry'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['oCountry']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['aCountryList']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['oCountry']->key => $_smarty_tpl->tpl_vars['oCountry']->value) {
                $_smarty_tpl->tpl_vars['oCountry']->_loop = true;
                ?>
					<li><a class="tag-size-<?php 
                echo $_smarty_tpl->tpl_vars['oCountry']->value->getSize();
                ?>
" href="<?php 
                echo smarty_function_router(array('page' => 'people'), $_smarty_tpl);
                ?>
country/<?php 
                echo $_smarty_tpl->tpl_vars['oCountry']->value->getId();
                ?>
/"><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['oCountry']->value->getName(), ENT_QUOTES, 'UTF-8', true);
                ?>
</a></li>
				<?php 
            }
            ?>
					
			</ul>	
		</div>		
	</section>
<?php 
        }
    }
    function content_5684d6cb06df96_93955939($_smarty_tpl)
    {
        if (!is_callable('smarty_function_router')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.router.php';
        }
        ?>
<li class="item-messages" title="Ответы"><i class="item-icon"></i></i><a href="<?php 
        echo smarty_function_router(array('page' => 'feedbacks'), $_smarty_tpl);
        ?>
"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['feedbacks']['answers_menu'];
        ?>
<i class="fa fa-comment right"></i></a></li>
<?php 
    }
    function content_5684d6ccd78c03_67115879($_smarty_tpl)
    {
        if (!is_callable('smarty_function_router')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.router.php';
        }
        ?>
 <li><a href="<?php 
        echo smarty_function_router(array('page' => "admin"), $_smarty_tpl);
        ?>
mhb/"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['mhb']['admin_admin_menu'];
        ?>
</a></li>
<?php 
    }
    function content_55cf1bd68793a3_27593757($_smarty_tpl)
    {
        if (!is_callable('smarty_function_router')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.router.php';
        }
        $_smarty_tpl->tpl_vars["noSidebar"] = new Smarty_variable(true, null, 0);
        echo $_smarty_tpl->getSubTemplate('header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>


<script type="text/javascript">
	jQuery(document).ready(function($){
		$('#reminder-form').bind('submit',function(){
			ls.user.reminder('reminder-form');
			return false;
		});
		$('#reminder-form-submit').attr('disabled',false);
	});
</script>

<h2 class="page-header"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['password_reminder'];
        ?>
</h2>

<form action="<?php 
        echo smarty_function_router(array('page' => 'login'), $_smarty_tpl);
        ?>
reminder/" method="POST" id="reminder-form">
	<p><label for="reminder-mail"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['password_reminder_email'];
        ?>
</label>
	<input type="text" name="mail" id="reminder-mail" class="input-text input-width-200" />
	<small class="validate-error-hide validate-error-reminder"></small></p>

	<button type="submit"  name="submit_reminder" class="button button-primary" id="reminder-form-submit" disabled="disabled"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['password_reminder_submit'];
        ?>
</button>
</form>



<?php 
        echo $_smarty_tpl->getSubTemplate('footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
    }
    function content_5578b5d9e42400_32193636($_smarty_tpl)
    {
        if (!is_callable('smarty_function_router')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.router.php';
        }
        echo $_smarty_tpl->getSubTemplate('header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('sMenuHeadItemSelect' => "blogs"), 0);
        ?>


<h2 class="page-header"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['blogs'];
        ?>
</h2>

<form action="" method="POST" id="form-blogs-search" onsubmit="return false;" class="search-item">
	<div class="search-input-wrapper">
		<input type="text" placeholder="<?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['blogs_search_title_hint'];
        ?>
" autocomplete="off" name="blog_title" class="input-text" value="" onkeyup="ls.timer.run(ls.blog.searchBlogs,'blogs_search',['form-blogs-search'],1000);">
		<div class="input-submit" onclick="jQuery('#form-blogs-search').submit()"></div>
	</div>
</form>

<div id="blogs-list-search" style="display:none;"></div>

<div id="blogs-list-original">
	<?php 
        echo smarty_function_router(array('page' => 'blogs', 'assign' => 'sBlogsRootPage'), $_smarty_tpl);
        ?>

	<?php 
        echo $_smarty_tpl->getSubTemplate('blog_list.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('bBlogsUseOrder' => true, 'sBlogsRootPage' => $_smarty_tpl->tpl_vars['sBlogsRootPage']->value), 0);
        ?>

	<?php 
        echo $_smarty_tpl->getSubTemplate('paging.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('aPaging' => $_smarty_tpl->tpl_vars['aPaging']->value), 0);
        ?>

</div>

<?php 
        echo $_smarty_tpl->getSubTemplate('footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
    }
    function content_559c873b570c50_61879475($_smarty_tpl)
    {
        if (!is_callable('smarty_function_router')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.router.php';
        }
        ?>
  <!-- Simplesearch plugin -->
  <div class="block SS_Peoplesearch">
    <header class="block-header sep">
      <h3><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['simplesearch']['People_Search'];
        ?>
</h3>
    </header>
    <div class="block-content">
      <form action="<?php 
        echo smarty_function_router(array('page' => 'search'), $_smarty_tpl);
        ?>
people/" method="GET" class="search">
        <input type="text" value="" name="q" placeholder="<?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['simplesearch']['Search_Field_Tip'];
        ?>
" class="input-text" />
        <input type="submit" value="" title="<?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['search_submit'];
        ?>
" class="input-submit icon icon-search" />
        <label><input type="checkbox" value="1" checked="checked" name="strict" /><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['simplesearch']['People_Search_Strict_Search'];
        ?>
</label>
      </form>
      
      <small>
        <?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['simplesearch']['People_Search_Tip'];
        ?>

      </small>
    </div>
  </div>
  <!-- /Simplesearch plugin -->
<?php 
    }
    function content_5577f781564633_32131467($_smarty_tpl)
    {
        if (!is_callable('smarty_function_router')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.router.php';
        }
        ?>
<li <?php 
        if ($_smarty_tpl->tpl_vars['sMenuHeadItemSelect']->value == 'receptiondesk') {
            ?>
class="active"<?php 
        }
        ?>
><a href="<?php 
        echo smarty_function_router(array('page' => 'receptiondesk'), $_smarty_tpl);
        ?>
"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['receptiondesk']['receptiondesk_main_menu_item'];
        ?>
</a><i></i></li><?php 
    }
    function content_568a8b56a79cd0_02826733($_smarty_tpl)
    {
        if (!is_callable('smarty_function_router')) {
            include 'D:\\OpenServer\\domains\\kprf.dev\\www/engine/modules/viewer/plugs\\function.router.php';
        }
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->isAdministrator()) {
            ?>
<section class="toolbar-admin">
	<a href="<?php 
            echo smarty_function_router(array('page' => 'admin'), $_smarty_tpl);
            ?>
" title="<?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['admin_title'];
            ?>
">
		<i></i>
	</a>
</section>
<?php 
        }
    }
    function content_5684d6cc854b32_75764697($_smarty_tpl)
    {
        if (!is_callable('smarty_function_router')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.router.php';
        }
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->isAdministrator()) {
            ?>
<section class="toolbar-admin">
	<a href="<?php 
            echo smarty_function_router(array('page' => 'admin'), $_smarty_tpl);
            ?>
" title="<?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['admin_title'];
            ?>
">
		<i class="fa fa-cog"></i>
	</a>
</section>
<?php 
        }
    }
    function content_5577f7815ef2a8_49923963($_smarty_tpl)
    {
        if (!is_callable('smarty_function_router')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.router.php';
        }
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->isAdministrator()) {
            ?>
<section class="toolbar-admin">
	<a href="<?php 
            echo smarty_function_router(array('page' => 'admin'), $_smarty_tpl);
            ?>
" title="<?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['admin_title'];
            ?>
">
		<i></i>
	</a>
</section>
<?php 
        }
    }
    function content_5577f7813d1522_75268816($_smarty_tpl)
    {
        if (!is_callable('smarty_function_router')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.router.php';
        }
        ?>
<ul class="nav nav-menu">
	<li <?php 
        if ($_smarty_tpl->tpl_vars['sMenuItemSelect']->value == 'receptiondesk') {
            ?>
class="active"<?php 
        }
        ?>
>
		<a href="<?php 
        echo smarty_function_router(array('page' => 'admin'), $_smarty_tpl);
        ?>
receptiondesk/"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['receptiondesk']['receptiondesk_admin_title'];
        ?>
</a>
	</li>
	<li <?php 
        if ($_smarty_tpl->tpl_vars['sMenuItemSelect']->value == 'receptiondesk_categories') {
            ?>
class="active"<?php 
        }
        ?>
>
		<a href="<?php 
        echo smarty_function_router(array('page' => 'admin'), $_smarty_tpl);
        ?>
receptiondesk/categories/"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['receptiondesk']['receptiondesk_admin_categories_title'];
        ?>
</a>
	</li>
</ul><?php 
    }
    function content_55784e358789d4_35394563($_smarty_tpl)
    {
        if (!is_callable('smarty_function_router')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.router.php';
        }
        $_smarty_tpl->tpl_vars["noSidebar"] = new Smarty_variable(true, null, 0);
        echo $_smarty_tpl->getSubTemplate('header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>




<h2 class="page-header"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['registration_invite'];
        ?>
</h2>


<form action="<?php 
        echo smarty_function_router(array('page' => 'registration'), $_smarty_tpl);
        ?>
invite/" method="POST">
	<p><label><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['registration_invite_code'];
        ?>
:</label>
	<input type="text" name="invite_code" class="input-text input-width-300" /></p>

	<input type="submit" name="submit_invite" value="<?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['registration_invite_check'];
        ?>
" class="button" />
</form>



<?php 
        echo $_smarty_tpl->getSubTemplate('footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
    }
    function content_5684d6f79337a4_44664669($_smarty_tpl)
    {
        if (!is_callable('smarty_function_router')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.router.php';
        }
        echo $_smarty_tpl->getSubTemplate('header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('sMenuHeadItemSelect' => "blogs"), 0);
        ?>



<form action="" method="POST" id="form-blogs-search" onsubmit="return false;" class="search search-item no-mg">
	<input type="text" placeholder="<?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['blogs_search_title_hint'];
        ?>
" autocomplete="off" name="blog_title" class="input-text" value="" onkeyup="ls.timer.run(ls.blog.searchBlogs,'blogs_search',['form-blogs-search'],1000);">
</form>

<div id="blogs-list-search" style="display:none;"></div>

<div id="blogs-list-original">
	<?php 
        echo smarty_function_router(array('page' => 'blogs', 'assign' => 'sBlogsRootPage'), $_smarty_tpl);
        ?>

	<?php 
        echo $_smarty_tpl->getSubTemplate('blog_list.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('bBlogsUseOrder' => true, 'sBlogsRootPage' => $_smarty_tpl->tpl_vars['sBlogsRootPage']->value), 0);
        ?>

	<?php 
        echo $_smarty_tpl->getSubTemplate('paging.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('aPaging' => $_smarty_tpl->tpl_vars['aPaging']->value), 0);
        ?>

</div>


<?php 
        echo $_smarty_tpl->getSubTemplate('footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
    }
    function content_5684d6cc7ce039_19619945($_smarty_tpl)
    {
        if (!is_callable('smarty_function_router')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.router.php';
        }
        ?>
<p align="center">
	Profiler: <?php 
        if ($_smarty_tpl->tpl_vars['oConfig']->value->GetValue('sys.logs.profiler')) {
            ?>
On<?php 
        } else {
            ?>
Off<?php 
        }
        ?>
 | 
	<a href="<?php 
        echo smarty_function_router(array('page' => 'profiler'), $_smarty_tpl);
        ?>
">Profiler reports</a>
</p><?php 
    }
    function content_55797af67804c6_31366386($_smarty_tpl)
    {
        if (!is_callable('smarty_function_router')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.router.php';
        }
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->isAdministrator()) {
            ?>
<section class="block block-type-profile-nav">
    <ul class="nav nav-profile">
        <li><a href="<?php 
            echo smarty_function_router(array('page' => "admin"), $_smarty_tpl);
            ?>
users/profile/<?php 
            echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getLogin();
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['aceadminpanel']['adm_user_profile_link'];
            ?>
</a></li>
    </ul>
</section>
<?php 
        }
    }
    function content_55cabb020afb93_73501775($_smarty_tpl)
    {
        if (!is_callable('smarty_function_date_format')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.date_format.php';
        }
        if (!is_callable('smarty_function_router')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.router.php';
        }
        ?>
<div class="comments comment-list">
	<?php 
        $_smarty_tpl->tpl_vars['oComment'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['oComment']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['aComments']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['oComment']->key => $_smarty_tpl->tpl_vars['oComment']->value) {
            $_smarty_tpl->tpl_vars['oComment']->_loop = true;
            ?>
		<?php 
            $_smarty_tpl->tpl_vars["oUser"] = new Smarty_variable($_smarty_tpl->tpl_vars['oComment']->value->getUser(), null, 0);
            ?>
		<?php 
            $_smarty_tpl->tpl_vars["oTopic"] = new Smarty_variable($_smarty_tpl->tpl_vars['oComment']->value->getTarget(), null, 0);
            ?>
		<?php 
            $_smarty_tpl->tpl_vars["oBlog"] = new Smarty_variable($_smarty_tpl->tpl_vars['oTopic']->value->getBlog(), null, 0);
            ?>
		
		
		
		
		
		<section class="comment">
			<ul class="comment-info">
				<li class="comment-author">
					<a href="<?php 
            echo $_smarty_tpl->tpl_vars['oUser']->value->getUserWebPath();
            ?>
"><img src="<?php 
            echo $_smarty_tpl->tpl_vars['oUser']->value->getProfileAvatarPath(24);
            ?>
" alt="avatar" class="comment-avatar" /></a>
					<a href="<?php 
            echo $_smarty_tpl->tpl_vars['oUser']->value->getUserWebPath();
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['oUser']->value->getLogin();
            ?>
</a>
				</li>
				<li class="comment-date">
					<time datetime="<?php 
            echo smarty_function_date_format(array('date' => $_smarty_tpl->tpl_vars['oComment']->value->getDate(), 'format' => 'c'), $_smarty_tpl);
            ?>
"><?php 
            echo smarty_function_date_format(array('date' => $_smarty_tpl->tpl_vars['oComment']->value->getDate(), 'hours_back' => "12", 'minutes_back' => "60", 'now' => "60", 'day' => "day H:i", 'format' => "j F Y, H:i"), $_smarty_tpl);
            ?>
</time>
				</li>
				<?php 
            if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && !$_smarty_tpl->tpl_vars['bNoCommentFavourites']->value) {
                ?>
					<li class="comment-favourite">
						<div onclick="return ls.favourite.toggle(<?php 
                echo $_smarty_tpl->tpl_vars['oComment']->value->getId();
                ?>
,this,'comment');" class="favourite <?php 
                if ($_smarty_tpl->tpl_vars['oComment']->value->getIsFavourite()) {
                    ?>
active<?php 
                }
                ?>
"></div>
						<span class="favourite-count" id="fav_count_comment_<?php 
                echo $_smarty_tpl->tpl_vars['oComment']->value->getId();
                ?>
"><?php 
                if ($_smarty_tpl->tpl_vars['oComment']->value->getCountFavourite() > 0) {
                    echo $_smarty_tpl->tpl_vars['oComment']->value->getCountFavourite();
                }
                ?>
</span>
					</li>
				<?php 
            }
            ?>
				<li class="comment-link">
					<a href="<?php 
            if ($_smarty_tpl->tpl_vars['oConfig']->value->GetValue('module.comment.nested_per_page')) {
                echo smarty_function_router(array('page' => 'comments'), $_smarty_tpl);
            } else {
                echo $_smarty_tpl->tpl_vars['oTopic']->value->getUrl();
                ?>
#comment<?php 
            }
            echo $_smarty_tpl->tpl_vars['oComment']->value->getId();
            ?>
" title="<?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['comment_url_notice'];
            ?>
">
						<i class="icon-synio-link"></i>
					</a>
				</li>
				<li id="vote_area_comment_<?php 
            echo $_smarty_tpl->tpl_vars['oComment']->value->getId();
            ?>
" class="vote 
																		<?php 
            if ($_smarty_tpl->tpl_vars['oComment']->value->getRating() > 0) {
                ?>
																			vote-count-positive
																		<?php 
            } elseif ($_smarty_tpl->tpl_vars['oComment']->value->getRating() < 0) {
                ?>
																			vote-count-negative
																		<?php 
            }
            ?>
">
					<span class="vote-count" id="vote_total_comment_<?php 
            echo $_smarty_tpl->tpl_vars['oComment']->value->getId();
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['oComment']->value->getRating();
            ?>
</span>
				</li>
			</ul>
					
					
			<div class="comment-content">						
				<div class="text">						
					<?php 
            if ($_smarty_tpl->tpl_vars['oComment']->value->isBad()) {
                ?>
						<?php 
                echo $_smarty_tpl->tpl_vars['oComment']->value->getText();
                ?>
						
					<?php 
            } else {
                ?>
						<?php 
                echo $_smarty_tpl->tpl_vars['oComment']->value->getText();
                ?>

					<?php 
            }
            ?>
		
				</div>
			</div>
			
			
			<div class="comment-path">
				<a href="<?php 
            echo $_smarty_tpl->tpl_vars['oBlog']->value->getUrlFull();
            ?>
" class="blog-name"><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['oBlog']->value->getTitle(), ENT_QUOTES, 'UTF-8', true);
            ?>
</a> &rarr;
				<a href="<?php 
            echo $_smarty_tpl->tpl_vars['oTopic']->value->getUrl();
            ?>
" class="comment-path-topic"><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['oTopic']->value->getTitle(), ENT_QUOTES, 'UTF-8', true);
            ?>
</a>
				<a href="<?php 
            echo $_smarty_tpl->tpl_vars['oTopic']->value->getUrl();
            ?>
#comments" class="comment-path-comments"><?php 
            echo $_smarty_tpl->tpl_vars['oTopic']->value->getCountComment();
            ?>
</a>
			</div>
		</section>
	<?php 
        }
        ?>
	
</div>


<?php 
        echo $_smarty_tpl->getSubTemplate('paging.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('aPaging' => $_smarty_tpl->tpl_vars['aPaging']->value), 0);
    }
    function content_5577f7815cc685_82526752($_smarty_tpl)
    {
        if (!is_callable('smarty_function_hook')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.hook.php';
        }
        if (!is_callable('smarty_function_router')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.router.php';
        }
        if (!is_callable('smarty_function_cfg')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.cfg.php';
        }
        ?>
			<?php 
        echo smarty_function_hook(array('run' => 'content_end'), $_smarty_tpl);
        ?>

		</div> <!-- /content -->
	</div> <!-- /wrapper -->

<!--
	
	<footer id="footer">
		<?php 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value) {
            ?>
			<ul class="footer-list">
				<li class="footer-list-header word-wrap"><?php 
            echo $_smarty_tpl->tpl_vars['oUserCurrent']->value->getLogin();
            ?>
</li>
				<li><a href="<?php 
            echo $_smarty_tpl->tpl_vars['oUserCurrent']->value->getUserWebPath();
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['footer_menu_user_profile'];
            ?>
</a></li>
				<li><a href="<?php 
            echo smarty_function_router(array('page' => 'settings'), $_smarty_tpl);
            ?>
profile/"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_settings'];
            ?>
</a></li>
				<li><a href="<?php 
            echo smarty_function_router(array('page' => 'topic'), $_smarty_tpl);
            ?>
add/" class="js-write-window-show"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['block_create'];
            ?>
</a></li>
				<?php 
            echo smarty_function_hook(array('run' => 'footer_menu_user_item', 'oUser' => $_smarty_tpl->tpl_vars['oUserCurrent']->value), $_smarty_tpl);
            ?>

				<li><a href="<?php 
            echo smarty_function_router(array('page' => 'login'), $_smarty_tpl);
            ?>
exit/?security_ls_key=<?php 
            echo $_smarty_tpl->tpl_vars['LIVESTREET_SECURITY_KEY']->value;
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['exit'];
            ?>
</a></li>
			</ul>
		<?php 
        } else {
            ?>
			<ul class="footer-list">
				<li class="footer-list-header word-wrap"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['footer_menu_user_quest_title'];
            ?>
</li>
				<li><a href="<?php 
            echo smarty_function_router(array('page' => 'registration'), $_smarty_tpl);
            ?>
" class="js-registration-form-show"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['registration_submit'];
            ?>
</a></li>
				<li><a href="<?php 
            echo smarty_function_router(array('page' => 'login'), $_smarty_tpl);
            ?>
" class="js-login-form-show sign-in"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_login_submit'];
            ?>
</a></li>
				<?php 
            echo smarty_function_hook(array('run' => 'footer_menu_user_item', 'isGuest' => true), $_smarty_tpl);
            ?>

			</ul>
		<?php 
        }
        ?>
		
		<ul class="footer-list">
			<li class="footer-list-header"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['footer_menu_navigate_title'];
        ?>
</li>
			<li><a href="<?php 
        echo smarty_function_cfg(array('name' => 'path.root.web'), $_smarty_tpl);
        ?>
"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['topic_title'];
        ?>
</a></li>
			<li><a href="<?php 
        echo smarty_function_router(array('page' => 'blogs'), $_smarty_tpl);
        ?>
"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['blogs'];
        ?>
</a></li>
			<li><a href="<?php 
        echo smarty_function_router(array('page' => 'people'), $_smarty_tpl);
        ?>
"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['people'];
        ?>
</a></li>
			<li><a href="<?php 
        echo smarty_function_router(array('page' => 'stream'), $_smarty_tpl);
        ?>
"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['stream_menu'];
        ?>
</a></li>
			<?php 
        echo smarty_function_hook(array('run' => 'footer_menu_navigate_item'), $_smarty_tpl);
        ?>

		</ul>
-->		
		
		
		
		
		
		
		

								 
				 <img src="http://сокол-сао.рф/d.jpg" title="Мусаев Александр
адрес: Ул.Флотская, 82/6
телефон : 8(499)7470954">
		<br/><br/>
		
		
		
	
		<!--<div class="copyright">
			<?php 
        echo smarty_function_hook(array('run' => 'copyright'), $_smarty_tpl);
        ?>

			
			<div class="design-by">
				<img src="<?php 
        echo smarty_function_cfg(array('name' => 'path.static.skin'), $_smarty_tpl);
        ?>
/images/xeoart.png" alt="xeoart" />
				Design by <a href="http://xeoart.com">xeoart</a> -->
				<div>Организатор проекта <a href="http://vk.com/id1798736">Тарасов Антон</a>
				 </div>
				 <div>Руководитель проекта <a href="https://www.facebook.com/profile.php?id=100007299644938">Удалов Сергей</a></div>
				 
		 <br/>
					 
				 
				 <!-- Yandex.Metrika informer -->
<a href="https://metrika.yandex.ru/stat/?id=29259100&amp;from=informer"
target="_blank" rel="nofollow"><img src="//bs.yandex.ru/informer/29259100/3_1_FFFFFFFF_EFEFEFFF_0_pageviews"
style="width:88px; height:31px; border:0;" alt="Яндекс.Метрика" title="Яндекс.Метрика: данные за сегодня (просмотры, визиты и уникальные посетители)" onclick="try{Ya.Metrika.informer({i:this,id:29259100,lang:'ru'});return false}catch(e){}"/></a>
<!-- /Yandex.Metrika informer -->

<!-- Yandex.Metrika counter -->
<script type="text/javascript">
(function (d, w, c) {
    (w[c] = w[c] || []).push(function() {
        try {
            w.yaCounter29259100 = new Ya.Metrika({id:29259100,
                    clickmap:true,
                    trackLinks:true,
                    accurateTrackBounce:true});
        } catch(e) { }
    });

    var n = d.getElementsByTagName("script")[0],
        s = d.createElement("script"),
        f = function () { n.parentNode.insertBefore(s, n); };
    s.type = "text/javascript";
    s.async = true;
    s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js";

    if (w.opera == "[object Opera]") {
        d.addEventListener("DOMContentLoaded", f, false);
    } else { f(); }
})(document, window, "yandex_metrika_callbacks");
</script>
<noscript><div><img src="//mc.yandex.ru/watch/29259100" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
 
				 
				 
				 
			</div>
		</div>
		
		<?php 
        echo smarty_function_hook(array('run' => 'footer_end'), $_smarty_tpl);
        ?>

	</footer>
</div> <!-- /container -->

<?php 
        echo $_smarty_tpl->getSubTemplate('toolbar.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>


<?php 
        echo smarty_function_hook(array('run' => 'body_end'), $_smarty_tpl);
        ?>



<!-- Yandex.Metrika counter -->
<script src="//mc.yandex.ru/metrika/watch.js" type="text/javascript"></script>
<script type="text/javascript">
try { var yaCounter23864602 = new Ya.Metrika({id:23864602,
          webvisor:true,
          clickmap:true,
          trackLinks:true,
          accurateTrackBounce:true});
} catch(e) { }
</script>
<noscript><div><img src="//mc.yandex.ru/watch/23864602" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->


</body>
</html><?php 
    }
    function content_5684d8b3b04123_44863027($_smarty_tpl)
    {
        if (!is_callable('smarty_function_lang_load')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.lang_load.php';
        }
        if (!is_callable('smarty_function_router')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.router.php';
        }
        if (!is_callable('smarty_function_hook')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.hook.php';
        }
        echo $_smarty_tpl->getSubTemplate('header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('noBg' => true), 0);
        ?>

<?php 
        $_smarty_tpl->tpl_vars["oUserOwner"] = new Smarty_variable($_smarty_tpl->tpl_vars['oBlog']->value->getOwner(), null, 0);
        $_smarty_tpl->tpl_vars["oVote"] = new Smarty_variable($_smarty_tpl->tpl_vars['oBlog']->value->getVote(), null, 0);
        ?>


<script type="text/javascript">
	jQuery(function($){
		ls.lang.load(<?php 
        echo smarty_function_lang_load(array('name' => "blog_fold_info,blog_expand_info"), $_smarty_tpl);
        ?>
);
	});
</script>


<?php 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->isAdministrator()) {
            ?>
	<div id="blog_delete_form" class="modal">
		<header class="modal-header">
			<h3><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['blog_admin_delete_title'];
            ?>
</h3>
			<a href="#" class="close jqmClose"></a>
		</header>
		
		
		<form action="<?php 
            echo smarty_function_router(array('page' => 'blog'), $_smarty_tpl);
            ?>
delete/<?php 
            echo $_smarty_tpl->tpl_vars['oBlog']->value->getId();
            ?>
/" method="POST" class="modal-content">
			<p><label for="topic_move_to"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['blog_admin_delete_move'];
            ?>
:</label>
			<select name="topic_move_to" id="topic_move_to" class="input-width-full">
				<option value="-1"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['blog_delete_clear'];
            ?>
</option>
				<?php 
            if ($_smarty_tpl->tpl_vars['aBlogs']->value) {
                ?>
					<optgroup label="<?php 
                echo $_smarty_tpl->tpl_vars['aLang']->value['blogs'];
                ?>
">
						<?php 
                $_smarty_tpl->tpl_vars['oBlogDelete'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['oBlogDelete']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['aBlogs']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['oBlogDelete']->key => $_smarty_tpl->tpl_vars['oBlogDelete']->value) {
                    $_smarty_tpl->tpl_vars['oBlogDelete']->_loop = true;
                    ?>
							<option value="<?php 
                    echo $_smarty_tpl->tpl_vars['oBlogDelete']->value->getId();
                    ?>
"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['oBlogDelete']->value->getTitle(), ENT_QUOTES, 'UTF-8', true);
                    ?>
</option>
						<?php 
                }
                ?>
					</optgroup>
				<?php 
            }
            ?>
			</select></p>
			
			<input type="hidden" value="<?php 
            echo $_smarty_tpl->tpl_vars['LIVESTREET_SECURITY_KEY']->value;
            ?>
" name="security_ls_key" />
			<button type="submit" class="button button-primary"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['blog_delete'];
            ?>
</button>
		</form>
	</div>
<?php 
        }
        ?>



<div class="blog">
	<header class="blog-header">
		<img src="<?php 
        echo $_smarty_tpl->tpl_vars['oBlog']->value->getAvatarPath(64);
        ?>
" alt="avatar" class="avatar" />
		
		
		<h2><?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['oBlog']->value->getTitle(), ENT_QUOTES, 'UTF-8', true);
        ?>
</h2>
		<p>
			<?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['blogs_rating'];
        ?>
: <span id="vote_total_blog_alt_<?php 
        echo $_smarty_tpl->tpl_vars['oBlog']->value->getId();
        ?>
"><?php 
        echo $_smarty_tpl->tpl_vars['oBlog']->value->getRating();
        ?>
</span>,
			<?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['blogs_readers'];
        ?>
: <?php 
        echo $_smarty_tpl->tpl_vars['oBlog']->value->getCountUser();
        ?>

		</p>


		<a href="#" class="icon-blog-more" id="blog-more" onclick="ls.tools.slide(jQuery('#blog-more-content'), jQuery(this)); return false;"></a>
	</header>
	
	
	<div class="blog-more-content" id="blog-more-content" style="display: none;">
		<div class="blog-content text">
			<?php 
        echo $_smarty_tpl->tpl_vars['oBlog']->value->getDescription();
        ?>

		</div>
		
		
		<footer class="blog-footer">
			<?php 
        echo smarty_function_hook(array('run' => 'blog_info_begin', 'oBlog' => $_smarty_tpl->tpl_vars['oBlog']->value), $_smarty_tpl);
        ?>

			<strong><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['blog_user_administrators'];
        ?>
 (<?php 
        echo $_smarty_tpl->tpl_vars['iCountBlogAdministrators']->value;
        ?>
):</strong>							
			<a href="<?php 
        echo $_smarty_tpl->tpl_vars['oUserOwner']->value->getUserWebPath();
        ?>
" class="user"><?php 
        echo $_smarty_tpl->tpl_vars['oUserOwner']->value->getLogin();
        ?>
</a>
			<?php 
        if ($_smarty_tpl->tpl_vars['aBlogAdministrators']->value) {
            ?>
			
				<?php 
            $_smarty_tpl->tpl_vars['oBlogUser'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['oBlogUser']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['aBlogAdministrators']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['oBlogUser']->key => $_smarty_tpl->tpl_vars['oBlogUser']->value) {
                $_smarty_tpl->tpl_vars['oBlogUser']->_loop = true;
                ?>
					<?php 
                $_smarty_tpl->tpl_vars["oUser"] = new Smarty_variable($_smarty_tpl->tpl_vars['oBlogUser']->value->getUser(), null, 0);
                ?>
  									
					<a href="<?php 
                echo $_smarty_tpl->tpl_vars['oUser']->value->getUserWebPath();
                ?>
" class="user"><?php 
                echo $_smarty_tpl->tpl_vars['oUser']->value->getLogin();
                ?>
</a>
				<?php 
            }
            ?>
	
			<?php 
        }
        ?>
<br />		

			
			<strong><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['blog_user_moderators'];
        ?>
 (<?php 
        echo $_smarty_tpl->tpl_vars['iCountBlogModerators']->value;
        ?>
):</strong>
			<?php 
        if ($_smarty_tpl->tpl_vars['aBlogModerators']->value) {
            ?>
						
				<?php 
            $_smarty_tpl->tpl_vars['oBlogUser'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['oBlogUser']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['aBlogModerators']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['oBlogUser']->key => $_smarty_tpl->tpl_vars['oBlogUser']->value) {
                $_smarty_tpl->tpl_vars['oBlogUser']->_loop = true;
                ?>
  
					<?php 
                $_smarty_tpl->tpl_vars["oUser"] = new Smarty_variable($_smarty_tpl->tpl_vars['oBlogUser']->value->getUser(), null, 0);
                ?>
									
					<a href="<?php 
                echo $_smarty_tpl->tpl_vars['oUser']->value->getUserWebPath();
                ?>
" class="user"><?php 
                echo $_smarty_tpl->tpl_vars['oUser']->value->getLogin();
                ?>
</a>
				<?php 
            }
            ?>
							
			<?php 
        } else {
            ?>
				<?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['blog_user_moderators_empty'];
            ?>

			<?php 
        }
        ?>
<br />
			
			
			<strong><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['blog_user_readers'];
        ?>
 (<?php 
        echo $_smarty_tpl->tpl_vars['iCountBlogUsers']->value;
        ?>
):</strong>
			<?php 
        if ($_smarty_tpl->tpl_vars['aBlogUsers']->value) {
            ?>
				<?php 
            $_smarty_tpl->tpl_vars['oBlogUser'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['oBlogUser']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['aBlogUsers']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['oBlogUser']->key => $_smarty_tpl->tpl_vars['oBlogUser']->value) {
                $_smarty_tpl->tpl_vars['oBlogUser']->_loop = true;
                ?>
					<?php 
                $_smarty_tpl->tpl_vars["oUser"] = new Smarty_variable($_smarty_tpl->tpl_vars['oBlogUser']->value->getUser(), null, 0);
                ?>
					<a href="<?php 
                echo $_smarty_tpl->tpl_vars['oUser']->value->getUserWebPath();
                ?>
" class="user"><?php 
                echo $_smarty_tpl->tpl_vars['oUser']->value->getLogin();
                ?>
</a>
				<?php 
            }
            ?>
				
				<?php 
            if (count($_smarty_tpl->tpl_vars['aBlogUsers']->value) < $_smarty_tpl->tpl_vars['iCountBlogUsers']->value) {
                ?>
					<br /><a href="<?php 
                echo $_smarty_tpl->tpl_vars['oBlog']->value->getUrlFull();
                ?>
users/"><?php 
                echo $_smarty_tpl->tpl_vars['aLang']->value['blog_user_readers_all'];
                ?>
</a>
				<?php 
            }
            ?>
			<?php 
        } else {
            ?>
				<?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['blog_user_readers_empty'];
            ?>

			<?php 
        }
        ?>
			<?php 
        echo smarty_function_hook(array('run' => 'blog_info_end', 'oBlog' => $_smarty_tpl->tpl_vars['oBlog']->value), $_smarty_tpl);
        ?>

		</footer>
	</div>


	<ul class="actions clearfix">
		<?php 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value) {
            ?>
			<?php 
            if ($_smarty_tpl->tpl_vars['oBlog']->value->getType() == 'close') {
                ?>
				<li><i title="<?php 
                echo $_smarty_tpl->tpl_vars['aLang']->value['blog_closed'];
                ?>
" class="icon-blog-private"></i></li>
			<?php 
            } else {
                ?>
				<?php 
                if ($_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() != $_smarty_tpl->tpl_vars['oBlog']->value->getOwnerId() && $_smarty_tpl->tpl_vars['oBlog']->value->getType() == 'open') {
                    ?>
					<li><a href="#" class="icon-blog-join <?php 
                    if ($_smarty_tpl->tpl_vars['oBlog']->value->getUserIsJoin()) {
                        ?>
active<?php 
                    }
                    ?>
" onclick="ls.blog.toggleJoin(this, <?php 
                    echo $_smarty_tpl->tpl_vars['oBlog']->value->getId();
                    ?>
); return false;"></a></li>
				<?php 
                } else {
                    ?>
					<li><i class="icon-blog-owner"></i></li>
				<?php 
                }
                ?>
			<?php 
            }
            ?>
		<?php 
        }
        ?>

		<li><a href="<?php 
        echo smarty_function_router(array('page' => 'rss'), $_smarty_tpl);
        ?>
blog/<?php 
        echo $_smarty_tpl->tpl_vars['oBlog']->value->getUrl();
        ?>
/" class="icon-rss"></a></li>

		<?php 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && ($_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() == $_smarty_tpl->tpl_vars['oBlog']->value->getOwnerId() || $_smarty_tpl->tpl_vars['oUserCurrent']->value->isAdministrator() || $_smarty_tpl->tpl_vars['oBlog']->value->getUserIsAdministrator())) {
            ?>
			<li><a href="<?php 
            echo smarty_function_router(array('page' => 'blog'), $_smarty_tpl);
            ?>
edit/<?php 
            echo $_smarty_tpl->tpl_vars['oBlog']->value->getId();
            ?>
/" title="<?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['blog_edit'];
            ?>
" class="icon-edit"></a></li>
			
			<?php 
            if ($_smarty_tpl->tpl_vars['oUserCurrent']->value->isAdministrator()) {
                ?>
				<li><a href="#" title="<?php 
                echo $_smarty_tpl->tpl_vars['aLang']->value['blog_delete'];
                ?>
" id="blog_delete_show" class="icon-delete"></a></li>
			<?php 
            } else {
                ?>
				<li><a href="<?php 
                echo smarty_function_router(array('page' => 'blog'), $_smarty_tpl);
                ?>
delete/<?php 
                echo $_smarty_tpl->tpl_vars['oBlog']->value->getId();
                ?>
/?security_ls_key=<?php 
                echo $_smarty_tpl->tpl_vars['LIVESTREET_SECURITY_KEY']->value;
                ?>
" 
				       class="icon-delete"
				       title="<?php 
                echo $_smarty_tpl->tpl_vars['aLang']->value['blog_delete'];
                ?>
"
				       onclick="return confirm('<?php 
                echo $_smarty_tpl->tpl_vars['aLang']->value['blog_admin_delete_confirm'];
                ?>
');"></a></li>
			<?php 
            }
            ?>
		<?php 
        }
        ?>

		<?php 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() != $_smarty_tpl->tpl_vars['oBlog']->value->getOwnerId()) {
            ?>
			<li id="vote_total_blog_<?php 
            echo $_smarty_tpl->tpl_vars['oBlog']->value->getId();
            ?>
" class="vote-result 
				vote-no-rating
					
				<?php 
            if ($_smarty_tpl->tpl_vars['oVote']->value || $_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserOwner']->value->getId() == $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId()) {
                ?>
					<?php 
                if ($_smarty_tpl->tpl_vars['oBlog']->value->getRating() > 0) {
                    ?>
						vote-count-positive
					<?php 
                } elseif ($_smarty_tpl->tpl_vars['oBlog']->value->getRating() < 0) {
                    ?>
						vote-count-negative
					<?php 
                } elseif ($_smarty_tpl->tpl_vars['oBlog']->value->getRating() == 0) {
                    ?>
						vote-count-zero
					<?php 
                }
                ?>
				<?php 
            }
            ?>

				<?php 
            if ($_smarty_tpl->tpl_vars['oVote']->value) {
                ?>
 
					voted
															
					<?php 
                if ($_smarty_tpl->tpl_vars['oVote']->value->getDirection() > 0) {
                    ?>
						voted-up
					<?php 
                } elseif ($_smarty_tpl->tpl_vars['oVote']->value->getDirection() < 0) {
                    ?>
						voted-down
					<?php 
                }
                ?>
				<?php 
            }
            ?>
" 

				<?php 
            if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && !$_smarty_tpl->tpl_vars['oVote']->value) {
                ?>
					onclick="ls.tools.slide($('#vote_area_blog_<?php 
                echo $_smarty_tpl->tpl_vars['oBlog']->value->getId();
                ?>
'), $(this));"
				<?php 
            }
            ?>

				title="<?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['blog_vote_count'];
            ?>
: <?php 
            echo $_smarty_tpl->tpl_vars['oBlog']->value->getCountVote();
            ?>
">
			</li>
		<?php 
        }
        ?>
	</ul>

	<div id="vote_area_blog_<?php 
        echo $_smarty_tpl->tpl_vars['oBlog']->value->getId();
        ?>
" class="vote">
		<div class="vote-item vote-up" onclick="return ls.vote.vote(<?php 
        echo $_smarty_tpl->tpl_vars['oBlog']->value->getId();
        ?>
,this,1,'blog');"><i></i></div>
		<div class="vote-item vote-down" onclick="return ls.vote.vote(<?php 
        echo $_smarty_tpl->tpl_vars['oBlog']->value->getId();
        ?>
,this,-1,'blog');"><i></i></div>
	</div>
</div>

<?php 
        echo smarty_function_hook(array('run' => 'blog_info', 'oBlog' => $_smarty_tpl->tpl_vars['oBlog']->value), $_smarty_tpl);
        ?>






<ul class="nav-foldable">
	<li <?php 
        if ($_smarty_tpl->tpl_vars['sMenuSubItemSelect']->value == 'good') {
            ?>
class="active"<?php 
        }
        ?>
><a href="<?php 
        echo $_smarty_tpl->tpl_vars['sMenuSubBlogUrl']->value;
        ?>
"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['blog_menu_collective_good'];
        ?>
</a></li>
	<li <?php 
        if ($_smarty_tpl->tpl_vars['sMenuSubItemSelect']->value == 'new') {
            ?>
class="active"<?php 
        }
        ?>
><a href="<?php 
        echo $_smarty_tpl->tpl_vars['sMenuSubBlogUrl']->value;
        ?>
newall/"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['blog_menu_collective_new'];
        ?>
</a><?php 
        if ($_smarty_tpl->tpl_vars['iCountTopicsBlogNew']->value > 0) {
            ?>
 <a href="<?php 
            echo $_smarty_tpl->tpl_vars['sMenuSubBlogUrl']->value;
            ?>
new/">+<?php 
            echo $_smarty_tpl->tpl_vars['iCountTopicsBlogNew']->value;
            ?>
</a><?php 
        }
        ?>
</li>
	<li <?php 
        if ($_smarty_tpl->tpl_vars['sMenuSubItemSelect']->value == 'discussed') {
            ?>
class="active"<?php 
        }
        ?>
><a href="<?php 
        echo $_smarty_tpl->tpl_vars['sMenuSubBlogUrl']->value;
        ?>
discussed/"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['blog_menu_collective_discussed'];
        ?>
</a></li>
	<li <?php 
        if ($_smarty_tpl->tpl_vars['sMenuSubItemSelect']->value == 'top') {
            ?>
class="active"<?php 
        }
        ?>
><a href="<?php 
        echo $_smarty_tpl->tpl_vars['sMenuSubBlogUrl']->value;
        ?>
top/"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['blog_menu_collective_top'];
        ?>
</a></li>
	<?php 
        echo smarty_function_hook(array('run' => 'menu_blog_blog_item'), $_smarty_tpl);
        ?>

</ul>

<?php 
        if ($_smarty_tpl->tpl_vars['sPeriodSelectCurrent']->value) {
            ?>
	<ul class="nav-foldable">
		<li <?php 
            if ($_smarty_tpl->tpl_vars['sPeriodSelectCurrent']->value == '1') {
                ?>
class="active"<?php 
            }
            ?>
><a href="<?php 
            echo $_smarty_tpl->tpl_vars['sPeriodSelectRoot']->value;
            ?>
?period=1"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['blog_menu_top_period_24h'];
            ?>
</a></li>
		<li <?php 
            if ($_smarty_tpl->tpl_vars['sPeriodSelectCurrent']->value == '7') {
                ?>
class="active"<?php 
            }
            ?>
><a href="<?php 
            echo $_smarty_tpl->tpl_vars['sPeriodSelectRoot']->value;
            ?>
?period=7"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['blog_menu_top_period_7d'];
            ?>
</a></li>
		<li <?php 
            if ($_smarty_tpl->tpl_vars['sPeriodSelectCurrent']->value == '30') {
                ?>
class="active"<?php 
            }
            ?>
><a href="<?php 
            echo $_smarty_tpl->tpl_vars['sPeriodSelectRoot']->value;
            ?>
?period=30"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['blog_menu_top_period_30d'];
            ?>
</a></li>
		<li <?php 
            if ($_smarty_tpl->tpl_vars['sPeriodSelectCurrent']->value == 'all') {
                ?>
class="active"<?php 
            }
            ?>
><a href="<?php 
            echo $_smarty_tpl->tpl_vars['sPeriodSelectRoot']->value;
            ?>
?period=all"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['blog_menu_top_period_all'];
            ?>
</a></li>
	</ul>
<?php 
        }
        ?>




<?php 
        if ($_smarty_tpl->tpl_vars['bCloseBlog']->value) {
            ?>
	<?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['blog_close_show'];
            ?>

<?php 
        } else {
            ?>
	<?php 
            echo $_smarty_tpl->getSubTemplate('topic_list.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
            ?>

<?php 
        }
        ?>


<?php 
        echo $_smarty_tpl->getSubTemplate('footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
    }
    function content_5684d6e4153a72_98738086($_smarty_tpl)
    {
        if (!is_callable('smarty_function_hook')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.hook.php';
        }
        if (!is_callable('smarty_function_router')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.router.php';
        }
        if (!is_callable('smarty_function_cfg')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.cfg.php';
        }
        ?>
			<?php 
        echo smarty_function_hook(array('run' => 'content_end'), $_smarty_tpl);
        ?>

		</div> <!-- /content -->

		
		<footer id="footer">
			<?php 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value) {
            ?>
				<ul class="footer-profile-links clearfix">
					<li><a href="<?php 
            echo $_smarty_tpl->tpl_vars['oUserCurrent']->value->getUserWebPath();
            ?>
"><i class="icon-profile-profile"></i></a></li>
					<li><a href="<?php 
            echo smarty_function_router(array('page' => 'talk'), $_smarty_tpl);
            ?>
"><i class="icon-profile-messages"></i></a></li>
					<li><a href="<?php 
            echo $_smarty_tpl->tpl_vars['oUserCurrent']->value->getUserWebPath();
            ?>
created/topics/"><i class="icon-profile-submited"></i></a></li>
					<li><a href="<?php 
            echo $_smarty_tpl->tpl_vars['oUserCurrent']->value->getUserWebPath();
            ?>
favourites/topics/"><i class="icon-profile-favourites"></i></a></li>
					<li><a href="<?php 
            echo $_smarty_tpl->tpl_vars['oUserCurrent']->value->getUserWebPath();
            ?>
friends/"><i class="icon-profile-friends"></i></a></li>
					<li><a href="<?php 
            echo smarty_function_router(array('page' => 'stream'), $_smarty_tpl);
            ?>
"><i class="icon-profile-activity"></i></a></li>
					<li><a href="<?php 
            echo smarty_function_router(array('page' => 'settings'), $_smarty_tpl);
            ?>
"><i class="icon-profile-settings"></i></a></li>
				</ul>
			<?php 
        }
        ?>
			
			<div class="footer-inner">
				<ul class="footer-links clearfix">
					<li><a href="<?php 
        echo smarty_function_cfg(array('name' => 'path.root.web'), $_smarty_tpl);
        ?>
/?force-mobile=off"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['desktop_version'];
        ?>
</a></li>
					<li><a href="<?php 
        echo smarty_function_router(array('page' => 'rss'), $_smarty_tpl);
        ?>
">RSS</a></li>
				</ul>
				
				<div class="copyright">
					&copy; <?php 
        echo smarty_function_cfg(array('name' => 'view.name'), $_smarty_tpl);
        ?>

					
					<br />
					<br />
				
					<?php 
        echo smarty_function_hook(array('run' => 'copyright'), $_smarty_tpl);
        ?>
<br />
					Дизайн от <a href="http://designmobile.ru">DesignMobile</a>
				</div>
			</div>
			
			<?php 
        echo smarty_function_hook(array('run' => 'footer_end'), $_smarty_tpl);
        ?>

		</footer>
	</div> <!-- /wrapper -->
</div> <!-- /container -->

<?php 
        echo smarty_function_hook(array('run' => 'body_end'), $_smarty_tpl);
        ?>


</body>
</html>
<?php 
    }
    function content_5684d6caeb3ac4_70007888($_smarty_tpl)
    {
        if (!is_callable('smarty_function_cfg')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.cfg.php';
        }
        if (!is_callable('smarty_function_hook')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.hook.php';
        }
        if (!is_callable('smarty_function_router')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.router.php';
        }
        if (!is_callable('smarty_function_json')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.json.php';
        }
        if (!is_callable('smarty_function_add_block')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.add_block.php';
        }
        ?>
<!doctype html>

<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="ru"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="ru"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="ru"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="ru"> <!--<![endif]-->

<head>
	<?php 
        if ($_smarty_tpl->tpl_vars['sAction']->value != 'login') {
            ?>
	<?php 
            if (!$_smarty_tpl->tpl_vars['oUserCurrent']->value) {
                ?>

	<?php 
            }
        }
        ?>
	<script async src="<?php 
        echo smarty_function_cfg(array('name' => "path.static.skin"), $_smarty_tpl);
        ?>
/js/spoiler.js"></script>
	<?php 
        echo smarty_function_hook(array('run' => 'html_head_begin'), $_smarty_tpl);
        ?>

	
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	
	<title><?php 
        echo $_smarty_tpl->tpl_vars['sHtmlTitle']->value;
        ?>
</title>
	
	<meta name="description" content="<?php 
        echo $_smarty_tpl->tpl_vars['sHtmlDescription']->value;
        ?>
">
	<meta name="keywords" content="<?php 
        echo $_smarty_tpl->tpl_vars['sHtmlKeywords']->value;
        ?>
">
 <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.css">
 <link rel="stylesheet" href="<?php 
        echo smarty_function_cfg(array('name' => "path.static.skin"), $_smarty_tpl);
        ?>
/css/menu.css">
	<?php 
        echo $_smarty_tpl->tpl_vars['aHtmlHeadFiles']->value['css'];
        ?>

	<link href="<?php 
        echo smarty_function_cfg(array('name' => 'path.static.skin'), $_smarty_tpl);
        ?>
/images/favicon.ico?v1" rel="shortcut icon" />
	<link rel="search" type="application/opensearchdescription+xml" href="<?php 
        echo smarty_function_router(array('page' => 'search'), $_smarty_tpl);
        ?>
opensearch/" title="<?php 
        echo smarty_function_cfg(array('name' => 'view.name'), $_smarty_tpl);
        ?>
" />

	<?php 
        if ($_smarty_tpl->tpl_vars['aHtmlRssAlternate']->value) {
            ?>
		<link rel="alternate" type="application/rss+xml" href="<?php 
            echo $_smarty_tpl->tpl_vars['aHtmlRssAlternate']->value['url'];
            ?>
" title="<?php 
            echo $_smarty_tpl->tpl_vars['aHtmlRssAlternate']->value['title'];
            ?>
">
	<?php 
        }
        ?>

	<?php 
        if ($_smarty_tpl->tpl_vars['sHtmlCanonical']->value) {
            ?>
		<link rel="canonical" href="<?php 
            echo $_smarty_tpl->tpl_vars['sHtmlCanonical']->value;
            ?>
" />
	<?php 
        }
        ?>
	
	<?php 
        if ($_smarty_tpl->tpl_vars['bRefreshToHome']->value) {
            ?>
		<meta  HTTP-EQUIV="Refresh" CONTENT="3; URL=<?php 
            echo smarty_function_cfg(array('name' => 'path.root.web'), $_smarty_tpl);
            ?>
/">
	<?php 
        }
        ?>
	
	<script type="text/javascript">
		var DIR_WEB_ROOT 			= '<?php 
        echo smarty_function_cfg(array('name' => "path.root.web"), $_smarty_tpl);
        ?>
';
		var DIR_STATIC_SKIN 		= '<?php 
        echo smarty_function_cfg(array('name' => "path.static.skin"), $_smarty_tpl);
        ?>
';
		var DIR_ROOT_ENGINE_LIB 	= '<?php 
        echo smarty_function_cfg(array('name' => "path.root.engine_lib"), $_smarty_tpl);
        ?>
';
		var LIVESTREET_SECURITY_KEY = '<?php 
        echo $_smarty_tpl->tpl_vars['LIVESTREET_SECURITY_KEY']->value;
        ?>
';
		var SESSION_ID				= '<?php 
        echo $_smarty_tpl->tpl_vars['_sPhpSessionId']->value;
        ?>
';
		var BLOG_USE_TINYMCE		= '<?php 
        echo smarty_function_cfg(array('name' => "view.tinymce"), $_smarty_tpl);
        ?>
';
		
		var TINYMCE_LANG = 'en';
		<?php 
        if ($_smarty_tpl->tpl_vars['oConfig']->value->GetValue('lang.current') == 'russian') {
            ?>
			TINYMCE_LANG = 'ru';
		<?php 
        }
        ?>

		var aRouter = new Array();
		<?php 
        $_smarty_tpl->tpl_vars['sPath'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['sPath']->_loop = false;
        $_smarty_tpl->tpl_vars['sPage'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['aRouter']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['sPath']->key => $_smarty_tpl->tpl_vars['sPath']->value) {
            $_smarty_tpl->tpl_vars['sPath']->_loop = true;
            $_smarty_tpl->tpl_vars['sPage']->value = $_smarty_tpl->tpl_vars['sPath']->key;
            ?>
			aRouter['<?php 
            echo $_smarty_tpl->tpl_vars['sPage']->value;
            ?>
'] = '<?php 
            echo $_smarty_tpl->tpl_vars['sPath']->value;
            ?>
';
		<?php 
        }
        ?>
	</script>
	
<script>
function getCookie(name) {
  var matches = document.cookie.match(new RegExp(
    "(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"
  ));
  return matches ? decodeURIComponent(matches[1]) : undefined;
}	
</script>
	<?php 
        echo $_smarty_tpl->tpl_vars['aHtmlHeadFiles']->value['js'];
        ?>


	
	<script type="text/javascript">
		var tinyMCE = false;
		ls.lang.load(<?php 
        echo smarty_function_json(array('var' => $_smarty_tpl->tpl_vars['aLangJs']->value), $_smarty_tpl);
        ?>
);
		ls.registry.set('comment_max_tree',<?php 
        echo smarty_function_json(array('var' => $_smarty_tpl->tpl_vars['oConfig']->value->Get('module.comment.max_tree')), $_smarty_tpl);
        ?>
);
		ls.registry.set('block_stream_show_tip',<?php 
        echo smarty_function_json(array('var' => $_smarty_tpl->tpl_vars['oConfig']->value->Get('block.stream.show_tip')), $_smarty_tpl);
        ?>
);

	</script>
	
	
	<?php 
        ob_start();
        echo smarty_function_cfg(array('name' => 'view.grid.type'), $_smarty_tpl);
        $_tmp1 = ob_get_clean();
        if ($_tmp1 == 'fluid') {
            ?>
		<style>
			/* #container {
				min-width: <?php 
            echo smarty_function_cfg(array('name' => 'view.grid.fluid_min_width'), $_smarty_tpl);
            ?>
px;
				max-width: <?php 
            echo smarty_function_cfg(array('name' => 'view.grid.fluid_max_width'), $_smarty_tpl);
            ?>
px;
			} */
		</style>
	<?php 
        } else {
            ?>

	<?php 
        }
        ?>
	
	
	<?php 
        echo smarty_function_hook(array('run' => 'html_head_end'), $_smarty_tpl);
        ?>

	
<style>
.sticky {
  position: fixed;
  z-index: 101;
}
.stop {
  position: relative;
  z-index: 101;
}

/* #container{min-width: 1200px;} */

</style>
	

</head>



<?php 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value) {
            ?>
	<?php 
            $_smarty_tpl->tpl_vars['body_classes'] = new Smarty_variable($_smarty_tpl->tpl_vars['body_classes']->value . ' ls-user-role-user', null, 0);
            ?>
	
	<?php 
            if ($_smarty_tpl->tpl_vars['oUserCurrent']->value->isAdministrator()) {
                ?>
		<?php 
                $_smarty_tpl->tpl_vars['body_classes'] = new Smarty_variable($_smarty_tpl->tpl_vars['body_classes']->value . ' ls-user-role-admin', null, 0);
                ?>
	<?php 
            }
        } else {
            ?>
	<?php 
            $_smarty_tpl->tpl_vars['body_classes'] = new Smarty_variable($_smarty_tpl->tpl_vars['body_classes']->value . ' ls-user-role-guest', null, 0);
        }
        ?>

<?php 
        if (!$_smarty_tpl->tpl_vars['oUserCurrent']->value || $_smarty_tpl->tpl_vars['oUserCurrent']->value && !$_smarty_tpl->tpl_vars['oUserCurrent']->value->isAdministrator()) {
            ?>
	<?php 
            $_smarty_tpl->tpl_vars['body_classes'] = new Smarty_variable($_smarty_tpl->tpl_vars['body_classes']->value . ' ls-user-role-not-admin', null, 0);
        }
        ?>

<?php 
        echo smarty_function_add_block(array('group' => 'toolbar', 'name' => 'toolbar_admin.tpl', 'priority' => 100), $_smarty_tpl);
        ?>

<?php 
        echo smarty_function_add_block(array('group' => 'toolbar', 'name' => 'toolbar_scrollup.tpl', 'priority' => -100), $_smarty_tpl);
        ?>





<body class="<?php 
        echo $_smarty_tpl->tpl_vars['body_classes']->value;
        ?>
 width-<?php 
        echo smarty_function_cfg(array('name' => 'view.grid.type'), $_smarty_tpl);
        ?>
">
<img src="<?php 
        echo smarty_function_cfg(array('name' => "path.static.skin"), $_smarty_tpl);
        ?>
/images/woona-big.png" class="woona">
<script src="<?php 
        echo smarty_function_cfg(array('name' => "path.static.skin"), $_smarty_tpl);
        ?>
/js/woona.js"></script>
	<?php 
        echo smarty_function_hook(array('run' => 'body_begin'), $_smarty_tpl);
        ?>

	<nav id="userbar" class="clearfix">
	<?php 
        echo smarty_function_hook(array('run' => 'userbar_nav'), $_smarty_tpl);
        ?>


		<?php 
        echo $_smarty_tpl->getSubTemplate('userbar.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>


	<?php 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value) {
            ?>
		<?php 
            echo $_smarty_tpl->getSubTemplate('window_write.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
            ?>

		<?php 
            echo $_smarty_tpl->getSubTemplate('window_favourite_form_tags.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
            ?>

	<?php 
        } else {
            ?>
		<?php 
            echo $_smarty_tpl->getSubTemplate('window_login.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
            ?>

	<?php 
        }
        ?>

	<?php 
        echo $_smarty_tpl->getSubTemplate('nav.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>


	<div id="container" class="<?php 
        echo smarty_function_hook(array('run' => 'container_class'), $_smarty_tpl);
        ?>
">
		<?php 
        echo $_smarty_tpl->getSubTemplate('header_top.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>


		<div id="wrapper" class="<?php 
        echo smarty_function_hook(array('run' => 'wrapper_class'), $_smarty_tpl);
        ?>
">
			<?php 
        if (!$_smarty_tpl->tpl_vars['noSidebar']->value && $_smarty_tpl->tpl_vars['sidebarPosition']->value == 'left') {
            ?>
				<?php 
            echo $_smarty_tpl->getSubTemplate('sidebar.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
            ?>

			<?php 
        }
        ?>

			<?php 
        if (!$_smarty_tpl->tpl_vars['noSidebar']->value && $_smarty_tpl->tpl_vars['sidebarPosition']->value != 'left') {
            ?>
				<?php 
            echo $_smarty_tpl->getSubTemplate('sidebar.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
            ?>

			<?php 
        }
        ?>
 <!-- Krivo... -->
		
			<div id="content" role="main" 
				class="<?php 
        if ($_smarty_tpl->tpl_vars['noSidebar']->value) {
            ?>
content-full-width<?php 
        }
        ?>
 
					   <?php 
        if ($_smarty_tpl->tpl_vars['sidebarPosition']->value == 'left') {
            ?>
content-right<?php 
        }
        ?>
"
				<?php 
        if ($_smarty_tpl->tpl_vars['sMenuItemSelect']->value == 'profile') {
            ?>
itemscope itemtype="http://data-vocabulary.org/Person"<?php 
        }
        ?>
>

				<?php 
        echo $_smarty_tpl->getSubTemplate('nav_content.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>

				<?php 
        echo $_smarty_tpl->getSubTemplate('system_message.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>

	
				<?php 
        echo smarty_function_hook(array('run' => 'content_begin'), $_smarty_tpl);
        ?>

<?php 
    }
    function content_5684d6e3f27631_29807133($_smarty_tpl)
    {
        if (!is_callable('smarty_function_router')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.router.php';
        }
        if (!is_callable('smarty_function_hook')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.hook.php';
        }
        ?>
<ul class="nav-foldable">
	<li <?php 
        if ($_smarty_tpl->tpl_vars['sMenuItemSelect']->value == 'topic') {
            ?>
class="active"<?php 
        }
        ?>
><a href="<?php 
        echo smarty_function_router(array('page' => 'topic'), $_smarty_tpl);
        ?>
add/"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['block_create'];
        ?>
  <?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['topic_menu_add'];
        ?>
</a></li>
	<li <?php 
        if ($_smarty_tpl->tpl_vars['sMenuItemSelect']->value == 'blog') {
            ?>
class="active"<?php 
        }
        ?>
><a href="<?php 
        echo smarty_function_router(array('page' => 'blog'), $_smarty_tpl);
        ?>
add/"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['block_create'];
        ?>
 <?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['blog_menu_create'];
        ?>
</a></li>
	<?php 
        echo smarty_function_hook(array('run' => 'menu_create_item', 'sMenuItemSelect' => $_smarty_tpl->tpl_vars['sMenuItemSelect']->value), $_smarty_tpl);
        ?>

</ul>


<?php 
        if ($_smarty_tpl->tpl_vars['sMenuItemSelect']->value == 'topic') {
            ?>
	<ul class="nav-foldable">
		<li <?php 
            if ($_smarty_tpl->tpl_vars['sMenuSubItemSelect']->value == 'topic') {
                ?>
class="active"<?php 
            }
            ?>
><a href="<?php 
            echo smarty_function_router(array('page' => 'topic'), $_smarty_tpl);
            ?>
add/"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['topic_menu_add_topic'];
            ?>
</a></li>
		<li <?php 
            if ($_smarty_tpl->tpl_vars['sMenuSubItemSelect']->value == 'question') {
                ?>
class="active"<?php 
            }
            ?>
><a href="<?php 
            echo smarty_function_router(array('page' => 'question'), $_smarty_tpl);
            ?>
add/"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['topic_menu_add_question'];
            ?>
</a></li>
		<li <?php 
            if ($_smarty_tpl->tpl_vars['sMenuSubItemSelect']->value == 'link') {
                ?>
class="active"<?php 
            }
            ?>
><a href="<?php 
            echo smarty_function_router(array('page' => 'link'), $_smarty_tpl);
            ?>
add/"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['topic_menu_add_link'];
            ?>
</a></li>
		<li <?php 
            if ($_smarty_tpl->tpl_vars['sMenuSubItemSelect']->value == 'photoset') {
                ?>
class="active"<?php 
            }
            ?>
><a href="<?php 
            echo smarty_function_router(array('page' => 'photoset'), $_smarty_tpl);
            ?>
add/"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['topic_menu_add_photoset'];
            ?>
</a></li>
		<?php 
            echo smarty_function_hook(array('run' => 'menu_create_topic_item'), $_smarty_tpl);
            ?>

	</ul>
<?php 
        }
        ?>


<?php 
        echo smarty_function_hook(array('run' => 'menu_create', 'sMenuItemSelect' => $_smarty_tpl->tpl_vars['sMenuItemSelect']->value, 'sMenuSubItemSelect' => $_smarty_tpl->tpl_vars['sMenuSubItemSelect']->value), $_smarty_tpl);
    }
    function content_55797af6597b13_48897372($_smarty_tpl)
    {
        if (!is_callable('smarty_function_router')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.router.php';
        }
        if (!is_callable('smarty_function_hook')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.hook.php';
        }
        ?>
<ul class="nav nav-menu">
	<li <?php 
        if ($_smarty_tpl->tpl_vars['sMenuItemSelect']->value == 'all') {
            ?>
class="active"<?php 
        }
        ?>
><a href="<?php 
        echo smarty_function_router(array('page' => 'people'), $_smarty_tpl);
        ?>
"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['people_menu_users_all'];
        ?>
</a></li>
	<li <?php 
        if ($_smarty_tpl->tpl_vars['sMenuItemSelect']->value == 'online') {
            ?>
class="active"<?php 
        }
        ?>
><a href="<?php 
        echo smarty_function_router(array('page' => 'people'), $_smarty_tpl);
        ?>
online/"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['people_menu_users_online'];
        ?>
</a></li>
	<li <?php 
        if ($_smarty_tpl->tpl_vars['sMenuItemSelect']->value == 'new') {
            ?>
class="active"<?php 
        }
        ?>
><a href="<?php 
        echo smarty_function_router(array('page' => 'people'), $_smarty_tpl);
        ?>
new/"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['people_menu_users_new'];
        ?>
</a></li>
	
	<?php 
        echo smarty_function_hook(array('run' => 'menu_people_people_item'), $_smarty_tpl);
        ?>

</ul>

<?php 
        echo smarty_function_hook(array('run' => 'menu_people'), $_smarty_tpl);
        ?>

<?php 
    }
    function content_5684d6e3e18e68_69804359($_smarty_tpl)
    {
        if (!is_callable('smarty_function_router')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.router.php';
        }
        if (!is_callable('smarty_function_hook')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.hook.php';
        }
        ?>
<ul class="slide slide-write" id="write">
	<?php 
        if ($_smarty_tpl->tpl_vars['iUserCurrentCountTopicDraft']->value) {
            ?>
		<li class="write-item-type-draft">
			<i class="icon-submit-draft"></i>
			<a href="<?php 
            echo smarty_function_router(array('page' => 'topic'), $_smarty_tpl);
            ?>
saved/" class="write-item-link"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['topic_menu_saved'];
            ?>
 (<?php 
            echo $_smarty_tpl->tpl_vars['iUserCurrentCountTopicDraft']->value;
            ?>
)</a>
		</li>
	<?php 
        }
        ?>
	<li class="write-item-type-topic">
		<i class="icon-submit-topic"></i>
		<a href="<?php 
        echo smarty_function_router(array('page' => 'topic'), $_smarty_tpl);
        ?>
add" class="write-item-link"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['block_create_topic_topic'];
        ?>
</a>
	</li>
	<li class="write-item-type-blog">
		<i class="icon-submit-blog"></i>
		<a href="<?php 
        echo smarty_function_router(array('page' => 'blog'), $_smarty_tpl);
        ?>
add" class="write-item-link"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['block_create_blog'];
        ?>
</a>
	</li>
	<li class="write-item-type-message">
		<i class="icon-submit-message"></i>
		<a href="<?php 
        echo smarty_function_router(array('page' => 'talk'), $_smarty_tpl);
        ?>
add" class="write-item-link"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['block_create_talk'];
        ?>
</a>
	</li>
	<?php 
        echo smarty_function_hook(array('run' => 'write_item', 'isPopup' => true), $_smarty_tpl);
        ?>

</ul>
	<?php 
    }
    function content_5684d70d4878c8_29189474($_smarty_tpl)
    {
        if (!is_callable('smarty_function_router')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.router.php';
        }
        if (!is_callable('smarty_function_hook')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.hook.php';
        }
        if (!is_callable('smarty_block_hookb')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/block.hookb.php';
        }
        if (!is_callable('smarty_function_date_format')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.date_format.php';
        }
        if (!is_callable('smarty_function_cfg')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.cfg.php';
        }
        ?>
	<?php 
        $_smarty_tpl->tpl_vars["oBlog"] = new Smarty_variable($_smarty_tpl->tpl_vars['oTopic']->value->getBlog(), null, 0);
        ?>
	<?php 
        $_smarty_tpl->tpl_vars["oUser"] = new Smarty_variable($_smarty_tpl->tpl_vars['oTopic']->value->getUser(), null, 0);
        ?>
	<?php 
        $_smarty_tpl->tpl_vars["oVote"] = new Smarty_variable($_smarty_tpl->tpl_vars['oTopic']->value->getVote(), null, 0);
        ?>
	<?php 
        $_smarty_tpl->tpl_vars["oFavourite"] = new Smarty_variable($_smarty_tpl->tpl_vars['oTopic']->value->getFavourite(), null, 0);
        ?>

	<?php 
        if ($_smarty_tpl->tpl_vars['oVote']->value || $_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oTopic']->value->getUserId() == $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() || strtotime($_smarty_tpl->tpl_vars['oTopic']->value->getDateAdd()) < time() - $_smarty_tpl->tpl_vars['oConfig']->value->GetValue('acl.vote.topic.limit_time')) {
            ?>
		<?php 
            $_smarty_tpl->tpl_vars["bVoteInfoShow"] = new Smarty_variable(true, null, 0);
            ?>
	<?php 
        }
        ?>

	<footer class="topic-footer">
		<?php 
        if ($_smarty_tpl->tpl_vars['oTopic']->value->getType() == 'link') {
            ?>
			<div class="topic-url">
				<a href="<?php 
            echo smarty_function_router(array('page' => 'link'), $_smarty_tpl);
            ?>
go/<?php 
            echo $_smarty_tpl->tpl_vars['oTopic']->value->getId();
            ?>
/" title="<?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['topic_link_count_jump'];
            ?>
: <?php 
            echo $_smarty_tpl->tpl_vars['oTopic']->value->getLinkCountJump();
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['oTopic']->value->getLinkUrl();
            ?>
</a>
			</div>
		<?php 
        }
        ?>
	
		<?php 
        if (!$_smarty_tpl->tpl_vars['bTopicList']->value) {
            ?>
			<ul class="topic-tags js-favourite-insert-after-form js-favourite-tags-topic-<?php 
            echo $_smarty_tpl->tpl_vars['oTopic']->value->getId();
            ?>
">
				<li><strong><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['topic_tags'];
            ?>
:</strong></li>
				
				<?php 
            if ($_smarty_tpl->tpl_vars['oTopic']->value->getTagsArray()) {
                $_smarty_tpl->tpl_vars['sTag'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['sTag']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['oTopic']->value->getTagsArray();
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars['sTag']->index = -1;
                foreach ($_from as $_smarty_tpl->tpl_vars['sTag']->key => $_smarty_tpl->tpl_vars['sTag']->value) {
                    $_smarty_tpl->tpl_vars['sTag']->_loop = true;
                    $_smarty_tpl->tpl_vars['sTag']->index++;
                    $_smarty_tpl->tpl_vars['sTag']->first = $_smarty_tpl->tpl_vars['sTag']->index === 0;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']['tags_list']['first'] = $_smarty_tpl->tpl_vars['sTag']->first;
                    ?>
<li><?php 
                    if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['tags_list']['first']) {
                        ?>
, <?php 
                    }
                    ?>
<a rel="tag" href="<?php 
                    echo smarty_function_router(array('page' => 'tag'), $_smarty_tpl);
                    echo rawurlencode($_smarty_tpl->tpl_vars['sTag']->value);
                    ?>
/"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['sTag']->value, ENT_QUOTES, 'UTF-8', true);
                    ?>
</a></li><?php 
                }
            } else {
                ?>
<li><?php 
                echo $_smarty_tpl->tpl_vars['aLang']->value['topic_tags_empty'];
                ?>
</li><?php 
            }
            if ($_smarty_tpl->tpl_vars['oUserCurrent']->value) {
                if ($_smarty_tpl->tpl_vars['oFavourite']->value) {
                    $_smarty_tpl->tpl_vars['sTag'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['sTag']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['oFavourite']->value->getTagsArray();
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['sTag']->key => $_smarty_tpl->tpl_vars['sTag']->value) {
                        $_smarty_tpl->tpl_vars['sTag']->_loop = true;
                        ?>
<li class="topic-tags-user js-favourite-tag-user">, <a rel="tag" href="<?php 
                        echo $_smarty_tpl->tpl_vars['oUserCurrent']->value->getUserWebPath();
                        ?>
favourites/topics/tag/<?php 
                        echo rawurlencode($_smarty_tpl->tpl_vars['sTag']->value);
                        ?>
/"><?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['sTag']->value, ENT_QUOTES, 'UTF-8', true);
                        ?>
</a></li><?php 
                    }
                }
                ?>
<li class="topic-tags-edit js-favourite-tag-edit" <?php 
                if (!$_smarty_tpl->tpl_vars['oFavourite']->value) {
                    ?>
style="display:none;"<?php 
                }
                ?>
><a href="#" onclick="return ls.favourite.showEditTags(<?php 
                echo $_smarty_tpl->tpl_vars['oTopic']->value->getId();
                ?>
,'topic',this);" class="link-dotted"><?php 
                echo $_smarty_tpl->tpl_vars['aLang']->value['favourite_form_tags_button_show'];
                ?>
</a></li><?php 
            }
            ?>
			</ul>
		<?php 
        }
        ?>


		<ul class="topic-info clearfix">
			<?php 
        if (!$_smarty_tpl->tpl_vars['bTopicList']->value) {
            ?>
				<li class="topic-info-vote">
					<div class="vote-result
								<?php 
            if ($_smarty_tpl->tpl_vars['oVote']->value || $_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oTopic']->value->getUserId() == $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() || strtotime($_smarty_tpl->tpl_vars['oTopic']->value->getDateAdd()) < time() - $_smarty_tpl->tpl_vars['oConfig']->value->GetValue('acl.vote.topic.limit_time')) {
                ?>
									<?php 
                if ($_smarty_tpl->tpl_vars['oTopic']->value->getRating() > 0) {
                    ?>
										vote-count-positive
									<?php 
                } elseif ($_smarty_tpl->tpl_vars['oTopic']->value->getRating() < 0) {
                    ?>
										vote-count-negative
									<?php 
                } elseif ($_smarty_tpl->tpl_vars['oTopic']->value->getRating() == 0) {
                    ?>
										vote-count-zero
									<?php 
                }
                ?>
								<?php 
            }
            ?>
								
								<?php 
            if ($_smarty_tpl->tpl_vars['oVote']->value) {
                ?>
 
									voted
																			
									<?php 
                if ($_smarty_tpl->tpl_vars['oVote']->value->getDirection() > 0) {
                    ?>
										voted-up
									<?php 
                } elseif ($_smarty_tpl->tpl_vars['oVote']->value->getDirection() < 0) {
                    ?>
										voted-down
									<?php 
                } elseif ($_smarty_tpl->tpl_vars['oVote']->value->getDirection() == 0) {
                    ?>
										voted-zero
									<?php 
                }
                ?>
								<?php 
            }
            ?>
				
								<?php 
            if (strtotime($_smarty_tpl->tpl_vars['oTopic']->value->getDateAdd()) < time() - $_smarty_tpl->tpl_vars['oConfig']->value->GetValue('acl.vote.topic.limit_time') && !$_smarty_tpl->tpl_vars['oVote']->value || $_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oTopic']->value->getUserId() == $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId()) {
                ?>
									vote-nobuttons
								<?php 
            }
            ?>
" 
				
						id="vote_total_topic_<?php 
            echo $_smarty_tpl->tpl_vars['oTopic']->value->getId();
            ?>
" 
				
						<?php 
            if (!$_smarty_tpl->tpl_vars['oVote']->value && !$_smarty_tpl->tpl_vars['bVoteInfoShow']->value) {
                ?>
							onclick="ls.tools.slide($('#vote_area_topic_<?php 
                echo $_smarty_tpl->tpl_vars['oTopic']->value->getId();
                ?>
'), $(this));"
						<?php 
            }
            ?>
				
						<?php 
            if (false) {
                ?>
							onclick="ls.tools.slide($('#vote-info-topic-<?php 
                echo $_smarty_tpl->tpl_vars['oTopic']->value->getId();
                ?>
'), $(this));"
						<?php 
            }
            ?>
>
						<?php 
            if ($_smarty_tpl->tpl_vars['bVoteInfoShow']->value) {
                ?>
							<?php 
                if ($_smarty_tpl->tpl_vars['oTopic']->value->getRating() > 0) {
                    ?>
+<?php 
                }
                echo $_smarty_tpl->tpl_vars['oTopic']->value->getRating();
                ?>

						<?php 
            }
            ?>
					</div>
				</li>
			<?php 
        }
        ?>
			
			<li class="topic-info-views">
				<i class="icon-views"></i> <?php 
        echo $_smarty_tpl->tpl_vars['oTopic']->value->getCountRead();
        ?>

			</li>

			<li class="topic-info-favourite <?php 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oTopic']->value->getIsFavourite()) {
            ?>
active<?php 
        }
        ?>
" onclick="return ls.favourite.toggle(<?php 
        echo $_smarty_tpl->tpl_vars['oTopic']->value->getId();
        ?>
,'#fav_topic_<?php 
        echo $_smarty_tpl->tpl_vars['oTopic']->value->getId();
        ?>
','topic');">
				<i id="fav_topic_<?php 
        echo $_smarty_tpl->tpl_vars['oTopic']->value->getId();
        ?>
" class="favourite icon-favourite <?php 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oTopic']->value->getIsFavourite()) {
            ?>
active<?php 
        }
        ?>
"></i>
				<span class="favourite-count" id="fav_count_topic_<?php 
        echo $_smarty_tpl->tpl_vars['oTopic']->value->getId();
        ?>
"><?php 
        if ($_smarty_tpl->tpl_vars['oTopic']->value->getCountFavourite() > 0) {
            echo $_smarty_tpl->tpl_vars['oTopic']->value->getCountFavourite();
        }
        ?>
</span>
			</li>
			
			<?php 
        if ($_smarty_tpl->tpl_vars['bTopicList']->value) {
            ?>
				<li class="topic-info-comments">
					<a href="<?php 
            echo $_smarty_tpl->tpl_vars['oTopic']->value->getUrl();
            ?>
#comments" title="<?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['topic_comment_read'];
            ?>
">
						<i class="icon-comments <?php 
            if ($_smarty_tpl->tpl_vars['oTopic']->value->getCountComment() != 0 && ($_smarty_tpl->tpl_vars['oTopic']->value->getCountComment() == $_smarty_tpl->tpl_vars['oTopic']->value->getCountCommentNew() || $_smarty_tpl->tpl_vars['oTopic']->value->getCountCommentNew())) {
                ?>
active<?php 
            }
            ?>
"></i>
						<span class="comments-count">
							<?php 
            echo $_smarty_tpl->tpl_vars['oTopic']->value->getCountComment();
            ?>

							<?php 
            if ($_smarty_tpl->tpl_vars['oTopic']->value->getCountCommentNew()) {
                ?>
<span class="comments-new">+<?php 
                echo $_smarty_tpl->tpl_vars['oTopic']->value->getCountCommentNew();
                ?>
</span><?php 
            }
            ?>
						</span>
					</a> 
				</li>
			<?php 
        }
        ?>

			<li class="topic-info-share" onclick="ls.tools.slide($('#topic_share_<?php 
        echo $_smarty_tpl->tpl_vars['oTopic']->value->getId();
        ?>
'), $(this));">
				<i class="icon-share"></i>
			</li>
		</ul>

		<?php 
        if ($_smarty_tpl->tpl_vars['bVoteInfoShow']->value) {
            ?>
			<div id="vote-info-topic-<?php 
            echo $_smarty_tpl->tpl_vars['oTopic']->value->getId();
            ?>
" class="slide slide-bg-grey">
				+ <?php 
            echo $_smarty_tpl->tpl_vars['oTopic']->value->getCountVoteUp();
            ?>
<br/>
				- <?php 
            echo $_smarty_tpl->tpl_vars['oTopic']->value->getCountVoteDown();
            ?>
<br/>
				&nbsp; <?php 
            echo $_smarty_tpl->tpl_vars['oTopic']->value->getCountVoteAbstain();
            ?>
<br/>
				<?php 
            echo smarty_function_hook(array('run' => 'topic_show_vote_stats', 'topic' => $_smarty_tpl->tpl_vars['oTopic']->value), $_smarty_tpl);
            ?>

			</div>
		<?php 
        }
        ?>
		
		<div class="slide slide-topic-info-extra" id="topic_share_<?php 
        echo $_smarty_tpl->tpl_vars['oTopic']->value->getId();
        ?>
">
			<?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('hookb', array('run' => "topic_share", 'topic' => $_smarty_tpl->tpl_vars['oTopic']->value, 'bTopicList' => $_smarty_tpl->tpl_vars['bTopicList']->value));
        $_block_repeat = true;
        echo smarty_block_hookb(array('run' => "topic_share", 'topic' => $_smarty_tpl->tpl_vars['oTopic']->value, 'bTopicList' => $_smarty_tpl->tpl_vars['bTopicList']->value), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

				<div class="yashare-auto-init" data-yashareTitle="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['oTopic']->value->getTitle(), ENT_QUOTES, 'UTF-8', true);
            ?>
" data-yashareLink="<?php 
            echo $_smarty_tpl->tpl_vars['oTopic']->value->getUrl();
            ?>
" data-yashareL10n="ru" data-yashareType="button" data-yashareQuickServices="yaru,vkontakte,facebook,twitter,odnoklassniki,moimir,lj,gplus"></div>
			<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_hookb(array('run' => "topic_share", 'topic' => $_smarty_tpl->tpl_vars['oTopic']->value, 'bTopicList' => $_smarty_tpl->tpl_vars['bTopicList']->value), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

		</div>


		<div id="vote_area_topic_<?php 
        echo $_smarty_tpl->tpl_vars['oTopic']->value->getId();
        ?>
" class="vote">
			<div class="vote-item vote-up" onclick="return ls.vote.vote(<?php 
        echo $_smarty_tpl->tpl_vars['oTopic']->value->getId();
        ?>
,this,1,'topic');"><i></i></div>
			<?php 
        if (!$_smarty_tpl->tpl_vars['bVoteInfoShow']->value) {
            ?>
				<div class="vote-item vote-zero" title="<?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['topic_vote_count'];
            ?>
: <?php 
            echo $_smarty_tpl->tpl_vars['oTopic']->value->getCountVote();
            ?>
" onclick="return ls.vote.vote(<?php 
            echo $_smarty_tpl->tpl_vars['oTopic']->value->getId();
            ?>
,this,0,'topic');">
					<i></i> Воздержаться
				</div>
			<?php 
        }
        ?>
			<div class="vote-item vote-down" onclick="return ls.vote.vote(<?php 
        echo $_smarty_tpl->tpl_vars['oTopic']->value->getId();
        ?>
,this,-1,'topic');"><i></i></div>
		</div>



		<ul class="topic-info-extra clearfix">
			<li class="topic-info-author">
				<a href="<?php 
        echo $_smarty_tpl->tpl_vars['oUser']->value->getUserWebPath();
        ?>
"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['oUser']->value->getProfileAvatarPath(48);
        ?>
" alt="avatar" /></a>
				<p><a rel="author" href="<?php 
        echo $_smarty_tpl->tpl_vars['oUser']->value->getUserWebPath();
        ?>
"><?php 
        echo $_smarty_tpl->tpl_vars['oUser']->value->getLogin();
        ?>
</a></p>
				<time datetime="<?php 
        echo smarty_function_date_format(array('date' => $_smarty_tpl->tpl_vars['oTopic']->value->getDateAdd(), 'format' => 'c'), $_smarty_tpl);
        ?>
" title="<?php 
        echo smarty_function_date_format(array('date' => $_smarty_tpl->tpl_vars['oTopic']->value->getDateAdd(), 'format' => 'j F Y, H:i'), $_smarty_tpl);
        ?>
">
					<?php 
        echo smarty_function_date_format(array('date' => $_smarty_tpl->tpl_vars['oTopic']->value->getDateAdd(), 'format' => "j F Y, H:i"), $_smarty_tpl);
        ?>

				</time>
			</li>

			<?php 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value) {
            ?>
				<li class="topic-info-extra-trigger" onclick="ls.tools.slide($('#topic-extra-target-<?php 
            echo $_smarty_tpl->tpl_vars['oTopic']->value->getId();
            ?>
'), $(this));">
					<i class="icon-topic-menu"></i>
				</li>
			<?php 
        }
        ?>
			
			<?php 
        echo smarty_function_hook(array('run' => 'topic_show_info', 'topic' => $_smarty_tpl->tpl_vars['oTopic']->value), $_smarty_tpl);
        ?>

		</ul>


		<ul class="slide slide-topic-info-extra" id="topic-extra-target-<?php 
        echo $_smarty_tpl->tpl_vars['oTopic']->value->getId();
        ?>
">
			<?php 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value) {
            ?>
				<li><a href="<?php 
            echo smarty_function_router(array('page' => 'talk'), $_smarty_tpl);
            ?>
add/?talk_users=<?php 
            echo $_smarty_tpl->tpl_vars['oUser']->value->getLogin();
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['send_message_to_author'];
            ?>
</a></li>
			<?php 
        }
        ?>

			<?php 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && ($_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() == $_smarty_tpl->tpl_vars['oTopic']->value->getUserId() || $_smarty_tpl->tpl_vars['oUserCurrent']->value->isAdministrator() || $_smarty_tpl->tpl_vars['oBlog']->value->getUserIsAdministrator() || $_smarty_tpl->tpl_vars['oBlog']->value->getUserIsModerator() || $_smarty_tpl->tpl_vars['oBlog']->value->getOwnerId() == $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId())) {
            ?>
				<li><a href="<?php 
            echo smarty_function_cfg(array('name' => 'path.root.web'), $_smarty_tpl);
            ?>
/<?php 
            echo $_smarty_tpl->tpl_vars['oTopic']->value->getType();
            ?>
/edit/<?php 
            echo $_smarty_tpl->tpl_vars['oTopic']->value->getId();
            ?>
/" title="<?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['topic_edit'];
            ?>
" class="actions-edit"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['topic_edit'];
            ?>
</a></li>
			<?php 
        }
        ?>
			
			<?php 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && ($_smarty_tpl->tpl_vars['oUserCurrent']->value->isAdministrator() || $_smarty_tpl->tpl_vars['oBlog']->value->getUserIsAdministrator() || $_smarty_tpl->tpl_vars['oBlog']->value->getOwnerId() == $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId())) {
            ?>
				<li><a href="<?php 
            echo smarty_function_router(array('page' => 'topic'), $_smarty_tpl);
            ?>
delete/<?php 
            echo $_smarty_tpl->tpl_vars['oTopic']->value->getId();
            ?>
/?security_ls_key=<?php 
            echo $_smarty_tpl->tpl_vars['LIVESTREET_SECURITY_KEY']->value;
            ?>
" title="<?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['topic_delete'];
            ?>
" onclick="return confirm('<?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['topic_delete_confirm'];
            ?>
');" class="actions-delete"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['topic_delete'];
            ?>
</a></li>
			<?php 
        }
        ?>
		</ul>

		
		<?php 
        if (!$_smarty_tpl->tpl_vars['bTopicList']->value) {
            ?>
			<?php 
            echo smarty_function_hook(array('run' => 'topic_show_end', 'topic' => $_smarty_tpl->tpl_vars['oTopic']->value), $_smarty_tpl);
            ?>

		<?php 
        }
        ?>
	</footer>
</article> <!-- /.topic --><?php 
    }
    function content_5577f8e6325fc4_97292412($_smarty_tpl)
    {
        if (!is_callable('smarty_function_router')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.router.php';
        }
        if (!is_callable('smarty_function_hook')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.hook.php';
        }
        if (!is_callable('smarty_block_hookb')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/block.hookb.php';
        }
        if (!is_callable('smarty_function_cfg')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.cfg.php';
        }
        if (!$_smarty_tpl->tpl_vars['oUserCurrent']->value) {
            ?>
	<div class="modal modal-login" id="window_login_form">
		<header class="modal-header">
			<a href="#" class="close jqmClose"></a>
		</header>
		
		
		<script type="text/javascript">
			jQuery(function($){
				$('#popup-login-form').bind('submit',function(){
					ls.user.login('popup-login-form');
					return false;
				});
				$('#popup-login-form-submit').attr('disabled',false);
			});
		</script>
		
		<div class="modal-content">
			<ul class="nav nav-pills nav-pills-tabs">
				<li class="active js-block-popup-login-item" data-type="login"><a href="#"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_login_submit'];
            ?>
</a></li>
				<?php 
            if (!$_smarty_tpl->tpl_vars['oConfig']->value->GetValue('general.reg.invite')) {
                ?>
					<li class="js-block-popup-login-item" data-type="registration"><a href="#"><?php 
                echo $_smarty_tpl->tpl_vars['aLang']->value['registration'];
                ?>
</a></li>
				<?php 
            } else {
                ?>
					<li><a href="<?php 
                echo smarty_function_router(array('page' => 'registration'), $_smarty_tpl);
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['aLang']->value['registration'];
                ?>
</a></li>
				<?php 
            }
            ?>
				<li class="js-block-popup-login-item" data-type="reminder"><a href="#"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['password_reminder'];
            ?>
</a></li>
			</ul>
			
			
			<div class="tab-content js-block-popup-login-content" data-type="login">
				<?php 
            echo smarty_function_hook(array('run' => 'login_popup_begin'), $_smarty_tpl);
            ?>

				<form action="<?php 
            echo smarty_function_router(array('page' => 'login'), $_smarty_tpl);
            ?>
" method="post" id="popup-login-form">
					<?php 
            echo smarty_function_hook(array('run' => 'form_login_popup_begin'), $_smarty_tpl);
            ?>


					<p><input type="text" name="login" id="popup-login" placeholder="<?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_login'];
            ?>
" class="input-text input-width-full"></p>
					
					<p><input type="password" name="password" id="popup-password" placeholder="<?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_password'];
            ?>
" class="input-text input-width-300" style="width: 322px">
					<button type="submit"  name="submit_login" class="button button-primary" id="popup-login-form-submit" disabled="disabled"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_login_submit'];
            ?>
</button></p>
					
					<label class="remember-label"><input type="checkbox" name="remember" class="input-checkbox" checked /> <?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_login_remember'];
            ?>
</label>

					<small class="validate-error-hide validate-error-login"></small>
					<?php 
            echo smarty_function_hook(array('run' => 'form_login_popup_end'), $_smarty_tpl);
            ?>


					<input type="hidden" name="return-path" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['PATH_WEB_CURRENT']->value, ENT_QUOTES, 'UTF-8', true);
            ?>
">
				</form>
				<?php 
            echo smarty_function_hook(array('run' => 'login_popup_end'), $_smarty_tpl);
            ?>

			</div>


			<?php 
            if (!$_smarty_tpl->tpl_vars['oConfig']->value->GetValue('general.reg.invite')) {
                ?>
			<div data-type="registration" class="tab-content js-block-popup-login-content" style="display:none;">
				<script type="text/javascript">
					jQuery(document).ready(function($){
						$('#popup-registration-form').find('input.js-ajax-validate').blur(function(e){
							var aParams={ };
							if ($(e.target).attr('name')=='password_confirm') {
								aParams['password']=$('#popup-registration-user-password').val();
							}
							if ($(e.target).attr('name')=='password') {
								aParams['password']=$('#popup-registration-user-password').val();
								if ($('#popup-registration-user-password-confirm').val()) {
									ls.user.validateRegistrationField('password_confirm',$('#popup-registration-user-password-confirm').val(),$('#popup-registration-form'),{ 'password': $(e.target).val() });
								}
							}
							ls.user.validateRegistrationField($(e.target).attr('name'),$(e.target).val(),$('#popup-registration-form'),aParams);
						});
						$('#popup-registration-form').bind('submit',function(){
							ls.user.registration('popup-registration-form');
							return false;
						});
						$('#popup-registration-form-submit').attr('disabled',false);
					});
				</script>

				<?php 
                echo smarty_function_hook(array('run' => 'registration_begin', 'isPopup' => true), $_smarty_tpl);
                ?>

				<form action="<?php 
                echo smarty_function_router(array('page' => 'registration'), $_smarty_tpl);
                ?>
" method="post" id="popup-registration-form">
					<?php 
                echo smarty_function_hook(array('run' => 'form_registration_begin', 'isPopup' => true), $_smarty_tpl);
                ?>


					<p>
					<input type="text" name="login" placeholder="<?php 
                echo $_smarty_tpl->tpl_vars['aLang']->value['registration_login'];
                ?>
" id="popup-registration-login" value="<?php 
                echo $_smarty_tpl->tpl_vars['_aRequest']->value['login'];
                ?>
" class="input-text input-width-300 js-ajax-validate" />
					<i class="icon-question-sign js-tip-help" title="<?php 
                echo $_smarty_tpl->tpl_vars['aLang']->value['registration_login_notice'];
                ?>
"></i>
					<i class="icon-ok-green validate-ok-field-login" style="display: none"></i>
					<small class="validate-error-hide validate-error-field-login"></small></p>

					<p>
					<input type="text" name="mail" placeholder="<?php 
                echo $_smarty_tpl->tpl_vars['aLang']->value['registration_mail'];
                ?>
" id="popup-registration-mail" value="<?php 
                echo $_smarty_tpl->tpl_vars['_aRequest']->value['mail'];
                ?>
" class="input-text input-width-300 js-ajax-validate" />
					<i class="icon-question-sign js-tip-help" title="<?php 
                echo $_smarty_tpl->tpl_vars['aLang']->value['registration_mail_notice'];
                ?>
"></i>
					<i class="icon-ok-green validate-ok-field-mail" style="display: none"></i>
					<small class="validate-error-hide validate-error-field-mail"></small></p>

					<p>
					<input type="password" name="password" placeholder="<?php 
                echo $_smarty_tpl->tpl_vars['aLang']->value['registration_password'];
                ?>
" id="popup-registration-user-password" value="" class="input-text input-width-300 js-ajax-validate" />
					<i class="icon-question-sign js-tip-help" title="<?php 
                echo $_smarty_tpl->tpl_vars['aLang']->value['registration_password_notice'];
                ?>
"></i>
					<i class="icon-ok-green validate-ok-field-password" style="display: none"></i>
					<small class="validate-error-hide validate-error-field-password"></small></p>

					<p>
					<input type="password" name="password_confirm" placeholder="<?php 
                echo $_smarty_tpl->tpl_vars['aLang']->value['registration_password_retry'];
                ?>
" id="popup-registration-user-password-confirm" value="" class="input-text input-width-300 js-ajax-validate" />
					<i class="icon-ok-green validate-ok-field-password_confirm" style="display: none"></i>
					<small class="validate-error-hide validate-error-field-password_confirm"></small></p>

					<?php 
                $_smarty_tpl->smarty->_tag_stack[] = array('hookb', array('run' => "popup_registration_captcha"));
                $_block_repeat = true;
                echo smarty_block_hookb(array('run' => "popup_registration_captcha"), null, $_smarty_tpl, $_block_repeat);
                while ($_block_repeat) {
                    ob_start();
                    ?>

					<p><label for="popup-registration-captcha"><?php 
                    echo $_smarty_tpl->tpl_vars['aLang']->value['registration_captcha'];
                    ?>
</label>
					<img src="<?php 
                    echo smarty_function_cfg(array('name' => 'path.root.engine_lib'), $_smarty_tpl);
                    ?>
/external/kcaptcha/index.php?<?php 
                    echo $_smarty_tpl->tpl_vars['_sPhpSessionName']->value;
                    ?>
=<?php 
                    echo $_smarty_tpl->tpl_vars['_sPhpSessionId']->value;
                    ?>
" 
						 onclick="this.src='<?php 
                    echo smarty_function_cfg(array('name' => 'path.root.engine_lib'), $_smarty_tpl);
                    ?>
/external/kcaptcha/index.php?<?php 
                    echo $_smarty_tpl->tpl_vars['_sPhpSessionName']->value;
                    ?>
=<?php 
                    echo $_smarty_tpl->tpl_vars['_sPhpSessionId']->value;
                    ?>
&n='+Math.random();"
						 class="captcha-image" />
					<input type="text" name="captcha" id="popup-registration-captcha" value="" maxlength="3" class="input-text input-width-100 js-ajax-validate" />
					<small class="validate-error-hide validate-error-field-captcha"></small></p>
					<?php 
                    $_block_content = ob_get_clean();
                    $_block_repeat = false;
                    echo smarty_block_hookb(array('run' => "popup_registration_captcha"), $_block_content, $_smarty_tpl, $_block_repeat);
                }
                array_pop($_smarty_tpl->smarty->_tag_stack);
                ?>


					<?php 
                echo smarty_function_hook(array('run' => 'form_registration_end', 'isPopup' => true), $_smarty_tpl);
                ?>


					<input type="hidden" name="return-path" value="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['PATH_WEB_CURRENT']->value, ENT_QUOTES, 'UTF-8', true);
                ?>
">
					<button type="submit"  name="submit_register" class="button button-primary" id="popup-registration-form-submit" disabled="disabled"><?php 
                echo $_smarty_tpl->tpl_vars['aLang']->value['registration_submit'];
                ?>
</button>
				</form>
				<?php 
                echo smarty_function_hook(array('run' => 'registration_end', 'isPopup' => true), $_smarty_tpl);
                ?>

			</div>
			<?php 
            }
            ?>
			
			
			<div data-type="reminder" class="tab-content js-block-popup-login-content" style="display:none;">
				<script type="text/javascript">
					jQuery(document).ready(function($){
						$('#popup-reminder-form').bind('submit',function(){
							ls.user.reminder('popup-reminder-form');
							return false;
						});
						$('#popup-reminder-form-submit').attr('disabled',false);
					});
				</script>
				<form action="<?php 
            echo smarty_function_router(array('page' => 'login'), $_smarty_tpl);
            ?>
reminder/" method="POST" id="popup-reminder-form">
					<p>
					<input type="text" name="mail" placeholder="<?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['password_reminder_email'];
            ?>
" id="popup-reminder-mail" class="input-text input-width-300" />
					<small class="validate-error-hide validate-error-reminder"></small></p>

					<button type="submit" name="submit_reminder" class="button button-primary" id="popup-reminder-form-submit" disabled="disabled"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['password_reminder_submit'];
            ?>
</button>
				</form>
			</div>
		</div>
	</div>
<?php 
        }
    }