] = <?php 
        echo smarty_function_json(array('array' => $this->_tpl_vars['image']['paths']), $this);
        ?>
;
		imageDescr[<?php 
        echo $this->_tpl_vars['image']['ID'];
        ?>
] = <?php 
        echo smarty_function_json(array('array' => $this->_tpl_vars['image']['title_lang']), $this);
        ?>
;
		imageProducts[<?php 
        echo $this->_tpl_vars['image']['ID'];
        ?>
] = <?php 
        echo smarty_function_json(array('array' => $this->_tpl_vars['image']['productID']), $this);
        ?>
;
	<?php 
    }
}
unset($_from);
?>
	new Product.ImageHandler(imageData, imageDescr, imageProducts, <?php 
if ($this->_tpl_vars['enlargeProductThumbnailOnMouseOver']) {
    ?>
true<?php 
} else {
    ?>
false<?php 
}
$this->_tag_stack[] = array('denied', array('role' => 'user'));
$_block_repeat = true;
smarty_block_denied($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
while ($_block_repeat) {
    ob_start();
    ?>
false<?php 
    $_block_content = ob_get_contents();
    ob_end_clean();
    $_block_repeat = false;
    echo smarty_block_denied($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat);
}
array_pop($this->_tag_stack);
echo ';

	var users = new Backend.UserGroup(';
echo smarty_function_json(array('array' => $this->_tpl_vars['userGroups']), $this);
echo ');
	window.ordersActiveGrid = {};
	window.usersActiveGrid = {};
</script>
';
?>



<?php 
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "custom:layout/backend/footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
    function content_5684d6ffa89ca5_50628922($_smarty_tpl)
    {
        if (!is_callable('smarty_function_date_format')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.date_format.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';
        }
        if (!is_callable('smarty_function_json')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.json.php';
        }
        $_smarty_tpl->tpl_vars["sMenuItemSelect"] = new Smarty_variable('profile', null, 0);
        echo $_smarty_tpl->getSubTemplate('header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>


<?php 
        $_smarty_tpl->tpl_vars["oSession"] = new Smarty_variable($_smarty_tpl->tpl_vars['oUserProfile']->value->getSession(), null, 0);
        $_smarty_tpl->tpl_vars["oVote"] = new Smarty_variable($_smarty_tpl->tpl_vars['oUserProfile']->value->getVote(), null, 0);
        $_smarty_tpl->tpl_vars["oGeoTarget"] = new Smarty_variable($_smarty_tpl->tpl_vars['oUserProfile']->value->getGeoTarget(), null, 0);
        ?>



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

<br />

<?php 
        $_smarty_tpl->tpl_vars["aUserFieldValues"] = new Smarty_variable($_smarty_tpl->tpl_vars['oUserProfile']->value->getUserFieldValues(true, array('')), null, 0);
        ?>

<?php 
        if ($_smarty_tpl->tpl_vars['oUserProfile']->value->getProfileSex() != 'other' || $_smarty_tpl->tpl_vars['oUserProfile']->value->getProfileBirthday() || $_smarty_tpl->tpl_vars['oGeoTarget']->value || count($_smarty_tpl->tpl_vars['aUserFieldValues']->value)) {
            ?>
<div class="table-profile-info-wrapper">
	<h2 class="header-table"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['profile_privat'];
            ?>
</h2>
	
	
	<table class="table table-profile-info">		
		<?php 
            if ($_smarty_tpl->tpl_vars['oUserProfile']->value->getProfileSex() != 'other') {
                ?>
			<tr>
				<td class="cell-label"><?php 
                echo $_smarty_tpl->tpl_vars['aLang']->value['profile_sex'];
                ?>
:</td>
				<td>
					<?php 
                if ($_smarty_tpl->tpl_vars['oUserProfile']->value->getProfileSex() == 'man') {
                    ?>
						<?php 
                    echo $_smarty_tpl->tpl_vars['aLang']->value['profile_sex_man'];
                    ?>

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

					<?php 
                }
                ?>
				</td>
			</tr>
		<?php 
            }
            ?>
			
			
		<?php 
            if ($_smarty_tpl->tpl_vars['oUserProfile']->value->getProfileBirthday()) {
                ?>
			<tr>
				<td class="cell-label"><?php 
                echo $_smarty_tpl->tpl_vars['aLang']->value['profile_birthday'];
                ?>
:</td>
				<td><?php 
                echo smarty_function_date_format(array('date' => $_smarty_tpl->tpl_vars['oUserProfile']->value->getProfileBirthday(), 'format' => "j F Y"), $_smarty_tpl);
                ?>
</td>
			</tr>
		<?php 
            }
            ?>
		
		
		<?php 
            if ($_smarty_tpl->tpl_vars['oGeoTarget']->value) {
                ?>
			<tr>
				<td class="cell-label"><?php 
                echo $_smarty_tpl->tpl_vars['aLang']->value['profile_place'];
                ?>
:</td>
				<td itemprop="address" itemscope itemtype="http://data-vocabulary.org/Address">
					<?php 
                if ($_smarty_tpl->tpl_vars['oGeoTarget']->value->getCountryId()) {
                    ?>
						<a href="<?php 
                    echo smarty_function_router(array('page' => 'people'), $_smarty_tpl);
                    ?>
country/<?php 
                    echo $_smarty_tpl->tpl_vars['oGeoTarget']->value->getCountryId();
                    ?>
/" itemprop="country-name"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['oUserProfile']->value->getProfileCountry(), ENT_QUOTES, 'UTF-8', true);
                    ?>
</a><?php 
                    if ($_smarty_tpl->tpl_vars['oGeoTarget']->value->getCityId()) {
                        ?>
,<?php 
                    }
                    ?>
					<?php 
                }
                ?>
					
					<?php 
                if ($_smarty_tpl->tpl_vars['oGeoTarget']->value->getCityId()) {
                    ?>
						<a href="<?php 
                    echo smarty_function_router(array('page' => 'people'), $_smarty_tpl);
                    ?>
city/<?php 
                    echo $_smarty_tpl->tpl_vars['oGeoTarget']->value->getCityId();
                    ?>
/" itemprop="locality"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['oUserProfile']->value->getProfileCity(), ENT_QUOTES, 'UTF-8', true);
                    ?>
</a>
					<?php 
                }
                ?>
				</td>
			</tr>
		<?php 
            }
            ?>

		<?php 
            if ($_smarty_tpl->tpl_vars['aUserFieldValues']->value) {
                ?>
			<?php 
                $_smarty_tpl->tpl_vars['oField'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['oField']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['aUserFieldValues']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['oField']->key => $_smarty_tpl->tpl_vars['oField']->value) {
                    $_smarty_tpl->tpl_vars['oField']->_loop = true;
                    ?>
				<tr>
					<td class="cell-label"><i class="icon-contact icon-contact-<?php 
                    echo $_smarty_tpl->tpl_vars['oField']->value->getName();
                    ?>
"></i> <?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['oField']->value->getTitle(), ENT_QUOTES, 'UTF-8', true);
                    ?>
:</td>
					<td><?php 
                    echo $_smarty_tpl->tpl_vars['oField']->value->getValue(true, true);
                    ?>
</td>
				</tr>
			<?php 
                }
                ?>
		<?php 
            }
            ?>

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

	</table>
</div>
<?php 
        }
        ?>

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




<?php 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() != $_smarty_tpl->tpl_vars['oUserProfile']->value->getId()) {
            ?>
	<section class="profile-info-note full-width">
		<?php 
            if ($_smarty_tpl->tpl_vars['oUserNote']->value) {
                ?>
			<script type="text/javascript">
				ls.usernote.sText = <?php 
                echo smarty_function_json(array('var' => $_smarty_tpl->tpl_vars['oUserNote']->value->getText()), $_smarty_tpl);
                ?>
;
			</script>
		<?php 
            }
            ?>
		
		<h2 class="header-table"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['profile_note_header'];
            ?>
</h2>

		<div id="usernote-note" class="profile-note" <?php 
            if (!$_smarty_tpl->tpl_vars['oUserNote']->value) {
                ?>
style="display: none;"<?php 
            }
            ?>
>
			<p id="usernote-note-text">
				<?php 
            if ($_smarty_tpl->tpl_vars['oUserNote']->value) {
                ?>
					<?php 
                echo $_smarty_tpl->tpl_vars['oUserNote']->value->getText();
                ?>

				<?php 
            }
            ?>
			</p>
			
			<ul class="actions clearfix">
				<li><a href="#" onclick="return ls.usernote.showForm();" class="link-dotted"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_note_form_edit'];
            ?>
</a></li>
				<li><a href="#" onclick="return ls.usernote.remove(<?php 
            echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getId();
            ?>
);" class="link-dotted"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_note_form_delete'];
            ?>
</a></li>
			</ul>
		</div>
		
		<div id="usernote-form" style="display: none;">
			<p><textarea rows="4" cols="20" id="usernote-form-text" class="input-text input-width-full"></textarea></p><br />
			<button type="submit" onclick="return ls.usernote.save(<?php 
            echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getId();
            ?>
);" class="button button-primary"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_note_form_save'];
            ?>
</button>&nbsp;&nbsp;
			<button type="submit" onclick="return ls.usernote.hideForm();" class="button"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_note_form_cancel'];
            ?>
</button>
		</div>
		
		<a href="#" onclick="return ls.usernote.showForm();" id="usernote-button-add" class="link-dotted" <?php 
            if ($_smarty_tpl->tpl_vars['oUserNote']->value) {
                ?>
style="display:none;"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_note_add'];
            ?>
</a>
	</section>
<?php 
        }
        ?>

<?php 
        if ($_smarty_tpl->tpl_vars['oUserProfile']->value->getProfileAbout()) {
            ?>
					
	<div class="profile-info-about">
		<h2 class="header-table"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['profile_about'];
            ?>
</h2>
		<?php 
            echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getProfileAbout();
            ?>

	</div>
<?php 
        }
        ?>



<?php 
        $_smarty_tpl->tpl_vars["aUserFieldContactValues"] = new Smarty_variable($_smarty_tpl->tpl_vars['oUserProfile']->value->getUserFieldValues(true, array('contact')), null, 0);
        if ($_smarty_tpl->tpl_vars['aUserFieldContactValues']->value) {
            ?>
	<div class="table-profile-info-wrapper">
		<h2 class="header-table"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['profile_contacts'];
            ?>
</h2>
		
		<table class="table table-profile-info">
			<?php 
            $_smarty_tpl->tpl_vars['oField'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['oField']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['aUserFieldContactValues']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['oField']->key => $_smarty_tpl->tpl_vars['oField']->value) {
                $_smarty_tpl->tpl_vars['oField']->_loop = true;
                ?>
				<tr>
					<td class="cell-label"><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['oField']->value->getTitle(), ENT_QUOTES, 'UTF-8', true);
                ?>
:</td>
					<td><?php 
                echo $_smarty_tpl->tpl_vars['oField']->value->getValue(true, true);
                ?>
</td>
				</tr>
			<?php 
            }
            ?>
		</table>
	</div>
<?php 
        }
        ?>


<?php 
        $_smarty_tpl->tpl_vars["aUserFieldContactValues"] = new Smarty_variable($_smarty_tpl->tpl_vars['oUserProfile']->value->getUserFieldValues(true, array('social')), null, 0);
        if ($_smarty_tpl->tpl_vars['aUserFieldContactValues']->value) {
            ?>
<div class="table-profile-info-wrapper">
	<h2 class="header-table"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['profile_social'];
            ?>
</h2>
	
	<ul class="profile-contacts">
		<?php 
            $_smarty_tpl->tpl_vars['oField'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['oField']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['aUserFieldContactValues']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['oField']->key => $_smarty_tpl->tpl_vars['oField']->value) {
                $_smarty_tpl->tpl_vars['oField']->_loop = true;
                ?>
			<li class="contact-<?php 
                echo $_smarty_tpl->tpl_vars['oField']->value->getName();
                ?>
">
				<?php 
                echo $_smarty_tpl->tpl_vars['oField']->value->getValue(true, true);
                ?>

			</li>
		<?php 
            }
            ?>
	</ul>
</div>
<?php 
        }
        ?>



<?php 
        if ($_smarty_tpl->tpl_vars['aUsersFriend']->value) {
            ?>
	<div class="table-profile-info-wrapper">
		<h2 class="header-table mb-15"><a href="<?php 
            echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath();
            ?>
friends/"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['profile_friends'];
            ?>
</a> <?php 
            echo $_smarty_tpl->tpl_vars['iCountFriendsUser']->value;
            ?>
</h2>
		
		<?php 
            echo $_smarty_tpl->getSubTemplate('user_list_avatar.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('aUsersList' => $_smarty_tpl->tpl_vars['aUsersFriend']->value), 0);
            ?>

	</div>
<?php 
        }
        ?>


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



<div class="table-profile-info-wrapper">
	<h2 class="header-table"><a href="<?php 
        echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath();
        ?>
stream/"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['profile_activity'];
        ?>
</a></h2>

	<table class="table table-profile-info">
		<tr>
			<td class="cell-label"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['profile_date_registration'];
        ?>
:</td>
			<td><?php 
        echo smarty_function_date_format(array('date' => $_smarty_tpl->tpl_vars['oUserProfile']->value->getDateRegister()), $_smarty_tpl);
        ?>
</td>
		</tr>	
		
		
		<?php 
        if ($_smarty_tpl->tpl_vars['oSession']->value) {
            ?>
				
			<tr>
				<td class="cell-label"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['profile_date_last'];
            ?>
:</td>
				<td><?php 
            echo smarty_function_date_format(array('date' => $_smarty_tpl->tpl_vars['oSession']->value->getDateLast()), $_smarty_tpl);
            ?>
</td>
			</tr>
		<?php 
        }
        ?>

		<?php 
        if ($_smarty_tpl->tpl_vars['oConfig']->value->GetValue('general.reg.invite') && $_smarty_tpl->tpl_vars['oUserInviteFrom']->value) {
            ?>
			<tr>
				<td class="cell-label"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['profile_invite_from'];
            ?>
:</td>
				<td>							       						
					<a href="<?php 
            echo $_smarty_tpl->tpl_vars['oUserInviteFrom']->value->getUserWebPath();
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['oUserInviteFrom']->value->getLogin();
            ?>
</a>&nbsp;         					
				</td>
			</tr>
		<?php 
        }
        ?>
		
		
		<?php 
        if ($_smarty_tpl->tpl_vars['oConfig']->value->GetValue('general.reg.invite') && $_smarty_tpl->tpl_vars['aUsersInvite']->value) {
            ?>
			<tr>
				<td class="cell-label"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['profile_invite_to'];
            ?>
:</td>
				<td>
					<?php 
            $_smarty_tpl->tpl_vars['oUserInvite'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['oUserInvite']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['aUsersInvite']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['oUserInvite']->key => $_smarty_tpl->tpl_vars['oUserInvite']->value) {
                $_smarty_tpl->tpl_vars['oUserInvite']->_loop = true;
                ?>
        						
						<a href="<?php 
                echo $_smarty_tpl->tpl_vars['oUserInvite']->value->getUserWebPath();
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['oUserInvite']->value->getLogin();
                ?>
</a>&nbsp; 
					<?php 
            }
            ?>
				</td>
			</tr>
		<?php 
        }
        ?>
		
		
		<?php 
        if ($_smarty_tpl->tpl_vars['aBlogsOwner']->value) {
            ?>
			<tr>
				<td class="cell-label"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['profile_blogs_self'];
            ?>
:</td>
				<td>							
					<?php 
            $_smarty_tpl->tpl_vars['oBlog'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['oBlog']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['aBlogsOwner']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['oBlog']->total = $_smarty_tpl->_count($_from);
            $_smarty_tpl->tpl_vars['oBlog']->iteration = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars['oBlog']->key => $_smarty_tpl->tpl_vars['oBlog']->value) {
                $_smarty_tpl->tpl_vars['oBlog']->_loop = true;
                $_smarty_tpl->tpl_vars['oBlog']->iteration++;
                $_smarty_tpl->tpl_vars['oBlog']->last = $_smarty_tpl->tpl_vars['oBlog']->iteration === $_smarty_tpl->tpl_vars['oBlog']->total;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['blog_owner']['last'] = $_smarty_tpl->tpl_vars['oBlog']->last;
                ?>
						<a href="<?php 
                echo $_smarty_tpl->tpl_vars['oBlog']->value->getUrlFull();
                ?>
"><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['oBlog']->value->getTitle(), ENT_QUOTES, 'UTF-8', true);
                ?>
</a><?php 
                if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['blog_owner']['last']) {
                    ?>
, <?php 
                }
                ?>
								      		
					<?php 
            }
            ?>
				</td>
			</tr>
		<?php 
        }
        ?>
		
		
		<?php 
        if ($_smarty_tpl->tpl_vars['aBlogAdministrators']->value) {
            ?>
			<tr>
				<td class="cell-label"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['profile_blogs_administration'];
            ?>
:</td>
				<td>
					<?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');
            }
            $_smarty_tpl->tpl_vars['oBlogUser']->total = $_smarty_tpl->_count($_from);
            $_smarty_tpl->tpl_vars['oBlogUser']->iteration = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars['oBlogUser']->key => $_smarty_tpl->tpl_vars['oBlogUser']->value) {
                $_smarty_tpl->tpl_vars['oBlogUser']->_loop = true;
                $_smarty_tpl->tpl_vars['oBlogUser']->iteration++;
                $_smarty_tpl->tpl_vars['oBlogUser']->last = $_smarty_tpl->tpl_vars['oBlogUser']->iteration === $_smarty_tpl->tpl_vars['oBlogUser']->total;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['blog_user']['last'] = $_smarty_tpl->tpl_vars['oBlogUser']->last;
                ?>
						<?php 
                $_smarty_tpl->tpl_vars["oBlog"] = new Smarty_variable($_smarty_tpl->tpl_vars['oBlogUser']->value->getBlog(), null, 0);
                ?>
						<a href="<?php 
                echo $_smarty_tpl->tpl_vars['oBlog']->value->getUrlFull();
                ?>
"><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['oBlog']->value->getTitle(), ENT_QUOTES, 'UTF-8', true);
                ?>
</a><?php 
                if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['blog_user']['last']) {
                    ?>
, <?php 
                }
                ?>
					<?php 
            }
            ?>
				</td>
			</tr>
		<?php 
        }
        ?>
		
		
		<?php 
        if ($_smarty_tpl->tpl_vars['aBlogModerators']->value) {
            ?>
			<tr>
				<td class="cell-label"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['profile_blogs_moderation'];
            ?>
:</td>
				<td>
					<?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');
            }
            $_smarty_tpl->tpl_vars['oBlogUser']->total = $_smarty_tpl->_count($_from);
            $_smarty_tpl->tpl_vars['oBlogUser']->iteration = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars['oBlogUser']->key => $_smarty_tpl->tpl_vars['oBlogUser']->value) {
                $_smarty_tpl->tpl_vars['oBlogUser']->_loop = true;
                $_smarty_tpl->tpl_vars['oBlogUser']->iteration++;
                $_smarty_tpl->tpl_vars['oBlogUser']->last = $_smarty_tpl->tpl_vars['oBlogUser']->iteration === $_smarty_tpl->tpl_vars['oBlogUser']->total;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['blog_user']['last'] = $_smarty_tpl->tpl_vars['oBlogUser']->last;
                ?>
						<?php 
                $_smarty_tpl->tpl_vars["oBlog"] = new Smarty_variable($_smarty_tpl->tpl_vars['oBlogUser']->value->getBlog(), null, 0);
                ?>
						<a href="<?php 
                echo $_smarty_tpl->tpl_vars['oBlog']->value->getUrlFull();
                ?>
"><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['oBlog']->value->getTitle(), ENT_QUOTES, 'UTF-8', true);
                ?>
</a><?php 
                if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['blog_user']['last']) {
                    ?>
, <?php 
                }
                ?>
					<?php 
            }
            ?>
				</td>
			</tr>
		<?php 
        }
        ?>
		
		
		<?php 
        if ($_smarty_tpl->tpl_vars['aBlogUsers']->value) {
            ?>
			<tr>
				<td class="cell-label"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['profile_blogs_join'];
            ?>
:</td>
				<td>
					<?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');
            }
            $_smarty_tpl->tpl_vars['oBlogUser']->total = $_smarty_tpl->_count($_from);
            $_smarty_tpl->tpl_vars['oBlogUser']->iteration = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars['oBlogUser']->key => $_smarty_tpl->tpl_vars['oBlogUser']->value) {
                $_smarty_tpl->tpl_vars['oBlogUser']->_loop = true;
                $_smarty_tpl->tpl_vars['oBlogUser']->iteration++;
                $_smarty_tpl->tpl_vars['oBlogUser']->last = $_smarty_tpl->tpl_vars['oBlogUser']->iteration === $_smarty_tpl->tpl_vars['oBlogUser']->total;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['blog_user']['last'] = $_smarty_tpl->tpl_vars['oBlogUser']->last;
                ?>
						<?php 
                $_smarty_tpl->tpl_vars["oBlog"] = new Smarty_variable($_smarty_tpl->tpl_vars['oBlogUser']->value->getBlog(), null, 0);
                ?>
						<a href="<?php 
                echo $_smarty_tpl->tpl_vars['oBlog']->value->getUrlFull();
                ?>
"><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['oBlog']->value->getTitle(), ENT_QUOTES, 'UTF-8', true);
                ?>
</a><?php 
                if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['blog_user']['last']) {
                    ?>
, <?php 
                }
                ?>
					<?php 
            }
            ?>
				</td>
			</tr>
		<?php 
        }
        ?>
		
		<?php 
        echo smarty_function_hook(array('run' => 'profile_whois_activity_item', 'oUserProfile' => $_smarty_tpl->tpl_vars['oUserProfile']->value), $_smarty_tpl);
        ?>

	</table>
