function content_5684d70a1ca192_70012415($_smarty_tpl)
    {
        if (!is_callable('smarty_function_add_block')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.add_block.php';
        }
        if (count($_smarty_tpl->tpl_vars['aTopics']->value) > 0) {
            ?>
	<?php 
            echo smarty_function_add_block(array('group' => 'toolbar', 'name' => 'toolbar_topic.tpl', 'iCountTopic' => count($_smarty_tpl->tpl_vars['aTopics']->value)), $_smarty_tpl);
            ?>


	<?php 
            $_smarty_tpl->tpl_vars['oTopic'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['oTopic']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['aTopics']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['oTopic']->key => $_smarty_tpl->tpl_vars['oTopic']->value) {
                $_smarty_tpl->tpl_vars['oTopic']->_loop = true;
                ?>
		<?php 
                if ($_smarty_tpl->tpl_vars['LS']->value->Topic_IsAllowTopicType($_smarty_tpl->tpl_vars['oTopic']->value->getType())) {
                    ?>
			<?php 
                    $_smarty_tpl->tpl_vars["sTopicTemplateName"] = new Smarty_variable("topic_" . $_smarty_tpl->tpl_vars['oTopic']->value->getType() . ".tpl", null, 0);
                    ?>
			<?php 
                    echo $_smarty_tpl->getSubTemplate($_smarty_tpl->tpl_vars['sTopicTemplateName']->value, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('bTopicList' => true), 0);
                    ?>

		<?php 
                }
                ?>
	<?php 
            }
            ?>

	<?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);
            ?>

<?php 
        } else {
            ?>
	<?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['blog_no_topic'];
            ?>

<?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_5684d6cbec19e8_62298294($_smarty_tpl)
    {
        if (!is_callable('smarty_function_add_block')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.add_block.php';
        }
        if (!is_callable('smarty_function_hook')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.hook.php';
        }
        echo smarty_function_add_block(array('group' => 'toolbar', 'name' => 'toolbar_comment.tpl', 'aPagingCmt' => $_smarty_tpl->tpl_vars['aPagingCmt']->value, 'iTargetId' => $_smarty_tpl->tpl_vars['iTargetId']->value, 'sTargetType' => $_smarty_tpl->tpl_vars['sTargetType']->value, 'iMaxIdComment' => $_smarty_tpl->tpl_vars['iMaxIdComment']->value), $_smarty_tpl);
        ?>


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


<div class="comments" id="comments">
	<header class="comments-header">
		<h3>Комментариев: <span id="count-comments"><?php 
        echo $_smarty_tpl->tpl_vars['iCountComment']->value;
        ?>
</span></h3>
		
		<?php 
        if ($_smarty_tpl->tpl_vars['bAllowSubscribe']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value) {
            ?>
			<label for="comment_subscribe"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['comment_subscribe'];
            ?>
</label>

			<input <?php 
            if ($_smarty_tpl->tpl_vars['oSubscribeComment']->value && $_smarty_tpl->tpl_vars['oSubscribeComment']->value->getStatus()) {
                ?>
checked="checked"<?php 
            }
            ?>
 type="checkbox" id="comment_subscribe" class="input-checkbox" onchange="ls.subscribe.toggle('<?php 
            echo $_smarty_tpl->tpl_vars['sTargetType']->value;
            ?>
_new_comment','<?php 
            echo $_smarty_tpl->tpl_vars['iTargetId']->value;
            ?>
','',this.checked);">
		<?php 
        }
        ?>
	
		<a name="comments"></a>
	</header>


	<?php 
        $_smarty_tpl->tpl_vars["nesting"] = new Smarty_variable("-1", null, 0);
        ?>
	<?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');
        }
        $_smarty_tpl->tpl_vars['oComment']->total = $_smarty_tpl->_count($_from);
        $_smarty_tpl->tpl_vars['oComment']->iteration = 0;
        $_smarty_tpl->tpl_vars['oComment']->index = -1;
        foreach ($_from as $_smarty_tpl->tpl_vars['oComment']->key => $_smarty_tpl->tpl_vars['oComment']->value) {
            $_smarty_tpl->tpl_vars['oComment']->_loop = true;
            $_smarty_tpl->tpl_vars['oComment']->iteration++;
            $_smarty_tpl->tpl_vars['oComment']->index++;
            $_smarty_tpl->tpl_vars['oComment']->first = $_smarty_tpl->tpl_vars['oComment']->index === 0;
            $_smarty_tpl->tpl_vars['oComment']->last = $_smarty_tpl->tpl_vars['oComment']->iteration === $_smarty_tpl->tpl_vars['oComment']->total;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['rublist']['first'] = $_smarty_tpl->tpl_vars['oComment']->first;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['rublist']['last'] = $_smarty_tpl->tpl_vars['oComment']->last;
            ?>
		<?php 
            $_smarty_tpl->tpl_vars["cmtlevel"] = new Smarty_variable($_smarty_tpl->tpl_vars['oComment']->value->getLevel(), null, 0);
            ?>
		
		<?php 
            if ($_smarty_tpl->tpl_vars['cmtlevel']->value > $_smarty_tpl->tpl_vars['oConfig']->value->GetValue('module.comment.max_tree')) {
                ?>
			<?php 
                $_smarty_tpl->tpl_vars["cmtlevel"] = new Smarty_variable($_smarty_tpl->tpl_vars['oConfig']->value->GetValue('module.comment.max_tree'), null, 0);
                ?>
		<?php 
            }
            ?>
		
		<?php 
            if ($_smarty_tpl->tpl_vars['nesting']->value < $_smarty_tpl->tpl_vars['cmtlevel']->value) {
                ?>
 
		<?php 
            } elseif ($_smarty_tpl->tpl_vars['nesting']->value > $_smarty_tpl->tpl_vars['cmtlevel']->value) {
                ?>
    	
			<?php 
                if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1'])) {
                    unset($_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']);
                }
                $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['name'] = 'closelist1';
                $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['nesting']->value - $_smarty_tpl->tpl_vars['cmtlevel']->value + 1) ? count($_loop) : max(0, (int) $_loop);
                unset($_loop);
                $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['show'] = true;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['loop'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['step'] = 1;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['loop'] - 1;
                if ($_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['show']) {
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['loop'];
                    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['total'] == 0) {
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['show'] = false;
                    }
                } else {
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['total'] = 0;
                }
                if ($_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['show']) {
                    for ($_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['iteration']++) {
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['iteration'];
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['step'];
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['step'];
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['iteration'] == 1;
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist1']['total'];
                        ?>
</div><?php 
                    }
                }
                ?>
		<?php 
            } elseif (!$_smarty_tpl->getVariable('smarty')->value['foreach']['rublist']['first']) {
                ?>
			</div>
		<?php 
            }
            ?>
		
		<div class="comment-wrapper" id="comment_wrapper_id_<?php 
            echo $_smarty_tpl->tpl_vars['oComment']->value->getId();
            ?>
">
		
		<?php 
            echo $_smarty_tpl->getSubTemplate('comment.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
            ?>
 
		<?php 
            $_smarty_tpl->tpl_vars["nesting"] = new Smarty_variable($_smarty_tpl->tpl_vars['cmtlevel']->value, null, 0);
            ?>
		<?php 
            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['rublist']['last']) {
                ?>
			<?php 
                if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2'])) {
                    unset($_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']);
                }
                $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['name'] = 'closelist2';
                $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['nesting']->value + 1) ? count($_loop) : max(0, (int) $_loop);
                unset($_loop);
                $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['show'] = true;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['loop'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['step'] = 1;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['loop'] - 1;
                if ($_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['show']) {
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['loop'];
                    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['total'] == 0) {
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['show'] = false;
                    }
                } else {
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['total'] = 0;
                }
                if ($_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['show']) {
                    for ($_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['iteration']++) {
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['iteration'];
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['step'];
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['step'];
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['iteration'] == 1;
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['closelist2']['total'];
                        ?>
</div><?php 
                    }
                }
                ?>
    
		<?php 
            }
            ?>
	<?php 
        }
        ?>
