/**
 * Показывает блоки определенно группы
 *
 * @param unknown_type $params
 * @param unknown_type $smarty
 * @return unknown
 */
function smarty_function_show_blocks($aParams, &$oSmarty)
{
    if (!array_key_exists('group', $aParams)) {
        trigger_error("show_blocks: missing 'group' parameter", E_USER_WARNING);
        return;
    }
    $sGroup = $aParams['group'];
    $aBlocks = Engine::getInstance()->Viewer_GetBlocks(true);
    $sResult = '';
    if (isset($aBlocks[$sGroup]) and is_array($aBlocks[$sGroup])) {
        $oSmarty->loadPlugin('smarty_insert_block');
        foreach ($aBlocks[$sGroup] as $aBlock) {
            if ($aBlock['type'] == 'block') {
                $sResult .= smarty_insert_block(array('block' => $aBlock['name'], 'params' => isset($aBlock['params']) ? $aBlock['params'] : array()), $oSmarty);
            } elseif ($aBlock['type'] == 'template') {
                $sResult .= $oSmarty->getSubTemplate($aBlock['name'], $oSmarty->cache_id, $oSmarty->compile_id, null, null, array('params' => isset($aBlock['params']) ? $aBlock['params'] : array()), Smarty::SCOPE_LOCAL);
            }
        }
    }
    if (!empty($aParams['assign'])) {
        $oSmarty->assign($aParams['assign'], $sResult);
    } else {
        return $sResult;
    }
}
    function content_5684d6cb1d6478_54516335($_smarty_tpl)
    {
        if (!is_callable('smarty_function_get_blocks')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/function.get_blocks.php';
        }
        if (!is_callable('smarty_insert_block')) {
            include '/var/www/bunker//engine/modules/viewer/plugs/insert.block.php';
        }
        echo smarty_function_get_blocks(array('assign' => 'aBlocksLoad'), $_smarty_tpl);
        ?>


<?php 
        if (isset($_smarty_tpl->tpl_vars['aBlocksLoad']->value[$_smarty_tpl->tpl_vars['group']->value])) {
            ?>
	<?php 
            $_smarty_tpl->tpl_vars['aBlock'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['aBlock']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['aBlocksLoad']->value[$_smarty_tpl->tpl_vars['group']->value];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['aBlock']->key => $_smarty_tpl->tpl_vars['aBlock']->value) {
                $_smarty_tpl->tpl_vars['aBlock']->_loop = true;
                ?>
		<?php 
                if ($_smarty_tpl->tpl_vars['aBlock']->value['type'] == 'block') {
                    ?>
			<?php 
                    echo smarty_insert_block(array('block' => $_smarty_tpl->tpl_vars['aBlock']->value['name'], 'params' => $_smarty_tpl->tpl_vars['aBlock']->value['params']), $_smarty_tpl);
                    ?>

		<?php 
                }
                ?>
		<?php 
                if ($_smarty_tpl->tpl_vars['aBlock']->value['type'] == 'template') {
                    ?>
			<?php 
                    echo $_smarty_tpl->getSubTemplate($_smarty_tpl->tpl_vars['aBlock']->value['name'], $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('params' => $_smarty_tpl->tpl_vars['aBlock']->value['params']), 0);
                    ?>

		<?php 
                }
                ?>
	<?php 
            }
        }
    }
    function content_568a8b56a4ed46_19699351($_smarty_tpl)
    {
        if (!is_callable('smarty_function_get_blocks')) {
            include 'D:\\OpenServer\\domains\\kprf.dev\\www/engine/modules/viewer/plugs\\function.get_blocks.php';
        }
        if (!is_callable('smarty_insert_block')) {
            include 'D:\\OpenServer\\domains\\kprf.dev\\www/engine/modules/viewer/plugs\\insert.block.php';
        }
        echo smarty_function_get_blocks(array('assign' => 'aBlocksLoad'), $_smarty_tpl);
        ?>


<?php 
        if (isset($_smarty_tpl->tpl_vars['aBlocksLoad']->value[$_smarty_tpl->tpl_vars['group']->value])) {
            ?>
	<?php 
            $_smarty_tpl->tpl_vars['aBlock'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['aBlock']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['aBlocksLoad']->value[$_smarty_tpl->tpl_vars['group']->value];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['aBlock']->key => $_smarty_tpl->tpl_vars['aBlock']->value) {
                $_smarty_tpl->tpl_vars['aBlock']->_loop = true;
                ?>
		<?php 
                if ($_smarty_tpl->tpl_vars['aBlock']->value['type'] == 'block') {
                    ?>
			<?php 
                    echo smarty_insert_block(array('block' => $_smarty_tpl->tpl_vars['aBlock']->value['name'], 'params' => $_smarty_tpl->tpl_vars['aBlock']->value['params']), $_smarty_tpl);
                    ?>

		<?php 
                }
                ?>
		<?php 
                if ($_smarty_tpl->tpl_vars['aBlock']->value['type'] == 'template') {
                    ?>
			<?php 
                    echo $_smarty_tpl->getSubTemplate($_smarty_tpl->tpl_vars['aBlock']->value['name'], $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('params' => $_smarty_tpl->tpl_vars['aBlock']->value['params']), 0);
                    ?>

		<?php 
                }
                ?>
	<?php 
            }
        }
    }
    function content_559c873b5a4f87_09003855($_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_insert_block')) {
            include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/insert.block.php';
        }
        echo smarty_function_hook(array('run' => 'people_sidebar_begin'), $_smarty_tpl);
        ?>

<section class="block">
	<header class="block-header">
		<h3><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['user_stats'];
        ?>
</h3>
	</header>
	
	
	<div class="block-content">
		<ul>
			<li><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['user_stats_all'];
        ?>
: <strong><?php 
        echo $_smarty_tpl->tpl_vars['aStat']->value['count_all'];
        ?>
</strong></li>
			<li><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['user_stats_active'];
        ?>
: <strong><?php 
        echo $_smarty_tpl->tpl_vars['aStat']->value['count_active'];
        ?>
</strong></li>
			<li><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['user_stats_noactive'];
        ?>
: <strong><?php 
        echo $_smarty_tpl->tpl_vars['aStat']->value['count_inactive'];
        ?>
</strong></li>
		</ul>
		
		<br />
		
		<ul>
			<li><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['user_stats_sex_man'];
        ?>
: <strong><?php 
        echo $_smarty_tpl->tpl_vars['aStat']->value['count_sex_man'];
        ?>
</strong></li>
			<li><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['user_stats_sex_woman'];
        ?>
: <strong><?php 
        echo $_smarty_tpl->tpl_vars['aStat']->value['count_sex_woman'];
        ?>
</strong></li>
			<li><?php 
        echo $_smarty_tpl->tpl_vars['aLang']->value['user_stats_sex_other'];
        ?>
: <strong><?php 
        echo $_smarty_tpl->tpl_vars['aStat']->value['count_sex_other'];
        ?>
</strong></li>
		</ul>
	</div>
</section>


<?php 
        echo smarty_insert_block(array('block' => 'tagsCountry'), $_smarty_tpl);
        ?>

<?php 
        echo smarty_insert_block(array('block' => 'tagsCity'), $_smarty_tpl);
        ?>


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