</div>

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



<?php 
        echo $_smarty_tpl->getSubTemplate('footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
    }
    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);
    }
    echo $this->_tpl_vars['id'];
    ?>
'].initAdvancedSearch(
			"<?php 
    echo $this->_tpl_vars['prefix'];
    ?>
_<?php 
    echo $this->_tpl_vars['id'];
    ?>
",
			<?php 
    echo smarty_function_json(array('array' => $this->_tpl_vars['availableColumns']), $this);
    ?>
,
			<?php 
    echo smarty_function_json(array('array' => $this->_tpl_vars['advancedSearchColumns']), $this);
    ?>
,

			/* misc properties */
			<?php 
    echo '
			{
				dateFilterValues:
				{
			';
    ?>

					_today:"today | now",
					_yesterday:"yesterday | today",
					_last_7_days:"-7 days | now",
ob_start();
echo $this->_tpl_vars['currency'];
$this->_smarty_vars['capture']['default'] = ob_get_contents();
$this->assign('blockAsParamValue', ob_get_contents());
ob_end_clean();
echo smarty_function_selectfield(array('name' => "qGroup[" . $this->_tpl_vars['blockAsParamValue'] . "][]", 'options' => $this->_tpl_vars['userGroups']), $this);
?>
</td><td><input type="text" name="qPrice[<?php 
echo $this->_tpl_vars['currency'];
?>
][]" class="text qprice number" /></td></tr>
	</tbody>
</table>
<input type="hidden" class="hiddenValue" name="quantityPricing[<?php 
echo $this->_tpl_vars['currency'];
?>
]" />
</div>