</div>				
	
	
<?php 
        echo $_smarty_tpl->getSubTemplate('comment_paging.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('aPagingCmt' => $_smarty_tpl->tpl_vars['aPagingCmt']->value), 0);
        ?>


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


<?php 
        if ($_smarty_tpl->tpl_vars['bAllowNewComment']->value) {
            ?>
	<?php 
            echo $_smarty_tpl->tpl_vars['sNoticeNotAllow']->value;
            ?>

<?php 
        } else {
            ?>
	<?php 
            if ($_smarty_tpl->tpl_vars['oUserCurrent']->value) {
                ?>
		<?php 
                echo $_smarty_tpl->getSubTemplate('editor.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('sImgToLoad' => 'form_comment_text', 'sSettingsTinymce' => 'ls.settings.getTinymceComment()', 'sSettingsMarkitup' => 'ls.settings.getMarkitupComment()'), 0);
                ?>


		<h4 class="reply-header" id="comment_id_0">
			<a href="#" class="link-dotted" onclick="ls.comments.toggleCommentForm(0); return false;"><?php 
                echo $_smarty_tpl->tpl_vars['sNoticeCommentAdd']->value;
                ?>
</a>
		</h4>
		
		
		<div id="reply" class="reply">		
			<form method="post" id="form_comment" onsubmit="return false;" enctype="multipart/form-data">
				<?php 
                echo smarty_function_hook(array('run' => 'form_add_comment_begin'), $_smarty_tpl);
                ?>

				
				<textarea name="comment_text" id="form_comment_text" class="mce-editor markitup-editor input-width-full"></textarea>
				
				<?php 
                echo smarty_function_hook(array('run' => 'form_add_comment_end'), $_smarty_tpl);
                ?>

				
				<button type="submit" name="submit_comment" 
						id="comment-button-submit" 
						onclick="ls.comments.add('form_comment',<?php 
                echo $_smarty_tpl->tpl_vars['iTargetId']->value;
                ?>
,'<?php 
                echo $_smarty_tpl->tpl_vars['sTargetType']->value;
                ?>
'); return false;" 
						class="button button-primary"><?php 
                echo $_smarty_tpl->tpl_vars['aLang']->value['comment_add'];
                ?>
</button>
				<button type="button" onclick="ls.comments.preview();" class="button"><?php 
                echo $_smarty_tpl->tpl_vars['aLang']->value['comment_preview'];
                ?>
</button>
				
				<input type="hidden" name="reply" value="0" id="form_comment_reply" />
				<input type="hidden" name="cmt_target_id" value="<?php 
                echo $_smarty_tpl->tpl_vars['iTargetId']->value;
                ?>
" />
			</form>
		</div>
	<?php 
            } else {
                ?>
		<?php 
                echo $_smarty_tpl->tpl_vars['aLang']->value['comment_unregistered'];
                ?>

	<?php 
            }
        }
        ?>
	


<?php 
    }
    function content_5577f7814cdac0_58090673($_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_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';
        }
        if (!is_callable('smarty_function_json')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.json.php';
        }
        if (!is_callable('smarty_function_add_block')) {
            include '/home/vxeeuesn/public_html/_sokol/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 
        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;
        ?>
">

	<?php 
        echo $_smarty_tpl->tpl_vars['aHtmlHeadFiles']->value['css'];
        ?>

	
	<link href='http://fonts.googleapis.com/css?family=PT+Sans:400,700&subset=latin,cyrillic' rel='stylesheet' type='text/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>
	
	
	<?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 {
            ?>
		<style>
			#container {
				width: <?php 
            echo smarty_function_cfg(array('name' => 'view.grid.fixed_width'), $_smarty_tpl);
            ?>
px;
			}
		</style>
	<?php 
        }
        ?>
	
	
	<?php 
        echo smarty_function_hook(array('run' => 'html_head_end'), $_smarty_tpl);
        ?>

</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);
        ?>
