/**
 * Render object subscribers
 *
 * @param array $params
 * @param Smarty $smarty
 * @return string
 */
function smarty_function_object_subscriptions($params, &$smarty)
{
    $object = array_var($params, 'object');
    if (!instance_of($object, 'ProjectObject')) {
        return new InvalidParamError('object', $object, '$object is expected to be an instance of ProjectObject class', true);
    }
    // if
    js_assign('max_subscribers_count', MAX_SUBSCRIBERS_COUNT);
    require_once SYSTEM_MODULE_PATH . '/helpers/function.user_link.php';
    $subscribers = $object->getSubscribers();
    if (count($subscribers) > MAX_SUBSCRIBERS_COUNT) {
        $smarty->assign(array('_object_subscriptions_list_subscribers' => false, '_object_subscriptions_object' => $object, '_object_subscriptions_subscribers_count' => count($subscribers), '_object_subscription_brief' => array_var($params, 'brief', false), '_object_subscriptions_popup_url' => assemble_url('object_subscribers_widget', array('object_id' => $object->getId()))));
    } else {
        $links = null;
        if (is_foreachable($subscribers)) {
            $links = array();
            foreach ($subscribers as $subscriber) {
                $links[] = smarty_function_user_link(array('user' => $subscriber), $smarty);
            }
            // foreach
        }
        // if
        $smarty->assign(array('_object_subscriptions_list_subscribers' => true, '_object_subscriptions' => $subscribers, '_object_subscriptions_object' => $object, '_object_subscription_links' => $links, '_object_subscription_brief' => array_var($params, 'brief', false), '_object_subscriptions_popup_url' => assemble_url('object_subscribers_widget', array('object_id' => $object->getId()))));
    }
    // if
    return $smarty->fetch(get_template_path('_object_subscriptions', 'subscriptions', RESOURCES_MODULE));
}
/**
 * Add sidebars to project overview page
 *
 * @param array $sidebars
 * @param Project $project
 * @param User $user
 * @return null
 */