<script type="text/javascript">
	new Backend.Product.QuantityPrice($('quantityPricing_<?php 
echo $this->_tpl_vars['currency'];
?>
_<?php 
echo $this->_tpl_vars['product']['ID'];
?>
'), <?php 
echo smarty_function_json(array('array' => $this->_tpl_vars['prices'][$this->_tpl_vars['currency']]), $this);
?>
);
</script>
    function content_55797af6717715_13781125($_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_json')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.json.php';
        }
        if (!is_callable('smarty_function_lang_load')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.lang_load.php';
        }
        echo smarty_function_hook(array('run' => 'profile_sidebar_begin', 'oUserProfile' => $_smarty_tpl->tpl_vars['oUserProfile']->value), $_smarty_tpl);
        ?>


<section class="block block-type-profile">
	<div class="profile-photo-wrapper">
		<div class="status <?php 
        if ($_smarty_tpl->tpl_vars['oUserProfile']->value->isOnline()) {
            ?>
status-online<?php 
        } else {
            ?>
status-offline<?php 
        }
        ?>
"><?php 
        if ($_smarty_tpl->tpl_vars['oUserProfile']->value->isOnline()) {
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_status_online'];
        } else {
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_status_offline'];
        }
        ?>
</div>
		<a href="<?php 
        echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath();
        ?>
"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getProfileFotoPath();
        ?>
" alt="photo" class="profile-photo" id="foto-img" /></a>
	</div>
	
	<?php 
        if ($_smarty_tpl->tpl_vars['sAction']->value == 'settings' && $_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() == $_smarty_tpl->tpl_vars['oUserProfile']->value->getId()) {
            ?>
		<script type="text/javascript">
			jQuery(function($){
				$('#foto-upload').file({ name:'foto' }).choose(function(e, input) {
					ls.user.uploadFoto(null,input);
				});
			});
		</script>
		
		<p class="upload-photo">
			<a href="#" id="foto-upload" class="link-dotted"><?php 
            if ($_smarty_tpl->tpl_vars['oUserCurrent']->value->getProfileFoto()) {
                echo $_smarty_tpl->tpl_vars['aLang']->value['settings_profile_photo_change'];
            } else {
                echo $_smarty_tpl->tpl_vars['aLang']->value['settings_profile_photo_upload'];
            }
            ?>
</a>&nbsp;&nbsp;&nbsp;
			<a href="#" id="foto-remove" class="link-dotted" onclick="return ls.user.removeFoto();" style="<?php 
            if (!$_smarty_tpl->tpl_vars['oUserCurrent']->value->getProfileFoto()) {
                ?>
display:none;<?php 
            }
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['settings_profile_foto_delete'];
            ?>
</a>
		</p>

		<div class="modal modal-upload-photo" id="foto-resize">
			<header class="modal-header">
				<h3><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['settings_profile_avatar_resize_title'];
            ?>
</h3>
			</header>
			
			<div class="modal-content">
				<div class="clearfix">
					<div class="image-border">
						<img src="" alt="" id="foto-resize-original-img">
					</div>
				</div>
				
				<button type="submit"  class="button button-primary" onclick="return ls.user.resizeFoto();"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['settings_profile_avatar_resize_apply'];
            ?>
</button>
				<button type="submit"  class="button" onclick="return ls.user.cancelFoto();"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['settings_profile_avatar_resize_cancel'];
            ?>
</button>
			</div>
		</div>
	<?php 
        }
        ?>
</section>
	




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


<section class="block block-type-profile-nav">
	<ul class="nav nav-profile">
		<?php 
        echo smarty_function_hook(array('run' => 'profile_sidebar_menu_item_first', 'oUserProfile' => $_smarty_tpl->tpl_vars['oUserProfile']->value), $_smarty_tpl);
        ?>

		<li <?php 
        if ($_smarty_tpl->tpl_vars['sAction']->value == 'profile' && ($_smarty_tpl->tpl_vars['aParams']->value[0] == 'whois' || $_smarty_tpl->tpl_vars['aParams']->value[0] == '')) {
            ?>
class="active"<?php 
        }
        ?>
><a href="<?php 
        echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath();
        ?>
"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['user_menu_profile_whois'];
        ?>
</a></li>
		<li <?php 
        if ($_smarty_tpl->tpl_vars['sAction']->value == 'profile' && $_smarty_tpl->tpl_vars['aParams']->value[0] == 'wall') {
            ?>
class="active"<?php 
        }
        ?>
><a href="<?php 
        echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath();
        ?>
wall/"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['user_menu_profile_wall'];
        if ($_smarty_tpl->tpl_vars['iCountWallUser']->value > 0) {
            ?>
 (<?php 
            echo $_smarty_tpl->tpl_vars['iCountWallUser']->value;
            ?>
)<?php 
        }
        ?>
</a></li>
		<li <?php 
        if ($_smarty_tpl->tpl_vars['sAction']->value == 'profile' && $_smarty_tpl->tpl_vars['aParams']->value[0] == 'created') {
            ?>
class="active"<?php 
        }
        ?>
><a href="<?php 
        echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath();
        ?>
created/topics/"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['user_menu_publication'];
        if ($_smarty_tpl->tpl_vars['iCountCreated']->value > 0) {
            ?>
 (<?php 
            echo $_smarty_tpl->tpl_vars['iCountCreated']->value;
            ?>
)<?php 
        }
        ?>
</a></li>
		<li <?php 
        if ($_smarty_tpl->tpl_vars['sAction']->value == 'profile' && $_smarty_tpl->tpl_vars['aParams']->value[0] == 'favourites') {
            ?>
class="active"<?php 
        }
        ?>
><a href="<?php 
        echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath();
        ?>
favourites/topics/"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['user_menu_profile_favourites'];
        if ($_smarty_tpl->tpl_vars['iCountFavourite']->value > 0) {
            ?>
 (<?php 
            echo $_smarty_tpl->tpl_vars['iCountFavourite']->value;
            ?>
)<?php 
        }
        ?>
</a></li>
		<li <?php 
        if ($_smarty_tpl->tpl_vars['sAction']->value == 'profile' && $_smarty_tpl->tpl_vars['aParams']->value[0] == 'friends') {
            ?>
class="active"<?php 
        }
        ?>
><a href="<?php 
        echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath();
        ?>
friends/"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['user_menu_profile_friends'];
        if ($_smarty_tpl->tpl_vars['iCountFriendsUser']->value > 0) {
            ?>
 (<?php 
            echo $_smarty_tpl->tpl_vars['iCountFriendsUser']->value;
            ?>
)<?php 
        }
        ?>
</a></li>
		<li <?php 
        if ($_smarty_tpl->tpl_vars['sAction']->value == 'profile' && $_smarty_tpl->tpl_vars['aParams']->value[0] == 'stream') {
            ?>
class="active"<?php 
        }
        ?>
><a href="<?php 
        echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath();
        ?>
stream/"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['user_menu_profile_stream'];
        ?>
</a></li>
		
		<?php 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() == $_smarty_tpl->tpl_vars['oUserProfile']->value->getId()) {
            ?>
			<li <?php 
            if ($_smarty_tpl->tpl_vars['sAction']->value == 'talk') {
                ?>
class="active"<?php 
            }
            ?>
><a href="<?php 
            echo smarty_function_router(array('page' => 'talk'), $_smarty_tpl);
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['talk_menu_inbox'];
            if ($_smarty_tpl->tpl_vars['iUserCurrentCountTalkNew']->value) {
                ?>
 (<?php 
                echo $_smarty_tpl->tpl_vars['iUserCurrentCountTalkNew']->value;
                ?>
)<?php 
            }
            ?>
</a></li>
			<li <?php 
            if ($_smarty_tpl->tpl_vars['sAction']->value == 'settings') {
                ?>
class="active"<?php 
            }
            ?>
><a href="<?php 
            echo smarty_function_router(array('page' => 'settings'), $_smarty_tpl);
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['settings_menu'];
            ?>
</a></li>
		<?php 
        }
        ?>
		<?php 
        echo smarty_function_hook(array('run' => 'profile_sidebar_menu_item_last', 'oUserProfile' => $_smarty_tpl->tpl_vars['oUserProfile']->value), $_smarty_tpl);
        ?>

	</ul>