">
	<?php 
        echo smarty_function_hook(array('run' => 'body_begin'), $_smarty_tpl);
        ?>

	
	
	<?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 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value) {
            ?>
<div id="header-back"></div>
<?php 
        }
        ?>

	
	<div id="container" class="<?php 
        echo smarty_function_hook(array('run' => 'container_class'), $_smarty_tpl);
        ?>
">
		
		<?php 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value) {
            echo $_smarty_tpl->getSubTemplate('header_top.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="wrapper" class="no-sidebar<?php 
        echo smarty_function_hook(array('run' => 'wrapper_class'), $_smarty_tpl);
        ?>
">
<!--
			<?php 
        if (!$_smarty_tpl->tpl_vars['noSidebar']->value) {
            ?>
				<?php 
            echo $_smarty_tpl->getSubTemplate('sidebar.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
            ?>

			<?php 
        }
        ?>
-->
			<div id="content" role="main" <?php 
        if ($_smarty_tpl->tpl_vars['sidebarPosition']->value == 'left') {
            ?>
class="content-profile"<?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);
    }
    function content_5684d6ccbed156_06229807($_smarty_tpl)
    {
        if (!is_callable('smarty_function_hook')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.hook.php';
        }
        if (!is_callable('smarty_function_cfg')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.cfg.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 
        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;
        ?>
">

    <meta name="viewport" content="width=device-width,initial-scale=1">

<?php 
        echo $_smarty_tpl->tpl_vars['aHtmlHeadFiles']->value['css'];
        ?>


    <link href='http://fonts.googleapis.com/css?family=PT+Sans:400,700&subset=latin,cyrillic' rel='stylesheet'
          type='text/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>


<?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_cfg(array('name' => "module.comment.max_tree"), $_smarty_tpl);
        ?>
');
    </script>

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

</head>

<?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 
        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;
        ?>
">
<?php 
        echo smarty_function_hook(array('run' => 'body_begin'), $_smarty_tpl);
        ?>


<header id="header">
    <nav class="navbar navbar-inverse navbar-fixed-top">
        <div>
            <div class="container">
                <a class="brand" href="<?php 
        echo smarty_function_router(array('page' => 'admin'), $_smarty_tpl);
        ?>
">
					<i class="icon-globe icon-white"></i> Developers Web Panel
                </a>

                <div class="nav-collapse">
                    <ul class="nav">
                        <li><a href="<?php 
        echo smarty_function_cfg(array('name' => 'path.root.web'), $_smarty_tpl);
        ?>
" target="_blank"><?php 
        echo $_smarty_tpl->tpl_vars['oLang']->value->adm_goto_site;
        ?>
</a></li>
                    <?php 
        echo smarty_function_hook(array('run' => 'main_menu'), $_smarty_tpl);
        ?>

                    </ul>
                </div>

                <div class="nav-collapse pull-right">
                    <ul class="nav">
                        <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>
                </div>
            </div>
        </div>
    </nav>
</header>

<div id="container" class="container <?php 
        echo smarty_function_hook(array('run' => 'container_class'), $_smarty_tpl);
        ?>
">

    <div id="wrapper" class="row">
        <div class="left-sidebar span3">
        
        <?php 
        echo $_smarty_tpl->getSubTemplate($_smarty_tpl->tpl_vars['sTemplatePath']->value . "/inc.menu.main.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>

		    <div class="widget-info well" style="text-align: center;">
                <?php 
        if (Config::Get('plugin.aceadminpanel.altocms-logo') !== false) {
            ?>
                <a href="http://altocms.com" target="_blank"><img src="<?php 
            echo $_smarty_tpl->tpl_vars['sWebPluginSkin']->value;
            ?>
images/altocms-logo.png"></a><br/>
                <a href="http://altocms.com" target="_blank">www.altocms.com</a>
                <?php 
        }
        ?>
            </div>
        
        

        
        </div>

        <div role="main" class="span13">
        <?php 
        /*  Call merged included template "inc.system_message.tpl" */
        $_tpl_stack[] = $_smarty_tpl;
        $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('inc.system_message.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0, '17170383195684d6cc9f6f09-09427018');
        content_5684d6ccafe7f5_05531394($_smarty_tpl);
        $_smarty_tpl = array_pop($_tpl_stack);
        /*  End of included template "inc.system_message.tpl" */
        ?>
        <?php 
        echo smarty_function_hook(array('run' => 'content_begin'), $_smarty_tpl);
        ?>

        
<div id=content>

    <?php 
        if (!$_smarty_tpl->tpl_vars['submit_cache_save']->value) {
            ?>

    <form method="post" action="">
        <input type="hidden" name="security_ls_key" value="<?php 
            echo $_smarty_tpl->tpl_vars['LIVESTREET_SECURITY_KEY']->value;
            ?>
"/>

        <h3><?php 
            echo $_smarty_tpl->tpl_vars['oLang']->value->_adm_menu_reset_cache;
            ?>
</h3>

		<div class="modal-2 offset1">
			<div class="checkbox inline" style="padding: 0;">
				<input type="checkbox" id="adm_cache_clear_data" name="adm_cache_clear_data" checked>
				<label><?php 
            echo $_smarty_tpl->tpl_vars['oLang']->value->_adm_cache_clear_data;
            ?>
</label>
			</div>
		</div>

		<div class="modal-2 offset1">
			<div class="checkbox inline" style="padding: 0;">
				<input type="checkbox" id="adm_cache_clear_headfiles" name="adm_cache_clear_headfiles" checked>
				<label><?php 
            echo $_smarty_tpl->tpl_vars['oLang']->value->_adm_cache_clear_headfiles;
            ?>
</label>
			</div>
		</div>

		<div class="modal-2 offset1">
			<div class="checkbox inline" style="padding: 0;">
				<input type="checkbox" id="adm_cache_clear_smarty" name="adm_cache_clear_smarty" checked>
				<label><?php 
            echo $_smarty_tpl->tpl_vars['oLang']->value->_adm_cache_clear_smarty;
            ?>
</label>
			</div>
		</div>		

        <h3><?php 
            echo $_smarty_tpl->tpl_vars['oLang']->value->_adm_menu_reset_config;
            ?>
</h3>

		<div class="modal-2 offset1">
			<div class="checkbox inline" style="padding: 0;">
				<input type="checkbox" id="adm_reset_config_data" name="adm_reset_config_data">
				<label><?php 
            echo $_smarty_tpl->tpl_vars['oLang']->value->_adm_reset_config_data;
            ?>
</label>
			</div>
			<br>(Осторожно! Сброс всех данных!)
		</div>		

        <input type="submit" name="adm_reset_submit" value="<?php 
            echo $_smarty_tpl->tpl_vars['oLang']->value->_adm_execute;
            ?>
" class="btn btn-primary pull-right"/>&nbsp;
    </form>

    <?php 
        } else {
            ?>

    <form method="post" action="">
        <input type="submit" name="admin_continue" value="<?php 
            echo $_smarty_tpl->tpl_vars['oLang']->value->_adm_continue;
            ?>
"/>
    </form>

    <?php 
        }
        ?>
</div>

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

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

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

<footer id="footer">
    <div class="container">

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

    </div>
</footer>

<?php 
        /*  Call merged included template "toolbar.tpl" */
        $_tpl_stack[] = $_smarty_tpl;
        $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('toolbar.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0, '17170383195684d6cc9f6f09-09427018');
        content_5684d6ccba08b5_63833551($_smarty_tpl);
        $_smarty_tpl = array_pop($_tpl_stack);
        /*  End of included template "toolbar.tpl" */
        ?>

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


</body>
</html><?php 
    }