function system_handle_on_project_overview_sidebars(&$sidebars, &$project, &$user)
{
    // only project leader, system administrators and project manages can see last activity
    $can_see_last_activity = $user->isProjectLeader($project) || $user->isAdministrator() || $user->isProjectManager();
    $project_users = $project->getUsers();
    if (is_foreachable($project_users)) {
        $smarty =& Smarty::instance();
        require_once SYSTEM_MODULE_PATH . '/helpers/function.user_link.php';
        require_once SMARTY_PATH . '/plugins/modifier.ago.php';
        $output = '';
        $sorted_users = Users::groupByCompany($project_users);
        foreach ($sorted_users as $sorted_user) {
            $company = $sorted_user['company'];
            $users = $sorted_user['users'];
            if (is_foreachable($users)) {
                $output .= '<h3><a href="' . $company->getViewUrl() . '">' . clean($company->getName()) . '</a></h3>';
                $output .= '<ul class="company_users">';
                foreach ($users as $current_user) {
                    $last_seen = '';
                    if ($can_see_last_activity && $user->getId() != $current_user->getId()) {
                        $last_seen = smarty_modifier_ago($current_user->getLastActivityOn());
                    }
                    // if
                    $output .= '<li><span class="icon_holder"><img src="' . $current_user->getAvatarUrl() . '" /></span> ' . smarty_function_user_link(array('user' => $current_user), $smarty) . ' ' . $last_seen . '</li>';
                }
                // foreach
                $output .= '</ul>';
            }
            // if
        }
        // foreach
        $sidebars[] = array('label' => lang('People on This Project'), 'is_important' => false, 'id' => 'project_people', 'body' => $output);
    }
    // if
}
    function content_55b27435ea9f66_79945606($_smarty_tpl)
    {
        if (!is_callable('smarty_block_script')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/block.script.php';
        }
        if (!is_callable('smarty_block_style')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/block.style.php';
        }
        if (!is_callable('smarty_function_text')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.text.php';
        }
        if (!is_callable('smarty_function_cycle')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_libraries/smarty3/plugins/function.cycle.php';
        }
        if (!is_callable('smarty_function_decorator')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.decorator.php';
        }
        if (!is_callable('smarty_function_user_link')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.user_link.php';
        }
        if (!is_callable('smarty_function_age')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.age.php';
        }
        if (!is_callable('smarty_function_format_date')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.format_date.php';
        }
        if (!is_callable('smarty_block_block_decorator')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/block.block_decorator.php';
        }
        $_smarty_tpl->smarty->_tag_stack[] = array('script', array());
        $_block_repeat = true;
        echo smarty_block_script(array(), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

	<?php 
            $_smarty_tpl->tpl_vars['btn'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['btn']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['buttons']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['btn']->key => $_smarty_tpl->tpl_vars['btn']->value) {
                $_smarty_tpl->tpl_vars['btn']->_loop = true;
                ?>
	   <?php 
                if (!empty($_smarty_tpl->tpl_vars['btn']->value['js'])) {
                    ?>
	       <?php 
                    echo $_smarty_tpl->tpl_vars['btn']->value['js'];
                    ?>

	   <?php 
                }
                ?>
	<?php 
            }
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_script(array(), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>


<?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('style', array());
        $_block_repeat = true;
        echo smarty_block_style(array(), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>


    .user_list_thumb {
        width: 55px;
        height: 45px;
    }
    
    .user_list_thumb img {
        width: 45px;
        height: 45px;
    }
    
    #user-list-form .ow_lbutton {
        cursor: default;
    }

<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_style(array(), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>


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

<?php 
            if (isset($_smarty_tpl->tpl_vars['search']->value)) {
                ?>
    <div class="ow_anno ow_std_margin ow_nocontent"><?php 
                echo smarty_function_text(array('key' => "admin+user_search_result", 'for' => $_smarty_tpl->tpl_vars['search']->value), $_smarty_tpl);
                ?>
</div>
<?php 
            }
            ?>

<div class="clearfix ow_smallmargin">
    <div class="ow_left"><?php 
            echo $_smarty_tpl->tpl_vars['paging']->value;
            ?>
</div>
    <?php 
            if ($_smarty_tpl->tpl_vars['total']->value) {
                ?>
<div class="ow_right"><?php 
                echo smarty_function_text(array('key' => 'admin+found_users', 'count' => $_smarty_tpl->tpl_vars['total']->value), $_smarty_tpl);
                ?>
</div><?php 
            }
            ?>
</div>

<form id="user-list-form" method="post" action="<?php 
            if ($_smarty_tpl->tpl_vars['action']->value) {
                echo $_smarty_tpl->tpl_vars['action']->value;
            }
            ?>
">
<table class="ow_table_2">
<tr class="ow_tr_first">
    <th width="1"></td>
    <th><?php 
            echo smarty_function_text(array('key' => 'admin+user'), $_smarty_tpl);
            ?>
</th>
    <th><?php 
            echo smarty_function_text(array('key' => 'admin+user_status'), $_smarty_tpl);
            ?>
</th>
    <th><?php 
            echo smarty_function_text(array('key' => 'admin+joined'), $_smarty_tpl);
            ?>
</th>
</tr>
<?php 
            $_smarty_tpl->tpl_vars['user'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['user']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['users']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['user']->key => $_smarty_tpl->tpl_vars['user']->value) {
                $_smarty_tpl->tpl_vars['user']->_loop = true;
                ?>
    <?php 
                $_smarty_tpl->_capture_stack[0][] = array('default', 'userId', null);
                ob_start();
                echo $_smarty_tpl->tpl_vars['user']->value->id;
                list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                if (!empty($_capture_buffer)) {
                    if (isset($_capture_assign)) {
                        $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                    }
                    if (isset($_capture_append)) {
                        $_smarty_tpl->append($_capture_append, ob_get_contents());
                    }
                    Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                } else {
                    $_smarty_tpl->capture_error();
                }
                ?>
    <?php 
                $_smarty_tpl->_capture_stack[0][] = array('default', 'username', null);
                ob_start();
                echo $_smarty_tpl->tpl_vars['userNameList']->value[$_smarty_tpl->tpl_vars['userId']->value];
                list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                if (!empty($_capture_buffer)) {
                    if (isset($_capture_assign)) {
                        $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                    }
                    if (isset($_capture_append)) {
                        $_smarty_tpl->append($_capture_append, ob_get_contents());
                    }
                    Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                } else {
                    $_smarty_tpl->capture_error();
                }
                ?>
    <tr class="<?php 
                echo smarty_function_cycle(array('values' => 'ow_alt1,ow_alt2'), $_smarty_tpl);
                ?>
">
        <td><?php 
                if (!in_array($_smarty_tpl->tpl_vars['user']->value->id, $_smarty_tpl->tpl_vars['adminList']->value)) {
                    ?>
<input type="checkbox" value="<?php 
                    echo $_smarty_tpl->tpl_vars['user']->value->id;
                    ?>
" name="users[<?php 
                    echo $_smarty_tpl->tpl_vars['user']->value->id;
                    ?>
]" /><?php 
                }
                ?>
</td>
        <td>
            <div class="clearfix">
                <div class="ow_left ow_txtleft user_list_thumb"><?php 
                echo smarty_function_decorator(array('name' => 'avatar_item', 'data' => $_smarty_tpl->tpl_vars['avatars']->value[$_smarty_tpl->tpl_vars['userId']->value]), $_smarty_tpl);
                ?>
</div>
                <div class="ow_left ow_txtleft">
                    <?php 
                echo smarty_function_user_link(array('name' => $_smarty_tpl->tpl_vars['avatars']->value[$_smarty_tpl->tpl_vars['userId']->value]['title'], 'username' => $_smarty_tpl->tpl_vars['userNameList']->value[$_smarty_tpl->tpl_vars['userId']->value]), $_smarty_tpl);
                ?>
<br />
                    <span class="ow_small">
                    <?php 
                if (!empty($_smarty_tpl->tpl_vars['sexList']->value[$_smarty_tpl->tpl_vars['userId']->value])) {
                    ?>
                        <?php 
                    echo $_smarty_tpl->tpl_vars['sexList']->value[$_smarty_tpl->tpl_vars['userId']->value];
                    ?>

                    <?php 
                }
                ?>
                    <?php 
                if (!empty($_smarty_tpl->tpl_vars['questionList']->value[$_smarty_tpl->tpl_vars['userId']->value]['birthdate'])) {
                    ?>
                        <?php 
                    echo smarty_function_age(array('dateTime' => $_smarty_tpl->tpl_vars['questionList']->value[$_smarty_tpl->tpl_vars['userId']->value]['birthdate']), $_smarty_tpl);
                    ?>

                    <?php 
                }
                ?>
                    <?php 
                if (!empty($_smarty_tpl->tpl_vars['sexList']->value[$_smarty_tpl->tpl_vars['userId']->value]) || !empty($_smarty_tpl->tpl_vars['questionList']->value[$_smarty_tpl->tpl_vars['userId']->value]['birthdate'])) {
                    ?>
<br /><?php 
                }
                ?>
                    <?php 
                if (!empty($_smarty_tpl->tpl_vars['questionList']->value[$_smarty_tpl->tpl_vars['userId']->value]['email'])) {
                    ?>
                        <span class="ow_remark"><?php 
                    echo $_smarty_tpl->tpl_vars['questionList']->value[$_smarty_tpl->tpl_vars['userId']->value]['email'];
                    ?>
</span>
                    <?php 
                }
                ?>
                    </span>
                    <?php 
                if ($_smarty_tpl->tpl_vars['onlineStatus']->value) {
                    ?>
                    <div class="ow_small">
                        <?php 
                    if (!empty($_smarty_tpl->tpl_vars['onlineStatus']->value[$_smarty_tpl->tpl_vars['userId']->value]) && $_smarty_tpl->tpl_vars['onlineStatus']->value[$_smarty_tpl->tpl_vars['userId']->value]) {
                        ?>
                            <span class="ow_lbutton ow_green"><?php 
                        echo smarty_function_text(array('key' => 'base+activity_online'), $_smarty_tpl);
                        ?>
</span>
                        <?php 
                    } elseif ($_smarty_tpl->tpl_vars['user']->value->activityStamp) {
                        ?>
                            <?php 
                        echo smarty_function_text(array('key' => 'base+activity_stamp'), $_smarty_tpl);
                        ?>
 <span class="ow_remark"><?php 
                        echo smarty_function_format_date(array('timestamp' => $_smarty_tpl->tpl_vars['user']->value->activityStamp), $_smarty_tpl);
                        ?>
</span>
                        <?php 
                    }
                    ?>
                    </div>
                    <?php 
                }
                ?>
                </div>
            </div>
        </td>
        <td>
            <?php 
                if ($_smarty_tpl->tpl_vars['suspendedList']->value[$_smarty_tpl->tpl_vars['userId']->value]) {
                    ?>
<div><span class="ow_lbutton ow_red"><?php 
                    echo smarty_function_text(array('key' => 'admin+user_status_suspended'), $_smarty_tpl);
                    ?>
</span></div><?php 
                }
                ?>
            <?php 
                if ($_smarty_tpl->tpl_vars['unverifiedList']->value[$_smarty_tpl->tpl_vars['userId']->value]) {
                    ?>
<div><span class="ow_lbutton"><?php 
                    echo smarty_function_text(array('key' => 'admin+user_status_unverified'), $_smarty_tpl);
                    ?>
</span></div><?php 
                }
                ?>
            <?php 
                if ($_smarty_tpl->tpl_vars['unapprovedList']->value[$_smarty_tpl->tpl_vars['userId']->value]) {
                    ?>
<div><span class="ow_lbutton"><?php 
                    echo smarty_function_text(array('key' => 'admin+user_status_unapproved'), $_smarty_tpl);
                    ?>
</span></div><?php 
                }
                ?>
        </td>
        <td class="ow_small"><?php 
                if ($_smarty_tpl->tpl_vars['user']->value->joinStamp) {
                    echo smarty_function_format_date(array('timestamp' => $_smarty_tpl->tpl_vars['user']->value->joinStamp), $_smarty_tpl);
                }
                ?>
</td>
    </tr>
<?php 
            }
            ?>
<tr class="ow_alt1 ow_tr_last">
     <td><input type="checkbox" id="check-all" /></th>
     <td colspan="3" class="ow_txtleft">
         <?php 
            echo smarty_function_text(array('key' => 'base+check_all'), $_smarty_tpl);
            ?>
 | <?php 
            echo smarty_function_text(array('key' => 'base+with_selected'), $_smarty_tpl);
            ?>

         
         <?php 
            $_smarty_tpl->tpl_vars['btn'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['btn']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['buttons']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['btn']->key => $_smarty_tpl->tpl_vars['btn']->value) {
                $_smarty_tpl->tpl_vars['btn']->_loop = true;
                ?>
            <?php 
                echo smarty_function_decorator(array('name' => 'button_list_item', 'type' => 'submit', 'buttonName' => $_smarty_tpl->tpl_vars['btn']->value['name'], 'label' => $_smarty_tpl->tpl_vars['btn']->value['label'], 'id' => $_smarty_tpl->tpl_vars['btn']->value['id'], 'class' => $_smarty_tpl->tpl_vars['btn']->value['class']), $_smarty_tpl);
                ?>

         <?php 
            }
            ?>
     </td>
</tr>
</table>

<div class="ow_hidden" id="delete-user-confirm">
<div class="ow_stdmargin ow_center">
    <div class="ow_stdmargin">
        <?php 
            echo smarty_function_text(array('key' => "admin+confirm_delete_users"), $_smarty_tpl);
            ?>

    </div>
	
	<?php 
            echo smarty_function_decorator(array('name' => "button", 'type' => "submit", 'id' => "button-confirm-user-delete", 'class' => "ow_ic_delete ow_red", 'langLabel' => "base+delete_user_delete_button"), $_smarty_tpl);
            ?>

</div>
</div>

</form>

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


<?php 
        } else {
            ?>
    <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'addClass' => 'ow_stdmargin clearfix ow_italic ow_center'));
            $_block_repeat = true;
            echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin clearfix ow_italic ow_center'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

        <?php 
                echo smarty_function_text(array('key' => 'admin+no_users'), $_smarty_tpl);
                ?>

    <?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin clearfix ow_italic ow_center'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

<?php 
        }
    }
    function content_548e88169947f4_45065181($_smarty_tpl)
    {
        if (!is_callable('smarty_function_add_content')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.add_content.php';
        }
        if (!is_callable('smarty_block_style')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.style.php';
        }
        if (!is_callable('smarty_function_text')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.text.php';
        }
        if (!is_callable('smarty_function_cycle')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_libraries\\smarty3\\plugins\\function.cycle.php';
        }
        if (!is_callable('smarty_function_user_link')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.user_link.php';
        }
        if (!is_callable('smarty_function_format_date')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.format_date.php';
        }
        ?>
<div class="clearfix"><?php 
        echo smarty_function_add_content(array('key' => 'forum.add_content.list.top', 'listType' => 'section'), $_smarty_tpl);
        ?>
</div>

<?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('style', array());
        $_block_repeat = true;
        echo smarty_block_style(array(), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

 .ow_author { width: 25%; } 
<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_style(array(), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>


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

<div class="clearfix">
    <div class="ow_right ow_smallmargin">
        <?php 
        echo $_smarty_tpl->tpl_vars['search']->value;
        ?>

    </div>
</div>

<table class="ow_table_1 ow_stdmargin ow_forum">
    <?php 
        $_smarty_tpl->tpl_vars['section'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['section']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['sectionGroupList']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['section']->key => $_smarty_tpl->tpl_vars['section']->value) {
            $_smarty_tpl->tpl_vars['section']->_loop = true;
            ?>
    <tr class="ow_tr_first">
        <th class="ow_name"><span id="section-<?php 
            echo $_smarty_tpl->tpl_vars['section']->value['sectionId'];
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['section']->value['sectionName'];
            ?>
</span></th>
        <th class="ow_topics"><?php 
            echo smarty_function_text(array('key' => 'forum+topics'), $_smarty_tpl);
            ?>
</th>
        <th class="ow_replies"><?php 
            echo smarty_function_text(array('key' => 'forum+replies'), $_smarty_tpl);
            ?>
</th>
        <th class="ow_author"><?php 
            echo smarty_function_text(array('key' => 'forum+last_reply'), $_smarty_tpl);
            ?>
</th>
    </tr>

    <?php 
            $_smarty_tpl->tpl_vars['group'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['group']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['section']->value['groups'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['group']->total = $_smarty_tpl->_count($_from);
            $_smarty_tpl->tpl_vars['group']->iteration = 0;
            $_smarty_tpl->tpl_vars['group']->index = -1;
            foreach ($_from as $_smarty_tpl->tpl_vars['group']->key => $_smarty_tpl->tpl_vars['group']->value) {
                $_smarty_tpl->tpl_vars['group']->_loop = true;
                $_smarty_tpl->tpl_vars['group']->iteration++;
                $_smarty_tpl->tpl_vars['group']->index++;
                $_smarty_tpl->tpl_vars['group']->first = $_smarty_tpl->tpl_vars['group']->index === 0;
                $_smarty_tpl->tpl_vars['group']->last = $_smarty_tpl->tpl_vars['group']->iteration === $_smarty_tpl->tpl_vars['group']->total;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['g']['first'] = $_smarty_tpl->tpl_vars['group']->first;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['g']['last'] = $_smarty_tpl->tpl_vars['group']->last;
                ?>
    <tr class="<?php 
                echo smarty_function_cycle(array('values' => 'ow_alt1,ow_alt2', 'reset' => $_smarty_tpl->getVariable('smarty')->value['foreach']['g']['first']), $_smarty_tpl);
                ?>
 <?php 
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['g']['last']) {
                    ?>
ow_tr_last<?php 
                }
                ?>
">
        <td class="ow_name">
            <a href="<?php 
                echo $_smarty_tpl->tpl_vars['group']->value['groupUrl'];
                ?>
"><b><?php 
                echo $_smarty_tpl->tpl_vars['group']->value['name'];
                ?>
</b></a>
            <div class="ow_small"><?php 
                echo $_smarty_tpl->tpl_vars['group']->value['description'];
                ?>
</div>
            <?php 
                if ($_smarty_tpl->tpl_vars['group']->value['isPrivate']) {
                    ?>
            <span class="ow_lbutton ow_green"><?php 
                    echo smarty_function_text(array('key' => 'forum+is_private'), $_smarty_tpl);
                    ?>
</span>
            <span class="ow_small ow_remark"><?php 
                    echo smarty_function_text(array('key' => 'forum+visible_to'), $_smarty_tpl);
                    ?>
: <?php 
                    $_smarty_tpl->tpl_vars['r'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['r']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['group']->value['roles'];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    $_smarty_tpl->tpl_vars['r']->total = $_smarty_tpl->_count($_from);
                    $_smarty_tpl->tpl_vars['r']->iteration = 0;
                    foreach ($_from as $_smarty_tpl->tpl_vars['r']->key => $_smarty_tpl->tpl_vars['r']->value) {
                        $_smarty_tpl->tpl_vars['r']->_loop = true;
                        $_smarty_tpl->tpl_vars['r']->iteration++;
                        $_smarty_tpl->tpl_vars['r']->last = $_smarty_tpl->tpl_vars['r']->iteration === $_smarty_tpl->tpl_vars['r']->total;
                        $_smarty_tpl->tpl_vars['smarty']->value['foreach']['r']['last'] = $_smarty_tpl->tpl_vars['r']->last;
                        echo $_smarty_tpl->tpl_vars['r']->value;
                        if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['r']['last']) {
                            ?>
, <?php 
                        }
                    }
                    ?>
</span>
            <?php 
                }
                ?>
        </td>
        <td class="ow_topics"><?php 
                echo $_smarty_tpl->tpl_vars['group']->value['topicCount'];
                ?>
</td>
        <td class="ow_replies"><?php 
                echo $_smarty_tpl->tpl_vars['group']->value['replyCount'];
                ?>
</td>
        <td class="ow_txtleft ow_small">
            <?php 
                if (!empty($_smarty_tpl->tpl_vars['group']->value['lastReply'])) {
                    ?>
            <div class="ow_reply_info">
	            <span class="ow_nowrap ow_icon_control ow_ic_user">
	                <?php 
                    echo smarty_function_user_link(array('username' => $_smarty_tpl->tpl_vars['userNames']->value[$_smarty_tpl->tpl_vars['group']->value['lastReply']['userId']], 'name' => $_smarty_tpl->tpl_vars['displayNames']->value[$_smarty_tpl->tpl_vars['group']->value['lastReply']['userId']]), $_smarty_tpl);
                    ?>

	            </span> &middot;
                <span class="ow_nowrap ow_remark"><?php 
                    echo smarty_function_format_date(array('timestamp' => $_smarty_tpl->tpl_vars['group']->value['lastReply']['createStamp']), $_smarty_tpl);
                    ?>
</span>
            </div>
            <?php 
                    echo smarty_function_text(array('key' => 'forum+in'), $_smarty_tpl);
                    ?>
 <a href="<?php 
                    echo $_smarty_tpl->tpl_vars['group']->value['lastReply']['postUrl'];
                    ?>
"><?php 
                    echo $_smarty_tpl->tpl_vars['group']->value['lastReply']['title'];
                    ?>
</a>
            <?php 
                }
                ?>
        </td>
    </tr>
    <?php 
            }
            ?>

    <?php 
        }
        ?>
</table><?php 
    }
    function content_55d57521113ca2_10627056($_smarty_tpl)
    {
        if (!is_callable('smarty_function_decorator')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.decorator.php';
        }
        if (!is_callable('smarty_function_user_link')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.user_link.php';
        }
        ?>
<div class="ow_user_list_item clearfix<?php 
        if (isset($_smarty_tpl->tpl_vars['data']->value['set_class'])) {
            ?>
 <?php 
            echo $_smarty_tpl->tpl_vars['data']->value['set_class'];
        }
        ?>
"<?php 
        if (!empty($_smarty_tpl->tpl_vars['data']->value['contId'])) {
            ?>
 id="<?php 
            echo $_smarty_tpl->tpl_vars['data']->value['contId'];
            ?>
"<?php 
        }
        ?>
>

    <?php 
        if (!empty($_smarty_tpl->tpl_vars['data']->value['contextMenu'])) {
            ?>
        <div class="ow_uli_context_menu">
            <?php 
            echo $_smarty_tpl->tpl_vars['data']->value['contextMenu'];
            ?>

	</div>
    <?php 
        }
        ?>
    <div class="ow_user_list_picture">
        <?php 
        echo smarty_function_decorator(array('name' => 'avatar_item', 'data' => $_smarty_tpl->tpl_vars['data']->value['avatar']), $_smarty_tpl);
        ?>

    </div>
    <div class="ow_user_list_data">
        <?php 
        if (!empty($_smarty_tpl->tpl_vars['data']->value['userUrl'])) {
            ?>
        <a href="<?php 
            echo $_smarty_tpl->tpl_vars['data']->value['userUrl'];
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['data']->value['displayName'];
            ?>
</a>
        <?php 
        } else {
            ?>
            <?php 
            if (!empty($_smarty_tpl->tpl_vars['data']->value['noUserLink'])) {
                echo $_smarty_tpl->tpl_vars['data']->value['displayName'];
            } else {
                echo smarty_function_user_link(array('username' => $_smarty_tpl->tpl_vars['data']->value['username'], 'name' => $_smarty_tpl->tpl_vars['data']->value['displayName']), $_smarty_tpl);
            }
            ?>
        <?php 
        }
        ?>
        <div class="ow_small">
            <?php 
        if (!empty($_smarty_tpl->tpl_vars['data']->value['content'])) {
            ?>
<div class="ow_remark ow_user_list_content"><?php 
            echo $_smarty_tpl->tpl_vars['data']->value['content'];
            ?>
</div><?php 
        }
        ?>
            <?php 
        if (!empty($_smarty_tpl->tpl_vars['data']->value['fields'])) {
            echo $_smarty_tpl->tpl_vars['data']->value['fields'];
        }
        ?>
            <?php 
        if (!empty($_smarty_tpl->tpl_vars['data']->value['activity'])) {
            echo $_smarty_tpl->tpl_vars['data']->value['activity'];
        }
        ?>
        </div>
    </div>
        <?php 
        if (!empty($_smarty_tpl->tpl_vars['data']->value['toolbar'])) {
            ?>
			<?php 
            echo $_smarty_tpl->tpl_vars['data']->value['toolbar'];
            ?>

        <?php 
        }
        ?>
</div><?php 
    }
    function content_548e94bf1ed5c3_45507521($_smarty_tpl)
    {
        if (!is_callable('smarty_block_block_decorator')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.block_decorator.php';
        }
        if (!is_callable('smarty_function_add_content')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.add_content.php';
        }
        if (!is_callable('smarty_function_text')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.text.php';
        }
        if (!is_callable('smarty_function_user_link')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.user_link.php';
        }
        if (!is_callable('smarty_function_format_date')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.format_date.php';
        }
        if (!is_callable('smarty_function_url_for_route')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.url_for_route.php';
        }
        ?>
      	<div class="clearfix">
         	<div class="ow_superwide" style="float:left;">
         		<?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'type' => 'empty', 'toolbar' => $_smarty_tpl->tpl_vars['tb']->value, 'addClass' => "ow_stdmargin"));
        $_block_repeat = true;
        echo smarty_block_block_decorator(array('name' => 'box', 'type' => 'empty', 'toolbar' => $_smarty_tpl->tpl_vars['tb']->value, 'addClass' => "ow_stdmargin"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

					<div class="clearfix">
						<?php 
            echo $_smarty_tpl->tpl_vars['info']->value['dto']->post;
            ?>

					</div>
					<div class="ow_stdmargin"><center><br /><?php 
            echo $_smarty_tpl->tpl_vars['paging']->value;
            ?>
</center></div>
				<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_block_decorator(array('name' => 'box', 'type' => 'empty', 'toolbar' => $_smarty_tpl->tpl_vars['tb']->value, 'addClass' => "ow_stdmargin"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

                <?php 
        echo smarty_function_add_content(array('key' => 'socialsharing.get_sharing_buttons', 'title' => $_smarty_tpl->tpl_vars['info']->value['dto']->title, 'description' => $_smarty_tpl->tpl_vars['info']->value['dto']->post, 'entityType' => 'blogs', 'entityId' => $_smarty_tpl->tpl_vars['info']->value['dto']->id), $_smarty_tpl);
        ?>

                
                <?php 
        echo smarty_function_add_content(array('key' => 'blogs.blog_view.content.after_blog_post'), $_smarty_tpl);
        ?>


                <?php 
        if ($_smarty_tpl->tpl_vars['adjasentUrl']->value) {
            ?>
				<?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => "box", 'addClass' => "ow_stdmargin"));
            $_block_repeat = true;
            echo smarty_block_block_decorator(array('name' => "box", 'addClass' => "ow_stdmargin"), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

	                     <div class="clearfix">
	                        <div style="float:left;">
	                        	<?php 
                if (preg_match_all('/[^\\s]/u', $_smarty_tpl->tpl_vars['adjasentUrl']->value['prev'], $tmp) > 0) {
                    ?>
	                        		<a href="<?php 
                    echo $_smarty_tpl->tpl_vars['adjasentUrl']->value['prev'];
                    ?>
"><?php 
                    echo smarty_function_text(array('key' => "blogs+prev_post"), $_smarty_tpl);
                    ?>
</a> <span class="ow_ic_left_arrow" style="background-repeat: no-repeat;">&nbsp;&nbsp;&nbsp;&nbsp;</span>
	                        	<?php 
                }
                ?>
	                       	</div>
	                        <div style="float:right;">
	                        	<?php 
                if (preg_match_all('/[^\\s]/u', $_smarty_tpl->tpl_vars['adjasentUrl']->value['next'], $tmp) > 0) {
                    ?>
	                        		<span class="ow_ic_right_arrow" style="background-repeat: no-repeat;">&nbsp;&nbsp;&nbsp;&nbsp;</span> <a href="<?php 
                    echo $_smarty_tpl->tpl_vars['adjasentUrl']->value['next'];
                    ?>
"><?php 
                    echo smarty_function_text(array('key' => "blogs+next_post"), $_smarty_tpl);
                    ?>
</a>
	                        	<?php 
                }
                ?>
	                       	</div>
	                     </div>

	                     <center> <span class="ow_ic_up_arrow" style="background-repeat: no-repeat;">&nbsp;&nbsp;&nbsp;&nbsp;</span> <a href="<?php 
                echo $_smarty_tpl->tpl_vars['adjasentUrl']->value['index'];
                ?>
"><?php 
                echo smarty_function_text(array('key' => "blogs+blog_index"), $_smarty_tpl);
                ?>
</a></center>
				<?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_block_decorator(array('name' => "box", 'addClass' => "ow_stdmargin"), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

                <?php 
        }
        ?>

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


         	</div>

            <div class="ow_supernarrow" style="float:right;">
               <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => "box", 'addClass' => "ow_stdmargin", 'langLabel' => "blogs+post_title", 'iconClass' => "ow_ic_picture"));
        $_block_repeat = true;
        echo smarty_block_block_decorator(array('name' => "box", 'addClass' => "ow_stdmargin", 'langLabel' => "blogs+post_title", 'iconClass' => "ow_ic_picture"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

                  <table class="ow_table_3 ow_form ow_nomargin">
                     <tbody>
                     	<?php 
            if ($_smarty_tpl->tpl_vars['isAuthorExists']->value) {
                ?>
                        <tr class="ow_tr_first">
                           <td class="ow_label"><?php 
                echo smarty_function_text(array('key' => "blogs+by"), $_smarty_tpl);
                ?>
</td>
                           <td class="ow_value">
                           	<?php 
                echo smarty_function_user_link(array('name' => $_smarty_tpl->tpl_vars['displayname']->value, 'username' => $_smarty_tpl->tpl_vars['username']->value), $_smarty_tpl);
                ?>

                           </td>
                        </tr>
                        <?php 
            }
            ?>
                        <tr class="<?php 
            if (!$_smarty_tpl->tpl_vars['isAuthorExists']->value) {
                ?>
ow_tr_first<?php 
            }
            ?>
 ow_tr_last">
                           <td class="ow_label"><?php 
            echo smarty_function_text(array('key' => "blogs+added"), $_smarty_tpl);
            ?>
</td>
	                           <td class="ow_value"><?php 
            echo smarty_function_format_date(array('timestamp' => $_smarty_tpl->tpl_vars['info']->value['dto']->timestamp), $_smarty_tpl);
            ?>
</td>
                        </tr>
                     </tbody>
                  </table>
               <?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_block_decorator(array('name' => "box", 'addClass' => "ow_stdmargin", 'langLabel' => "blogs+post_title", 'iconClass' => "ow_ic_picture"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>


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


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

				<?php 
        if ($_smarty_tpl->tpl_vars['isAuthorExists']->value) {
            ?>
					<?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => "box", 'langLabel' => "blogs+blog_archive_lbl_archives", 'iconClass' => "ow_ic_clock"));
            $_block_repeat = true;
            echo smarty_block_block_decorator(array('name' => "box", 'langLabel' => "blogs+blog_archive_lbl_archives", 'iconClass' => "ow_ic_clock"), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

					<?php 
                $_smarty_tpl->tpl_vars["uname"] = new Smarty_variable($_smarty_tpl->tpl_vars['author']->value->getUsername(), null, 0);
                ?>
	                  <ul class="ow_regular">
	                  	<li><a href="<?php 
                echo smarty_function_url_for_route(array('for' => "user-blog:[user=>" . (string) $_smarty_tpl->tpl_vars['uname']->value . "]"), $_smarty_tpl);
                ?>
"><?php 
                echo smarty_function_text(array('key' => "base+all"), $_smarty_tpl);
                ?>
</a> </li>
	                  	<?php 
                $_smarty_tpl->tpl_vars['months'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['months']->_loop = false;
                $_smarty_tpl->tpl_vars['year'] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['archive']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['months']->key => $_smarty_tpl->tpl_vars['months']->value) {
                    $_smarty_tpl->tpl_vars['months']->_loop = true;
                    $_smarty_tpl->tpl_vars['year']->value = $_smarty_tpl->tpl_vars['months']->key;
                    ?>
	                  		<?php 
                    $_smarty_tpl->tpl_vars['month'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['month']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['months']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['month']->key => $_smarty_tpl->tpl_vars['month']->value) {
                        $_smarty_tpl->tpl_vars['month']->_loop = true;
                        ?>
	                  			<?php 
                        $_smarty_tpl->tpl_vars['u'] = new Smarty_variable($_smarty_tpl->tpl_vars['author']->value->getUsername(), null, 0);
                        ?>
	                  			<li>
	                  				<a href="<?php 
                        echo smarty_function_url_for_route(array('for' => "user-blog:[user=>" . (string) $_smarty_tpl->tpl_vars['u']->value . "]"), $_smarty_tpl);
                        ?>
?month=<?php 
                        echo $_smarty_tpl->tpl_vars['month']->value;
                        ?>
-<?php 
                        echo $_smarty_tpl->tpl_vars['year']->value;
                        ?>
"><?php 
                        echo smarty_function_text(array('key' => "base+month_" . (string) $_smarty_tpl->tpl_vars['month']->value), $_smarty_tpl);
                        ?>
 <?php 
                        echo $_smarty_tpl->tpl_vars['year']->value;
                        ?>
</a>
	                  			</li>
	                  		<?php 
                    }
                    ?>
	                  	<?php 
                }
                ?>
	                  </ul>
					<?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_block_decorator(array('name' => "box", 'langLabel' => "blogs+blog_archive_lbl_archives", 'iconClass' => "ow_ic_clock"), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

				<?php 
        }
        ?>
            </div>
      	</div><?php 
    }
    function content_548e5acead3ae9_78666031($_smarty_tpl)
    {
        if (!is_callable('smarty_function_decorator')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.decorator.php';
        }
        if (!is_callable('smarty_function_user_link')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.user_link.php';
        }
        ?>
<div class="ow_user_list_item clearfix<?php 
        if (isset($_smarty_tpl->tpl_vars['data']->value['set_class'])) {
            ?>
 <?php 
            echo $_smarty_tpl->tpl_vars['data']->value['set_class'];
        }
        ?>
"<?php 
        if (!empty($_smarty_tpl->tpl_vars['data']->value['contId'])) {
            ?>
 id="<?php 
            echo $_smarty_tpl->tpl_vars['data']->value['contId'];
            ?>
"<?php 
        }
        ?>
>

    <?php 
        if (!empty($_smarty_tpl->tpl_vars['data']->value['contextMenu'])) {
            ?>
        <div class="ow_uli_context_menu">
            <?php 
            echo $_smarty_tpl->tpl_vars['data']->value['contextMenu'];
            ?>

	</div>
    <?php 
        }
        ?>
    <div class="ow_user_list_picture">
        <?php 
        echo smarty_function_decorator(array('name' => 'avatar_item', 'data' => $_smarty_tpl->tpl_vars['data']->value['avatar']), $_smarty_tpl);
        ?>

    </div>
    <div class="ow_user_list_data">
        <?php 
        if (!empty($_smarty_tpl->tpl_vars['data']->value['userUrl'])) {
            ?>
        <a href="<?php 
            echo $_smarty_tpl->tpl_vars['data']->value['userUrl'];
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['data']->value['displayName'];
            ?>
</a>
        <?php 
        } else {
            ?>
            <?php 
            if (!empty($_smarty_tpl->tpl_vars['data']->value['noUserLink'])) {
                echo $_smarty_tpl->tpl_vars['data']->value['displayName'];
            } else {
                echo smarty_function_user_link(array('username' => $_smarty_tpl->tpl_vars['data']->value['username'], 'name' => $_smarty_tpl->tpl_vars['data']->value['displayName']), $_smarty_tpl);
            }
            ?>
        <?php 
        }
        ?>
        <div class="ow_small">
            <?php 
        if (!empty($_smarty_tpl->tpl_vars['data']->value['content'])) {
            ?>
<div class="ow_remark ow_user_list_content"><?php 
            echo $_smarty_tpl->tpl_vars['data']->value['content'];
            ?>
</div><?php 
        }
        ?>
            <?php 
        if (!empty($_smarty_tpl->tpl_vars['data']->value['fields'])) {
            echo $_smarty_tpl->tpl_vars['data']->value['fields'];
        }
        ?>
            <?php 
        if (!empty($_smarty_tpl->tpl_vars['data']->value['activity'])) {
            echo $_smarty_tpl->tpl_vars['data']->value['activity'];
        }
        ?>
        </div>
    </div>
        <?php 
        if (!empty($_smarty_tpl->tpl_vars['data']->value['toolbar'])) {
            ?>
			<?php 
            echo $_smarty_tpl->tpl_vars['data']->value['toolbar'];
            ?>

        <?php 
        }
        ?>
</div><?php 
    }
    function content_548e5f21bbf163_77189457($_smarty_tpl)
    {
        if (!is_callable('smarty_block_style')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.style.php';
        }
        if (!is_callable('smarty_block_script')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.script.php';
        }
        if (!is_callable('smarty_function_add_content')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.add_content.php';
        }
        if (!is_callable('smarty_function_decorator')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.decorator.php';
        }
        if (!is_callable('smarty_function_text')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.text.php';
        }
        if (!is_callable('smarty_function_cycle')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_libraries\\smarty3\\plugins\\function.cycle.php';
        }
        if (!is_callable('smarty_function_user_link')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.user_link.php';
        }
        if (!is_callable('smarty_function_format_date')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.format_date.php';
        }
        $_smarty_tpl->smarty->_tag_stack[] = array('style', array());
        $_block_repeat = true;
        echo smarty_block_style(array(), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>


.ow_author { 
    width: 25%; 
}

.ow_reply_info {
    margin-bottom: 3px;
}
.ow_forum .ow_lbutton:hover {
    cursor: default;
}

<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_style(array(), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>


<?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('script', array());
        $_block_repeat = true;
        echo smarty_block_script(array(), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>


    $("#btn-customize-forum").click(function(){
        window.location.href='<?php 
            echo $_smarty_tpl->tpl_vars['customizeUrl']->value;
            ?>
';
    });

<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_script(array(), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>


<div class="clearfix">
<?php 
        if ($_smarty_tpl->tpl_vars['singleMode']->value) {
            ?>
    <?php 
            echo smarty_function_add_content(array('key' => 'forum.add_content.list.top', 'listType' => 'group'), $_smarty_tpl);
            ?>

<?php 
        } else {
            ?>
    <?php 
            echo smarty_function_add_content(array('key' => 'forum.add_content.list.top', 'listType' => 'forum'), $_smarty_tpl);
            ?>

<?php 
        }
        ?>
</div>

<?php 
        if ($_smarty_tpl->tpl_vars['isModerator']->value) {
            ?>
    <div class="ow_box ow_highbox ow_stdmargin ow_center">
        <?php 
            echo smarty_function_decorator(array('name' => 'button', 'langLabel' => 'base+widgets_customize_btn', 'id' => 'btn-customize-forum', 'class' => 'ow_ic_gear_wheel'), $_smarty_tpl);
            ?>

    </div>
<?php 
        }
        ?>

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

<?php 
        } else {
            ?>
<div class="clearfix">
	<div class="ow_right ow_smallmargin">
	   <?php 
            echo $_smarty_tpl->tpl_vars['search']->value;
            ?>

	</div>
</div>

<table class="ow_table_1 ow_stdmargin ow_forum">
<?php 
            $_smarty_tpl->tpl_vars['section'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['section']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['sectionGroupList']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['section']->key => $_smarty_tpl->tpl_vars['section']->value) {
                $_smarty_tpl->tpl_vars['section']->_loop = true;
                ?>
    <tr class="ow_tr_first">
        <th class="ow_name"><a href="<?php 
                echo $_smarty_tpl->tpl_vars['section']->value['sectionUrl'];
                ?>
"><span id="section-<?php 
                echo $_smarty_tpl->tpl_vars['section']->value['sectionId'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['section']->value['sectionName'];
                ?>
</span></a></th>
        <th class="ow_topics"><?php 
                echo smarty_function_text(array('key' => 'forum+topics'), $_smarty_tpl);
                ?>
</th>
        <th class="ow_replies"><?php 
                echo smarty_function_text(array('key' => 'forum+replies'), $_smarty_tpl);
                ?>
</th>
        <th class="ow_author"><?php 
                echo smarty_function_text(array('key' => 'forum+last_reply'), $_smarty_tpl);
                ?>
</th>
    </tr>
    
    <?php 
                $_smarty_tpl->tpl_vars['group'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['group']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['section']->value['groups'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars['group']->total = $_smarty_tpl->_count($_from);
                $_smarty_tpl->tpl_vars['group']->iteration = 0;
                $_smarty_tpl->tpl_vars['group']->index = -1;
                foreach ($_from as $_smarty_tpl->tpl_vars['group']->key => $_smarty_tpl->tpl_vars['group']->value) {
                    $_smarty_tpl->tpl_vars['group']->_loop = true;
                    $_smarty_tpl->tpl_vars['group']->iteration++;
                    $_smarty_tpl->tpl_vars['group']->index++;
                    $_smarty_tpl->tpl_vars['group']->first = $_smarty_tpl->tpl_vars['group']->index === 0;
                    $_smarty_tpl->tpl_vars['group']->last = $_smarty_tpl->tpl_vars['group']->iteration === $_smarty_tpl->tpl_vars['group']->total;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']['g']['first'] = $_smarty_tpl->tpl_vars['group']->first;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']['g']['last'] = $_smarty_tpl->tpl_vars['group']->last;
                    ?>
    <tr class="<?php 
                    echo smarty_function_cycle(array('values' => 'ow_alt1,ow_alt2', 'reset' => $_smarty_tpl->getVariable('smarty')->value['foreach']['g']['first']), $_smarty_tpl);
                    ?>
 <?php 
                    if ($_smarty_tpl->getVariable('smarty')->value['foreach']['g']['last']) {
                        ?>
ow_tr_last<?php 
                    }
                    ?>
">
        <td class="ow_name">
            <a href="<?php 
                    echo $_smarty_tpl->tpl_vars['group']->value['groupUrl'];
                    ?>
"><b><?php 
                    echo $_smarty_tpl->tpl_vars['group']->value['name'];
                    ?>
</b></a>
            <div class="ow_small"><?php 
                    echo $_smarty_tpl->tpl_vars['group']->value['description'];
                    ?>
</div>
            <?php 
                    if ($_smarty_tpl->tpl_vars['group']->value['isPrivate']) {
                        ?>
                <span class="ow_lbutton ow_green"><?php 
                        echo smarty_function_text(array('key' => 'forum+is_private'), $_smarty_tpl);
                        ?>
</span> 
                <span class="ow_small ow_remark"><?php 
                        echo smarty_function_text(array('key' => 'forum+visible_to'), $_smarty_tpl);
                        ?>
: <?php 
                        $_smarty_tpl->tpl_vars['r'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['r']->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['group']->value['roles'];
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        $_smarty_tpl->tpl_vars['r']->total = $_smarty_tpl->_count($_from);
                        $_smarty_tpl->tpl_vars['r']->iteration = 0;
                        foreach ($_from as $_smarty_tpl->tpl_vars['r']->key => $_smarty_tpl->tpl_vars['r']->value) {
                            $_smarty_tpl->tpl_vars['r']->_loop = true;
                            $_smarty_tpl->tpl_vars['r']->iteration++;
                            $_smarty_tpl->tpl_vars['r']->last = $_smarty_tpl->tpl_vars['r']->iteration === $_smarty_tpl->tpl_vars['r']->total;
                            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['r']['last'] = $_smarty_tpl->tpl_vars['r']->last;
                            echo $_smarty_tpl->tpl_vars['r']->value;
                            if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['r']['last']) {
                                ?>
, <?php 
                            }
                        }
                        ?>
</span>
            <?php 
                    }
                    ?>
        </td>
        <td class="ow_topics"><?php 
                    echo $_smarty_tpl->tpl_vars['group']->value['topicCount'];
                    ?>
</td>
        <td class="ow_replies"><?php 
                    echo $_smarty_tpl->tpl_vars['group']->value['replyCount'];
                    ?>
</td>
        <td class="ow_txtleft ow_small">
        <?php 
                    if (!empty($_smarty_tpl->tpl_vars['group']->value['lastReply'])) {
                        ?>
            <div class="ow_reply_info">
	            <span class="ow_nowrap ow_icon_control ow_ic_user">
	                <?php 
                        echo smarty_function_user_link(array('username' => $_smarty_tpl->tpl_vars['userNames']->value[$_smarty_tpl->tpl_vars['group']->value['lastReply']['userId']], 'name' => $_smarty_tpl->tpl_vars['displayNames']->value[$_smarty_tpl->tpl_vars['group']->value['lastReply']['userId']]), $_smarty_tpl);
                        ?>

	            </span> &middot;
	            <span class="ow_nowrap ow_remark"><?php 
                        echo smarty_function_format_date(array('timestamp' => $_smarty_tpl->tpl_vars['group']->value['lastReply']['createStamp']), $_smarty_tpl);
                        ?>
</span>
            </div>
            <?php 
                        echo smarty_function_text(array('key' => 'forum+in'), $_smarty_tpl);
                        ?>
 <a href="<?php 
                        echo $_smarty_tpl->tpl_vars['group']->value['lastReply']['postUrl'];
                        ?>
"><?php 
                        echo $_smarty_tpl->tpl_vars['group']->value['lastReply']['title'];
                        ?>
</a>
        <?php 
                    }
                    ?>
        </td>
    </tr>
    <?php 
                }
                ?>
    
    <tr class="ow_tr_delimiter"><td colspan="3"></td></tr>
<?php 
            }
            ?>
</table>
<?php 
        }
    }
    function content_55c863aca154c7_06650214($_smarty_tpl)
    {
        if (!is_callable('smarty_function_text')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.text.php';
        }
        if (!is_callable('smarty_function_cycle')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_libraries/smarty3/plugins/function.cycle.php';
        }
        if (!is_callable('smarty_function_user_link')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.user_link.php';
        }
        if (!is_callable('smarty_function_format_date')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.format_date.php';
        }
        echo $_smarty_tpl->tpl_vars['paging']->value;
        ?>


<table class="ow_table_2">
    <tr class="ow_tr_first">
        <th class="ow_nowrap"><?php 
        echo smarty_function_text(array('key' => 'base+billing_transaction_id'), $_smarty_tpl);
        ?>
</th>
        <th><?php 
        echo smarty_function_text(array('key' => 'base+billing_gateway'), $_smarty_tpl);
        ?>
</th>
        <th><?php 
        echo smarty_function_text(array('key' => 'admin+plugin'), $_smarty_tpl);
        ?>
</th>
        <th><?php 
        echo smarty_function_text(array('key' => 'base+billing_details'), $_smarty_tpl);
        ?>
</th>
        <th><?php 
        echo smarty_function_text(array('key' => 'base+billing_amount'), $_smarty_tpl);
        ?>
</th>
        <th><?php 
        echo smarty_function_text(array('key' => 'admin+currency'), $_smarty_tpl);
        ?>
</th>
        <th><?php 
        echo smarty_function_text(array('key' => 'admin+user'), $_smarty_tpl);
        ?>
</th>
        <th><?php 
        echo smarty_function_text(array('key' => 'base+time'), $_smarty_tpl);
        ?>
</th>
    </tr>
    <?php 
        $_smarty_tpl->tpl_vars['sale'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['sale']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['list']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['sale']->total = $_smarty_tpl->_count($_from);
        $_smarty_tpl->tpl_vars['sale']->iteration = 0;
        foreach ($_from as $_smarty_tpl->tpl_vars['sale']->key => $_smarty_tpl->tpl_vars['sale']->value) {
            $_smarty_tpl->tpl_vars['sale']->_loop = true;
            $_smarty_tpl->tpl_vars['sale']->iteration++;
            $_smarty_tpl->tpl_vars['sale']->last = $_smarty_tpl->tpl_vars['sale']->iteration === $_smarty_tpl->tpl_vars['sale']->total;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['sale']['last'] = $_smarty_tpl->tpl_vars['sale']->last;
            ?>
    <tr class="ow_alt<?php 
            echo smarty_function_cycle(array('values' => '1,2'), $_smarty_tpl);
            ?>
 <?php 
            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['sale']['last']) {
                ?>
ow_tr_last<?php 
            }
            ?>
">
        <td><?php 
            echo $_smarty_tpl->tpl_vars['sale']->value['transactionUid'];
            ?>
</td>
        <td>
            <?php 
            if ($_smarty_tpl->tpl_vars['sale']->value['gatewayKey'] != '') {
                ?>
                <?php 
                echo smarty_function_text(array('key' => (string) $_smarty_tpl->tpl_vars['sale']->value['gatewayKey'] . "+gateway_title"), $_smarty_tpl);
                ?>

            <?php 
            } else {
                ?>
                <span class="ow_small ow_remark"><?php 
                echo smarty_function_text(array('key' => 'base+billing_gateway_unavailable'), $_smarty_tpl);
                ?>
</span>
            <?php 
            }
            ?>
        </td>
        <td><?php 
            echo $_smarty_tpl->tpl_vars['sale']->value['pluginTitle'];
            ?>
</td>
        <td><?php 
            echo $_smarty_tpl->tpl_vars['sale']->value['entityDescription'];
            ?>
</td>
        <td><?php 
            echo $_smarty_tpl->tpl_vars['sale']->value['totalAmount'];
            ?>
</td>
        <td><?php 
            echo $_smarty_tpl->tpl_vars['sale']->value['currency'];
            ?>
</td>
        <td>
            <?php 
            if ($_smarty_tpl->tpl_vars['sale']->value['userId'] != null) {
                ?>
                <?php 
                echo smarty_function_user_link(array('username' => $_smarty_tpl->tpl_vars['userNames']->value[$_smarty_tpl->tpl_vars['sale']->value['userId']], 'name' => $_smarty_tpl->tpl_vars['displayNames']->value[$_smarty_tpl->tpl_vars['sale']->value['userId']]), $_smarty_tpl);
                ?>

            <?php 
            } else {
                ?>
                <span class="ow_small ow_remark">-</span>
            <?php 
            }
            ?>
        </td>
        <td class="ow_small"><?php 
            echo smarty_function_format_date(array('timestamp' => $_smarty_tpl->tpl_vars['sale']->value['timeStamp']), $_smarty_tpl);
            ?>
</td>
    </tr>
    <?php 
        }
        ?>
</table>

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


<div class="ow_supernarrow ow_automargin">
<table class="ow_table_3">
<tr class="ow_tr_first"><th class="ow_label" style="text-align: center" colspan="2"><b><?php 
        echo smarty_function_text(array('key' => 'base+billing_statistics'), $_smarty_tpl);
        ?>
</b></th></tr>
<?php 
        $_smarty_tpl->tpl_vars['sum'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['sum']->_loop = false;
        $_smarty_tpl->tpl_vars['cur'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['stats']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['sum']->key => $_smarty_tpl->tpl_vars['sum']->value) {
            $_smarty_tpl->tpl_vars['sum']->_loop = true;
            $_smarty_tpl->tpl_vars['cur']->value = $_smarty_tpl->tpl_vars['sum']->key;
            ?>
    <tr>
        <td class="ow_label"><?php 
            echo $_smarty_tpl->tpl_vars['cur']->value;
            ?>
</td>
        <td class="ow_value"><?php 
            echo $_smarty_tpl->tpl_vars['sum']->value;
            ?>
</td>
    </tr>
<?php 
        }
        ?>
</table>
</div><?php 
    }
    function content_548e5f21a9b660_23185437($_smarty_tpl)
    {
        if (!is_callable('smarty_block_style')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.style.php';
        }
        if (!is_callable('smarty_block_script')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.script.php';
        }
        if (!is_callable('smarty_function_decorator')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.decorator.php';
        }
        if (!is_callable('smarty_function_text')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.text.php';
        }
        if (!is_callable('smarty_function_cycle')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_libraries\\smarty3\\plugins\\function.cycle.php';
        }
        if (!is_callable('smarty_function_user_link')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.user_link.php';
        }
        $_smarty_tpl->smarty->_tag_stack[] = array('style', array());
        $_block_repeat = true;
        echo smarty_block_style(array(), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>


.ow_forum_attachment_icon {
display: inline-block;
background-repeat: no-repeat;
cursor: pointer;
width: 14px;
height: 17px;
}

<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_style(array(), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>


<?php 
        if (empty($_smarty_tpl->tpl_vars['authError']->value)) {
            $_smarty_tpl->smarty->_tag_stack[] = array('script', array());
            $_block_repeat = true;
            echo smarty_block_script(array(), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>


$(".btn_add_topic").click(function(){
window.location.href='<?php 
                echo $_smarty_tpl->tpl_vars['addTopicUrl']->value;
                ?>
';
});

<?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_script(array(), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

<?php 
        }
        if (!empty($_smarty_tpl->tpl_vars['showCaption']->value)) {
            ?>
    <?php 
            if ($_smarty_tpl->tpl_vars['isHidden']->value) {
                ?>
    <div class="ow_stdmargin">
        <?php 
                echo $_smarty_tpl->tpl_vars['componentForumCaption']->value;
                ?>

    </div>
    <?php 
            } else {
                ?>
    <?php 
                echo $_smarty_tpl->tpl_vars['breadcrumb']->value;
                ?>

    <?php 
            }
        }
        ?>

<?php 
        if (!empty($_smarty_tpl->tpl_vars['authError']->value)) {
            ?>
    <div class="ow_anno ow_std_margin ow_nocontent"><?php 
            echo $_smarty_tpl->tpl_vars['authError']->value;
            ?>
</div>
<?php 
        } else {
            ?>
<div class="clearfix">
    <div class="ow_left"><?php 
            echo $_smarty_tpl->tpl_vars['paging']->value;
            ?>
</div>
    <div class="ow_right ow_txtright ow_smallmargin ow_narrow">
        <div class="ow_smallmargin">
            <?php 
            echo $_smarty_tpl->tpl_vars['search']->value;
            ?>

        </div>
        <?php 
            if ($_smarty_tpl->tpl_vars['canEdit']->value) {
                ?>
        <?php 
                echo smarty_function_decorator(array('name' => 'button', 'langLabel' => 'forum+new_topic_btn', 'class' => 'ow_ic_add btn_add_topic'), $_smarty_tpl);
                ?>

        <?php 
            }
            ?>
    </div>

</div>

<table class="ow_table_1 ow_forum_topic">
    <tr class="ow_tr_first">
        <th class="ow_icon"></th>
        <th class="ow_title"><?php 
            echo smarty_function_text(array('key' => 'forum+topic'), $_smarty_tpl);
            ?>
</th>
        <th class="ow_posts"><?php 
            echo smarty_function_text(array('key' => 'forum+replies'), $_smarty_tpl);
            ?>
</th>
        <th class="ow_views"><?php 
            echo smarty_function_text(array('key' => 'forum+views'), $_smarty_tpl);
            ?>
</th>
        <th class="ow_author"><?php 
            echo smarty_function_text(array('key' => 'forum+last_reply'), $_smarty_tpl);
            ?>
</th>
    </tr>
    <?php 
            $_smarty_tpl->tpl_vars['topic'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['topic']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['topicList']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['topic']->total = $_smarty_tpl->_count($_from);
            $_smarty_tpl->tpl_vars['topic']->iteration = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars['topic']->key => $_smarty_tpl->tpl_vars['topic']->value) {
                $_smarty_tpl->tpl_vars['topic']->_loop = true;
                $_smarty_tpl->tpl_vars['topic']->iteration++;
                $_smarty_tpl->tpl_vars['topic']->last = $_smarty_tpl->tpl_vars['topic']->iteration === $_smarty_tpl->tpl_vars['topic']->total;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['topic']['last'] = $_smarty_tpl->tpl_vars['topic']->last;
                ?>
    <tr class="<?php 
                echo smarty_function_cycle(array('values' => 'ow_alt1, ow_alt2'), $_smarty_tpl);
                ?>
 <?php 
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['topic']['last']) {
                    ?>
ow_tr_last<?php 
                }
                ?>
">
        <td class="ow_icon">
            <?php 
                if ($_smarty_tpl->tpl_vars['topic']->value['new']) {
                    ?>
<span class="ow_lbutton ow_green"><?php 
                    echo smarty_function_text(array('key' => 'forum+new'), $_smarty_tpl);
                    ?>
</span><?php 
                }
                ?>
            <?php 
                if ($_smarty_tpl->tpl_vars['topic']->value['locked']) {
                    ?>
<span class="ow_lbutton ow_red"><?php 
                    echo smarty_function_text(array('key' => 'forum+locked'), $_smarty_tpl);
                    ?>
</span><?php 
                }
                ?>
            <?php 
                if ($_smarty_tpl->tpl_vars['topic']->value['sticky']) {
                    ?>
<span class="ow_lbutton"><?php 
                    echo smarty_function_text(array('key' => 'forum+sticky'), $_smarty_tpl);
                    ?>
</span><?php 
                }
                ?>
        </td>
        <td class="ow_title">
            <?php 
                if (isset($_smarty_tpl->tpl_vars['attachments']->value[$_smarty_tpl->tpl_vars['topic']->value['id']])) {
                    ?>
            <span class="ow_forum_attachment_icon ow_ic_attach" title="<?php 
                    echo smarty_function_text(array('key' => 'forum+topic_attachments', 'count' => $_smarty_tpl->tpl_vars['attachments']->value[$_smarty_tpl->tpl_vars['topic']->value['id']]), $_smarty_tpl);
                    ?>
">&nbsp;</span>
            <?php 
                }
                ?>
            <a href="<?php 
                echo $_smarty_tpl->tpl_vars['topic']->value['topicUrl'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['topic']->value['title'];
                ?>
</a></td>
        <td class="ow_posts"><?php 
                if ($_smarty_tpl->tpl_vars['topic']->value['replyCount']) {
                    echo $_smarty_tpl->tpl_vars['topic']->value['replyCount'];
                } else {
                    ?>
-<?php 
                }
                ?>
</td>
        <td class="ow_views"><?php 
                echo $_smarty_tpl->tpl_vars['topic']->value['viewCount'];
                ?>
</td>
        <td class="ow_author ow_small">
            <?php 
                if (isset($_smarty_tpl->tpl_vars['topic']->value['lastPost'])) {
                    ?>
            <a href="<?php 
                    echo $_smarty_tpl->tpl_vars['topic']->value['lastPost']['postUrl'];
                    ?>
"><?php 
                    echo smarty_function_text(array('key' => 'forum+last_reply'), $_smarty_tpl);
                    ?>
</a> <?php 
                    echo smarty_function_text(array('key' => 'forum+by'), $_smarty_tpl);
                    ?>

            <?php 
                    echo smarty_function_user_link(array('username' => $_smarty_tpl->tpl_vars['usernames']->value[$_smarty_tpl->tpl_vars['topic']->value['lastPost']['userId']], 'name' => $_smarty_tpl->tpl_vars['displayNames']->value[$_smarty_tpl->tpl_vars['topic']->value['lastPost']['userId']]), $_smarty_tpl);
                    ?>

            <span class="ow_nowrap ow_remark"><?php 
                    echo $_smarty_tpl->tpl_vars['topic']->value['lastPost']['createStamp'];
                    ?>
</span>
            <?php 
                }
                ?>
        </td>
    </tr>
    <?php 
            }
            ?>

    <?php 
            if (!$_smarty_tpl->tpl_vars['topicList']->value) {
                ?>
    <tr>
        <td colspan="5"><?php 
                echo smarty_function_text(array('key' => 'forum+no_topic'), $_smarty_tpl);
                ?>
</td>
    </tr>
    <?php 
            }
            ?>
</table>

<div class="ow_std_margin clearfix">
    <div class="ow_left">
        <?php 
            echo $_smarty_tpl->tpl_vars['paging']->value;
            ?>

    </div>
    <div class="ow_right">
        <?php 
            if ($_smarty_tpl->tpl_vars['canEdit']->value) {
                ?>
        <?php 
                echo smarty_function_decorator(array('name' => 'button', 'langLabel' => 'forum+new_topic_btn', 'class' => 'ow_ic_add btn_add_topic'), $_smarty_tpl);
                ?>

        <?php 
            }
            ?>
    </div>
</div>
<?php 
        }
    }
    function content_548e8627d2bcd1_97517278($_smarty_tpl)
    {
        if (!is_callable('smarty_block_style')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.style.php';
        }
        if (!is_callable('smarty_block_script')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.script.php';
        }
        if (!is_callable('smarty_block_block_decorator')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.block_decorator.php';
        }
        if (!is_callable('smarty_function_text')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.text.php';
        }
        if (!is_callable('smarty_function_cycle')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_libraries\\smarty3\\plugins\\function.cycle.php';
        }
        if (!is_callable('smarty_function_user_link')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.user_link.php';
        }
        $_smarty_tpl->smarty->_tag_stack[] = array('style', array());
        $_block_repeat = true;
        echo smarty_block_style(array(), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>


.ow_forum_entity_forum .image {
    width: 100px;
    margin-right: -100px;
}
.ow_forum_entity_forum .image img {
    width: 100px;
}
.ow_forum_entity_forum .details {
    padding-left: 5px;
    position: relative;
    overflow-x: hidden;
}
.ow_forum_entity_forum .details .controls {
    position: absolute;
    right: 0;
    top: 0;
}
.ow_forum_attachment_icon {
    background-repeat: no-repeat;
    cursor: pointer;
    display: inline-block;
    height: 17px;
    width: 14px;
}
<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_style(array(), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>


<?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('script', array());
        $_block_repeat = true;
        echo smarty_block_script(array(), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>


$(".btn_add_topic").click(function(){
    window.location.href='<?php 
            echo $_smarty_tpl->tpl_vars['addTopicUrl']->value;
            ?>
';
});

<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_script(array(), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>


<?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => "box", 'type' => "empty"));
        $_block_repeat = true;
        echo smarty_block_block_decorator(array('name' => "box", 'type' => "empty"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

<div class="ow_forum_entity_forum clearfix ow_smallmargin">
    <table class="ow_table_1 ow_forum_topic">
        <tr class="ow_tr_first">
            <th class="ow_icon"></th>
            <th class="ow_title"><?php 
            echo smarty_function_text(array('key' => 'forum+topic'), $_smarty_tpl);
            ?>
</th>
            
            <th class="ow_author"><?php 
            echo smarty_function_text(array('key' => 'forum+last_reply'), $_smarty_tpl);
            ?>
</th>
        </tr>
    <?php 
            if ($_smarty_tpl->tpl_vars['topicList']->value) {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars['topic'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['topic']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['topicList']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['topic']->key => $_smarty_tpl->tpl_vars['topic']->value) {
                    $_smarty_tpl->tpl_vars['topic']->_loop = true;
                    ?>
        <tr class="<?php 
                    echo smarty_function_cycle(array('values' => 'ow_alt1, ow_alt2'), $_smarty_tpl);
                    ?>
">
            <td class="ow_icon">
                <?php 
                    if ($_smarty_tpl->tpl_vars['topic']->value['new']) {
                        ?>
<span class="ow_lbutton ow_green ow_nowrap"><?php 
                        echo smarty_function_text(array('key' => 'forum+new'), $_smarty_tpl);
                        ?>
</span><?php 
                    }
                    ?>
                <?php 
                    if ($_smarty_tpl->tpl_vars['topic']->value['locked']) {
                        ?>
<span class="ow_lbutton ow_red ow_nowrap"><?php 
                        echo smarty_function_text(array('key' => 'forum+locked'), $_smarty_tpl);
                        ?>
</span><?php 
                    }
                    ?>
                <?php 
                    if ($_smarty_tpl->tpl_vars['topic']->value['sticky']) {
                        ?>
<span class="ow_lbutton ow_nowrap"><?php 
                        echo smarty_function_text(array('key' => 'forum+sticky'), $_smarty_tpl);
                        ?>
</span><?php 
                    }
                    ?>
            </td>
            <td class="ow_title">
                <?php 
                    if (isset($_smarty_tpl->tpl_vars['attachments']->value[$_smarty_tpl->tpl_vars['topic']->value['id']])) {
                        ?>
                <span class="ow_forum_attachment_icon ow_ic_attach" title="<?php 
                        echo smarty_function_text(array('key' => 'forum+topic_attachments', 'count' => $_smarty_tpl->tpl_vars['attachments']->value[$_smarty_tpl->tpl_vars['topic']->value['id']]), $_smarty_tpl);
                        ?>
">&nbsp;</span>
                <?php 
                    }
                    ?>
                <a href="<?php 
                    echo $_smarty_tpl->tpl_vars['topic']->value['topicUrl'];
                    ?>
"><?php 
                    echo $_smarty_tpl->tpl_vars['topic']->value['title'];
                    ?>
</a></td>
            
            <td class="ow_author ow_small">
                <a href="<?php 
                    echo $_smarty_tpl->tpl_vars['topic']->value['lastPost']['postUrl'];
                    ?>
"><?php 
                    echo smarty_function_text(array('key' => 'forum+last_reply'), $_smarty_tpl);
                    ?>
</a> <?php 
                    echo smarty_function_text(array('key' => 'forum+by'), $_smarty_tpl);
                    ?>

                <?php 
                    echo smarty_function_user_link(array('username' => $_smarty_tpl->tpl_vars['usernames']->value[$_smarty_tpl->tpl_vars['topic']->value['lastPost']['userId']], 'name' => $_smarty_tpl->tpl_vars['displayNames']->value[$_smarty_tpl->tpl_vars['topic']->value['lastPost']['userId']]), $_smarty_tpl);
                    ?>

                <span class="ow_nowrap ow_remark"><?php 
                    echo $_smarty_tpl->tpl_vars['topic']->value['lastPost']['createStamp'];
                    ?>
</span>
            </td>
        </tr>
        <?php 
                }
                ?>
    <?php 
            } else {
                ?>
        <tr>
            <td colspan="5"><?php 
                echo smarty_function_text(array('key' => 'forum+no_topic'), $_smarty_tpl);
                ?>
</td>
        </tr>
	<?php 
            }
            ?>
    </table>

</div>

<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_block_decorator(array('name' => "box", 'type' => "empty"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

<?php 
    }
    function content_55c9cb8e203de4_13136957($_smarty_tpl)
    {
        if (!is_callable('smarty_block_style')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\block.style.php';
        }
        if (!is_callable('smarty_function_text')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.text.php';
        }
        if (!is_callable('smarty_function_cycle')) {
            include 'E:\\wamp\\www\\hammu\\ow_libraries\\smarty3\\plugins\\function.cycle.php';
        }
        if (!is_callable('smarty_function_decorator')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.decorator.php';
        }
        if (!is_callable('smarty_function_user_link')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.user_link.php';
        }
        if (!is_callable('smarty_function_question_value_lang')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.question_value_lang.php';
        }
        if (!is_callable('smarty_function_age')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.age.php';
        }
        $_smarty_tpl->smarty->_tag_stack[] = array('style', array());
        $_block_repeat = true;
        echo smarty_block_style(array(), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>


    .user_list_thumb {
        width: 55px;
        height: 45px;
    }
    
    .user_list_thumb img {
        width: 45px;
        height: 45px;
    }

<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_style(array(), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>


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


<?php 
        if ($_smarty_tpl->tpl_vars['types']->value) {
            ?>
<div class="ow_anno ow_center ow_stdmargin">
    <?php 
            echo smarty_function_text(array('key' => 'membership+displaying_members'), $_smarty_tpl);
            ?>

    <select name="ms_types" onchange="location.href = '<?php 
            echo $_smarty_tpl->tpl_vars['route']->value;
            ?>
/role/'+this.value;">
    <?php 
            $_smarty_tpl->tpl_vars['type'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['type']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['types']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['type']->key => $_smarty_tpl->tpl_vars['type']->value) {
                $_smarty_tpl->tpl_vars['type']->_loop = true;
                ?>
        <option value="<?php 
                echo $_smarty_tpl->tpl_vars['type']->value['dto']->roleId;
                ?>
"<?php 
                if ($_smarty_tpl->tpl_vars['type']->value['dto']->roleId == $_smarty_tpl->tpl_vars['roleId']->value) {
                    ?>
 selected="selected"<?php 
                }
                ?>
><?php 
                echo $_smarty_tpl->tpl_vars['type']->value['title'];
                ?>
</option>
    <?php 
            }
            ?>
    </select>
    <?php 
            echo smarty_function_text(array('key' => 'membership+membership'), $_smarty_tpl);
            ?>

</div>
<?php 
        }
        ?>

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

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


<table class="ow_table_1">
<tr class="ow_tr_first <?php 
            if (empty($_smarty_tpl->tpl_vars['list']->value)) {
                ?>
ow_tr_last<?php 
            }
            ?>
">
    <th><?php 
            echo smarty_function_text(array('key' => 'admin+user'), $_smarty_tpl);
            ?>
</th>
    <th width="20%"><?php 
            echo smarty_function_text(array('key' => 'membership+expires'), $_smarty_tpl);
            ?>
</th>
    <th width="1"><?php 
            echo smarty_function_text(array('key' => 'membership+recurring'), $_smarty_tpl);
            ?>
</th>
</tr>
<?php 
            $_smarty_tpl->tpl_vars['user'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['user']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['list']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['user']->total = $_smarty_tpl->_count($_from);
            $_smarty_tpl->tpl_vars['user']->iteration = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars['user']->key => $_smarty_tpl->tpl_vars['user']->value) {
                $_smarty_tpl->tpl_vars['user']->_loop = true;
                $_smarty_tpl->tpl_vars['user']->iteration++;
                $_smarty_tpl->tpl_vars['user']->last = $_smarty_tpl->tpl_vars['user']->iteration === $_smarty_tpl->tpl_vars['user']->total;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']["f"]['last'] = $_smarty_tpl->tpl_vars['user']->last;
                $_smarty_tpl->_capture_stack[0][] = array('default', 'userId', null);
                ob_start();
                echo $_smarty_tpl->tpl_vars['user']->value['userId'];
                list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                if (!empty($_capture_buffer)) {
                    if (isset($_capture_assign)) {
                        $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                    }
                    if (isset($_capture_append)) {
                        $_smarty_tpl->append($_capture_append, ob_get_contents());
                    }
                    Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                } else {
                    $_smarty_tpl->capture_error();
                }
                $_smarty_tpl->_capture_stack[0][] = array('default', 'username', null);
                ob_start();
                echo $_smarty_tpl->tpl_vars['userNameList']->value[$_smarty_tpl->tpl_vars['userId']->value];
                list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                if (!empty($_capture_buffer)) {
                    if (isset($_capture_assign)) {
                        $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                    }
                    if (isset($_capture_append)) {
                        $_smarty_tpl->append($_capture_append, ob_get_contents());
                    }
                    Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                } else {
                    $_smarty_tpl->capture_error();
                }
                ?>
    <tr class="ow_alt<?php 
                echo smarty_function_cycle(array('values' => '1,2'), $_smarty_tpl);
                ?>
 <?php 
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['f']['last']) {
                    ?>
ow_tr_last<?php 
                }
                ?>
">
        <td>
        <div class="clearfix">
            <div class="ow_left ow_txtleft user_list_thumb"><?php 
                echo smarty_function_decorator(array('name' => 'avatar_item', 'data' => $_smarty_tpl->tpl_vars['avatars']->value[$_smarty_tpl->tpl_vars['userId']->value]), $_smarty_tpl);
                ?>
</div>
            <div class="ow_left ow_txtleft">            
            <?php 
                echo smarty_function_user_link(array('name' => $_smarty_tpl->tpl_vars['displayNames']->value[$_smarty_tpl->tpl_vars['userId']->value], 'username' => $_smarty_tpl->tpl_vars['userNameList']->value[$_smarty_tpl->tpl_vars['userId']->value]), $_smarty_tpl);
                ?>
<br />
            <span class="ow_small">
            <?php 
                if (!empty($_smarty_tpl->tpl_vars['questionList']->value[$_smarty_tpl->tpl_vars['userId']->value]['sex'])) {
                    ?>
                <?php 
                    echo smarty_function_question_value_lang(array('name' => 'sex', 'value' => $_smarty_tpl->tpl_vars['questionList']->value[$_smarty_tpl->tpl_vars['userId']->value]['sex']), $_smarty_tpl);
                    ?>

            <?php 
                }
                ?>
            <?php 
                if (!empty($_smarty_tpl->tpl_vars['questionList']->value[$_smarty_tpl->tpl_vars['userId']->value]['birthdate'])) {
                    ?>
                <?php 
                    echo smarty_function_age(array('dateTime' => $_smarty_tpl->tpl_vars['questionList']->value[$_smarty_tpl->tpl_vars['userId']->value]['birthdate']), $_smarty_tpl);
                    ?>

            <?php 
                }
                ?>
            <br />
            <?php 
                if (!empty($_smarty_tpl->tpl_vars['questionList']->value[$_smarty_tpl->tpl_vars['userId']->value]['email'])) {
                    ?>
                <span class="ow_remark"><?php 
                    echo $_smarty_tpl->tpl_vars['questionList']->value[$_smarty_tpl->tpl_vars['userId']->value]['email'];
                    ?>
</span>
            <?php 
                }
                ?>
            </span>
            </div>
        </div>
        </td>
        <td><?php 
                echo MEMBERSHIP_BOL_MembershipService::formatDate(array('timestamp' => $_smarty_tpl->tpl_vars['user']->value['expirationStamp']), $_smarty_tpl);
                ?>
</td>
        <td><?php 
                if ($_smarty_tpl->tpl_vars['user']->value['recurring']) {
                    ?>
<div class="ow_marked_cell" style="width: 70px;">&nbsp;</div><?php 
                }
                ?>
</td>
    </tr>
<?php 
            }
            ?>
</table>

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


<?php 
        } else {
            ?>
    <div class="ow_nocontent"><?php 
            echo smarty_function_text(array('key' => 'admin+no_users'), $_smarty_tpl);
            ?>
</div>
<?php 
        }
    }