</section>

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



<?php 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() != $_smarty_tpl->tpl_vars['oUserProfile']->value->getId()) {
            ?>
	<section class="block block-type-profile-note">
		<?php 
            if ($_smarty_tpl->tpl_vars['oUserNote']->value) {
                ?>
			<script type="text/javascript">
				ls.usernote.sText = <?php 
                echo smarty_function_json(array('var' => $_smarty_tpl->tpl_vars['oUserNote']->value->getText()), $_smarty_tpl);
                ?>
;
			</script>
		<?php 
            }
            ?>

		<div id="usernote-note" class="profile-note" <?php 
            if (!$_smarty_tpl->tpl_vars['oUserNote']->value) {
                ?>
style="display: none;"<?php 
            }
            ?>
>
			<p id="usernote-note-text">
				<?php 
            if ($_smarty_tpl->tpl_vars['oUserNote']->value) {
                ?>
					<?php 
                echo $_smarty_tpl->tpl_vars['oUserNote']->value->getText();
                ?>

				<?php 
            }
            ?>
			</p>
			
			<ul class="actions">
				<li><a href="#" onclick="return ls.usernote.showForm();" class="link-dotted"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_note_form_edit'];
            ?>
</a></li>
				<li><a href="#" onclick="return ls.usernote.remove(<?php 
            echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getId();
            ?>
);" class="link-dotted"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_note_form_delete'];
            ?>
</a></li>
			</ul>
		</div>
		
		<div id="usernote-form" style="display: none;">
			<p><textarea rows="4" cols="20" id="usernote-form-text" class="input-text input-width-full"></textarea></p>
			<button type="submit"  onclick="return ls.usernote.save(<?php 
            echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getId();
            ?>
);" class="button button-primary"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_note_form_save'];
            ?>
</button>
			<button type="submit"  onclick="return ls.usernote.hideForm();" class="button"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_note_form_cancel'];
            ?>
</button>
		</div>
		
		<a href="#" onclick="return ls.usernote.showForm();" id="usernote-button-add" class="link-dotted" <?php 
            if ($_smarty_tpl->tpl_vars['oUserNote']->value) {
                ?>
style="display:none;"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_note_add'];
            ?>
</a>
	</section>
<?php 
        }
        ?>


<?php 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() != $_smarty_tpl->tpl_vars['oUserProfile']->value->getId()) {
            ?>
	<script type="text/javascript">
		jQuery(function($){
			ls.lang.load(<?php 
            echo smarty_function_lang_load(array('name' => "profile_user_unfollow,profile_user_follow"), $_smarty_tpl);
            ?>
);
		});
	</script>

	<section class="block block-type-profile-actions">
		<div class="block-content">
			<ul class="profile-actions" id="profile_actions">
				<?php 
            echo $_smarty_tpl->getSubTemplate('actions/ActionProfile/friend_item.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('oUserFriend' => $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserFriend()), 0);
            ?>

				<li><a href="<?php 
            echo smarty_function_router(array('page' => 'talk'), $_smarty_tpl);
            ?>
add/?talk_users=<?php 
            echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getLogin();
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_write_prvmsg'];
            ?>
</a></li>					
				<li>
					<a href="#" onclick="ls.user.followToggle(this, <?php 
            echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getId();
            ?>
); return false;" class="<?php 
            if ($_smarty_tpl->tpl_vars['oUserProfile']->value->isFollow()) {
                ?>
followed<?php 
            }
            ?>
">
						<?php 
            if ($_smarty_tpl->tpl_vars['oUserProfile']->value->isFollow()) {
                echo $_smarty_tpl->tpl_vars['aLang']->value['profile_user_unfollow'];
            } else {
                echo $_smarty_tpl->tpl_vars['aLang']->value['profile_user_follow'];
            }
            ?>
					</a>
				</li>						
			</ul>
		</div>
	</section>
<?php 
        }
    }
$this->_smarty_vars['capture']['default'] = ob_get_contents();
$this->assign('translation__confirm_move', ob_get_contents());
ob_end_clean();
echo is_array($_tmp = $this->_tpl_vars['translation__confirm_move']) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp);
?>
';

	Backend.Category.init();

	Backend.Category.treeBrowser.setXMLAutoLoading(Backend.Category.links.categoryAutoloading);
	Backend.Category.addCategories(<?php 
echo smarty_function_json(array('array' => $this->_tpl_vars['categoryList']), $this);
?>
);
	CategoryTabControl.prototype.loadCategoryTabsCount(<?php 
echo smarty_function_json(array('array' => $this->_tpl_vars['allTabsCount']), $this);
?>
);

	Backend.Category.activeCategoryId = Backend.Category.treeBrowser.getSelectedItemId();
	Backend.Category.initPage();

	Backend.Category.loadBookmarkedCategory();

	Backend.Category.showControls();
</script>

<?php 
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "custom:backend/product/tabs.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
				</a>
			</div>
			
			<div class="fileInfoContainer">
				<div class="fileName"></div>
				<div class="cssHintContainer">
					<?php 
echo smarty_function_translate(array('text' => '_including_as_css_background'), $this);
?>
:<br/><code>background-image: url('../../upload/theme/<span class="cssTheme"></span>/<span class="cssFile"></span>');</code>
				</div>
			</div>
		</span>
		<div class="formContainer activeList_editContainer" style="display: none;"></div>
		<div class="clear"></div>
	</li>
</ul>

<script type="text/javascript">
	new Backend.ThemeFile(<?php 
echo smarty_function_json(array('array' => $this->_tpl_vars['filesList']), $this);
?>
, $('filesList_<?php 
echo $this->_tpl_vars['theme'];
?>
'), $('filesList_template_<?php 
echo $this->_tpl_vars['theme'];
?>
'));
</script>
    function content_5684d7a3735815_89905718($_smarty_tpl)
    {
        if (!is_callable('smarty_function_hook')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.hook.php';
        }
        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_json')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.json.php';
        }
        echo smarty_function_hook(array('run' => 'profile_sidebar_begin', 'oUserProfile' => $_smarty_tpl->tpl_vars['oUserProfile']->value), $_smarty_tpl);
        ?>


<section class="block block-type-profile">
	<div class="profile-photo-wrapper">
		<div class="status <?php 
        if ($_smarty_tpl->tpl_vars['oUserProfile']->value->isOnline()) {
            ?>
status-online<?php 
        } else {
            ?>
status-offline<?php 
        }
        ?>
"><?php 
        if ($_smarty_tpl->tpl_vars['oUserProfile']->value->isOnline()) {
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_status_online'];
        } else {
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_status_offline'];
        }
        ?>
</div>
		<a href="<?php 
        echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath();
        ?>
"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getProfileFotoPath();
        ?>
" alt="photo" class="profile-photo" id="foto-img" /></a>
	</div>
	
	<?php 
        if ($_smarty_tpl->tpl_vars['sAction']->value == 'settings' && $_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() == $_smarty_tpl->tpl_vars['oUserProfile']->value->getId()) {
            ?>
		<script type="text/javascript">
			jQuery(function($){
				$('#foto-upload').file({ name:'foto' }).choose(function(e, input) {
					ls.user.uploadFoto(null,input);
				});
			});
		</script>
		
		<p class="upload-photo">
			<a href="#" id="foto-upload" class="link-dotted"><?php 
            if ($_smarty_tpl->tpl_vars['oUserCurrent']->value->getProfileFoto()) {
                echo $_smarty_tpl->tpl_vars['aLang']->value['settings_profile_photo_change'];
            } else {
                echo $_smarty_tpl->tpl_vars['aLang']->value['settings_profile_photo_upload'];
            }
            ?>
</a>&nbsp;&nbsp;&nbsp;
			<a href="#" id="foto-remove" class="link-dotted" onclick="return ls.user.removeFoto();" style="<?php 
            if (!$_smarty_tpl->tpl_vars['oUserCurrent']->value->getProfileFoto()) {
                ?>
display:none;<?php 
            }
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['settings_profile_foto_delete'];
            ?>
</a>
		</p>

		<div class="modal" id="foto-resize">
			<header class="modal-header">
				<h3><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['uploadimg'];
            ?>
</h3>
			</header>
			
			<div class="modal-content">
				<img src="" alt="" id="foto-resize-original-img"><br />
				<button type="submit" class="button button-primary" onclick="return ls.user.resizeFoto();"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['settings_profile_avatar_resize_apply'];
            ?>
</button>
				<button type="submit" class="button" onclick="return ls.user.cancelFoto();"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['settings_profile_avatar_resize_cancel'];
            ?>
</button>
			</div>
		</div>
	<?php 
        }
        ?>
</section>



<?php 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() != $_smarty_tpl->tpl_vars['oUserProfile']->value->getId()) {
            ?>
	<script type="text/javascript">
		jQuery(function($){
			ls.lang.load(<?php 
            echo smarty_function_lang_load(array('name' => "profile_user_unfollow,profile_user_follow"), $_smarty_tpl);
            ?>
);
		});
	</script>

	<section class="block block-type-profile-actions">
		<div class="block-content">
			<ul class="profile-actions" id="profile_actions">
				<?php 
            echo $_smarty_tpl->getSubTemplate('actions/ActionProfile/friend_item.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('oUserFriend' => $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserFriend()), 0);
            ?>

				<li><a href="<?php 
            echo smarty_function_router(array('page' => 'talk'), $_smarty_tpl);
            ?>
add/?talk_users=<?php 
            echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getLogin();
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_write_prvmsg'];
            ?>
</a></li>						
				<li>
					<a href="#" onclick="ls.user.followToggle(this, <?php 
            echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getId();
            ?>
); return false;" class="<?php 
            if ($_smarty_tpl->tpl_vars['oUserProfile']->value->isFollow()) {
                ?>
followed<?php 
            }
            ?>
">
						<?php 
            if ($_smarty_tpl->tpl_vars['oUserProfile']->value->isFollow()) {
                echo $_smarty_tpl->tpl_vars['aLang']->value['profile_user_unfollow'];
            } else {
                echo $_smarty_tpl->tpl_vars['aLang']->value['profile_user_follow'];
            }
            ?>
					</a>
				</li>
				<?php 
            echo smarty_function_hook(array('run' => 'profile_sidebar_show', 'oUserProfile' => $_smarty_tpl->tpl_vars['oUserProfile']->value), $_smarty_tpl);
            ?>

			</ul>
		</div>
	</section>
<?php 
        }
        ?>
	



<?php 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() != $_smarty_tpl->tpl_vars['oUserProfile']->value->getId()) {
            ?>
	<section class="block block-type-profile-note">
		<?php 
            if ($_smarty_tpl->tpl_vars['oUserNote']->value) {
                ?>
			<script type="text/javascript">
				ls.usernote.sText = <?php 
                echo smarty_function_json(array('var' => $_smarty_tpl->tpl_vars['oUserNote']->value->getText()), $_smarty_tpl);
                ?>
;
			</script>
		<?php 
            }
            ?>

		<div id="usernote-note" class="profile-note" <?php 
            if (!$_smarty_tpl->tpl_vars['oUserNote']->value) {
                ?>
style="display: none;"<?php 
            }
            ?>
>
			<p id="usernote-note-text">
				<?php 
            if ($_smarty_tpl->tpl_vars['oUserNote']->value) {
                ?>
					<?php 
                echo $_smarty_tpl->tpl_vars['oUserNote']->value->getText();
                ?>

				<?php 
            }
            ?>
			</p>
			
			<ul class="actions">
				<li><a href="#" onclick="return ls.usernote.showForm();" class="link-dotted"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_note_form_edit'];
            ?>
</a></li>
				<li><a href="#" onclick="return ls.usernote.remove(<?php 
            echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getId();
            ?>
);" class="link-dotted"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_note_form_delete'];
            ?>
</a></li>
			</ul>
		</div>
		
		<div id="usernote-form" style="display: none;">
			<p><textarea rows="4" cols="20" id="usernote-form-text" class="input-text input-width-full"></textarea></p>
			<button type="submit" onclick="return ls.usernote.save(<?php 
            echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getId();
            ?>
);" class="button button-primary"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_note_form_save'];
            ?>
</button>
			<button type="submit" onclick="return ls.usernote.hideForm();" class="button"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_note_form_cancel'];
            ?>
</button>
		</div>
		
		<a href="#" onclick="return ls.usernote.showForm();" id="usernote-button-add" class="link-dotted" <?php 
            if ($_smarty_tpl->tpl_vars['oUserNote']->value) {
                ?>
style="display:none;"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['user_note_add'];
            ?>
</a>
	</section>
<?php 
        }
        ?>

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


<section class="block block-type-profile-nav">
	<ul class="nav nav-pills nav-profile">
		<?php 
        echo smarty_function_hook(array('run' => 'profile_sidebar_menu_item_first', 'oUserProfile' => $_smarty_tpl->tpl_vars['oUserProfile']->value), $_smarty_tpl);
        ?>

		<li <?php 
        if ($_smarty_tpl->tpl_vars['sAction']->value == 'profile' && ($_smarty_tpl->tpl_vars['aParams']->value[0] == 'whois' || $_smarty_tpl->tpl_vars['aParams']->value[0] == '')) {
            ?>
class="active"<?php 
        }
        ?>
><a href="<?php 
        echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath();
        ?>
"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['user_menu_profile_whois'];
        ?>
</a></li>
		<li <?php 
        if ($_smarty_tpl->tpl_vars['sAction']->value == 'profile' && $_smarty_tpl->tpl_vars['aParams']->value[0] == 'wall') {
            ?>
class="active"<?php 
        }
        ?>
><a href="<?php 
        echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath();
        ?>
wall/"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['user_menu_profile_wall'];
        if ($_smarty_tpl->tpl_vars['iCountWallUser']->value > 0) {
            ?>
 (<?php 
            echo $_smarty_tpl->tpl_vars['iCountWallUser']->value;
            ?>
)<?php 
        }
        ?>
</a></li>
		<li <?php 
        if ($_smarty_tpl->tpl_vars['sAction']->value == 'profile' && $_smarty_tpl->tpl_vars['aParams']->value[0] == 'created') {
            ?>
class="active"<?php 
        }
        ?>
><a href="<?php 
        echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath();
        ?>
created/topics/"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['user_menu_publication'];
        if ($_smarty_tpl->tpl_vars['iCountCreated']->value > 0) {
            ?>
 (<?php 
            echo $_smarty_tpl->tpl_vars['iCountCreated']->value;
            ?>
)<?php 
        }
        ?>
</a></li>
		<li <?php 
        if ($_smarty_tpl->tpl_vars['sAction']->value == 'profile' && $_smarty_tpl->tpl_vars['aParams']->value[0] == 'favourites') {
            ?>
class="active"<?php 
        }
        ?>
><a href="<?php 
        echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath();
        ?>
favourites/topics/"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['user_menu_profile_favourites'];
        if ($_smarty_tpl->tpl_vars['iCountFavourite']->value > 0) {
            ?>
 (<?php 
            echo $_smarty_tpl->tpl_vars['iCountFavourite']->value;
            ?>
)<?php 
        }
        ?>
</a></li>
		<li <?php 
        if ($_smarty_tpl->tpl_vars['sAction']->value == 'profile' && $_smarty_tpl->tpl_vars['aParams']->value[0] == 'friends') {
            ?>
class="active"<?php 
        }
        ?>
><a href="<?php 
        echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath();
        ?>
friends/"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['user_menu_profile_friends'];
        if ($_smarty_tpl->tpl_vars['iCountFriendsUser']->value > 0) {
            ?>
 (<?php 
            echo $_smarty_tpl->tpl_vars['iCountFriendsUser']->value;
            ?>
)<?php 
        }
        ?>
</a></li>
		<li <?php 
        if ($_smarty_tpl->tpl_vars['sAction']->value == 'profile' && $_smarty_tpl->tpl_vars['aParams']->value[0] == 'stream') {
            ?>
class="active"<?php 
        }
        ?>
><a href="<?php 
        echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath();
        ?>
stream/"><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['user_menu_profile_stream'];
        ?>
</a></li>
		
		<?php 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() == $_smarty_tpl->tpl_vars['oUserProfile']->value->getId()) {
            ?>
			<li <?php 
            if ($_smarty_tpl->tpl_vars['sAction']->value == 'talk') {
                ?>
class="active"<?php 
            }
            ?>
><a href="<?php 
            echo smarty_function_router(array('page' => 'talk'), $_smarty_tpl);
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['talk_menu_inbox'];
            if ($_smarty_tpl->tpl_vars['iUserCurrentCountTalkNew']->value) {
                ?>
 (<?php 
                echo $_smarty_tpl->tpl_vars['iUserCurrentCountTalkNew']->value;
                ?>
)<?php 
            }
            ?>
</a></li>
			<li <?php 
            if ($_smarty_tpl->tpl_vars['sAction']->value == 'settings') {
                ?>
class="active"<?php 
            }
            ?>
><a href="<?php 
            echo smarty_function_router(array('page' => 'settings'), $_smarty_tpl);
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['aLang']->value['settings_menu'];
            ?>
</a></li>
			<?php 
            echo smarty_function_hook(array('run' => 'athead'), $_smarty_tpl);
            ?>

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

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

	</ul>
</section>
<?php 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() != $_smarty_tpl->tpl_vars['oAceUserProfile']->value->getId() && ($_smarty_tpl->tpl_vars['oUserCurrent']->value->isAdministrator() || $_smarty_tpl->tpl_vars['oUserCurrent']->value->isGlobalModerator())) {
            ?>
<section class="block">
<header class="block-header"><h3>Бан</h3></header>
<div class="block-content">
<?php 
            if (!$_smarty_tpl->tpl_vars['oAceUserProfile']->value->IsBannedByLogin()) {
                ?>
                    <form method="post" action="https://reboot.lunavod.ru/api/ban/" class="well well-small">
                        <br>
                        <input name="security_ls_key" value="<?php 
                echo $_smarty_tpl->tpl_vars['LIVESTREET_SECURITY_KEY']->value;
                ?>
" type="hidden">

                        <input name="ban_login" value="<?php 
                echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getLogin();
                ?>
" type="hidden">

                        <label class="radio">
                            <input name="ban_period" value="days" checked="" type="radio">
                            Бан на
                            <input name="ban_days" id="ban_days" class="num1" type="text"> дней
                        </label>

                        <label class="radio">
                            <input name="ban_period" value="unlim" type="radio">
                            Бан бессрочный
                        </label>

                        <label for="ban_comment">Комментарий</label>
                        <input name="ban_comment" id="ban_comment" maxlength="255" type="text">
			<br>
                        <input name="adm_user_ref" value="https://reboot.lunavod.ru/admin/users/" type="hidden">
                        <input name="adm_user_action" value="adm_ban_user" type="hidden">
                        <button type="submit" name="adm_action_submit" class="btn btn-primary">Забанить</button>
                    </form>
                </div>
</section>
<?php 
            } else {
                ?>
<div class="alert alert-block">
    <?php 
                echo $_smarty_tpl->tpl_vars['oLang']->value->adm_ban_upto;
                ?>

    : <?php 
                if ($_smarty_tpl->tpl_vars['oAceUserProfile']->value->getBanLine()) {
                    echo $_smarty_tpl->tpl_vars['oAceUserProfile']->value->getBanLine();
                } else {
                    echo $_smarty_tpl->tpl_vars['oLang']->value->adm_ban_unlim;
                }
                ?>
    <br/>
    <strong><?php 
                echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getBanComment();
                ?>
</strong>
</div>
<form method="post" action="https://reboot.lunavod.ru/api/ban/" class="well well-small">
                        <input name="security_ls_key" value="<?php 
                echo $_smarty_tpl->tpl_vars['LIVESTREET_SECURITY_KEY']->value;
                ?>
" type="hidden">

                        <input name="ban_login" value="<?php 
                echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getLogin();
                ?>
" type="hidden">
<input name="clear" type="hidden" value="true">
<button type="submit" name="adm_action_submit" class="btn btn-primary">Разбанить</button>
</form>
</div>
</section>
<?php 
            }
        }
        echo smarty_function_hook(array('run' => 'profile_sidebar_end', 'oUserProfile' => $_smarty_tpl->tpl_vars['oUserProfile']->value), $_smarty_tpl);
        ?>

<?php 
    }
	<?php 
echo '
	var status = Backend.CustomerOrder.Editor.prototype.getInstance(';
echo $this->_tpl_vars['order']['ID'];
?>
, true, <?php 
echo smarty_function_json(array('array' => $this->_tpl_vars['hideShipped']), $this);
?>
, <?php 
echo $this->_tpl_vars['order']['isCancelled'];
?>
, <?php 
echo $this->_tpl_vars['order']['isFinalized'];
?>
, <?php 
echo smarty_function_json(array('array' => $this->_tpl_vars['order']['invoiceNumber']), $this);
echo ');

	';
if ($this->_tpl_vars['formShippingAddress']) {
    echo '
		var shippingAddress = Backend.CustomerOrder.Address.prototype.getInstance($(\'';
    ?>
orderInfo_<?php 
    echo $this->_tpl_vars['order']['ID'];
    ?>
_shippingAddress_form<?php 
    echo '\'), \'shippingAddress\');
	';
}
echo '
    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 
    }
    function content_55d3380f02c430_05474315($_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_modifier_truncate')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/lib/external/Smarty/libs/plugins/modifier.truncate.php';
        }
        if (!is_callable('smarty_function_hook')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.hook.php';
        }
        if (!is_callable('smarty_function_json')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.json.php';
        }
        if (count($_smarty_tpl->tpl_vars['aStreamEvents']->value)) {
            ?>
	<?php 
            $_smarty_tpl->tpl_vars['oStreamEvent'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['oStreamEvent']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['aStreamEvents']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['oStreamEvent']->key => $_smarty_tpl->tpl_vars['oStreamEvent']->value) {
                $_smarty_tpl->tpl_vars['oStreamEvent']->_loop = true;
                ?>
		
		<?php 
                $_smarty_tpl->tpl_vars['oTarget'] = new Smarty_variable($_smarty_tpl->tpl_vars['oStreamEvent']->value->getTarget(), null, 0);
                ?>

		<?php 
                ob_start();
                echo smarty_function_date_format(array('date' => $_smarty_tpl->tpl_vars['oStreamEvent']->value->getDateAdded(), 'format' => "j F Y"), $_smarty_tpl);
                $_tmp1 = ob_get_clean();
                if ($_tmp1 != $_smarty_tpl->tpl_vars['sDateLast']->value) {
                    ?>
			<?php 
                    ob_start();
                    echo smarty_function_date_format(array('date' => $_smarty_tpl->tpl_vars['oStreamEvent']->value->getDateAdded(), 'format' => "j F Y"), $_smarty_tpl);
                    $_tmp2 = ob_get_clean();
                    $_smarty_tpl->tpl_vars['sDateLast'] = new Smarty_variable($_tmp2, null, 0);
                    ?>
			
			<li class="stream-header-date">
				<?php 
                    ob_start();
                    echo smarty_function_date_format(array('date' => time(), 'format' => "j F Y"), $_smarty_tpl);
                    $_tmp3 = ob_get_clean();
                    if ($_tmp3 == $_smarty_tpl->tpl_vars['sDateLast']->value) {
                        ?>
					<?php 
                        echo $_smarty_tpl->tpl_vars['aLang']->value['today'];
                        ?>

				<?php 
                    } else {
                        ?>
					<?php 
                        echo smarty_function_date_format(array('date' => $_smarty_tpl->tpl_vars['oStreamEvent']->value->getDateAdded(), 'format' => "j F Y"), $_smarty_tpl);
                        ?>

				<?php 
                    }
                    ?>
			</li>
		<?php 
                }
                ?>

		<?php 
                $_smarty_tpl->tpl_vars['oUser'] = new Smarty_variable($_smarty_tpl->tpl_vars['oStreamEvent']->value->getUser(), null, 0);
                ?>

		<li class="stream-item stream-item-type-<?php 
                echo $_smarty_tpl->tpl_vars['oStreamEvent']->value->getEventType();
                ?>
">
			<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" class="avatar" /></a>
			
			<p class="info"><a href="<?php 
                echo $_smarty_tpl->tpl_vars['oUser']->value->getUserWebPath();
                ?>
"><strong><?php 
                echo $_smarty_tpl->tpl_vars['oUser']->value->getLogin();
                ?>
</strong></a> ·
			<span class="date" title="<?php 
                echo smarty_function_date_format(array('date' => $_smarty_tpl->tpl_vars['oStreamEvent']->value->getDateAdded()), $_smarty_tpl);
                ?>
"><?php 
                echo smarty_function_date_format(array('date' => $_smarty_tpl->tpl_vars['oStreamEvent']->value->getDateAdded(), 'hours_back' => "12", 'minutes_back' => "60", 'now' => "60", 'day' => "day H:i", 'format' => "j F Y, H:i"), $_smarty_tpl);
                ?>
</span></p>

		
			<?php 
                if ($_smarty_tpl->tpl_vars['oStreamEvent']->value->getEventType() == 'add_topic') {
                    ?>
				<?php 
                    if ($_smarty_tpl->tpl_vars['oUser']->value->getProfileSex() != 'woman') {
                        ?>
 <?php 
                        echo $_smarty_tpl->tpl_vars['aLang']->value['stream_list_event_add_topic'];
                        ?>
 <?php 
                    } else {
                        ?>
 <?php 
                        echo $_smarty_tpl->tpl_vars['aLang']->value['stream_list_event_add_topic_female'];
                        ?>
 <?php 
                    }
                    ?>
 
				<a href="<?php 
                    echo $_smarty_tpl->tpl_vars['oTarget']->value->getUrl();
                    ?>
"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['oTarget']->value->getTitle(), ENT_QUOTES, 'UTF-8', true);
                    ?>
</a>
			<?php 
                } elseif ($_smarty_tpl->tpl_vars['oStreamEvent']->value->getEventType() == 'add_comment') {
                    ?>
				<?php 
                    if ($_smarty_tpl->tpl_vars['oUser']->value->getProfileSex() != 'woman') {
                        ?>
 <?php 
                        echo $_smarty_tpl->tpl_vars['aLang']->value['stream_list_event_add_comment'];
                        ?>
 <?php 
                    } else {
                        ?>
 <?php 
                        echo $_smarty_tpl->tpl_vars['aLang']->value['stream_list_event_add_comment_female'];
                        ?>
 <?php 
                    }
                    ?>
 
				<a href="<?php 
                    echo $_smarty_tpl->tpl_vars['oTarget']->value->getTarget()->getUrl();
                    ?>
#comment<?php 
                    echo $_smarty_tpl->tpl_vars['oTarget']->value->getId();
                    ?>
"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['oTarget']->value->getTarget()->getTitle(), ENT_QUOTES, 'UTF-8', true);
                    ?>
</a>
				<?php 
                    $_smarty_tpl->tpl_vars['sTextEvent'] = new Smarty_variable(smarty_modifier_truncate(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['oTarget']->value->getText()), 200), null, 0);
                    ?>
				<?php 
                    if (trim($_smarty_tpl->tpl_vars['sTextEvent']->value)) {
                        ?>
					<div class="stream-comment-preview"><?php 
                        echo $_smarty_tpl->tpl_vars['sTextEvent']->value;
                        ?>
</div>
				<?php 
                    }
                    ?>
			<?php 
                } elseif ($_smarty_tpl->tpl_vars['oStreamEvent']->value->getEventType() == 'add_blog') {
                    ?>
				<?php 
                    if ($_smarty_tpl->tpl_vars['oUser']->value->getProfileSex() != 'woman') {
                        ?>
 <?php 
                        echo $_smarty_tpl->tpl_vars['aLang']->value['stream_list_event_add_blog'];
                        ?>
 <?php 
                    } else {
                        ?>
 <?php 
                        echo $_smarty_tpl->tpl_vars['aLang']->value['stream_list_event_add_blog_female'];
                        ?>
 <?php 
                    }
                    ?>
 
				<a href="<?php 
                    echo $_smarty_tpl->tpl_vars['oTarget']->value->getUrlFull();
                    ?>
"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['oTarget']->value->getTitle(), ENT_QUOTES, 'UTF-8', true);
                    ?>
</a>
			<?php 
                } elseif ($_smarty_tpl->tpl_vars['oStreamEvent']->value->getEventType() == 'vote_blog') {
                    ?>
				<?php 
                    if ($_smarty_tpl->tpl_vars['oUser']->value->getProfileSex() != 'woman') {
                        ?>
 <?php 
                        echo $_smarty_tpl->tpl_vars['aLang']->value['stream_list_event_vote_blog'];
                        ?>
 <?php 
                    } else {
                        ?>
 <?php 
                        echo $_smarty_tpl->tpl_vars['aLang']->value['stream_list_event_vote_blog_female'];
                        ?>
 <?php 
                    }
                    ?>
 
				<a href="<?php 
                    echo $_smarty_tpl->tpl_vars['oTarget']->value->getUrlFull();
                    ?>
"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['oTarget']->value->getTitle(), ENT_QUOTES, 'UTF-8', true);
                    ?>
</a>
			<?php 
                } elseif ($_smarty_tpl->tpl_vars['oStreamEvent']->value->getEventType() == 'vote_topic') {
                    ?>
				<?php 
                    if ($_smarty_tpl->tpl_vars['oUser']->value->getProfileSex() != 'woman') {
                        ?>
 <?php 
                        echo $_smarty_tpl->tpl_vars['aLang']->value['stream_list_event_vote_topic'];
                        ?>
 <?php 
                    } else {
                        ?>
 <?php 
                        echo $_smarty_tpl->tpl_vars['aLang']->value['stream_list_event_vote_topic_female'];
                        ?>
 <?php 
                    }
                    ?>
 
				<a href="<?php 
                    echo $_smarty_tpl->tpl_vars['oTarget']->value->getUrl();
                    ?>
"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['oTarget']->value->getTitle(), ENT_QUOTES, 'UTF-8', true);
                    ?>
</a>
			<?php 
                } elseif ($_smarty_tpl->tpl_vars['oStreamEvent']->value->getEventType() == 'vote_comment') {
                    ?>
				<?php 
                    if ($_smarty_tpl->tpl_vars['oUser']->value->getProfileSex() != 'woman') {
                        ?>
 <?php 
                        echo $_smarty_tpl->tpl_vars['aLang']->value['stream_list_event_vote_comment'];
                        ?>
 <?php 
                    } else {
                        ?>
 <?php 
                        echo $_smarty_tpl->tpl_vars['aLang']->value['stream_list_event_vote_comment_female'];
                        ?>
 <?php 
                    }
                    ?>
 
				<a href="<?php 
                    echo $_smarty_tpl->tpl_vars['oTarget']->value->getTarget()->getUrl();
                    ?>
#comment<?php 
                    echo $_smarty_tpl->tpl_vars['oTarget']->value->getId();
                    ?>
"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['oTarget']->value->getTarget()->getTitle(), ENT_QUOTES, 'UTF-8', true);
                    ?>
</a>
			<?php 
                } elseif ($_smarty_tpl->tpl_vars['oStreamEvent']->value->getEventType() == 'vote_user') {
                    ?>
				<?php 
                    if ($_smarty_tpl->tpl_vars['oUser']->value->getProfileSex() != 'woman') {
                        ?>
 <?php 
                        echo $_smarty_tpl->tpl_vars['aLang']->value['stream_list_event_vote_user'];
                        ?>
 <?php 
                    } else {
                        ?>
 <?php 
                        echo $_smarty_tpl->tpl_vars['aLang']->value['stream_list_event_vote_user_female'];
                        ?>
 <?php 
                    }
                    ?>
 
				<span class="user-avatar user-avatar-n">
					<a href="<?php 
                    echo $_smarty_tpl->tpl_vars['oTarget']->value->getUserWebPath();
                    ?>
"><img src="<?php 
                    echo $_smarty_tpl->tpl_vars['oTarget']->value->getProfileAvatarPath(24);
                    ?>
" alt="avatar" /></a>
					<a href="<?php 
                    echo $_smarty_tpl->tpl_vars['oTarget']->value->getUserWebPath();
                    ?>
"><?php 
                    echo $_smarty_tpl->tpl_vars['oTarget']->value->getLogin();
                    ?>
</a>
				</span>
			<?php 
                } elseif ($_smarty_tpl->tpl_vars['oStreamEvent']->value->getEventType() == 'join_blog') {
                    ?>
				<?php 
                    if ($_smarty_tpl->tpl_vars['oUser']->value->getProfileSex() != 'woman') {
                        ?>
 <?php 
                        echo $_smarty_tpl->tpl_vars['aLang']->value['stream_list_event_join_blog'];
                        ?>
 <?php 
                    } else {
                        ?>
 <?php 
                        echo $_smarty_tpl->tpl_vars['aLang']->value['stream_list_event_join_blog_female'];
                        ?>
 <?php 
                    }
                    ?>
 
				<a href="<?php 
                    echo $_smarty_tpl->tpl_vars['oTarget']->value->getUrlFull();
                    ?>
"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['oTarget']->value->getTitle(), ENT_QUOTES, 'UTF-8', true);
                    ?>
</a>
			<?php 
                } elseif ($_smarty_tpl->tpl_vars['oStreamEvent']->value->getEventType() == 'add_friend') {
                    ?>
				<?php 
                    if ($_smarty_tpl->tpl_vars['oUser']->value->getProfileSex() != 'woman') {
                        ?>
 <?php 
                        echo $_smarty_tpl->tpl_vars['aLang']->value['stream_list_event_add_friend'];
                        ?>
 <?php 
                    } else {
                        ?>
 <?php 
                        echo $_smarty_tpl->tpl_vars['aLang']->value['stream_list_event_add_friend_female'];
                        ?>
 <?php 
                    }
                    ?>
				<span class="user-avatar user-avatar-n">
					<a href="<?php 
                    echo $_smarty_tpl->tpl_vars['oTarget']->value->getUserWebPath();
                    ?>
"><img src="<?php 
                    echo $_smarty_tpl->tpl_vars['oTarget']->value->getProfileAvatarPath(24);
                    ?>
" alt="avatar" /></a>
					<a href="<?php 
                    echo $_smarty_tpl->tpl_vars['oTarget']->value->getUserWebPath();
                    ?>
"><?php 
                    echo $_smarty_tpl->tpl_vars['oTarget']->value->getLogin();
                    ?>
</a>
				</span>
			<?php 
                } elseif ($_smarty_tpl->tpl_vars['oStreamEvent']->value->getEventType() == 'add_wall') {
                    ?>
				<?php 
                    if ($_smarty_tpl->tpl_vars['oUser']->value->getProfileSex() != 'woman') {
                        ?>
 <?php 
                        echo $_smarty_tpl->tpl_vars['aLang']->value['stream_list_event_add_wall'];
                        ?>
 <?php 
                    } else {
                        ?>
 <?php 
                        echo $_smarty_tpl->tpl_vars['aLang']->value['stream_list_event_add_wall_female'];
                        ?>
 <?php 
                    }
                    ?>
				<span class="user-avatar user-avatar-n">
					<a href="<?php 
                    echo $_smarty_tpl->tpl_vars['oTarget']->value->getWallUser()->getUserWebPath();
                    ?>
"><img src="<?php 
                    echo $_smarty_tpl->tpl_vars['oTarget']->value->getWallUser()->getProfileAvatarPath(24);
                    ?>
" alt="avatar" /></a>
					<a href="<?php 
                    echo $_smarty_tpl->tpl_vars['oTarget']->value->getUrlWall();
                    ?>
"><?php 
                    echo $_smarty_tpl->tpl_vars['oTarget']->value->getWallUser()->getLogin();
                    ?>
</a>
				</span>
				<?php 
                    $_smarty_tpl->tpl_vars['sTextEvent'] = new Smarty_variable(smarty_modifier_truncate(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['oTarget']->value->getText()), 200), null, 0);
                    ?>
				<?php 
                    if (trim($_smarty_tpl->tpl_vars['sTextEvent']->value)) {
                        ?>
					<div class="stream-comment-preview"><?php 
                        echo $_smarty_tpl->tpl_vars['sTextEvent']->value;
                        ?>
</div>
				<?php 
                    }
                    ?>
			<?php 
                } else {
                    ?>
				<?php 
                    echo smarty_function_hook(array('run' => "stream_list_event_" . $_smarty_tpl->tpl_vars['oStreamEvent']->value->getEventType(), 'oStreamEvent' => $_smarty_tpl->tpl_vars['oStreamEvent']->value), $_smarty_tpl);
                    ?>

			<?php 
                }
                ?>
		</li>
	<?php 
            }
            ?>


	<script type="text/javascript">
		jQuery(document).ready(function($){
			ls.stream.dateLast = <?php 
            echo smarty_function_json(array('var' => $_smarty_tpl->tpl_vars['sDateLast']->value), $_smarty_tpl);
            ?>
;
		});
	</script>
<?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 
    }
		<?php 
    echo smarty_function_translate(array('text' => '_or'), $this);
    ?>

		<a class="cancel" href="#"><?php 
    echo smarty_function_translate(array('text' => '_cancel'), $this);
    ?>
</a>
	</fieldset>

	<script type="text/javascript">
		var editor = Backend.Product.Editor.prototype.getInstance(<?php 
    echo $this->_tpl_vars['product']['ID'];
    ?>
, true, <?php 
    echo smarty_function_json(array('array' => $this->_tpl_vars['path']), $this);
    ?>
, <?php 
    echo $this->_tpl_vars['counters'];
    ?>
);
		new Backend.ThemePreview($('productThemePreview_<?php 
    echo $this->_tpl_vars['product']['ID'];
    ?>
'), $('productTheme_<?php 
    echo $this->_tpl_vars['product']['ID'];
    ?>
'));
				var qp=$("quantityPricingViewPort_<?php 
    echo $this->_tpl_vars['product']['ID'];
    ?>
</div>
	<script type="text/javascript">
		var checkout = new Frontend.OnePageCheckout({OPC_SHOW_CART: <?php 
echo is_array($_tmp = 'OPC_SHOW_CART') ? $this->_run_mod_handler('config', true, $_tmp) : $this->_plugins['modifier']['config'][0][0]->config($_tmp);
?>
});
		checkout.updateCompletedSteps(<?php 
echo smarty_function_json(array('array' => $this->_tpl_vars['completedSteps']), $this);
?>
);
		checkout.updateEditableSteps(<?php 
echo smarty_function_json(array('array' => $this->_tpl_vars['editableSteps']), $this);
?>
);
		Observer.process('order', <?php 
echo smarty_function_json(array('array' => $this->_tpl_vars['orderValues']), $this);
?>
);
<?php 
echo '
		new User.ShippingFormToggler($(\'sameAsShipping\'), $(\'billingAddressForm\'));
		new User.ShippingFormToggler($(\'sameAsShipping\'), $(\'checkout-billing\').down(\'.addressSelector\'));
	</script>
';
?>


<?php 
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "custom:layout/frontend/footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
					<br />
				</div>
			<?php 
}
?>

			<div class="updateMenuContainer"></div>
		</div>

	</div>
</li>

<script type="text/javascript">
	$('<?php 
echo $this->_tpl_vars['module']['path'];
?>
').repo = { repo: <?php 
echo smarty_function_json(array('array' => $this->_tpl_vars['module']['repo']['repo']), $this);
?>
, handshake: <?php 
echo smarty_function_json(array('array' => $this->_tpl_vars['module']['repo']['handshake']), $this);
?>
 };
	$('<?php 
echo $this->_tpl_vars['module']['path'];
?>
').version = <?php 
echo smarty_function_json(array('array' => $this->_tpl_vars['module']['Module']['version']), $this);
?>
;
</script>
				<a href="<?php 
echo smarty_function_link(array('controller' => "backend.discount", 'action' => 'edit', 'id' => '_id_'), $this);
?>
"}"></a>
				<span class="tabHelp">products</span>
			</li>
		</ul>
	</div>
	<div class="sectionContainer maxHeight h--50"></div>

	<?php 
echo '
	<script type="text/javascript">
		Backend.Discount.Editor.prototype.Links.add = Backend.Router.createUrl(\'backend.discount\', \'add\');
		Backend.Discount.Action.prototype.itemActions = ';
echo smarty_function_json(array('array' => $this->_tpl_vars['itemActions']), $this);
echo ';
		Event.observe($("cancel_user_edit"), "click", function(e) {
			Event.stop(e);
			var editor = Backend.Discount.Editor.prototype.getInstance(Backend.Discount.Editor.prototype.getCurrentId(), false);
			editor.cancelForm();
		});
	</script>
	';
?>

</div>

<div id="conditionTemplate">
	<?php 
$this->_tag_stack[] = array('form', array('handle' => $this->_tpl_vars['conditionForm']));
    function content_5684d6e3bfbb96_14975855($_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_lang_load')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.lang_load.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;
        ?>
">


	<!-- Mobile viewport optimization h5bp.com/ad -->
	<meta name="HandheldFriendly" content="True">
	<meta name="MobileOptimized" content="320">
	<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=yes" name="viewport">

	<!-- Mobile IE allows us to activate ClearType technology for smoothing fonts for easy reading -->
	<meta http-equiv="cleartype" content="on">

<script async src="<?php 
        echo smarty_function_cfg(array('name' => "path.static.skin"), $_smarty_tpl);
        ?>
/js/spoiler.js"></script>
	<?php 
        echo $_smarty_tpl->tpl_vars['aHtmlHeadFiles']->value['css'];
        ?>

	<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.css">
	<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,600italic,700,700italic&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);
        ?>
');
		ls.lang.load(<?php 
        echo smarty_function_lang_load(array('name' => "nav_select_item"), $_smarty_tpl);
        ?>
);
	</script>
	<?php 
        echo smarty_function_hook(array('run' => 'html_head_end'), $_smarty_tpl);
        ?>

	<style>
	    #header { position: fixed; min-width: 320px; max-width: 640px; width: 100%; z-index: 200; background: #5c6bc0; }
	    #write, #search { position: fixed; top: 44px; z-index: 200; }
	</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);
        }
        ?>


<body class="<?php 
        echo $_smarty_tpl->tpl_vars['body_classes']->value;
        ?>
">
	<?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_favourite_form_tags.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
            ?>

	<?php 
        }
        ?>
	

	<div id="container" class="<?php 
        echo smarty_function_hook(array('run' => 'container_class'), $_smarty_tpl);
        ?>
">
		<?php 
        if ($_smarty_tpl->tpl_vars['oUserCurrent']->value) {
            ?>
			<?php 
            echo $_smarty_tpl->getSubTemplate('userbar_menu.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
            ?>

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

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


			<div id="content" role="main" 
				class="<?php 
        if ($_smarty_tpl->tpl_vars['noBg']->value) {
            ?>
no-bg<?php 
        }
        ?>
 
				       <?php 
        if ($_smarty_tpl->tpl_vars['aPaging']->value && $_smarty_tpl->tpl_vars['aPaging']->value['iCountPage'] > 1 && !$_smarty_tpl->tpl_vars['noBg']->value) {
            ?>
multipage<?php 
        }
        ?>
					   <?php 
        if ($_smarty_tpl->tpl_vars['sidebarPosition']->value == 'left') {
            ?>
content-right<?php 
        }
        ?>
 <?php 
        echo smarty_function_hook(array('run' => 'wrapper_class'), $_smarty_tpl);
        ?>
"
				<?php 
        if ($_smarty_tpl->tpl_vars['sMenuItemSelect']->value == 'profile') {
            ?>
itemscope itemtype="http://data-vocabulary.org/Person"<?php 
        }
        ?>
>
				
				
				<?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);
    }