function content_5349e255681a26_61809048($_smarty_tpl)
    {
        if (!is_callable('smarty_block_script')) {
            include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/block.script.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();
            ?>

    DND_InterfaceFix.fix('.ow_sidebar');
<?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->tpl_vars["component"] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars["component"]->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['componentList']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars["component"]->key => $_smarty_tpl->tpl_vars["component"]->value) {
            $_smarty_tpl->tpl_vars["component"]->_loop = true;
            ?>
    <?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['sb_component'][0][0]->tplComponent(array('uniqName' => $_smarty_tpl->tpl_vars['component']->value['uniqName']), $_smarty_tpl);
            ?>

<?php 
        }
    }
    function content_548e5323b0c142_93745746($_smarty_tpl)
    {
        if (!is_callable('smarty_block_script')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.script.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();
            ?>

    DND_InterfaceFix.fix('.ow_sidebar');
<?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->tpl_vars["component"] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars["component"]->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['componentList']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars["component"]->key => $_smarty_tpl->tpl_vars["component"]->value) {
            $_smarty_tpl->tpl_vars["component"]->_loop = true;
            ?>
    <?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['sb_component'][0][0]->tplComponent(array('uniqName' => $_smarty_tpl->tpl_vars['component']->value['uniqName']), $_smarty_tpl);
            ?>

<?php 
        }
    }
    function content_55520ad8158c35_30295163($_smarty_tpl)
    {
        if (!is_callable('smarty_block_script')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/block.script.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();
            ?>

    DND_InterfaceFix.fix('.ow_sidebar');
<?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->tpl_vars["component"] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars["component"]->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['componentList']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars["component"]->key => $_smarty_tpl->tpl_vars["component"]->value) {
            $_smarty_tpl->tpl_vars["component"]->_loop = true;
            ?>
    <?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['sb_component'][0][0]->tplComponent(array('uniqName' => $_smarty_tpl->tpl_vars['component']->value['uniqName']), $_smarty_tpl);
            ?>

<?php 
        }
    }
    function content_55ba1ff38297b7_04453401($_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_function_url_for')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.url_for.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_text_edit')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.text_edit.php';
        }
        if (!is_callable('smarty_function_math')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_libraries/smarty3/plugins/function.math.php';
        }
        if (!is_callable('smarty_function_url_for_route')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.url_for_route.php';
        }
        if (!is_callable('smarty_function_decorator')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.decorator.php';
        }
        if (!is_callable('smarty_block_block_decorator')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/block.block_decorator.php';
        }
        if (!is_callable('smarty_block_form')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/block.form.php';
        }
        if (!is_callable('smarty_function_label')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.label.php';
        }
        if (!is_callable('smarty_function_input')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.input.php';
        }
        if (!is_callable('smarty_function_submit')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.submit.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();
            ?>


$(document).ready(function(){
	$('#roles').sortable({
		items: 'tr.role',
		helper: 'clone',
		placeholder: 'placeholder',
		start: function(event, ui){
			$(ui.placeholder).append('<td colspan="4"></td>');
		},
		update: function(event, ui){
			var set = {};

			$('#roles tr.role td input:checkbox[name="role[]"]').each(function(i){
				var id = $(this).val();
				set['order['+id+']'] = ++i;
			});

			url = '<?php 
            echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Users:ajaxReorder"), $_smarty_tpl);
            ?>
';

			$.post( url, set );
		},
		stop: function(event, ui){

			$set = $('#roles tr.role td input:checkbox[name="role[]"]');
			 
			$set.attr('disabled', false);

			$( $set[0] ).attr('disabled', 'disabled').attr('checked', false);

			$('td span.default-role:visible', this).hide();

			$('td input:checkbox[name]')
			
			$( $(this).sortable('option', 'items'), this ).each(function(i){
				if(i == 0)
					$('td span.default-role', this).show();

				var isEven = (i+1) % 2 === 0;

				remClass = isEven ? 'ow_alt1':'ow_alt2';
				addClass = isEven ? 'ow_alt2':'ow_alt1';
				
				if( $(this).hasClass(remClass) )
					$(this).removeClass( remClass );

				if( !$(this).hasClass(addClass) )
					$(this).addClass( addClass );

			})
		}
	});

	$(".edit_role", "#roles").click(function(){
	    var roleId = $(this).attr("rel");

	    editRoleFloatBox = OW.ajaxFloatBox(
	    	"ADMIN_CMP_AuthorizationRoleEdit", 
	    	{ roleId: roleId }, 
	    	{ width:400, iconClass: "ow_ic_edit", title: OW.getLanguageText('admin', 'permissions_edit_role_btn') }
	    );
	});
});


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


tr.placeholder td{
	border: 1px dashed grey;
	height: 35px;
	width: 100%;
}

.role{
	cursor: move;
}

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


<div class="ow_automargin ow_wide">
	<form action="<?php 
        echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Users:deleteRoles"), $_smarty_tpl);
        ?>
" method="POST">
	    <table id="roles" class="ow_table_2 ow_form ow_stdmargin ow_center">
	        <tr class="ow_tr_first">
	            <th width="1"></th>
	            <th><?php 
        echo smarty_function_text(array('key' => 'admin+permissions_user_role'), $_smarty_tpl);
        ?>
</th>
	            <th width="1"><?php 
        echo smarty_function_text(array('key' => 'admin+permissions_number_of_users'), $_smarty_tpl);
        ?>
</th>
	            <th width="1"><span class="ow_nowrap"><?php 
        echo smarty_function_text(array('key' => 'admin+avatar_label'), $_smarty_tpl);
        ?>
</span></th>
	        </tr>

	        <?php 
        $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['item']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['set']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['item']->index = -1;
        foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) {
            $_smarty_tpl->tpl_vars['item']->_loop = true;
            $_smarty_tpl->tpl_vars['item']->index++;
            $_smarty_tpl->tpl_vars['item']->first = $_smarty_tpl->tpl_vars['item']->index === 0;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']["roles"]['first'] = $_smarty_tpl->tpl_vars['item']->first;
            ?>
		        <?php 
            $_smarty_tpl->tpl_vars['role'] = new Smarty_variable($_smarty_tpl->tpl_vars['item']->value['dto'], null, 0);
            ?>
		        <?php 
            $_smarty_tpl->tpl_vars['roleId'] = new Smarty_variable($_smarty_tpl->tpl_vars['role']->value->id, null, 0);
            ?>
		        <tr class="<?php 
            echo smarty_function_cycle(array('values' => 'ow_alt1, ow_alt2'), $_smarty_tpl);
            ?>
 role">
		            <td>
		            	<input type="checkbox" name="role[]" value="<?php 
            echo $_smarty_tpl->tpl_vars['role']->value->id;
            ?>
" <?php 
            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['roles']['first']) {
                ?>
disabled="disabled"<?php 
            }
            ?>
 />
		            </td>
		            <td class="ow_txtleft">
		            	<?php 
            echo smarty_function_text_edit(array('key' => "base+authorization_role_" . (string) $_smarty_tpl->tpl_vars['role']->value->name), $_smarty_tpl);
            ?>
  
		            	<span class="ow_mild_green ow_small default-role" style="display:<?php 
            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['roles']['first']) {
                ?>
inline<?php 
            } else {
                ?>
none<?php 
            }
            ?>
;">
		            		<?php 
            echo smarty_function_text(array('key' => 'admin+permissions_default_role'), $_smarty_tpl);
            ?>

		            	</span>
		            </td>
		            <td class="ow_nowrap">
		            	<?php 
            echo smarty_function_math(array('equation' => "(x/y)*100", 'x' => $_smarty_tpl->tpl_vars['item']->value['userCount'], 'y' => $_smarty_tpl->tpl_vars['total']->value, 'assign' => 'percent'), $_smarty_tpl);
            ?>

		            	<a href="<?php 
            echo smarty_function_url_for_route(array('for' => "admin_users_browse_membership_owners:[roleId=>" . (string) $_smarty_tpl->tpl_vars['roleId']->value . "]"), $_smarty_tpl);
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['item']->value['userCount'];
            ?>
</a> | <?php 
            echo sprintf('%.1f', $_smarty_tpl->tpl_vars['percent']->value);
            ?>
%
		            </td>
		            <td style="min-width: 40px;">
		            <?php 
            if ($_smarty_tpl->tpl_vars['role']->value->displayLabel) {
                ?>
                        <a class="ow_lbutton edit_role" rel="<?php 
                echo $_smarty_tpl->tpl_vars['role']->value->id;
                ?>
" href="javascript://"<?php 
                if (!empty($_smarty_tpl->tpl_vars['role']->value->custom)) {
                    ?>
 style="background-color: <?php 
                    echo $_smarty_tpl->tpl_vars['role']->value->custom;
                    ?>
"<?php 
                }
                ?>
>
                            <?php 
                echo smarty_function_text(array('key' => 'base+yes'), $_smarty_tpl);
                ?>

                        </a>
		            <?php 
            } else {
                ?>
                        <a href="javascript://" rel="<?php 
                echo $_smarty_tpl->tpl_vars['role']->value->id;
                ?>
" class="edit_role"><?php 
                echo smarty_function_text(array('key' => 'base+no'), $_smarty_tpl);
                ?>
</a>
		            <?php 
            }
            ?>
		            </td>
		        </tr>
		        <?php 
        }
        ?>
			<tr class="ow_tr_last">
				<td>
					<input id="check_all" type="checkbox" onclick="$('#roles tr.role td input:checkbox:enabled').attr('checked', this.checked );" />
				</td>
				<td colspan="3" style="text-align: left;">
					<label for="check_all"><?php 
        echo smarty_function_text(array('key' => 'admin+permissions_check_all_selected'), $_smarty_tpl);
        ?>
</label>
					<form>
						<?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();
            ?>

						

							function delRoles(){
								if( $('#roles tr.role td input:checkbox:checked').size() == 0 ){ 
									alert('<?php 
            echo smarty_function_text(array('key' => 'admin+permissions_please_select_role'), $_smarty_tpl);
            ?>
'); 
									return false;
								}

								return confirm('<?php 
            echo smarty_function_text(array('key' => 'admin+permissions_are_you_sure'), $_smarty_tpl);
            ?>
');								
							}

						
						<?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 
        echo smarty_function_decorator(array('name' => 'button', 'type' => 'submit', 'langLabel' => 'admin+permissions_delete_role', 'class' => 'ow_button ow_red ow_ic_delete', 'onclick' => "return delRoles()"), $_smarty_tpl);
        ?>

					</form>									
				</td>
			</tr>
	    </table>
	</form>

    <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'addClass' => 'ow_stdmargin ow_center', 'type' => 'empty', 'langLabel' => 'admin+add_new_role_block_cap_label', 'iconClass' => 'ow_ic_add'));
        $_block_repeat = true;
        echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin ow_center', 'type' => 'empty', 'langLabel' => 'admin+add_new_role_block_cap_label', 'iconClass' => 'ow_ic_add'), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

        	<?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('form', array('name' => "add-role"));
            $_block_repeat = true;
            echo smarty_block_form(array('name' => "add-role"), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

	            <?php 
                echo smarty_function_label(array('name' => "label"), $_smarty_tpl);
                ?>
 <?php 
                echo smarty_function_input(array('name' => "label", 'style' => "width: 270px;"), $_smarty_tpl);
                ?>

	            <?php 
                echo smarty_function_submit(array('name' => "submit", 'class' => " ow_mild_green ow_ic_add"), $_smarty_tpl);
                ?>

            <?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_form(array('name' => "add-role"), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

    <?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin ow_center', 'type' => 'empty', 'langLabel' => 'admin+add_new_role_block_cap_label', 'iconClass' => 'ow_ic_add'), $_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', 'addClass' => 'ow_stdmargin', 'type' => 'empty', 'langLabel' => 'admin+user_role_permissions_cap_label', 'iconClass' => 'ow_ic_gear_wheel'));
        $_block_repeat = true;
        echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin', 'type' => 'empty', 'langLabel' => 'admin+user_role_permissions_cap_label', 'iconClass' => 'ow_ic_gear_wheel'), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

        <?php 
            $_smarty_tpl->_capture_stack[0][] = array('default', "permissionsPageUrl", null);
            ob_start();
            echo smarty_function_url_for(array('for' => 'ADMIN_CTRL_Permissions:roles'), $_smarty_tpl);
            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 
            echo smarty_function_text(array('key' => 'admin+permissions_go_to_permissions_page', 'url' => (string) $_smarty_tpl->tpl_vars['permissionsPageUrl']->value), $_smarty_tpl);
            ?>

    <?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin', 'type' => 'empty', 'langLabel' => 'admin+user_role_permissions_cap_label', 'iconClass' => 'ow_ic_gear_wheel'), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

</div>
<?php 
    }
    function content_548e56be0a1295_27119754($_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_text')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.text.php';
        }
        if (!is_callable('smarty_function_online_now')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.online_now.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_avatar_console .ow_avatar_label {
        bottom: 5px;
        right: 5px;
        -moz-border-radius: 3px;
        -webkit-border-radius: 3px;
    }
    #avatar_console_image {
        background-repeat: no-repeat;
        background-position: center center;
        position:relative;
        width: 100%;
    }
<?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['owner']->value || $_smarty_tpl->tpl_vars['moderation']->value) {
            ?>
    <?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();
                ?>

        
        (function(){
            $("#avatar-console").hover(
              function(){
                $("#avatar-change").fadeIn("fast");
                $("#avatar-approve").fadeIn("fast");
              },
              function(){
                $("#avatar-change").fadeOut("fast");
                $("#avatar-approve").fadeOut("fast");
              }
          );            
       }());
       
    <?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 
        }
        ?>


<div class="ow_avatar_console ow_center" id="avatar-console">
    <div id="avatar_console_image" style="height: <?php 
        echo $_smarty_tpl->tpl_vars['avatarSize']->value;
        ?>
px; background-image: url(<?php 
        echo $_smarty_tpl->tpl_vars['avatar']->value;
        ?>
);">
        
        <div class="ow_avatar_pending_approval" style="<?php 
        if (!$_smarty_tpl->tpl_vars['hasAvatar']->value || $_smarty_tpl->tpl_vars['isModerator']->value || !$_smarty_tpl->tpl_vars['owner']->value || !$_smarty_tpl->tpl_vars['isModerator']->value && !empty($_smarty_tpl->tpl_vars['avatarDto']->value) && $_smarty_tpl->tpl_vars['avatarDto']->value->status == 'active') {
            ?>
display:none;<?php 
        } else {
        }
        ?>
position: absolute; top: 0; right: 0; left: 0; bottom: 0; background-color: rgba(0,0,0,0.6); color: #fff; padding: 8px;"><?php 
        echo smarty_function_text(array('key' => 'base+avatar_pending_approval'), $_smarty_tpl);
        ?>
</div>

        <?php 
        if ($_smarty_tpl->tpl_vars['owner']->value) {
            ?>
            <div class="ow_avatar_button ow_avatar_change" id="avatar-change" style="display: none">
                <a class="ow_lbutton" href="javascript://"><?php 
            echo smarty_function_text(array('key' => 'base+avatar_change'), $_smarty_tpl);
            ?>
</a>
            </div>
        <?php 
        }
        ?>
        
        <?php 
        if ($_smarty_tpl->tpl_vars['moderation']->value) {
            ?>
            <div class="ow_avatar_button ow_avatar_change" id="avatar-approve" style="display: none">
                <a class="ow_lbutton" href="javascript://"><?php 
            echo smarty_function_text(array('key' => 'base+approve'), $_smarty_tpl);
            ?>
</a>
            </div>
        <?php 
        }
        ?>
        
        <?php 
        if (isset($_smarty_tpl->tpl_vars['role']->value['label'])) {
            ?>
<span class="ow_avatar_label <?php 
            if ($_smarty_tpl->tpl_vars['isUserOnline']->value) {
                ?>
avatar_console_label<?php 
            }
            ?>
"<?php 
            if (isset($_smarty_tpl->tpl_vars['role']->value['custom'])) {
                ?>
 style="background-color: <?php 
                echo $_smarty_tpl->tpl_vars['role']->value['custom'];
                ?>
"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['role']->value['label'];
            ?>
</span><?php 
        }
        ?>
    </div>
    <div class="user_online_wrap"><?php 
        if ($_smarty_tpl->tpl_vars['isUserOnline']->value) {
            echo smarty_function_online_now(array('userId' => $_smarty_tpl->tpl_vars['userId']->value), $_smarty_tpl);
        }
        ?>
</div>
</div><?php 
    }
    function content_55597b9fb0c768_48516542($_smarty_tpl)
    {
        if (!is_callable('smarty_block_script')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/block.script.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();
            ?>


var p = $("#<?php 
            echo $_smarty_tpl->tpl_vars['uniqId']->value;
            ?>
");

p.on("click", "[data-tab]", function() {
    $("[data-tab]", p).removeClass("active");
    $("[data-content]", p).hide();
    var tab = $(this).addClass("active").data("tab");
    $("[data-content=" + tab + "]", p).show();
});

<?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 id="<?php 
        echo $_smarty_tpl->tpl_vars['uniqId']->value;
        ?>
">
    <div class="clearfix">
        <div class="ow_box_menu">
            <?php 
        $_smarty_tpl->tpl_vars["item"] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars["item"]->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['items']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars["item"]->key => $_smarty_tpl->tpl_vars["item"]->value) {
            $_smarty_tpl->tpl_vars["item"]->_loop = true;
            ?>
                <a href="javascript://" <?php 
            if ($_smarty_tpl->tpl_vars['item']->value['active']) {
                ?>
 class="active"<?php 
            }
            ?>
 data-tab="<?php 
            echo $_smarty_tpl->tpl_vars['item']->value['name'];
            ?>
">
                   <span><?php 
            echo $_smarty_tpl->tpl_vars['item']->value['label'];
            ?>
</span>
                </a>
            <?php 
        }
        ?>
        </div>
    </div>

    <div class="ow_moderation_panel_content">
        <?php 
        $_smarty_tpl->tpl_vars["item"] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars["item"]->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['items']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars["item"]->key => $_smarty_tpl->tpl_vars["item"]->value) {
            $_smarty_tpl->tpl_vars["item"]->_loop = true;
            ?>
            <div data-content="<?php 
            echo $_smarty_tpl->tpl_vars['item']->value['name'];
            ?>
" <?php 
            if (!$_smarty_tpl->tpl_vars['item']->value['active']) {
                ?>
 style="display: none;"<?php 
            }
            ?>
>
                 <?php 
            echo $_smarty_tpl->tpl_vars['item']->value['content'];
            ?>

            </div>
        <?php 
        }
        ?>
    </div>
</div><?php 
    }
    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_55c9cb4ec88615_13542542($_smarty_tpl)
    {
        if (!is_callable('smarty_block_script')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\block.script.php';
        }
        if (!is_callable('smarty_block_form')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\block.form.php';
        }
        if (!is_callable('smarty_function_text')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.text.php';
        }
        if (!is_callable('smarty_function_input')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.input.php';
        }
        if (!is_callable('smarty_block_block_decorator')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\block.block_decorator.php';
        }
        if (!is_callable('smarty_function_cycle')) {
            include 'E:\\wamp\\www\\hammu\\ow_libraries\\smarty3\\plugins\\function.cycle.php';
        }
        if (!is_callable('smarty_function_error')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.error.php';
        }
        if (!is_callable('smarty_function_submit')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.submit.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();
            ?>


    $('tr.type', '#types' ).hover(
        function(){
            $('td a.edit_type, td a.delete_type', this).show();
        },
        function(){
            $('td a.edit_type, td a.delete_type', this).hide();
        }
    );

<?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 
        echo $_smarty_tpl->tpl_vars['menu']->value;
        ?>


<div class="ow_automargin ow_superwide">
    <?php 
        if ($_smarty_tpl->tpl_vars['showAccTypes']->value) {
            ?>
    <div class="ow_box_normal ow_automargin ow_no_cap ow_break_word" style="margin-bottom: 16px;">
        <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('form', array('name' => 'acc-type-select-form'));
            $_block_repeat = true;
            echo smarty_block_form(array('name' => 'acc-type-select-form'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

        <label for="qst_account_type_select"><?php 
                echo smarty_function_text(array('key' => 'membership+for_account_type'), $_smarty_tpl);
                ?>
</label>
        <?php 
                echo smarty_function_input(array('name' => 'accountType'), $_smarty_tpl);
                ?>

        <a style="margin-left: 15px;" class="ow_lbutton" href="<?php 
                echo $_smarty_tpl->tpl_vars['accTypesUrl']->value;
                ?>
"><?php 
                echo smarty_function_text(array('key' => 'admin+questions_edit_account_types_button'), $_smarty_tpl);
                ?>
</a>
        <?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_form(array('name' => 'acc-type-select-form'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

    </div>
    <?php 
        }
        ?>

    <?php 
        if ($_smarty_tpl->tpl_vars['memberships']->value) {
            ?>
    <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'addClass' => "ow_stdmargin", 'type' => 'empty', 'langLabel' => 'membership+types_list', 'iconClass' => 'ow_ic_update'));
            $_block_repeat = true;
            echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => "ow_stdmargin", 'type' => 'empty', 'langLabel' => 'membership+types_list', 'iconClass' => 'ow_ic_update'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

    <form method="post">
        <table id="types" class="ow_table_1 ow_form ow_center">
            <tr class="ow_tr_first">
                <th><?php 
                echo smarty_function_text(array('key' => 'membership+membership'), $_smarty_tpl);
                ?>
</th>
                <th width="1"><?php 
                echo smarty_function_text(array('key' => 'membership+plans'), $_smarty_tpl);
                ?>
</th>
                <th width="1"></th>
            </tr>
            <?php 
                $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['item']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['memberships']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars['item']->total = $_smarty_tpl->_count($_from);
                $_smarty_tpl->tpl_vars['item']->iteration = 0;
                foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) {
                    $_smarty_tpl->tpl_vars['item']->_loop = true;
                    $_smarty_tpl->tpl_vars['item']->iteration++;
                    $_smarty_tpl->tpl_vars['item']->last = $_smarty_tpl->tpl_vars['item']->iteration === $_smarty_tpl->tpl_vars['item']->total;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']['ms']['last'] = $_smarty_tpl->tpl_vars['item']->last;
                    ?>
                <tr class="type <?php 
                    echo smarty_function_cycle(array('values' => 'ow_alt1, ow_alt2'), $_smarty_tpl);
                    if ($_smarty_tpl->getVariable('smarty')->value['foreach']['ms']['last']) {
                        ?>
 ow_tr_last<?php 
                    }
                    ?>
">
                    <td class="ow_txtleft">
                        <?php 
                    echo smarty_function_text(array('key' => "base+authorization_role_" . (string) $_smarty_tpl->tpl_vars['item']->value['name']), $_smarty_tpl);
                    ?>
  
                    </td>
                    <td class="ow_nowrap ow_small ow_txtleft">
                    <ul>
                        <?php 
                    if (!empty($_smarty_tpl->tpl_vars['item']->value['plans'])) {
                        ?>
                            <?php 
                        $_smarty_tpl->tpl_vars['plan'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['plan']->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['item']->value['plans'];
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['plan']->key => $_smarty_tpl->tpl_vars['plan']->value) {
                            $_smarty_tpl->tpl_vars['plan']->_loop = true;
                            ?>
                                <li><?php 
                            echo $_smarty_tpl->tpl_vars['plan']->value['plan_format'];
                            ?>
</li>
                            <?php 
                        }
                        ?>
                        <?php 
                    } else {
                        ?>
                            <?php 
                        echo smarty_function_text(array('key' => 'membership+no_plans'), $_smarty_tpl);
                        ?>

                        <?php 
                    }
                    ?>
                    </ul>
                    </td>
                    <td style="min-width: 80px; height: 20px">
                        <a class="ow_lbutton edit_type" style="display: none;" data-id="<?php 
                    echo $_smarty_tpl->tpl_vars['item']->value['id'];
                    ?>
" href="javascript://">
                            <?php 
                    echo smarty_function_text(array('key' => 'admin+btn_label_edit'), $_smarty_tpl);
                    ?>

                        </a>
                        <a class="ow_lbutton delete_type" style="display: none;" data-id="<?php 
                    echo $_smarty_tpl->tpl_vars['item']->value['id'];
                    ?>
" data-count="<?php 
                    echo $_smarty_tpl->tpl_vars['users']->value[$_smarty_tpl->tpl_vars['item']->value['id']];
                    ?>
" href="javascript://">
                            <?php 
                    echo smarty_function_text(array('key' => 'admin+btn_label_delete'), $_smarty_tpl);
                    ?>

                        </a>
                    </td>
                </tr>
            <?php 
                }
                ?>
        </table>
    </form>
    <?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => "ow_stdmargin", 'type' => 'empty', 'langLabel' => 'membership+types_list', 'iconClass' => 'ow_ic_update'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

    <?php 
        }
        ?>
    
    <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'type' => 'empty', 'langLabel' => 'membership+add', 'iconClass' => 'ow_ic_add'));
        $_block_repeat = true;
        echo smarty_block_block_decorator(array('name' => 'box', 'type' => 'empty', 'langLabel' => 'membership+add', 'iconClass' => 'ow_ic_add'), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

    <div class="ow_smallmargin"><?php 
            echo smarty_function_text(array('key' => 'membership+create_membership_plan'), $_smarty_tpl);
            ?>
</div>
    <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('form', array('name' => 'add-membership-form'));
            $_block_repeat = true;
            echo smarty_block_form(array('name' => 'add-membership-form'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

    <table class="ow_table_1 ow_form ow_center ow_smallmargin">
        <tr class="ow_tr_first">
            <th width="30%"><?php 
                echo smarty_function_text(array('key' => 'membership+select_auth_role'), $_smarty_tpl);
                ?>
</th>
            <th width="28%"><?php 
                echo smarty_function_text(array('key' => 'membership+period'), $_smarty_tpl);
                ?>
</th>
            <th width="28%"><?php 
                echo smarty_function_text(array('key' => 'membership+price'), $_smarty_tpl);
                ?>
</th>
            <th width="14%"><?php 
                echo smarty_function_text(array('key' => 'membership+recurring'), $_smarty_tpl);
                ?>
</th>
        </tr>
        <tr class="ow_tr_last type ow_alt1">
            <td>
                <div><?php 
                echo smarty_function_input(array('name' => 'role'), $_smarty_tpl);
                ?>
</div>
                <?php 
                echo smarty_function_error(array('name' => 'role'), $_smarty_tpl);
                ?>

            </td>
            <td class="ow_value">
                <div><?php 
                echo smarty_function_input(array('name' => 'period', 'class' => 'ow_settings_input'), $_smarty_tpl);
                ?>
 <?php 
                echo smarty_function_text(array('key' => 'membership+days'), $_smarty_tpl);
                ?>
</div>
                <?php 
                echo smarty_function_error(array('name' => 'period'), $_smarty_tpl);
                ?>

            </td>
            <td style="min-width: 40px;">
                <div><?php 
                echo smarty_function_input(array('name' => 'price', 'class' => 'ow_settings_input'), $_smarty_tpl);
                ?>
 <?php 
                echo $_smarty_tpl->tpl_vars['currency']->value;
                ?>
</div>
                <?php 
                echo smarty_function_error(array('name' => 'price'), $_smarty_tpl);
                ?>

            </td>
            <td>
                <?php 
                echo smarty_function_input(array('name' => 'isRecurring'), $_smarty_tpl);
                ?>

            </td>
        </tr>
    </table>
    <div class="clearfix"><div class="ow_right"><?php 
                echo smarty_function_submit(array('name' => 'save', 'class' => 'ow_ic_add ow_positive'), $_smarty_tpl);
                ?>
</div></div>
    <?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_form(array('name' => 'add-membership-form'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

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

</div><?php 
    }
    function content_558900fcb4b0e0_10294059($_smarty_tpl)
    {
        if (!is_callable('smarty_block_script')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\block.script.php';
        }
        if (!is_callable('smarty_block_style')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\block.style.php';
        }
        if (!is_callable('smarty_function_add_content')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.add_content.php';
        }
        if (!is_callable('smarty_block_block_decorator')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\block.block_decorator.php';
        }
        if (!is_callable('smarty_function_decorator')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.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();
            ?>

    DND_InterfaceFix.fix('.place_section');
<?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();
            ?>

    #place_components .component {
        float: left;
    }

    .configurable_component .ow_box_icons {
        float: right;
        padding-top: 6px;
    }

    .configurable_component h3 {
        float: left;
    }

<?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_function_add_content(array('key' => 'base.widget_panel.content.top', 'placeName' => $_smarty_tpl->tpl_vars['placeName']->value), $_smarty_tpl);
        ?>

<?php 
        echo smarty_function_add_content(array('key' => 'base.`$placeName`.content.top'), $_smarty_tpl);
        ?>


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

            <div class="ow_center">
                <?php 
                echo smarty_function_decorator(array('name' => 'button', 'langLabel' => 'base+widgets_customize_btn', 'class' => 'ow_ic_gear_wheel', 'id' => "goto_customize_btn"), $_smarty_tpl);
                ?>

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

<?php 
        }
        ?>

<div class="ow_dragndrop_sections ow_stdmargin" id="place_sections">

    <div class="clearfix">
        <div class="ow_dragndrop_content">

            <div class="place_section">

                <?php 
        if (isset($_smarty_tpl->tpl_vars['componentList']->value['section']['top'])) {
            ?>
                    <?php 
            $_smarty_tpl->tpl_vars["component"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["component"]->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['componentList']->value['section']['top'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars["component"]->key => $_smarty_tpl->tpl_vars["component"]->value) {
                $_smarty_tpl->tpl_vars["component"]->_loop = true;
                ?>
                        <?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dd_component'][0][0]->tplComponent(array('uniqName' => $_smarty_tpl->tpl_vars['component']->value['uniqName'], 'render' => true), $_smarty_tpl);
                ?>

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

            </div>

            <div class="clearfix" style="overflow: hidden;">

                <div class="ow_left place_section <?php 
        if (isset($_smarty_tpl->tpl_vars['activeScheme']->value['leftCssClass'])) {
            echo $_smarty_tpl->tpl_vars['activeScheme']->value['leftCssClass'];
        }
        ?>
">

                    <?php 
        if (isset($_smarty_tpl->tpl_vars['componentList']->value['section']['left'])) {
            ?>
                        <?php 
            $_smarty_tpl->tpl_vars["component"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["component"]->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['componentList']->value['section']['left'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars["component"]->key => $_smarty_tpl->tpl_vars["component"]->value) {
                $_smarty_tpl->tpl_vars["component"]->_loop = true;
                ?>
                            <?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dd_component'][0][0]->tplComponent(array('uniqName' => $_smarty_tpl->tpl_vars['component']->value['uniqName'], 'render' => true), $_smarty_tpl);
                ?>

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

                </div>

                <div class="ow_right place_section <?php 
        if (isset($_smarty_tpl->tpl_vars['activeScheme']->value['rightCssClass'])) {
            echo $_smarty_tpl->tpl_vars['activeScheme']->value['rightCssClass'];
        }
        ?>
" ow_scheme_class="<?php 
        if (isset($_smarty_tpl->tpl_vars['activeScheme']->value['rightCssClass'])) {
            echo $_smarty_tpl->tpl_vars['activeScheme']->value['rightCssClass'];
        }
        ?>
"  ow_place_section="right">

                    <?php 
        if (isset($_smarty_tpl->tpl_vars['componentList']->value['section']['right'])) {
            ?>
                        <?php 
            $_smarty_tpl->tpl_vars["component"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["component"]->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['componentList']->value['section']['right'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars["component"]->key => $_smarty_tpl->tpl_vars["component"]->value) {
                $_smarty_tpl->tpl_vars["component"]->_loop = true;
                ?>
                            <?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dd_component'][0][0]->tplComponent(array('uniqName' => $_smarty_tpl->tpl_vars['component']->value['uniqName'], 'render' => true), $_smarty_tpl);
                ?>

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

                </div>

             </div>

            <div class="place_section">

                <?php 
        if (isset($_smarty_tpl->tpl_vars['componentList']->value['section']['bottom'])) {
            ?>
                    <?php 
            $_smarty_tpl->tpl_vars["component"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["component"]->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['componentList']->value['section']['bottom'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars["component"]->key => $_smarty_tpl->tpl_vars["component"]->value) {
                $_smarty_tpl->tpl_vars["component"]->_loop = true;
                ?>
                        <?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dd_component'][0][0]->tplComponent(array('uniqName' => $_smarty_tpl->tpl_vars['component']->value['uniqName'], 'render' => true), $_smarty_tpl);
                ?>

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

            </div>

        </div>
        <?php 
        echo smarty_function_add_content(array('key' => 'index.add_content_bottom'), $_smarty_tpl);
        ?>

    </div>
</div>

<?php 
        echo smarty_function_add_content(array('key' => 'base.widget_panel.content.bottom', 'placeName' => $_smarty_tpl->tpl_vars['placeName']->value), $_smarty_tpl);
        ?>

<?php 
        echo smarty_function_add_content(array('key' => 'base.`$placeName`.content.bottom'), $_smarty_tpl);
        ?>

<?php 
    }
    function content_5559741dcce9f1_41312051($_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_function_text')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.text.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_cycle')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_libraries/smarty3/plugins/function.cycle.php';
        }
        if (!is_callable('smarty_modifier_escape')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_libraries/smarty3/plugins/modifier.escape.php';
        }
        if (!is_callable('smarty_function_url_for')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.url_for.php';
        }
        if (!is_callable('smarty_block_form')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/block.form.php';
        }
        if (!is_callable('smarty_function_input')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.input.php';
        }
        if (!is_callable('smarty_function_label')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.label.php';
        }
        if (!is_callable('smarty_function_error')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.error.php';
        }
        if (!is_callable('smarty_function_submit')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.submit.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();
            ?>


$(function(){
    $('#add_new_text_btn').click(function(){$('#add_new_text').trigger('click')})
});

<?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 
        echo $_smarty_tpl->tpl_vars['menu']->value;
        ?>


<style>
	input[type="text"].grey-text{color: #BBB;}
	textarea.once{height:30px;}
	
    .lang_value{
        width: 395px;
        overflow: hidden;
    }
    
</style>

    		<div class="ow_anno ow_std_margin" style="text-align:center;">
	                <?php 
        echo smarty_function_text(array('key' => "admin+you_are_editing"), $_smarty_tpl);
        ?>

                <select onchange="location.href = '<?php 
        echo $_smarty_tpl->tpl_vars['languageSwitchUrl']->value;
        ?>
&language='+this.value;">
                	<?php 
        $_smarty_tpl->tpl_vars['lang'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['lang']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['langs']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['lang']->key => $_smarty_tpl->tpl_vars['lang']->value) {
            $_smarty_tpl->tpl_vars['lang']->_loop = true;
            ?>
                	<option <?php 
            if ($_smarty_tpl->tpl_vars['language']->value->getTag() == $_smarty_tpl->tpl_vars['lang']->value->getTag()) {
                ?>
selected="selected"<?php 
            }
            ?>
 value="<?php 
            echo $_smarty_tpl->tpl_vars['lang']->value->getTag();
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['lang']->value->getLabel();
            ?>
</option>
                	<?php 
        }
        ?>
                </select>
                
                <?php 
        echo smarty_function_text(array('key' => "admin+check_other_langs", 'url' => "?mod=langs"), $_smarty_tpl);
        ?>

                
            </div>
            
            <div class="ow_stdmargin clearfix">
                <div class="ow_left" style="margin: 6px 10px;<?php 
        if (empty($_smarty_tpl->tpl_vars['devMode']->value)) {
            ?>
 display: none;<?php 
        }
        ?>
">
                	<?php 
        echo smarty_function_decorator(array('name' => 'button', 'langLabel' => 'admin+add_new_text', 'class' => 'ow_ic_add', 'id' => "add_new_text_btn"), $_smarty_tpl);
        ?>

                    <a style="display: none;" id="add_new_text" onclick="new OW_FloatBox({$title: '<?php 
        echo smarty_function_text(array('key' => "admin+title_add_new_text"), $_smarty_tpl);
        ?>
', $contents: $('#new-key-form'), width: '550px', icon_class: 'ow_ic_add'})"><?php 
        echo smarty_function_text(array('key' => "admin+add_new_text"), $_smarty_tpl);
        ?>
</a>
                </div>

            	<div class="ow_box ow_right">
                	<?php 
        echo smarty_function_text(array('key' => "admin+show"), $_smarty_tpl);
        ?>


                    <select onchange="location.href='<?php 
        echo $_smarty_tpl->tpl_vars['section_switch_url']->value;
        ?>
&prefix='+$(this).val();">
                        <option <?php 
        if ($_smarty_tpl->tpl_vars['current_prefix']->value == 'all') {
            ?>
selected="selected"<?php 
        }
        ?>
 value="all"><?php 
        echo smarty_function_text(array('key' => "admin+all_sections"), $_smarty_tpl);
        ?>
</option>
                        <?php 
        $_smarty_tpl->tpl_vars['prefix'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['prefix']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['prefixes']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['prefix']->key => $_smarty_tpl->tpl_vars['prefix']->value) {
            $_smarty_tpl->tpl_vars['prefix']->_loop = true;
            ?>
                        <option <?php 
            if ($_smarty_tpl->tpl_vars['current_prefix']->value == $_smarty_tpl->tpl_vars['prefix']->value->prefix) {
                ?>
selected="selected"<?php 
            }
            ?>
 value="<?php 
            echo $_smarty_tpl->tpl_vars['prefix']->value->prefix;
            ?>
" > <?php 
            echo $_smarty_tpl->tpl_vars['prefix']->value->label;
            ?>
</option>
                        <?php 
        }
        ?>
                        <option disabled="disabled">-</option>
                        <option <?php 
        if ($_smarty_tpl->tpl_vars['current_prefix']->value == 'missing-text') {
            ?>
selected="selected"<?php 
        }
        ?>
 value="missing-text">
                        	<?php 
        echo smarty_function_text(array('key' => "admin+missing_text"), $_smarty_tpl);
        ?>

                        </option>
                    </select>

                    &nbsp;&nbsp;<b>OR</b>&nbsp;&nbsp;

                    <form id="search_form" style="display: inline" onsubmit="location.href = '<?php 
        echo $_smarty_tpl->tpl_vars['searchFormActionUrl']->value;
        ?>
&search='+ $('#search_inp').val()+( $('#search_in_inp:checked').length > 0 ? '&in_keys=y': ''); return false;">
                        <input id="search_inp" name="search" type="text" value="<?php 
        echo $_smarty_tpl->tpl_vars['current_search']->value;
        ?>
" style="width: 200px" class="grey-text" onfocus="if(this.flag == undefined){this.flag = false; $(this).removeClass('grey-text').attr('value', '')}" />
                        <?php 
        if (!empty($_smarty_tpl->tpl_vars['devMode']->value)) {
            ?>
<input id="search_in_inp" name="search_in_keys" <?php 
            if (!empty($_smarty_tpl->tpl_vars['searchInKeys']->value) && $_smarty_tpl->tpl_vars['searchInKeys']->value == 'y') {
                ?>
checked="checked"<?php 
            }
            ?>
 type="checkbox" /> <label>in keys</label><?php 
        }
        ?>
                        <?php 
        echo smarty_function_decorator(array('name' => 'button', 'langLabel' => 'admin+go', 'class' => "ow_ic_lens", 'type' => 'submit'), $_smarty_tpl);
        ?>

                    </form>
                </div>

            </div>
			<?php 
        if ($_smarty_tpl->tpl_vars['isSearchResults']->value) {
            ?>
           	<div class="ow_anno ow_std_margin">
               <div style="text-align:center;">
               	<?php 
            if (count($_smarty_tpl->tpl_vars['list']->value) > 0) {
                ?>
               		<?php 
                echo smarty_function_text(array('key' => "admin+search_results_for_keyword", 'keyword' => (string) $_smarty_tpl->tpl_vars['current_search']->value), $_smarty_tpl);
                ?>

             	<?php 
            } else {
                ?>
             		<?php 
                echo smarty_function_text(array('key' => "admin+search_no_results_for_keyword", 'keyword' => (string) $_smarty_tpl->tpl_vars['current_search']->value), $_smarty_tpl);
                ?>

               	<?php 
            }
            ?>
               	</div>
            </div>
            <?php 
        } else {
            ?>
            
            	<?php 
            if (count($_smarty_tpl->tpl_vars['list']->value) == 0) {
                ?>
		           	<div class="ow_anno ow_std_margin">
		               <div style="text-align:center;">
		               		{ text key="admin+no_values" } 
		               	</div>
		            </div>
            	<?php 
            }
            ?>
            <?php 
        }
        ?>
            
			<center><?php 
        echo $_smarty_tpl->tpl_vars['paging']->value;
        ?>
</center>
            
<form method="POST" id="main-form">
                      
			<table class="ow_table_1 ow_form" style="width:100%;">
                <tr class="ow_tr_first">
                	<th style="width:47%;text-align:left;"><?php 
        echo smarty_function_text(array('key' => "admin+original_value", 'label' => $_smarty_tpl->tpl_vars['origLabel']->value, 'tag' => $_smarty_tpl->tpl_vars['origTag']->value), $_smarty_tpl);
        ?>
</th>
                	<th style="width:47%;text-align:left;"><?php 
        echo smarty_function_text(array('key' => "admin+translation", 'label' => $_smarty_tpl->tpl_vars['label']->value, 'tag' => $_smarty_tpl->tpl_vars['tag']->value), $_smarty_tpl);
        ?>
</th>
                    <th style="width:6%;"></th>
                </tr>
                <!-- custom section -->
               <!-- end of custom section -->

<input type="hidden" name="command" value="edit-values" />
<?php 
        $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['item']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['list']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) {
            $_smarty_tpl->tpl_vars['item']->_loop = true;
            ?>
                <tr>
                	<td colspan="3" style="text-align:center;"><h3><?php 
            echo $_smarty_tpl->tpl_vars['item']->value['label'];
            ?>
</h3></td>
                </tr>
                
                <?php 
            $_smarty_tpl->tpl_vars['item_d2'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['item_d2']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['item']->value['data'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['item_d2']->total = $_smarty_tpl->_count($_from);
            $_smarty_tpl->tpl_vars['item_d2']->iteration = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars['item_d2']->key => $_smarty_tpl->tpl_vars['item_d2']->value) {
                $_smarty_tpl->tpl_vars['item_d2']->_loop = true;
                $_smarty_tpl->tpl_vars['item_d2']->iteration++;
                $_smarty_tpl->tpl_vars['item_d2']->last = $_smarty_tpl->tpl_vars['item_d2']->iteration === $_smarty_tpl->tpl_vars['item_d2']->total;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['item_d2']['last'] = $_smarty_tpl->tpl_vars['item_d2']->last;
                ?>
                <tr class="<?php 
                echo smarty_function_cycle(array('values' => 'ow_alt2, ow_alt1'), $_smarty_tpl);
                ?>
 <?php 
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['item_d2']['last']) {
                    ?>
ow_tr_last<?php 
                }
                ?>
" onmouseover="$('span.del-cont', this).show();" onmouseout="$('span.del-cont', this).hide();">
                	<td class="ow_label" style="text-align:left;">
                        <div class="lang_value">
                        <?php 
                if ($_smarty_tpl->tpl_vars['item_d2']->value['origValue']) {
                    ?>
                			<?php 
                    echo smarty_modifier_escape($_smarty_tpl->tpl_vars['item_d2']->value['origValue']->value, "html", "utf-8");
                    ?>

                		<?php 
                }
                ?>
                        </div>
						<div style="margin-top: 10px;" class="ow_small"><span style="padding: 1px 3px;" class="ow_mild_green">{text key='<?php 
                echo $_smarty_tpl->tpl_vars['item']->value['prefix'];
                ?>
+<?php 
                echo $_smarty_tpl->tpl_vars['item_d2']->value['key'];
                ?>
'}</span></div>                	
                	</td>
                    <td class="ow_value">
                    	<?php 
                if ($_smarty_tpl->tpl_vars['item_d2']->value['value']) {
                    ?>
                    		<textarea name="values[<?php 
                    echo $_smarty_tpl->tpl_vars['item_d2']->value['value']->keyId;
                    ?>
]" class="once" onclick="if(this.once === undefined){this.once = true; $(this).removeClass('once')}"><?php 
                    echo $_smarty_tpl->tpl_vars['item_d2']->value['value']->value;
                    ?>
</textarea>
                    	<?php 
                } else {
                    ?>
							<textarea name="missing[<?php 
                    echo $_smarty_tpl->tpl_vars['item']->value['prefix'];
                    ?>
][<?php 
                    echo $_smarty_tpl->tpl_vars['item_d2']->value['key'];
                    ?>
]" class="once"></textarea>
                    	<?php 
                }
                ?>
                   	</td>
                    <td class="ns-hover-block">
                    	<div style="width: 50px;">
	                    	<span class="del-cont" style="display: none;">
	                    	
	                    	<?php 
                if (!$_smarty_tpl->tpl_vars['devMode']->value && $_smarty_tpl->tpl_vars['item']->value['prefix'] == 'ow_custom' || $_smarty_tpl->tpl_vars['devMode']->value) {
                    ?>
	                    	<a class="ow_lbutton ow_red" href="<?php 
                    echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:deletekey"), $_smarty_tpl);
                    ?>
?prefix=<?php 
                    echo $_smarty_tpl->tpl_vars['item']->value['prefix'];
                    ?>
&key=<?php 
                    echo $_smarty_tpl->tpl_vars['item_d2']->value['key'];
                    ?>
" 
	                    		onclick="return(confirm('<?php 
                    echo smarty_function_text(array('key' => "admin+are_you_sure"), $_smarty_tpl);
                    ?>
'));">
	                    		<?php 
                    echo smarty_function_text(array('key' => "admin+delete"), $_smarty_tpl);
                    ?>

	                   		</a>
	                   		<?php 
                }
                ?>
	                   		</span>
                   		</div>
                	</td>
                </tr>
                <?php 
            }
        }
        ?>
            </table>    
			<div class="clearfix ow_stdmargin"><div class="ow_right"><?php 
        echo smarty_function_decorator(array('name' => "button", 'langLabel' => "admin+save_this_page", 'class' => "ow_ic_save ow_positive", 'extraString' => 'onclick="this.form.submit()"'), $_smarty_tpl);
        ?>
</div></div>        
</form>
			<center><?php 
        echo $_smarty_tpl->tpl_vars['paging']->value;
        ?>
</center>
            
<!-- begin -->
<div style="display:none;">
	<div id="new-key-form">
	<?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('form', array('name' => "form"));
        $_block_repeat = true;
        echo smarty_block_form(array('name' => "form"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

	<?php 
            echo smarty_function_input(array('name' => "language"), $_smarty_tpl);
            ?>

	<input type="hidden" name="command" value="add-key">
	<table class="ow_table_1 ow_form" style="width: 100%">
			<tr class="ow_alt2 ow_tr_first" style="<?php 
            if (!$_smarty_tpl->tpl_vars['devMode']->value) {
                ?>
display: none;<?php 
            }
            ?>
">
				<td class="ow_label"><?php 
            echo smarty_function_label(array('name' => 'prefix'), $_smarty_tpl);
            ?>
</td>
				<td class="ow_value">
					<?php 
            echo smarty_function_input(array('name' => 'prefix'), $_smarty_tpl);
            ?>

					<br /><?php 
            echo smarty_function_error(array('name' => 'prefix'), $_smarty_tpl);
            ?>

				</td>
			</tr>
			<tr class="ow_alt1" style="<?php 
            if (!$_smarty_tpl->tpl_vars['devMode']->value) {
                ?>
display: none;<?php 
            }
            ?>
">
				<td class="ow_label"><?php 
            echo smarty_function_label(array('name' => 'key'), $_smarty_tpl);
            ?>
</td>
				<td class="ow_value">
					<?php 
            echo smarty_function_input(array('name' => 'key'), $_smarty_tpl);
            ?>

					<br /><?php 
            echo smarty_function_error(array('name' => 'key'), $_smarty_tpl);
            ?>

				</td>
			</tr>
		<tr class="ow_alt2 ow_tr_last">
			<td class="ow_label ow_nowrap"><?php 
            echo smarty_function_label(array('name' => 'value'), $_smarty_tpl);
            ?>
</td>
			<td class="ow_value">
				<?php 
            echo smarty_function_input(array('name' => 'value', 'style' => 'height: 150px'), $_smarty_tpl);
            ?>

				<br /><?php 
            echo smarty_function_error(array('name' => 'value'), $_smarty_tpl);
            ?>

			</td>
		</tr >
	</table>
    <div class="clearfix ow_submit"><div class="ow_right"><?php 
            echo smarty_function_submit(array('name' => "submit", 'class' => "ow_positive"), $_smarty_tpl);
            ?>
</div></div>
	<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_form(array('name' => "form"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

	</div>
</div>
<!-- end --><?php 
    }
    function content_548e679f006226_56602570($_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_text')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.text.php';
        }
        ?>
 <?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();
            ?>


 .s-admin-screen
 {
    max-width: 95%;
    border-width: 1px;
    margin: 10px 0px;
 }
 
 .s-leave-review {
    font-size: 11px;
    margin-top: 30px;
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 20px;
 }

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

 var shown = false;
 $("#snippets-show-manual").click(function() {
    $("#snippets-manual")[shown ? "hide" : "show"]();
    shown = !shown;
 });
 <?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="ow_smallmargin">
    <?php 
        echo smarty_function_text(array('key' => "snippets+admin_help_brief", 'userSettings' => $_smarty_tpl->tpl_vars['userSettings']->value), $_smarty_tpl);
        ?>

</div>

<?php 
        echo smarty_function_text(array('key' => "snippets+config_steps_label"), $_smarty_tpl);
        ?>


<div style="min-height: 143px;">
<div id="snippets-manual" style="display: none">
<ul class="ow_regular ow_stdmargin">
<li>
    <?php 
        echo smarty_function_text(array('key' => "snippets+config_step1", 'userSettings' => $_smarty_tpl->tpl_vars['userSettings']->value), $_smarty_tpl);
        ?>

</li>

<li>
    <?php 
        echo smarty_function_text(array('key' => "snippets+config_step2"), $_smarty_tpl);
        ?>

    <br />
    <img src="<?php 
        echo $_smarty_tpl->tpl_vars['screensUrl']->value;
        ?>
admin-config-page.png" class="s-admin-screen ow_border" />
</li>

<li>
    <?php 
        echo smarty_function_text(array('key' => "snippets+config_step3"), $_smarty_tpl);
        ?>

    <br />
    <img src="<?php 
        echo $_smarty_tpl->tpl_vars['screensUrl']->value;
        ?>
admin-config-widget-settings.png"  class="s-admin-screen ow_border" />

</li>

<li>
    <?php 
        echo smarty_function_text(array('key' => "snippets+config_steps_end"), $_smarty_tpl);
        ?>

</li>
</ul>
</div>
</div>

<div class="s-leave-review ow_ic_star">
    <?php 
        echo smarty_function_text(array('key' => "snippets+leave_review_suggest", 'pluginUrl' => $_smarty_tpl->tpl_vars['pluginUrl']->value), $_smarty_tpl);
        ?>

</div>

<?php 
    }
    function content_548e85fc697ac8_35994451($_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_url_for_route')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.url_for_route.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_decorator')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.decorator.php';
        }
        if (!is_callable('smarty_block_block_decorator')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.block_decorator.php';
        }
        if (!is_callable('smarty_block_form')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.form.php';
        }
        if (!is_callable('smarty_function_input')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.input.php';
        }
        if (!is_callable('smarty_function_error')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.error.php';
        }
        if (!is_callable('smarty_function_submit')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.submit.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;
    }
    .forum_attachments_label {
        margin: 15px 0 5px;
        padding-left: 5px;
        font-weight: bold;
    }

    .forum_add_post .jhtmlarea {
        margin: 0px auto;
    }

    .post_content img { max-width: 100%; }
    .post_content { overflow: hidden; }

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


    $(".ow_forum_attachment").hover(
	    function(){
	        $(this).find("a.forum_delete_attachment").show();
	    },
	    function(){
	        $(this).find("a.forum_delete_attachment").hide();
	    }
    );

    $("a.forum_delete_attachment").each(function(){

        var container_handler = $(this).parent();

        $(this).click(function(){

            if ( confirm(OW.getLanguageText('forum', 'confirm_delete_attachment')) )
	        {
	           var attachment_id = $(this).attr("rel");

	           var params = {};
	           var url = '<?php 
            echo smarty_function_url_for_route(array('for' => 'forum_delete_attachment'), $_smarty_tpl);
            ?>
';
	           params['attachmentId'] = attachment_id;

	           $.ajaxSetup({dataType: 'json'});

               $.post(url, params, function(data){

                    if ( data.result == true )
                    {
                        OW.info(data.msg);

                        container_handler.remove();
                    }
                    else if (data.error != undefined)
                    {
                        OW.warning(data.error);
                    }
               });
	        }
	        else
	        {
	            return false;
	        }
        });
    });

<?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 ($_smarty_tpl->tpl_vars['isHidden']->value) {
            ?>
    <div class="ow_stdmargin">
        <?php 
            echo $_smarty_tpl->tpl_vars['componentForumCaption']->value;
            ?>

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


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

<div class="ow_forum_topic_posts">

<?php 
        $_smarty_tpl->tpl_vars['post'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['post']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['postList']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['post']->index = -1;
        foreach ($_from as $_smarty_tpl->tpl_vars['post']->key => $_smarty_tpl->tpl_vars['post']->value) {
            $_smarty_tpl->tpl_vars['post']->_loop = true;
            $_smarty_tpl->tpl_vars['post']->index++;
            $_smarty_tpl->tpl_vars['post']->first = $_smarty_tpl->tpl_vars['post']->index === 0;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['postList']['first'] = $_smarty_tpl->tpl_vars['post']->first;
            $_smarty_tpl->_capture_stack[0][] = array('default', 'tpl', null);
            ob_start();
            ?>
	<?php 
            $_smarty_tpl->_capture_stack[0][] = array('info_string', null, null);
            ob_start();
            ?>
		<a href="<?php 
            echo $_smarty_tpl->tpl_vars['avatars']->value[$_smarty_tpl->tpl_vars['post']->value['userId']]['url'];
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['avatars']->value[$_smarty_tpl->tpl_vars['post']->value['userId']]['title'];
            ?>
</a> 
		<span class="ow_tiny ow_ipc_date ow_remark"><?php 
            echo $_smarty_tpl->tpl_vars['post']->value['createStamp'];
            ?>
</span>
	<?php 
            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('content', null, null);
            ob_start();
            ?>
                <?php 
            echo smarty_function_add_content(array('key' => "forum.before_post_add_content", 'postId' => $_smarty_tpl->tpl_vars['post']->value['id'], 'userId' => $_smarty_tpl->tpl_vars['post']->value['userId'], 'text' => $_smarty_tpl->tpl_vars['post']->value['text']), $_smarty_tpl);
            ?>

		<div class="post_content"><?php 
            echo $_smarty_tpl->tpl_vars['post']->value['text'];
            ?>
</div>
		<?php 
            if ($_smarty_tpl->tpl_vars['post']->value['edited']) {
                ?>
			<div class="ow_post_comment ow_ic_edit"><?php 
                echo smarty_function_text(array('key' => 'forum+post_edited'), $_smarty_tpl);
                ?>
 <a href="<?php 
                echo $_smarty_tpl->tpl_vars['avatars']->value[$_smarty_tpl->tpl_vars['post']->value['edited']['userId']]['url'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['avatars']->value[$_smarty_tpl->tpl_vars['post']->value['edited']['userId']]['title'];
                ?>
</a> <?php 
                echo $_smarty_tpl->tpl_vars['post']->value['edited']['editStamp'];
                ?>
 </div>
		<?php 
            }
            ?>
        
		<?php 
            if ($_smarty_tpl->tpl_vars['enableAttachments']->value && isset($_smarty_tpl->tpl_vars['attachments']->value[$_smarty_tpl->tpl_vars['post']->value['id']])) {
                ?>
            <div class="ow_small">
                <div class="forum_attachments_label"><?php 
                echo smarty_function_text(array('key' => 'forum+attachments'), $_smarty_tpl);
                ?>
:</div>
                <?php 
                $_smarty_tpl->tpl_vars['attm'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['attm']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['attachments']->value[$_smarty_tpl->tpl_vars['post']->value['id']];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['attm']->key => $_smarty_tpl->tpl_vars['attm']->value) {
                    $_smarty_tpl->tpl_vars['attm']->_loop = true;
                    ?>
                    <span class="ow_forum_attachment">
                        <span class="ow_forum_attachment_icon ow_ic_attach">&nbsp;</span>
                        <?php 
                    if ($_smarty_tpl->tpl_vars['attm']->value['downloadUrl'] != '') {
                        ?>
<a href="<?php 
                        echo $_smarty_tpl->tpl_vars['attm']->value['downloadUrl'];
                        ?>
"><?php 
                        echo $_smarty_tpl->tpl_vars['attm']->value['fileName'];
                        ?>
</a><?php 
                    } else {
                        echo $_smarty_tpl->tpl_vars['attm']->value['fileName'];
                    }
                    ?>
 (<?php 
                    echo $_smarty_tpl->tpl_vars['attm']->value['fileSize'];
                    ?>
Kb)
                        <?php 
                    if ($_smarty_tpl->tpl_vars['isModerator']->value || $_smarty_tpl->tpl_vars['userId']->value == $_smarty_tpl->tpl_vars['post']->value['userId'] && !$_smarty_tpl->tpl_vars['topicInfo']->value['locked']) {
                        ?>
                            <a href="javascript://" class="forum_delete_attachment ow_lbutton ow_hidden" rel="<?php 
                        echo $_smarty_tpl->tpl_vars['attm']->value['id'];
                        ?>
">delete</a>
                        <?php 
                    }
                    ?>
                    </span><br/>
                <?php 
                }
                ?>
            </div>
		<?php 
            }
            ?>
                <?php 
            echo smarty_function_add_content(array('key' => "forum.after_post_add_content", 'postId' => $_smarty_tpl->tpl_vars['post']->value['id'], 'userId' => $_smarty_tpl->tpl_vars['post']->value['userId'], 'text' => $_smarty_tpl->tpl_vars['post']->value['text']), $_smarty_tpl);
            ?>

	<?php 
            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 
            echo smarty_function_decorator(array('name' => 'ipc', 'avatar' => $_smarty_tpl->tpl_vars['avatars']->value[$_smarty_tpl->tpl_vars['post']->value['userId']], 'content' => Smarty::$_smarty_vars['capture']['content'], 'infoString' => Smarty::$_smarty_vars['capture']['info_string'], 'toolbar' => $_smarty_tpl->tpl_vars['toolbars']->value[$_smarty_tpl->tpl_vars['post']->value['id']]), $_smarty_tpl);
            ?>

<?php 
            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 
            if ($_smarty_tpl->tpl_vars['page']->value == 1 && $_smarty_tpl->getVariable('smarty')->value['foreach']['postList']['first']) {
                ?>
	<?php 
                $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'addClass' => ' ow_stdmargin clearfix', 'capEnabled' => false));
                $_block_repeat = true;
                echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => ' ow_stdmargin clearfix', 'capEnabled' => false), null, $_smarty_tpl, $_block_repeat);
                while ($_block_repeat) {
                    ob_start();
                    ?>

        <div id="post-<?php 
                    echo $_smarty_tpl->tpl_vars['post']->value['id'];
                    ?>
">
            <div class="ow_smallmargin"><?php 
                    echo $_smarty_tpl->tpl_vars['tpl']->value;
                    ?>
</div>
            <?php 
                    echo smarty_function_add_content(array('key' => 'socialsharing.get_sharing_buttons', 'description' => $_smarty_tpl->tpl_vars['post']->value['text'], 'title' => $_smarty_tpl->tpl_vars['topicInfo']->value['title'], 'image' => '', 'class' => 'ow_social_sharing_nomargin', 'entityType' => 'forum_topic', 'entityId' => $_smarty_tpl->tpl_vars['post']->value['topicId']), $_smarty_tpl);
                    ?>

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

    <?php 
                echo smarty_function_add_content(array('key' => 'forum.topic.content.after_first_post'), $_smarty_tpl);
                ?>

<?php 
            } else {
                ?>
    <div class="ow_stdmargin clearfix" id="post-<?php 
                echo $_smarty_tpl->tpl_vars['post']->value['id'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['tpl']->value;
                ?>
</div>
<?php 
            }
            ?>

<?php 
        }
        ?>
</div>

<div class="ow_stdmargin ow_txtright"><?php 
        echo $_smarty_tpl->tpl_vars['paging']->value;
        ?>
</div>

<?php 
        if ($_smarty_tpl->tpl_vars['topicInfo']->value['sticky']) {
            ?>
    <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_smallmargin ow_center'));
            $_block_repeat = true;
            echo smarty_block_block_decorator(array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_smallmargin ow_center'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

        <div class="ow_forum_status"><span class="ow_ic_push_pin ow_icon"></span> <?php 
                echo smarty_function_text(array('key' => 'forum+topic_is_sticky'), $_smarty_tpl);
                ?>
</div>
    <?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_block_decorator(array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_smallmargin ow_center'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

<?php 
        }
        ?>

<div class="forum_add_post clearfix">

    <div class="ow_left" style="width: 70%;">
    <?php 
        if ($_smarty_tpl->tpl_vars['topicInfo']->value['locked']) {
            ?>
        <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_smallmargin ow_center'));
            $_block_repeat = true;
            echo smarty_block_block_decorator(array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_smallmargin ow_center'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

            <div class="ow_nocontent ow_forum_status"><span class="ow_ic_lock ow_icon"></span> <?php 
                echo smarty_function_text(array('key' => 'forum+topic_is_locked'), $_smarty_tpl);
                ?>
</div>
        <?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_block_decorator(array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_smallmargin ow_center'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

    <?php 
        } elseif (!$_smarty_tpl->tpl_vars['isHidden']->value && ($_smarty_tpl->tpl_vars['canPost']->value || $_smarty_tpl->tpl_vars['isModerator']->value) || $_smarty_tpl->tpl_vars['isHidden']->value && $_smarty_tpl->tpl_vars['canPost']->value) {
            ?>
        <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('form', array('name' => 'add-post-form'));
            $_block_repeat = true;
            echo smarty_block_form(array('name' => 'add-post-form'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

            <?php 
                $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'iconClass' => 'ow_ic_write', 'langLabel' => 'forum+add_post_title', 'addClass' => 'ow_stdmargin'));
                $_block_repeat = true;
                echo smarty_block_block_decorator(array('name' => 'box', 'iconClass' => 'ow_ic_write', 'langLabel' => 'forum+add_post_title', 'addClass' => 'ow_stdmargin'), null, $_smarty_tpl, $_block_repeat);
                while ($_block_repeat) {
                    ob_start();
                    ?>

                <div class="ow_smallmargin">
                <?php 
                    echo smarty_function_input(array('name' => 'text', 'class' => "ow_smallmargin"), $_smarty_tpl);
                    ?>

                <div><?php 
                    echo smarty_function_error(array('name' => 'text'), $_smarty_tpl);
                    ?>
</div>
                </div>
                <?php 
                    if ($_smarty_tpl->tpl_vars['enableAttachments']->value) {
                        ?>
<div class="ow_smallmargin"><?php 
                        echo $_smarty_tpl->tpl_vars['attachmentsCmp']->value;
                        ?>
</div><?php 
                    }
                    ?>
                <div class="clearfix"><div class="ow_right"><?php 
                    echo smarty_function_submit(array('name' => 'submit', 'class' => 'ow_positive'), $_smarty_tpl);
                    ?>
</div></div>
            <?php 
                    $_block_content = ob_get_clean();
                    $_block_repeat = false;
                    echo smarty_block_block_decorator(array('name' => 'box', 'iconClass' => 'ow_ic_write', 'langLabel' => 'forum+add_post_title', 'addClass' => 'ow_stdmargin'), $_block_content, $_smarty_tpl, $_block_repeat);
                }
                array_pop($_smarty_tpl->smarty->_tag_stack);
                ?>

        <?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_form(array('name' => 'add-post-form'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

    <?php 
        }
        ?>
    <?php 
        if ($_smarty_tpl->tpl_vars['isHidden']->value && !$_smarty_tpl->tpl_vars['canPost']->value) {
            ?>
        <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_smallmargin ow_center'));
            $_block_repeat = true;
            echo smarty_block_block_decorator(array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_smallmargin ow_center'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

            <div class="ow_nocontent ow_forum_status"><span class="ow_ic_warning ow_icon"></span> <?php 
                echo $_smarty_tpl->tpl_vars['postReplyPermissionErrorText']->value;
                ?>
</div>
        <?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_block_decorator(array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_smallmargin ow_center'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

    <?php 
        }
        ?>
    </div>

    <?php 
        if ($_smarty_tpl->tpl_vars['canEdit']->value && $_smarty_tpl->tpl_vars['isOwner']->value || $_smarty_tpl->tpl_vars['isModerator']->value || $_smarty_tpl->tpl_vars['canSubscribe']->value || $_smarty_tpl->tpl_vars['isSubscribed']->value || $_smarty_tpl->tpl_vars['canLock']->value || !empty($_smarty_tpl->tpl_vars['tb']->value)) {
            ?>
    <div class="ow_right" style="width: 27%;">
        <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'iconClass' => 'ow_ic_info', 'langLabel' => 'forum+this_topic', 'addClass' => 'ow_stdmargin'));
            $_block_repeat = true;
            echo smarty_block_block_decorator(array('name' => 'box', 'iconClass' => 'ow_ic_info', 'langLabel' => 'forum+this_topic', 'addClass' => 'ow_stdmargin'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

            <ul class="ow_smallmargin ow_bl_narrow clearfix ow_small">
                <?php 
                if ($_smarty_tpl->tpl_vars['canLock']->value) {
                    ?>
<li><a class="sticky_topic" href="javascript://"><?php 
                    if ($_smarty_tpl->tpl_vars['topicInfo']->value['sticky']) {
                        echo smarty_function_text(array('key' => 'forum+unsticky_topic'), $_smarty_tpl);
                    } else {
                        echo smarty_function_text(array('key' => 'forum+sticky_topic'), $_smarty_tpl);
                    }
                    ?>
</a></li><?php 
                }
                ?>
                <?php 
                if ($_smarty_tpl->tpl_vars['canSticky']->value) {
                    ?>
<li><a class="lock_topic" href="javascript://"><?php 
                    if ($_smarty_tpl->tpl_vars['topicInfo']->value['locked']) {
                        echo smarty_function_text(array('key' => 'forum+unlock_topic'), $_smarty_tpl);
                    } else {
                        echo smarty_function_text(array('key' => 'forum+lock_topic'), $_smarty_tpl);
                    }
                    ?>
</a></li><?php 
                }
                ?>
                <?php 
                if ($_smarty_tpl->tpl_vars['isModerator']->value) {
                    if (!$_smarty_tpl->tpl_vars['isHidden']->value || $_smarty_tpl->tpl_vars['canMoveToHidden']->value) {
                        ?>
<li><a class="move_topic" href="javascript://"><?php 
                        echo smarty_function_text(array('key' => 'forum+move_topic'), $_smarty_tpl);
                        ?>
</a></li><?php 
                    }
                }
                ?>
                <?php 
                if ($_smarty_tpl->tpl_vars['canEdit']->value && $_smarty_tpl->tpl_vars['isOwner']->value || $_smarty_tpl->tpl_vars['isModerator']->value) {
                    ?>
                    <li><a class="delete_topic" href="javascript://"><?php 
                    echo smarty_function_text(array('key' => 'forum+delete_topic'), $_smarty_tpl);
                    ?>
</a></li>
                <?php 
                }
                ?>
                <?php 
                if (!empty($_smarty_tpl->tpl_vars['tb']->value)) {
                    ?>
                <?php 
                    $_smarty_tpl->tpl_vars['tblink'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['tblink']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['tb']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['tblink']->key => $_smarty_tpl->tpl_vars['tblink']->value) {
                        $_smarty_tpl->tpl_vars['tblink']->_loop = true;
                        ?>
                    <li><a<?php 
                        if (isset($_smarty_tpl->tpl_vars['tblink']->value['class'])) {
                            ?>
 class="<?php 
                            echo $_smarty_tpl->tpl_vars['tblink']->value['class'];
                            ?>
"<?php 
                        }
                        ?>
 href="<?php 
                        echo $_smarty_tpl->tpl_vars['tblink']->value['href'];
                        ?>
"<?php 
                        if (isset($_smarty_tpl->tpl_vars['tblink']->value['id'])) {
                            ?>
 id="<?php 
                            echo $_smarty_tpl->tpl_vars['tblink']->value['id'];
                            ?>
"<?php 
                        }
                        ?>
><?php 
                        echo $_smarty_tpl->tpl_vars['tblink']->value['label'];
                        ?>
</a></li>
                <?php 
                    }
                    ?>
                <?php 
                }
                ?>
            </ul>
            <?php 
                if ($_smarty_tpl->tpl_vars['canSubscribe']->value || $_smarty_tpl->tpl_vars['isSubscribed']->value) {
                    ?>
                <input type="checkbox" id="cb-subscribe" <?php 
                    if ($_smarty_tpl->tpl_vars['isSubscribed']->value) {
                        ?>
checked="checked"<?php 
                    }
                    ?>
 />
                <label for="cb-subscribe"><?php 
                    echo smarty_function_text(array('key' => 'forum+subscribe'), $_smarty_tpl);
                    ?>
</label>
            <?php 
                }
                ?>
        <?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_block_decorator(array('name' => 'box', 'iconClass' => 'ow_ic_info', 'langLabel' => 'forum+this_topic', 'addClass' => 'ow_stdmargin'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

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

<?php 
        if (!$_smarty_tpl->tpl_vars['isHidden']->value || $_smarty_tpl->tpl_vars['canMoveToHidden']->value) {
            ?>
    
    <div id="move_topic_form" style="display: none;">
        <div class="ow_center">
        <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('form', array('name' => 'move-topic-form'));
            $_block_repeat = true;
            echo smarty_block_form(array('name' => 'move-topic-form'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>


            <?php 
                echo smarty_function_input(array('name' => 'group-id'), $_smarty_tpl);
                ?>

            <b><?php 
                echo smarty_function_error(array('name' => 'group-id'), $_smarty_tpl);
                ?>
</b><br /><br />

            <?php 
                echo smarty_function_input(array('name' => 'topic-id'), $_smarty_tpl);
                ?>


            <div class="ow_submit"><?php 
                echo smarty_function_submit(array('name' => 'save'), $_smarty_tpl);
                ?>
</div>
        <?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_form(array('name' => 'move-topic-form'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

        </div>
    </div>
<?php 
        }
    }
    function content_548e8c5aa91aa4_07249084($_smarty_tpl)
    {
        if (!is_callable('smarty_block_script')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.script.php';
        }
        if (!is_callable('smarty_function_url_for_route')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.url_for_route.php';
        }
        if (!is_callable('smarty_block_form')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.form.php';
        }
        if (!is_callable('smarty_function_cycle')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_libraries\\smarty3\\plugins\\function.cycle.php';
        }
        if (!is_callable('smarty_function_text')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.text.php';
        }
        if (!is_callable('smarty_function_input')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.input.php';
        }
        if (!is_callable('smarty_function_error')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.error.php';
        }
        if (!is_callable('smarty_function_submit')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.submit.php';
        }
        ?>

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


    $("a.forum_delete_attachment").each(function(){
        
        var container_handler = $(this).closest(".attachment_container");
        
        $(this).click(function(){            
            
            if ( confirm(OW.getLanguageText('forum', 'confirm_delete_attachment')) )
            {
               var attachment_id = $(this).data("aid");
               
               var params = {};
               var url = '<?php 
            echo smarty_function_url_for_route(array('for' => 'forum_delete_attachment'), $_smarty_tpl);
            ?>
';
               params['attachmentId'] = attachment_id;
               
               $.ajaxSetup({dataType: 'json'});
               $.post(url, params, function(data){
                    if ( data.result == true ) {
                        OW.info(data.msg);
                        container_handler.remove();
                    }
                    else if (data.error != undefined) {
                        OW.warning(data.error);
                    }
               });             
            }
            else
            {
                return false;
            }
        });
    });

<?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 ($_smarty_tpl->tpl_vars['isHidden']->value) {
            ?>
    <div class="ow_stdmargin">
        <?php 
            echo $_smarty_tpl->tpl_vars['componentForumCaption']->value;
            ?>

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



<?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('form', array('name' => 'edit-topic-form'));
        $_block_repeat = true;
        echo smarty_block_form(array('name' => 'edit-topic-form'), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

    <table class="ow_table_1 ow_form" width="100%">
    <tbody>
        <tr class="ow_alt<?php 
            echo smarty_function_cycle(array('values' => '2,1'), $_smarty_tpl);
            ?>
ow_tr_first <?php 
            if (!$_smarty_tpl->tpl_vars['enableAttachments']->value) {
                ?>
ow_tr_last<?php 
            }
            ?>
">
            <td class="ow_label"><?php 
            echo smarty_function_text(array('key' => 'forum+new_topic_subject'), $_smarty_tpl);
            ?>
</td>
            <td class="ow_value">
                <?php 
            echo smarty_function_input(array('name' => 'title'), $_smarty_tpl);
            ?>

                <?php 
            echo smarty_function_error(array('name' => 'title'), $_smarty_tpl);
            ?>

            </td>
        </tr>
        <tr class="ow_alt<?php 
            echo smarty_function_cycle(array('values' => '2,1'), $_smarty_tpl);
            ?>
">
            <td class="ow_label"><?php 
            echo smarty_function_text(array('key' => 'forum+new_topic_body'), $_smarty_tpl);
            ?>
</td>
            <td class="ow_value">
                <div class="ow_smallmargin">
                <?php 
            echo smarty_function_input(array('name' => 'text', 'id' => 'post_body'), $_smarty_tpl);
            ?>

                <?php 
            echo smarty_function_error(array('name' => 'text'), $_smarty_tpl);
            ?>

                </div>
                <?php 
            if ($_smarty_tpl->tpl_vars['enableAttachments']->value) {
                ?>
                    <?php 
                $_smarty_tpl->_capture_stack[0][] = array('default', 'postId', null);
                ob_start();
                echo $_smarty_tpl->tpl_vars['post']->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 
                if (isset($_smarty_tpl->tpl_vars['attachments']->value[$_smarty_tpl->tpl_vars['postId']->value])) {
                    ?>
                    <div class="ow_file_attachment_preview clearfix">
                        <?php 
                    $_smarty_tpl->tpl_vars['attm'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['attm']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['attachments']->value[$_smarty_tpl->tpl_vars['postId']->value];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['attm']->key => $_smarty_tpl->tpl_vars['attm']->value) {
                        $_smarty_tpl->tpl_vars['attm']->_loop = true;
                        ?>
                        <div class="attachment_container ow_file_attachment_block<?php 
                        echo smarty_function_cycle(array('values' => '1,2'), $_smarty_tpl);
                        ?>
">
                            <div class="ow_file_attachment_info">
                                <div class="ow_file_attachment_name">
                                    <?php 
                        if ($_smarty_tpl->tpl_vars['attm']->value['downloadUrl'] != '') {
                            ?>
<a href="<?php 
                            echo $_smarty_tpl->tpl_vars['attm']->value['downloadUrl'];
                            ?>
"><?php 
                            echo $_smarty_tpl->tpl_vars['attm']->value['fileName'];
                            ?>
</a><?php 
                        } else {
                            echo $_smarty_tpl->tpl_vars['attm']->value['fileName'];
                        }
                        ?>
                                    <span class="ow_file_attachment_size" style="display: inline-block;">(<?php 
                        echo $_smarty_tpl->tpl_vars['attm']->value['fileSize'];
                        ?>
Kb)</span>
                                </div>
                                <a href="javascript://" class="ow_file_attachment_close forum_delete_attachment" data-aid="<?php 
                        echo $_smarty_tpl->tpl_vars['attm']->value['id'];
                        ?>
"></a>
                            </div>
                        </div>
                        <?php 
                    }
                    ?>
                    </div>
                    <?php 
                }
                ?>
                    <div class="ow_smallmargin">
                        <?php 
                echo $_smarty_tpl->tpl_vars['attachmentsCmp']->value;
                ?>

                    </div>
                <?php 
            }
            ?>
            </td>
        </tr>
    </tbody>
    </table>
    <div class="clearfix ow_stdmargin">
    <div class="ow_right">
		<?php 
            echo smarty_function_submit(array('name' => 'save', 'class' => "ow_ic_save ow_positive"), $_smarty_tpl);
            ?>
 
	</div>
	</div>
<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_form(array('name' => 'edit-topic-form'), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

<?php 
    }
    function content_548e67a1778f16_86145704($_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';
        }
        ?>



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


#<?php 
            echo $_smarty_tpl->tpl_vars['uniqId']->value;
            ?>
 .uhint-avatar-image
{
    background-image: url(<?php 
            echo $_smarty_tpl->tpl_vars['user']->value['avatar'];
            ?>
);
}

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

#<?php 
                echo $_smarty_tpl->tpl_vars['uniqId']->value;
                ?>
 .uhint-body .uhb-head {
    height: <?php 
                echo $_smarty_tpl->tpl_vars['cover']->value['height'];
                ?>
px;
}

<?php 
            }
            ?>

#h-preview-buttons li, #h-preview-buttons li a {
    cursor: move;
}

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

$( "#h-preview-buttons" ).sortable({
    tolerance: "pointer",
    stop: function( event, ui ) {
        var pos = $(this).sortable("toArray");
        $.get(<?php 
            echo $_smarty_tpl->tpl_vars['rspUrl']->value;
            ?>
, { sort: JSON.stringify(pos) });
    }
});

$( "#h-preview-buttons" ).disableSelection();
<?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 id="<?php 
        echo $_smarty_tpl->tpl_vars['uniqId']->value;
        ?>
" class="hint-preview hint-container hint-bottom-right">
    <div class="hint-content ow_border ow_bg_color">
        <div class="hint-corner-wrap hint-top-corner-wrap">
            <div class="hint-corner">
                <?php 
        echo $_smarty_tpl->tpl_vars['renderedCover']->value;
        ?>

            </div>
        </div>

        <div class="hint-corner-wrap hint-bottom-corner-wrap">
            <div class="hint-corner"></div>
        </div>

        <div class="hint-body-wrap">
            <div class="hint-body">

                <div class="uhint-wrap <?php 
        if (empty($_smarty_tpl->tpl_vars['cover']->value)) {
            ?>
uhint-no-cover<?php 
        } else {
            ?>
uhint-has-cover<?php 
        }
        ?>
">
                    <div class="uhint-body">

                        <div class="uhb-head ow_border">

                            <?php 
        if (!empty($_smarty_tpl->tpl_vars['cover']->value)) {
            ?>
                                <img class="uhint-cover-img" src="<?php 
            echo $_smarty_tpl->tpl_vars['cover']->value['url'];
            ?>
" style="<?php 
            echo $_smarty_tpl->tpl_vars['cover']->value['imageCss'];
            ?>
" />
                            <?php 
        }
        ?>

                            <div class="uhb-head-text-wrap <?php 
        if (!empty($_smarty_tpl->tpl_vars['info']->value['line0'])) {
            ?>
uhbht-extra-line<?php 
        }
        ?>
">
                                <div class="uhb-head-text">
                                    <a href="<?php 
        echo $_smarty_tpl->tpl_vars['user']->value['url'];
        ?>
" class="uhbht-title">
                                        <?php 
        echo $_smarty_tpl->tpl_vars['user']->value['displayName'];
        ?>

                                    </a>
                                    <?php 
        if (!empty($_smarty_tpl->tpl_vars['info']->value['line0'])) {
            ?>
                                        <div class="uhbht-info-line hb-info-line0 ow_small"><?php 
            echo $_smarty_tpl->tpl_vars['info']->value['line0'];
            ?>
</div>
                                    <?php 
        }
        ?>
                                </div>
                            </div>
                        </div>

                        <div class="uhb-info clearfix">

                            <div class="uhint-avatar ow_avatar_console ow_bg_color ow_border">
                                <div class="uhint-avatar-image">
                                    <?php 
        if (isset($_smarty_tpl->tpl_vars['user']->value['role']['label'])) {
            ?>
                                        <span class="ow_avatar_label"<?php 
            if (isset($_smarty_tpl->tpl_vars['user']->value['role']['custom'])) {
                ?>
 style="background-color: <?php 
                echo $_smarty_tpl->tpl_vars['user']->value['role']['custom'];
                ?>
"<?php 
            }
            ?>
>
                                            <?php 
            echo $_smarty_tpl->tpl_vars['user']->value['role']['label'];
            ?>

                                        </span>
                                    <?php 
        }
        ?>
                                    
                                    <div class="ow_miniic_live"><span class="ow_live_on"></span></div>
                                </div>
                            </div>
                            <div class="hb-info-content">
                                <div class="hb-info-line hb-info-line1"><?php 
        echo $_smarty_tpl->tpl_vars['info']->value['line1'];
        ?>
</div>
                                <div class="hb-info-line hb-info-line2"><?php 
        echo $_smarty_tpl->tpl_vars['info']->value['line2'];
        ?>
</div>
                            </div>
                        </div>

                    </div>

                    <?php 
        if (!empty($_smarty_tpl->tpl_vars['buttons']->value)) {
            ?>
                    <div class="uhint-foot ow_border">
                        <ul class="ow_bl clearfix" id="h-preview-buttons">
                            <?php 
            $_smarty_tpl->tpl_vars["button"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["button"]->_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["button"]->key => $_smarty_tpl->tpl_vars["button"]->value) {
                $_smarty_tpl->tpl_vars["button"]->_loop = true;
                ?>
                                <li id="<?php 
                echo $_smarty_tpl->tpl_vars['button']->value['key'];
                ?>
"><a <?php 
                echo $_smarty_tpl->tpl_vars['button']->value['attrs'];
                ?>
><?php 
                echo $_smarty_tpl->tpl_vars['button']->value['label'];
                ?>
</a></li>
                            <?php 
            }
            ?>
                        </ul>
                    </div>
                    <?php 
        }
        ?>
                </div>

            </div>
        </div>
    </div>
</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_5349e1b97f2319_41894535($_smarty_tpl)
    {
        if (!is_callable('smarty_function_text')) {
            include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/function.text.php';
        }
        if (!is_callable('smarty_block_script')) {
            include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/block.script.php';
        }
        if (!is_callable('smarty_function_url_for')) {
            include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/function.url_for.php';
        }
        if (!is_callable('smarty_block_style')) {
            include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/block.style.php';
        }
        if (!is_callable('smarty_function_url_for_route')) {
            include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/function.url_for_route.php';
        }
        if (!is_callable('smarty_block_block_decorator')) {
            include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/block.block_decorator.php';
        }
        if (!is_callable('smarty_block_form')) {
            include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/block.form.php';
        }
        if (!is_callable('smarty_function_input')) {
            include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/function.input.php';
        }
        if (!is_callable('smarty_function_label')) {
            include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/function.label.php';
        }
        if (!is_callable('smarty_function_submit')) {
            include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/function.submit.php';
        }
        if (!is_callable('smarty_function_cycle')) {
            include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_libraries/smarty3/plugins/function.cycle.php';
        }
        if (!is_callable('smarty_function_decorator')) {
            include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/function.decorator.php';
        }
        if (!is_callable('smarty_function_desc')) {
            include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/function.desc.php';
        }
        echo $_smarty_tpl->tpl_vars['menu']->value;
        ?>


<div class="ow_stdmargin">
	<span class="ow_highlight" style="padding:1px 3px;"><?php 
        echo smarty_function_text(array('key' => "admin+page_note_part_1"), $_smarty_tpl);
        ?>
</span> <?php 
        echo smarty_function_text(array('key' => "admin+page_note_part_2"), $_smarty_tpl);
        ?>
 
</div>
<?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();
            ?>


$(document).ready( function(){
	$('#s1, #s2').sortable({
		items: 'tr.draggable-lang-item',
		helper: 'clone',
		placeholder: 'lang_placeholder',
		start: function(event, ui){
			$(ui.placeholder).append('<td colspan="3"></td>');
		},

		stop: function(event, ui){

				switch( this ){
					case $('#s1')[0]:
												
						if( $('tr.draggable-lang-item', this).length == 0 )
						{
							alert( '<?php 
            echo smarty_function_text(array('key' => "admin+msg_one_active_constraint"), $_smarty_tpl);
            ?>
' );
							
							$(this).sortable('cancel');
							
							$('#s1 tr.empty').remove();
							break;
						}
					
						$('tr.draggable-lang-item:odd', this).each(function(){
							
							if( !$(this).hasClass('ow_even') ) $(this).addClass('ow_even');
						});


						$('tr.draggable-lang-item:even', this).each(function(){
							if( $(this).hasClass('ow_even') ) $(this).removeClass('ow_even');
						});
						break;
				}
			},

		receive: function(event, ui){
					switch(this){
						case $('#s1')[0] :
							$('tr.draggable-lang-item', this).each( function(){
								$('td:nth(2) div span a.deact', this).show(); $('td:nth(2) div span a.act', this).hide(); $('td:nth(2) div span a.del', this).hide();
								
                                 if( $(this).hasClass('ow_high2') ){
                                    $(this).removeClass('ow_high2');
                                }
							} );

                           $( 'td:nth(2) div span a.deact', $('tr.draggable-lang-item', this).get(0) ).hide();

						if( $('tr.draggable-lang-item', this).length == 0 )
						{
							alert( '{text key="admin+msg_one_active_constraint"}' );
							
							$(this).sortable('cancel');
							$('#s1 tr.empty').remove();
							break;
						}
					
						$('tr.draggable-lang-item:odd', this).each(function(){
							if( !$(this).hasClass('ow_even') ) $(this).addClass('ow_even');
						});


						$('tr.draggable-lang-item:even', this).each(function(){
							if( $(this).hasClass('ow_even') ) $(this).removeClass('ow_even');
						});
						
							break;

						case $('#s2')[0]:
							if($('tr.draggable-lang-item', ui.sender).length == 0) break;
							$('tr.draggable-lang-item', this).each( function(){

								$('td:nth(2) div span a.deact', this).hide(); $('td:nth(2) div span a.act', this).show(); $('td:nth(2) div span a.del', this).show();
								
								if( $(this).hasClass('ow_even') ) 
									$(this).removeClass('ow_even');

									if( !$(this).hasClass('ow_high2') )
										$(this).addClass('ow_high2');
							} ) ;
							break;							
					}
				},

		update: function(event, ui){
				if( ui.sender ){
					if($('tr', ui.sender[0]).length == 0) $( ui.sender[0] ).append('<tr class="empty"><td colspan="3"><?php 
            echo smarty_function_text(array('key' => "admin+empty"), $_smarty_tpl);
            ?>
</td></tr>');
					return;
				}
				
				if( $('#s1 tr.empty').length == 1 && $('#s1 tr.draggable-lang-item').length > 0 )
					$('#s1 tr.empty').remove();

				if( $('#s2 tr.empty').length == 1 && $('#s2 tr.draggable-lang-item').length > 0 )
					$('#s2 tr.empty').remove();

                    
                $('tr.draggable-lang-item', '#s1').each( function(){
								$('td:nth(2) div span a.deact', this).show();
				});

                $( 'td:nth(2) div span a.deact', $('tr.draggable-lang-item', '#s1').get(0) ).hide();

				var set = {};

				$('tr.draggable-lang-item', '#s1').each(function(i){ 
					set['active['+i+']'] = parseInt( $('input:hidden', this).attr('value') );
				});

				$('tr.draggable-lang-item', '#s2').each(function(i){ 
					set[ 'inactive['+i+']' ] = parseInt( $('input:hidden', this).attr('value') );
				});

				if( $('tr.draggable-lang-item', '#s1').length == 0 ) return;

				$('td:nth(0) span.ow_mild_green', $('tr.draggable-lang-item', '#s1, #s2')).remove();

				$('td:nth(0)', $('tr.draggable-lang-item', '#s1')[0]).append(
						'<span class="ow_mild_green ow_small"><?php 
            echo smarty_function_text(array('key' => "admin+def"), $_smarty_tpl);
            ?>
</span>'
						
					);

				$.ajax( {
					type: "POST",
					url: '<?php 
            echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:ajaxOrder"), $_smarty_tpl);
            ?>
',
					data: set
				});
		},

		connectWith: '#s1, #s2'
	}).each( function(){
		$('tr.draggable-lang-item', this).hover(
				function(){ $('td:nth-child(3) div span', this).show() }, 
				function(){ $('td:nth-child(3) div span', this).hide() }
			);
		
		if ($('tr.draggable-lang-item', this).length == 0)
			$(this).append( '<tr class="empty"><td colspan="3"><?php 
            echo smarty_function_text(array('key' => "admin+empty"), $_smarty_tpl);
            ?>
</td></tr>' );	
		} );
});

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


.lang_placeholder {
	border: 1px dashed grey;
	width: 100%;
}

tr.lang_placeholder td{
	border: 1px dashed grey;
	width: 100%;
	height: 35px;
}

.draggable-lang-item{
	cursor: move;
}

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


<div class="ow_superwide ow_automargin ow_stdmargin">
<a name="lang_list"></a>
<table id="langs" class="ow_table_1">
    <tr class="ow_tr_first">
        <th class="ow_center"><?php 
        echo smarty_function_text(array('key' => "admin+active_languages"), $_smarty_tpl);
        ?>
</th>
        <th width="100"><?php 
        echo smarty_function_text(array('key' => "admin+missing_keys2"), $_smarty_tpl);
        ?>
</th>
        <th width="180"></th>
    </tr>
    <tbody id="s1" class="s">
	<?php 
        $_smarty_tpl->tpl_vars['lang'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['lang']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['active_langs']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['lang']->total = $_smarty_tpl->_count($_from);
        $_smarty_tpl->tpl_vars['lang']->iteration = 0;
        $_smarty_tpl->tpl_vars['lang']->index = -1;
        foreach ($_from as $_smarty_tpl->tpl_vars['lang']->key => $_smarty_tpl->tpl_vars['lang']->value) {
            $_smarty_tpl->tpl_vars['lang']->_loop = true;
            $_smarty_tpl->tpl_vars['lang']->iteration++;
            $_smarty_tpl->tpl_vars['lang']->index++;
            $_smarty_tpl->tpl_vars['lang']->first = $_smarty_tpl->tpl_vars['lang']->index === 0;
            $_smarty_tpl->tpl_vars['lang']->last = $_smarty_tpl->tpl_vars['lang']->iteration === $_smarty_tpl->tpl_vars['lang']->total;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']["active_langs"]['first'] = $_smarty_tpl->tpl_vars['lang']->first;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']["active_langs"]['last'] = $_smarty_tpl->tpl_vars['lang']->last;
            ?>
    <tr class="ow_high1 draggable-lang-item <?php 
            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['active_langs']['last']) {
                ?>
ow_tr_last<?php 
            }
            ?>
">
        <td style="text-align:left;"><input type="hidden" value="<?php 
            echo $_smarty_tpl->tpl_vars['lang']->value['id'];
            ?>
">
        	<?php 
            echo $_smarty_tpl->tpl_vars['lang']->value['label'];
            ?>
 <?php 
            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['active_langs']['first']) {
                ?>
<span class="ow_mild_green ow_small"><?php 
                echo smarty_function_text(array('key' => "admin+def"), $_smarty_tpl);
                ?>
</span><?php 
            }
            ?>
       	</td>

        <td class="ow_center"> 
        	<a href="<?php 
            if ($_smarty_tpl->tpl_vars['devMode']->value) {
                echo smarty_function_url_for_route(array('for' => "admin_developer_tools_language"), $_smarty_tpl);
            } else {
                echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:"), $_smarty_tpl);
            }
            ?>
?language=<?php 
            echo $_smarty_tpl->tpl_vars['lang']->value['tag'];
            ?>
&prefix=missing-text"><?php 
            echo $_smarty_tpl->tpl_vars['lang']->value['missing_key_count'];
            ?>
</a>
       	</td>

        <td>
        	<div style="width:250px;height: 20px;" class="ow_center">
	        	<span style="display: none;">
		            <a class="ow_lbutton" href="<?php 
            echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:index"), $_smarty_tpl);
            ?>
?language=<?php 
            echo $_smarty_tpl->tpl_vars['lang']->value['tag'];
            ?>
"><?php 
            echo smarty_function_text(array('key' => "admin+btn_label_edit_values"), $_smarty_tpl);
            ?>
</a>
                    <a class="ow_lbutton" href="javascript://" onclick="OW.ajaxFloatBox('ADMIN_CMP_LangEdit',['<?php 
            echo $_smarty_tpl->tpl_vars['lang']->value['id'];
            ?>
'], {width:600, iconClass: 'ow_ic_edit', title: '<?php 
            echo smarty_function_text(array('key' => 'admin+edit_langs_cap_label'), $_smarty_tpl);
            ?>
'})"><?php 
            echo smarty_function_text(array('key' => "admin+btn_label_edit"), $_smarty_tpl);
            ?>
</a>
		            <a class="ow_lbutton" onclick="$('form[name=clone-form] input:hidden[name=language]').attr('value', '<?php 
            echo $_smarty_tpl->tpl_vars['lang']->value['tag'];
            ?>
'); new OW_FloatBox({$title: '<?php 
            echo smarty_function_text(array('key' => 'admin+clone_language_cap_label'), $_smarty_tpl);
            ?>
', $contents: $('#clone_cont'), width: '420px'})" href="javascript://"><?php 
            echo smarty_function_text(array('key' => "admin+btn_label_clone"), $_smarty_tpl);
            ?>
</a>

					<a class="ow_lbutton ow_green act" style="display: none;" href="<?php 
            echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:activate"), $_smarty_tpl);
            ?>
?language=<?php 
            echo $_smarty_tpl->tpl_vars['lang']->value['tag'];
            ?>
"><?php 
            echo smarty_function_text(array('key' => "admin+btn_label_activate"), $_smarty_tpl);
            ?>
</a>		            
                    <a class="ow_lbutton ow_red deact" <?php 
            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['active_langs']['first']) {
                ?>
style="display: none;"<?php 
            }
            ?>
href="<?php 
            echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:deactivate"), $_smarty_tpl);
            ?>
?language=<?php 
            echo $_smarty_tpl->tpl_vars['lang']->value['tag'];
            ?>
"><?php 
            echo smarty_function_text(array('key' => "admin+btn_label_deactivate"), $_smarty_tpl);
            ?>
</a>
		            <a class="ow_lbutton ow_red del" style="display: none;" href="<?php 
            echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:delete"), $_smarty_tpl);
            ?>
?language=<?php 
            echo $_smarty_tpl->tpl_vars['lang']->value['tag'];
            ?>
"><?php 
            echo smarty_function_text(array('key' => "admin+btn_label_delete"), $_smarty_tpl);
            ?>
</a>
	            </span>        	
        	</div>
        </td>
    </tr>
    <?php 
        }
        ?>
	</tbody>
	<tr class="ow_tr_delimiter"><td></td></tr>	
		
    <tr class="ow_tr_first ow_tr_last">
        <th class="ow_center"><?php 
        echo smarty_function_text(array('key' => "admin+inactive_languages"), $_smarty_tpl);
        ?>
</th>
        <th width="100"><?php 
        echo smarty_function_text(array('key' => "admin+missing_keys2"), $_smarty_tpl);
        ?>
</th>
        <th width="180"></th>
    </tr>

	<tfoot id="s2" class="s">
    <?php 
        $_smarty_tpl->tpl_vars['lang'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['lang']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['inactive_langs']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['lang']->total = $_smarty_tpl->_count($_from);
        $_smarty_tpl->tpl_vars['lang']->iteration = 0;
        foreach ($_from as $_smarty_tpl->tpl_vars['lang']->key => $_smarty_tpl->tpl_vars['lang']->value) {
            $_smarty_tpl->tpl_vars['lang']->_loop = true;
            $_smarty_tpl->tpl_vars['lang']->iteration++;
            $_smarty_tpl->tpl_vars['lang']->last = $_smarty_tpl->tpl_vars['lang']->iteration === $_smarty_tpl->tpl_vars['lang']->total;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['inactive_lang']['last'] = $_smarty_tpl->tpl_vars['lang']->last;
            ?>
    <tr class="ow_high2 draggable-lang-item <?php 
            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['inactive_lang']['last']) {
                ?>
ow_tr_last<?php 
            }
            ?>
">   
        <td style="text-align:left;">
        	<input type="hidden" value="<?php 
            echo $_smarty_tpl->tpl_vars['lang']->value['id'];
            ?>
">
        	<?php 
            echo $_smarty_tpl->tpl_vars['lang']->value['label'];
            ?>

        </td>
        <td class="ow_center">
        	<a href="<?php 
            echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:index"), $_smarty_tpl);
            ?>
?language=<?php 
            echo $_smarty_tpl->tpl_vars['lang']->value['tag'];
            ?>
&prefix=missing-text"><?php 
            echo $_smarty_tpl->tpl_vars['lang']->value['missing_key_count'];
            ?>
</a>
       	</td>
        <td>
        	<div style="width: 250px; height: 20px;" class="ow_center">
	        	<span style="display: none;">
                    <a class="ow_lbutton" href="<?php 
            echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:index"), $_smarty_tpl);
            ?>
?language=<?php 
            echo $_smarty_tpl->tpl_vars['lang']->value['tag'];
            ?>
"><?php 
            echo smarty_function_text(array('key' => "admin+btn_label_edit_values"), $_smarty_tpl);
            ?>
</a>
                    <a class="ow_lbutton" href="javascript://" onclick="OW.ajaxFloatBox('ADMIN_CMP_LangEdit',['<?php 
            echo $_smarty_tpl->tpl_vars['lang']->value['id'];
            ?>
'], {width:600, iconClass: 'ow_ic_edit', title: '<?php 
            echo smarty_function_text(array('key' => 'admin+edit_langs_cap_label'), $_smarty_tpl);
            ?>
'})"><?php 
            echo smarty_function_text(array('key' => "admin+btn_label_edit"), $_smarty_tpl);
            ?>
</a>
		            <a class="ow_lbutton" onclick="$('form[name=clone-form] input:hidden[name=language]').attr('value', '<?php 
            echo $_smarty_tpl->tpl_vars['lang']->value['tag'];
            ?>
'); new OW_FloatBox({$title: '<?php 
            echo smarty_function_text(array('key' => 'admin+clone_language_cap_label'), $_smarty_tpl);
            ?>
', $contents: $('#clone_cont'), width: '420px'})" href="javascript://"><?php 
            echo smarty_function_text(array('key' => "admin+btn_label_clone"), $_smarty_tpl);
            ?>
</a>
		            
					<a class="ow_lbutton ow_green act" href="<?php 
            echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:activate"), $_smarty_tpl);
            ?>
?language=<?php 
            echo $_smarty_tpl->tpl_vars['lang']->value['tag'];
            ?>
"><?php 
            echo smarty_function_text(array('key' => "admin+btn_label_activate"), $_smarty_tpl);
            ?>
</a>		            
                    <a class="ow_lbutton ow_red deact" style="display: none;" href="<?php 
            echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:deactivate"), $_smarty_tpl);
            ?>
?language=<?php 
            echo $_smarty_tpl->tpl_vars['lang']->value['tag'];
            ?>
"><?php 
            echo smarty_function_text(array('key' => "admin+btn_label_deactivate"), $_smarty_tpl);
            ?>
</a>                        		            
	            	<?php 
            if ($_smarty_tpl->tpl_vars['lang']->value['tag'] != 'en') {
                ?>
<a class="ow_lbutton ow_red del" onclick="return confirm('<?php 
                echo smarty_function_text(array('key' => "admin+are_you_sure"), $_smarty_tpl);
                ?>
')" href="<?php 
                echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:delete"), $_smarty_tpl);
                ?>
?language=<?php 
                echo $_smarty_tpl->tpl_vars['lang']->value['tag'];
                ?>
"><?php 
                echo smarty_function_text(array('key' => "admin+btn_label_delete"), $_smarty_tpl);
                ?>
</a><?php 
            }
            ?>
	            </span>        	
        	</div>   
        </td>
    </tr>
    <?php 
        }
        ?>
    <tfoot>
</table>
</div>

<div class="ow_superwide ow_automargin">
<?php 
        $_smarty_tpl->_capture_stack[0][] = array('add_new_lang', null, null);
        ob_start();
        echo smarty_function_text(array('key' => "admin+add_new_lang_or_pack"), $_smarty_tpl);
        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->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'addClass' => 'ow_stdmargin', 'iconClass' => 'ow_ic_add', 'label' => Smarty::$_smarty_vars['capture']['add_new_lang']));
        $_block_repeat = true;
        echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin', 'iconClass' => 'ow_ic_add', 'label' => Smarty::$_smarty_vars['capture']['add_new_lang']), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

    <a name="lang_import"></a>
	<p>
        <?php 
            echo smarty_function_text(array('key' => "admin+import_lang_note"), $_smarty_tpl);
            ?>

	</p>
                
	<div class="ow_box ow_superwide" style="text-align:center;margin:0 auto 20px; display: <?php 
            if (!$_smarty_tpl->tpl_vars['foo']->value) {
                ?>
block<?php 
            } else {
                ?>
none<?php 
            }
            ?>
;">
		<?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('form', array('name' => "import"));
            $_block_repeat = true;
            echo smarty_block_form(array('name' => "import"), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

		 <?php 
                echo smarty_function_input(array('name' => "command"), $_smarty_tpl);
                ?>

		 <?php 
                echo smarty_function_label(array('name' => "file"), $_smarty_tpl);
                ?>
 <?php 
                echo smarty_function_input(array('name' => "file"), $_smarty_tpl);
                ?>
 <?php 
                echo smarty_function_submit(array('name' => "submit", 'class' => "ow_ic_add"), $_smarty_tpl);
                ?>

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

	</div>
	<?php 
            if ($_smarty_tpl->tpl_vars['foo']->value) {
                ?>
		<form id="imp_form" method="POST" action="<?php 
                echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:import"), $_smarty_tpl);
                ?>
">
		<input type="hidden" name="command" value="import-langs" />
		<input type="hidden" name="imp-type" value="<?php 
                echo $_smarty_tpl->tpl_vars['type']->value;
                ?>
" />
		                
	    <table id="import_table" class="ow_table_2 ow_small ow_spc_import_language">
	        <tr>
	        	<td></td>
	        	<td colspan="10" style="text-align:left;"><?php 
                echo smarty_function_text(array('key' => "admin+select_items_to_import_note"), $_smarty_tpl);
                ?>
</td>
	        </tr>
	        
	        <tr>
	        	<td></td>
	        	<?php 
                $_smarty_tpl->tpl_vars['lang'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['lang']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['langsToImport']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']["col"]['iteration'] = 0;
                foreach ($_from as $_smarty_tpl->tpl_vars['lang']->key => $_smarty_tpl->tpl_vars['lang']->value) {
                    $_smarty_tpl->tpl_vars['lang']->_loop = true;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']["col"]['iteration']++;
                    ?>
	        	<th><input type="checkbox" onclick="$('input:checkbox.col_<?php 
                    echo $_smarty_tpl->getVariable('smarty')->value['foreach']['col']['iteration'];
                    ?>
', $('#import_table') ).attr('checked', this.checked);"/> <?php 
                    echo $_smarty_tpl->tpl_vars['lang']->value['label'];
                    ?>
</th>
	        	<?php 
                }
                ?>
	        </tr>
	        
	        <?php 
                $_smarty_tpl->tpl_vars['prToImp'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['prToImp']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['prefixesToImport']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['row']['iteration'] = 0;
                foreach ($_from as $_smarty_tpl->tpl_vars['prToImp']->key => $_smarty_tpl->tpl_vars['prToImp']->value) {
                    $_smarty_tpl->tpl_vars['prToImp']->_loop = true;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']['row']['iteration']++;
                    ?>
	        <tr class="<?php 
                    echo smarty_function_cycle(array('values' => "ow_alt1,ow_alt2"), $_smarty_tpl);
                    ?>
">
	        	<th style="text-align:left;">
	        		<input type="checkbox" onclick="$('input:checkbox.row_<?php 
                    echo $_smarty_tpl->getVariable('smarty')->value['foreach']['row']['iteration'];
                    ?>
', $('#import_table') ).attr('checked', this.checked);" /> 
	        		<?php 
                    echo $_smarty_tpl->tpl_vars['prToImp']->value['label'];
                    ?>

	       		</th>
	        	
	        	<?php 
                    $_smarty_tpl->tpl_vars['lang'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['lang']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['langsToImport']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']['col']['iteration'] = 0;
                    foreach ($_from as $_smarty_tpl->tpl_vars['lang']->key => $_smarty_tpl->tpl_vars['lang']->value) {
                        $_smarty_tpl->tpl_vars['lang']->_loop = true;
                        $_smarty_tpl->tpl_vars['smarty']->value['foreach']['col']['iteration']++;
                        ?>
				<td>
					<input type="checkbox" class="col_<?php 
                        echo $_smarty_tpl->getVariable('smarty')->value['foreach']['col']['iteration'];
                        ?>
 row_<?php 
                        echo $_smarty_tpl->getVariable('smarty')->value['foreach']['row']['iteration'];
                        ?>
" name="set[lang][lang_<?php 
                        echo $_smarty_tpl->tpl_vars['lang']->value['tag'];
                        ?>
][]" value="<?php 
                        echo $_smarty_tpl->tpl_vars['prToImp']->value['prefix'];
                        ?>
"/>
				</td>
	        	<?php 
                    }
                    ?>
                            	
	        </tr>
	        <?php 
                }
                ?>

	        <tr>
	        	<td></td>
	        	<td colspan="10"><input type="checkbox" onclick="$('input:checkbox','#import_table').attr('checked', this.checked);" /> <?php 
                echo smarty_function_text(array('key' => "admin+lang_import_check_all"), $_smarty_tpl);
                ?>
</td>
	        </tr>
	    </table>
		<div class="clearfix">
			<div class="ow_right">
			<?php 
                echo smarty_function_decorator(array('name' => "button", 'class' => "ow_positive", 'langLabel' => "admin+import_lang_button_label", 'extraString' => "onclick=\"" . "\$" . "('#imp_form')[0].submit()\""), $_smarty_tpl);
                ?>

			</div>
		</div>
		</form>
	<?php 
            }
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin', 'iconClass' => 'ow_ic_add', 'label' => Smarty::$_smarty_vars['capture']['add_new_lang']), $_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();
            ?>


.ondrag-class{
	background-color: #B2CCB2;
}

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


<span id="exportInvite">
	<?php 
        $_smarty_tpl->_capture_stack[0][] = array('export_lang', null, null);
        ob_start();
        echo smarty_function_text(array('key' => "admin+export_lang_header"), $_smarty_tpl);
        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->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'addClass' => 'ow_stdmargin', 'iconClass' => 'ow_ic_add', 'label' => Smarty::$_smarty_vars['capture']['add_new_lang']));
        $_block_repeat = true;
        echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin', 'iconClass' => 'ow_ic_add', 'label' => Smarty::$_smarty_vars['capture']['add_new_lang']), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

    	<p style="padding-bottom:10px;"><?php 
            echo smarty_function_text(array('key' => "admin+export_lang_note"), $_smarty_tpl);
            ?>
</p>
    	
        <div class="ow_box_mod clearfix ow_smallmargin">
			<div class="ow_right">
        	<?php 
            echo smarty_function_decorator(array('name' => "button", 'class' => "ow_ic_up_arrow", 'langLabel' => "admin+export_lang_button_label", 'extraString' => "onclick=\"" . "\$" . "('#exportInvite').hide();" . "\$" . "('#exportForm').show();\""), $_smarty_tpl);
            ?>

			</div>
        </div>
    <?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin', 'iconClass' => 'ow_ic_add', 'label' => Smarty::$_smarty_vars['capture']['add_new_lang']), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

</span>

</div>

<form id="exportForm" method="POST" style="display: none;">
<input type="hidden" name="command" value="export-langs">

	<table id="export_table" class="ow_table_2 ow_small ow_superwide ow_spc_inport_language ow_automargin">
	    <tr>
	    	<td></td>
	    	<td colspan="10" style="text-align:left;"><?php 
        echo smarty_function_text(array('key' => "admin+export_lang_note2"), $_smarty_tpl);
        ?>
</td>
	    </tr>
	    <tr>
            <td class="ow_left"><input type="checkbox" onclick="$('input:checkbox', '#export_table').attr('checked', this.checked);"/> <?php 
        echo smarty_function_text(array('key' => "admin+lang_import_check_all"), $_smarty_tpl);
        ?>
</td>
	    	<?php 
        $_smarty_tpl->tpl_vars['lang'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['lang']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['langs']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['smarty']->value['foreach']["col"]['iteration'] = 0;
        foreach ($_from as $_smarty_tpl->tpl_vars['lang']->key => $_smarty_tpl->tpl_vars['lang']->value) {
            $_smarty_tpl->tpl_vars['lang']->_loop = true;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']["col"]['iteration']++;
            ?>
	    	<th><input type="checkbox" onclick="$('input:checkbox.col_<?php 
            echo $_smarty_tpl->getVariable('smarty')->value['foreach']['col']['iteration'];
            ?>
', $('#export_table') ).attr('checked', this.checked);"/> <?php 
            echo $_smarty_tpl->tpl_vars['lang']->value['label'];
            ?>
</th>
	    	<?php 
        }
        ?>
	    </tr>
	    <?php 
        $_smarty_tpl->tpl_vars['prefix'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['prefix']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['prefixes']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['smarty']->value['foreach']["row"]['iteration'] = 0;
        foreach ($_from as $_smarty_tpl->tpl_vars['prefix']->key => $_smarty_tpl->tpl_vars['prefix']->value) {
            $_smarty_tpl->tpl_vars['prefix']->_loop = true;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']["row"]['iteration']++;
            ?>
	    <tr class="<?php 
            echo smarty_function_cycle(array('values' => "ow_alt1,ow_alt2"), $_smarty_tpl);
            ?>
" >
	    	<th style="text-align: left;"><input type="checkbox" onclick="$('input:checkbox.row_<?php 
            echo $_smarty_tpl->getVariable('smarty')->value['foreach']['row']['iteration'];
            ?>
', $('#export_table') ).attr('checked', this.checked);" /> <?php 
            echo $_smarty_tpl->tpl_vars['prefix']->value->getLabel();
            ?>
</th>
	    	<?php 
            $_smarty_tpl->tpl_vars['lang'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['lang']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['langs']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']["col"]['iteration'] = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars['lang']->key => $_smarty_tpl->tpl_vars['lang']->value) {
                $_smarty_tpl->tpl_vars['lang']->_loop = true;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']["col"]['iteration']++;
                ?>
	    	<td><input type="checkbox" class="col_<?php 
                echo $_smarty_tpl->getVariable('smarty')->value['foreach']['col']['iteration'];
                ?>
 row_<?php 
                echo $_smarty_tpl->getVariable('smarty')->value['foreach']['row']['iteration'];
                ?>
" name="set[lang][lang_<?php 
                echo $_smarty_tpl->tpl_vars['lang']->value['id'];
                ?>
][prefix_<?php 
                echo $_smarty_tpl->tpl_vars['prefix']->value->getId();
                ?>
]" value="<?php 
                echo $_smarty_tpl->tpl_vars['prefix']->value->getId();
                ?>
"/></td>
	    	<?php 
            }
            ?>
	    </tr>
	    <?php 
        }
        ?>
	</table>
	<div class="clearfix ow_stdmargin"><div class="ow_right"><?php 
        echo smarty_function_decorator(array('name' => "button", 'class' => "ow_ic_up_arrow ow_positive", 'langLabel' => "admin+export_lang_button_label2", 'extraString' => "onclick=\"" . "\$" . "('#exportForm')[0].submit();\""), $_smarty_tpl);
        ?>
</div></div>
</form>

<div style="display: none;">
	<div id="clone_cont">
		<?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('form', array('name' => "clone-form"));
        $_block_repeat = true;
        echo smarty_block_form(array('name' => "clone-form"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

			<?php 
            echo smarty_function_input(array('name' => "language"), $_smarty_tpl);
            ?>

			<table class="ow_table_1 ow_form">
				<tr class="ow_alt2">
					<td class="ow_label">
						<?php 
            echo smarty_function_label(array('name' => "label"), $_smarty_tpl);
            ?>

					</td>
                    <td class="ow_value" style="width:30%">
						<?php 
            echo smarty_function_input(array('name' => "label"), $_smarty_tpl);
            ?>

					</td>
                    <td class="ow_desc">
						<?php 
            echo smarty_function_desc(array('name' => "label"), $_smarty_tpl);
            ?>

					</td>			
				</tr>
				<tr class="ow_alt1">
					<td class="ow_label">
						<?php 
            echo smarty_function_label(array('name' => "tag"), $_smarty_tpl);
            ?>

					</td>
                    <td class="ow_value">
						<?php 
            echo smarty_function_input(array('name' => "tag"), $_smarty_tpl);
            ?>

					</td>
					<td class="ow_desc">
						<?php 
            echo smarty_function_desc(array('name' => "tag"), $_smarty_tpl);
            ?>

					</td>									
				</tr>
			</table>
			<div class="clearfix"><div class="ow_right"><?php 
            echo smarty_function_submit(array('name' => "submit", 'class' => "ow_positive"), $_smarty_tpl);
            ?>
</div></div>
		<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_form(array('name' => "clone-form"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

	</div>
</div><?php 
    }
    function content_55597bc656a750_11035358($_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_function_url_for_route')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.url_for_route.php';
        }
        if (!is_callable('smarty_block_form')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/block.form.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_label')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.label.php';
        }
        if (!is_callable('smarty_function_input')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.input.php';
        }
        if (!is_callable('smarty_function_error')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.error.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_submit')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.submit.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();
            ?>

  
    $("#avatar_change_btn").click(function(){
        $(this).hide();
        $("#cancel_change").show();
        $("#avatar_input").show();
    });
    
    $("#big_avatar_change_btn").click(function(){
        $(this).hide();
        $("#cancel_big_change").show();
        $("#big_avatar_input").show();
    });
    
    $("#cancel_change").click(function(){
        $(this).hide();
        $("#avatar_change_btn").show();
        $("#avatar_input").html('<input type="file" name="avatar" />');
        $("#avatar_input").hide();
    });
    
    $("#cancel_big_change").click(function(){
        $(this).hide();
        $("#big_avatar_change_btn").show();
        $("#big_avatar_input").html('<input type="file" name="bigAvatar" />');
        $("#big_avatar_input").hide();
    });
    
    $("#avatar_delete_btn").click(function(){
        if ( confirm(OW.getLanguageText('admin', 'confirm_avatar_delete')) ) 
        {
            window.location.href = "<?php 
            echo smarty_function_url_for_route(array('for' => 'admin_settings_user'), $_smarty_tpl);
            ?>
?del-avatar=1";
        }
    });
    
    $("#big_avatar_delete_btn").click(function(){
        if ( confirm(OW.getLanguageText('admin', 'confirm_avatar_delete')) ) 
        {
            window.location.href = "<?php 
            echo smarty_function_url_for_route(array('for' => 'admin_settings_user'), $_smarty_tpl);
            ?>
?del-avatar=2";
        }
    });
  
<?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 
        echo $_smarty_tpl->tpl_vars['menu']->value;
        ?>

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


<table class="ow_table_1 ow_form">
    <tr class="ow_tr_first">
        <th class="ow_name ow_txtleft" colspan="3">
            <span class="ow_section_icon ow_ic_monitor"><?php 
            echo smarty_function_text(array('key' => 'admin+user_display_settings'), $_smarty_tpl);
            ?>
</span>
        </th>
    </tr>
   <tr class="ow_alt1 ow_tr_last">
        <td class="ow_label"><?php 
            echo smarty_function_label(array('name' => 'displayName'), $_smarty_tpl);
            ?>
</td>
        <td class="ow_value"><?php 
            echo smarty_function_input(array('name' => 'displayName'), $_smarty_tpl);
            ?>
 <?php 
            echo smarty_function_error(array('name' => 'displayName'), $_smarty_tpl);
            ?>
</td>
        <td class="ow_desc ow_small">
            <?php 
            echo smarty_function_text(array('key' => 'admin+user_settings_display_name_desc'), $_smarty_tpl);
            ?>

        </td>
    </tr>
    <tr class="ow_tr_delimiter"><td></td></tr>
    <?php 
            if ($_smarty_tpl->tpl_vars['displayConfirmEmail']->value) {
                ?>
    <tr class="ow_tr_first">
        <th class="ow_name ow_txtleft" colspan="3">
            <span class="ow_section_icon ow_ic_mail"><?php 
                echo smarty_function_text(array('key' => 'admin+user_settings_email'), $_smarty_tpl);
                ?>
</span>
        </th>
    </tr>
    <tr class="ow_alt1 ow_tr_last">
        <td class="ow_label"><?php 
                echo smarty_function_label(array('name' => 'confirmEmail'), $_smarty_tpl);
                ?>
</td>
        <td class="ow_value"><?php 
                echo smarty_function_input(array('name' => 'confirmEmail'), $_smarty_tpl);
                ?>
 <?php 
                echo smarty_function_error(array('name' => 'confirmEmail'), $_smarty_tpl);
                ?>
</td>
        <td class="ow_desc ow_small">
            <?php 
                echo smarty_function_text(array('key' => 'admin+user_settings_confirm_email_desc'), $_smarty_tpl);
                ?>

        </td>
    </tr>
    <tr class="ow_tr_delimiter"><td></td></tr>
    <?php 
            }
            ?>
    <tr class="ow_tr_first">
        <th class="ow_name ow_txtleft" colspan="3">
            <span class="ow_section_icon ow_ic_picture"><?php 
            echo smarty_function_text(array('key' => 'admin+user_avatar_settings'), $_smarty_tpl);
            ?>
</span>
        </th>
    </tr>
    <tr class="ow_alt1">
        <td class="ow_label"><?php 
            echo smarty_function_label(array('name' => 'avatarSize'), $_smarty_tpl);
            ?>
</td>
        <td class="ow_value"><?php 
            echo smarty_function_input(array('name' => 'avatarSize', 'class' => 'ow_settings_input'), $_smarty_tpl);
            ?>
 px<br /><?php 
            echo smarty_function_error(array('name' => 'avatarSize'), $_smarty_tpl);
            ?>
</td>
        <td class="ow_desc ow_small"><?php 
            echo smarty_function_text(array('key' => 'admin+user_settings_avatar_size_desc'), $_smarty_tpl);
            ?>
</td>
    </tr>
    <tr class="ow_alt2">
        <td class="ow_label"><?php 
            echo smarty_function_label(array('name' => 'bigAvatarSize'), $_smarty_tpl);
            ?>
</td>
        <td class="ow_value"><?php 
            echo smarty_function_input(array('name' => 'bigAvatarSize', 'class' => 'ow_settings_input'), $_smarty_tpl);
            ?>
 px<br /><?php 
            echo smarty_function_error(array('name' => 'bigAvatarSize'), $_smarty_tpl);
            ?>
</td>
        <td class="ow_desc ow_small"><?php 
            echo smarty_function_text(array('key' => 'admin+user_settings_big_avatar_size_desc'), $_smarty_tpl);
            ?>
</td>
    </tr>        
        <tr class="ow_alt1">
            <td class="ow_label"><?php 
            echo smarty_function_label(array('name' => 'avatar_max_upload_size'), $_smarty_tpl);
            ?>
</td>
            <td class="ow_value"><?php 
            echo smarty_function_input(array('name' => 'avatar_max_upload_size', 'style' => "width:30px;"), $_smarty_tpl);
            ?>
 MB  <span class="ow_small"><?php 
            echo smarty_function_text(array('key' => 'base+max_upload_filesize', 'value' => $_smarty_tpl->tpl_vars['maxUploadMaxFilesize']->value), $_smarty_tpl);
            ?>
</span><br /><?php 
            echo smarty_function_error(array('name' => 'avatar_max_upload_size'), $_smarty_tpl);
            ?>
</td>
            <td class="ow_desc"></td>
        </tr>
    </tr>
    <tr class="ow_alt2 ow_tr_last">
        <td class="ow_label"><?php 
            echo smarty_function_text(array('key' => 'admin+user_settings_avatar_image'), $_smarty_tpl);
            ?>
</td>
        <td class="ow_value">
            <div class="ow_smallmargin">
                <img src="<?php 
            echo $_smarty_tpl->tpl_vars['avatar']->value;
            ?>
" /><br />
                <?php 
            if (!empty($_smarty_tpl->tpl_vars['customAvatar']->value[1])) {
                ?>
<span class="ow_lbutton ow_mild_red" id="avatar_delete_btn"><?php 
                echo smarty_function_text(array('key' => 'base+delete'), $_smarty_tpl);
                ?>
</span><?php 
            }
            ?>
                <span class="ow_lbutton" id="avatar_change_btn"><?php 
            echo smarty_function_text(array('key' => 'base+change'), $_smarty_tpl);
            ?>
</span>
                <span class="ow_lbutton" id="cancel_change" style="display: none;"><?php 
            echo smarty_function_text(array('key' => 'base+cancel'), $_smarty_tpl);
            ?>
</span>
	            <div id="avatar_input" style="display: none"><?php 
            echo smarty_function_input(array('name' => 'avatar'), $_smarty_tpl);
            ?>
</div>
            </div>
            <div>
                <img src="<?php 
            echo $_smarty_tpl->tpl_vars['avatarBig']->value;
            ?>
" /><br />
                <?php 
            if (!empty($_smarty_tpl->tpl_vars['customAvatar']->value[2])) {
                ?>
<span class="ow_lbutton ow_mild_red" id="big_avatar_delete_btn"><?php 
                echo smarty_function_text(array('key' => 'base+delete'), $_smarty_tpl);
                ?>
</span><?php 
            }
            ?>
                <span class="ow_lbutton" id="big_avatar_change_btn"><?php 
            echo smarty_function_text(array('key' => 'base+change'), $_smarty_tpl);
            ?>
</span>
                <span class="ow_lbutton" id="cancel_big_change" style="display: none;"><?php 
            echo smarty_function_text(array('key' => 'base+cancel'), $_smarty_tpl);
            ?>
</span>
                <div id="big_avatar_input" style="display: none"><?php 
            echo smarty_function_input(array('name' => 'bigAvatar'), $_smarty_tpl);
            ?>
</div>
            </div>
        </td>
        <td class="ow_desc ow_small"><?php 
            echo smarty_function_text(array('key' => 'admin+user_settings_avatar_image_desc'), $_smarty_tpl);
            ?>
</td>
    </tr>
    <tr class="ow_tr_delimiter"><td></td></tr>
    <tr class="ow_tr_first">
        <th class="ow_name ow_txtleft" colspan="3">
            <span class="ow_section_icon ow_ic_script"><?php 
            echo smarty_function_text(array('key' => 'admin+join_page'), $_smarty_tpl);
            ?>
</span>
        </th>
    </tr>
    <tr class="<?php 
            echo smarty_function_cycle(array('name' => "install", 'values' => "ow_alt1,ow_alt2"), $_smarty_tpl);
            ?>
">
        <td class="ow_label"><?php 
            echo smarty_function_text(array('key' => 'admin+join_display_photo_upload'), $_smarty_tpl);
            ?>
</td>
        <td class="ow_value"><?php 
            echo smarty_function_input(array('name' => 'join_display_photo_upload'), $_smarty_tpl);
            ?>
 <?php 
            echo smarty_function_error(array('name' => 'join_display_photo_upload'), $_smarty_tpl);
            ?>
</td>
        <td class="ow_desc"><?php 
            echo smarty_function_text(array('key' => 'admin+join_display_photo_upload_desc'), $_smarty_tpl);
            ?>
</td>
    </tr>
    <tr class="<?php 
            echo smarty_function_cycle(array('name' => "install", 'values' => "ow_alt1,ow_alt2"), $_smarty_tpl);
            ?>
 ow_tr_last">
        <td class="ow_label"><?php 
            echo smarty_function_text(array('key' => 'admin+join_display_terms_of_use'), $_smarty_tpl);
            ?>
</td>
        <td class="ow_value"><?php 
            echo smarty_function_input(array('name' => 'join_display_terms_of_use'), $_smarty_tpl);
            ?>
 <?php 
            echo smarty_function_error(array('name' => 'join_display_terms_of_use'), $_smarty_tpl);
            ?>
</td>
        <td class="ow_desc"><?php 
            echo smarty_function_text(array('key' => 'admin+join_display_terms_of_use_desc'), $_smarty_tpl);
            ?>
</td>
    </tr>
</table>
<div class="clearfix ow_stdmargin"><div class="ow_right">
<?php 
            echo smarty_function_submit(array('name' => 'save', 'class' => 'ow_ic_save'), $_smarty_tpl);
            ?>

</div></div>

<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_form(array('name' => 'userSettingsForm'), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
    }
    function content_55b238f5efa866_65965608($_smarty_tpl)
    {
        if (!is_callable('smarty_block_style')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/block.style.php';
        }
        if (!is_callable('smarty_block_script')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/block.script.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_add_content')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.add_content.php';
        }
        if ($_smarty_tpl->tpl_vars['ownerMode']->value || $_smarty_tpl->tpl_vars['adminMode']->value && !$_smarty_tpl->tpl_vars['superAdminProfile']->value) {
            ?>
    <?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_edit_profile_link
            {
                position: absolute;
                right: 0px;
                top: 0px;
            }
        
    <?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();
                ?>

        
            (function(){
                $(".user_profile_data").hover(
                  function(){
                    $("#edit-profile").fadeIn();
                  },
                  function(){
                    $("#edit-profile").fadeOut();
                  }
              );
           }());
       
    <?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 
        }
        ?>

<div class="user_profile_data" style="position:relative">
     <?php 
        if ($_smarty_tpl->tpl_vars['ownerMode']->value || $_smarty_tpl->tpl_vars['adminMode']->value && !$_smarty_tpl->tpl_vars['superAdminProfile']->value) {
            ?>
         <div style="display: none;" id="edit-profile" class="ow_edit_profile_link">
                <a class="ow_lbutton" href="<?php 
            echo $_smarty_tpl->tpl_vars['profileEditUrl']->value;
            ?>
"><?php 
            echo smarty_function_text(array('key' => 'base+edit_profile_link'), $_smarty_tpl);
            ?>
</a>
         </div>
     <?php 
        }
        ?>

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

    <?php 
        }
        ?>
 </div>

<?php 
        echo smarty_function_add_content(array('key' => 'socialsharing.get_sharing_buttons', 'title' => $_smarty_tpl->tpl_vars['displayName']->value, 'image' => $_smarty_tpl->tpl_vars['avatarUrl']->value, 'entityType' => 'user', 'entityId' => $_smarty_tpl->tpl_vars['userId']->value), $_smarty_tpl);
        ?>

<?php 
    }
    function content_55d5751c6815e9_56225179($_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_form')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/block.form.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_label')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.label.php';
        }
        if (!is_callable('smarty_function_input')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.input.php';
        }
        if (!is_callable('smarty_function_error')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.error.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_submit')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.submit.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();
            ?>


$(function(){
    $("form[name='MainSearchForm'] [name='match_sex']").change(
        function(){ this.form.submit(); }
    );
});

<?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 (isset($_smarty_tpl->tpl_vars['menu']->value)) {
            echo $_smarty_tpl->tpl_vars['menu']->value;
        }
        ?>

<?php 
        if (isset($_smarty_tpl->tpl_vars['authMessage']->value)) {
            ?>
<div class="ow_anno ow_std_margin ow_nocontent"><?php 
            echo $_smarty_tpl->tpl_vars['authMessage']->value;
            ?>
</div>
<?php 
        } else {
            ?>
<div class="clearfix">
    <div class="ow_superwide ow_automargin">
        <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('form', array('name' => 'MainSearchForm'));
            $_block_repeat = true;
            echo smarty_block_form(array('name' => 'MainSearchForm'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

        <table class="ow_table_1 ow_form">
            <?php 
                if ($_smarty_tpl->tpl_vars['displayAccountType']->value == true) {
                    ?>
                <?php 
                    if (!empty($_smarty_tpl->tpl_vars['displayGender']->value)) {
                        ?>
                    <tr class=" ow_tr_first ow_tr_last">
                        <?php 
                        echo smarty_function_cycle(array('assign' => 'alt', 'values' => 'ow_alt1,ow_alt2'), $_smarty_tpl);
                        ?>

                        <td class="<?php 
                        echo $_smarty_tpl->tpl_vars['alt']->value;
                        ?>
 ow_label">
                            <?php 
                        echo smarty_function_label(array('name' => 'sex'), $_smarty_tpl);
                        ?>

                        </td>
                        <td class="<?php 
                        echo $_smarty_tpl->tpl_vars['alt']->value;
                        ?>
 ow_value">
                            <?php 
                        echo smarty_function_input(array('name' => 'sex'), $_smarty_tpl);
                        ?>

                            <div style="height:1px;"></div>
                            <?php 
                        echo smarty_function_error(array('name' => 'sex'), $_smarty_tpl);
                        ?>

                        </td>
                    </tr>
                <?php 
                    }
                    ?>
                <tr class="ow_tr_first">
                    <?php 
                    echo smarty_function_cycle(array('assign' => 'alt', 'values' => 'ow_alt1,ow_alt2'), $_smarty_tpl);
                    ?>

                    <td class="<?php 
                    echo $_smarty_tpl->tpl_vars['alt']->value;
                    ?>
 ow_label">
                        <?php 
                    echo smarty_function_label(array('name' => 'match_sex'), $_smarty_tpl);
                    ?>

                    </td>
                    <td class="<?php 
                    echo $_smarty_tpl->tpl_vars['alt']->value;
                    ?>
 ow_value">
                        <?php 
                    echo smarty_function_input(array('name' => 'match_sex'), $_smarty_tpl);
                    ?>

                        <div style="height:1px;"></div>
                        <?php 
                    echo smarty_function_error(array('name' => 'match_sex'), $_smarty_tpl);
                    ?>

                    </td>
                </tr>
                
                <tr class="">
                    <?php 
                    echo smarty_function_cycle(array('assign' => 'alt', 'values' => 'ow_alt1,ow_alt2'), $_smarty_tpl);
                    ?>

                    <td class="<?php 
                    echo $_smarty_tpl->tpl_vars['alt']->value;
                    ?>
 ow_label">
                        <?php 
                    echo smarty_function_label(array('name' => 'online'), $_smarty_tpl);
                    ?>

                    </td>
                    <td class="<?php 
                    echo $_smarty_tpl->tpl_vars['alt']->value;
                    ?>
 ow_value">
                        <?php 
                    echo smarty_function_input(array('name' => 'online'), $_smarty_tpl);
                    ?>

                        <div style="height:1px;"></div>
                        <?php 
                    echo smarty_function_error(array('name' => 'online'), $_smarty_tpl);
                    ?>

                    </td>
                </tr>
                
                <tr class="ow_tr_last">
                    <?php 
                    echo smarty_function_cycle(array('assign' => 'alt', 'values' => 'ow_alt1,ow_alt2'), $_smarty_tpl);
                    ?>

                    <td class="<?php 
                    echo $_smarty_tpl->tpl_vars['alt']->value;
                    ?>
 ow_label">
                        <?php 
                    echo smarty_function_label(array('name' => 'with_photo'), $_smarty_tpl);
                    ?>

                    </td>
                    <td class="<?php 
                    echo $_smarty_tpl->tpl_vars['alt']->value;
                    ?>
 ow_value">
                        <?php 
                    echo smarty_function_input(array('name' => 'with_photo'), $_smarty_tpl);
                    ?>

                        <div style="height:1px;"></div>
                        <?php 
                    echo smarty_function_error(array('name' => 'with_photo'), $_smarty_tpl);
                    ?>

                    </td>
                </tr>
                
                <tr class="ow_tr_delimiter"><td></td></tr>
            <?php 
                }
                ?>
            <?php 
                if (!empty($_smarty_tpl->tpl_vars['questionList']->value)) {
                    ?>
            <?php 
                    $_smarty_tpl->tpl_vars['questions'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['questions']->_loop = false;
                    $_smarty_tpl->tpl_vars['section'] = new Smarty_Variable();
                    $_from = $_smarty_tpl->tpl_vars['questionList']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['questions']->key => $_smarty_tpl->tpl_vars['questions']->value) {
                        $_smarty_tpl->tpl_vars['questions']->_loop = true;
                        $_smarty_tpl->tpl_vars['section']->value = $_smarty_tpl->tpl_vars['questions']->key;
                        ?>
            <?php 
                        if (!empty($_smarty_tpl->tpl_vars['section']->value)) {
                            ?>
            <tr class="ow_tr_first"><th colspan="3"><?php 
                            echo smarty_function_text(array('key' => "base+questions_section_" . (string) $_smarty_tpl->tpl_vars['section']->value . "_label"), $_smarty_tpl);
                            ?>
</th></tr>
            <?php 
                        }
                        ?>
            <?php 
                        $_smarty_tpl->tpl_vars['question'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['question']->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['questions']->value;
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        $_smarty_tpl->tpl_vars['question']->total = $_smarty_tpl->_count($_from);
                        $_smarty_tpl->tpl_vars['question']->iteration = 0;
                        foreach ($_from as $_smarty_tpl->tpl_vars['question']->key => $_smarty_tpl->tpl_vars['question']->value) {
                            $_smarty_tpl->tpl_vars['question']->_loop = true;
                            $_smarty_tpl->tpl_vars['question']->iteration++;
                            $_smarty_tpl->tpl_vars['question']->last = $_smarty_tpl->tpl_vars['question']->iteration === $_smarty_tpl->tpl_vars['question']->total;
                            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['question']['last'] = $_smarty_tpl->tpl_vars['question']->last;
                            ?>
                <tr class="<?php 
                            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['question']['last']) {
                                ?>
ow_tr_last<?php 
                            }
                            ?>
">
                    <?php 
                            echo smarty_function_cycle(array('assign' => 'alt', 'values' => 'ow_alt1,ow_alt2'), $_smarty_tpl);
                            ?>

                    <td class="<?php 
                            echo $_smarty_tpl->tpl_vars['alt']->value;
                            ?>
 ow_label">
                        <?php 
                            echo smarty_function_label(array('name' => $_smarty_tpl->tpl_vars['question']->value['name']), $_smarty_tpl);
                            ?>

                    </td>
                    <td class="<?php 
                            echo $_smarty_tpl->tpl_vars['alt']->value;
                            ?>
 ow_value">
                        <?php 
                            echo smarty_function_input(array('name' => $_smarty_tpl->tpl_vars['question']->value['name']), $_smarty_tpl);
                            ?>

                        <div style="height:1px;"></div>
                        <?php 
                            echo smarty_function_error(array('name' => $_smarty_tpl->tpl_vars['question']->value['name']), $_smarty_tpl);
                            ?>

                    </td>
                </tr>
            <?php 
                        }
                        ?>
            <tr class="ow_tr_delimiter"><td></td></tr>
            <?php 
                    }
                    ?>
            <?php 
                }
                ?>
        </table>
        <div class="clearfix">
            <div class="ow_right">
                <?php 
                echo smarty_function_submit(array('name' => 'MainSearchFormSubmit'), $_smarty_tpl);
                ?>

            </div>
        </div>
        <?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_form(array('name' => 'MainSearchForm'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

    </div>
</div>
<?php 
        }
    }
    function content_555974c5188766_57143649($_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_function_url_for')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.url_for.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_math')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_libraries/smarty3/plugins/function.math.php';
        }
        if (!is_callable('smarty_function_decorator')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.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();
            ?>


window.editLangValue = function editLangValue(_prefix, _key, _callback){

    if ( !window.question_langs_floatbox_display )
    {
        window.question_langs_floatbox_display = true;
        $.post( '<?php 
            echo smarty_function_url_for(array('for' => "ADMIN_CTRL_Languages:ajaxEditLanguageValuesForm"), $_smarty_tpl);
            ?>
?prefix='+_prefix+'&key='+_key, {}, function(json){
            if(document['ajaxLangValueEditForms'] == undefined)
                    {
                        document['ajaxLangValueEditForms'] = [];
                    }

            document['ajaxLangValueEditForms'][_prefix+'-'+_key] = new OW_FloatBox({$title: '<?php 
            echo smarty_function_text(array('key' => "admin+questions_edit_section_name_title"), $_smarty_tpl);
            ?>
', $contents: json['markup'], width: 556});
                    document['ajaxLangValueEditForms'][_prefix+'-'+_key+'callback'] = _callback;

            document['ajaxLangValueEditForms'][_prefix+'-'+_key].bind("close", function() {
                window.question_langs_floatbox_display = false;
            });

            OW.addScriptFiles(json['include_js'], function(){ OW.addScript(json['js']); });

        }, 'json');
    }
}

<?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 
        echo $_smarty_tpl->tpl_vars['contentMenu']->value;
        ?>


<div class="ow_admin_profile_questions_list_div">

    <table class="ow_table_2 ow_smallmargin ow_lables_table">
        <tr class="ow_tr_first">
            <th colspan="4" class="ow_tr_top_empty ow_txtleft">
                <?php 
        echo smarty_function_text(array('key' => "admin+questions_page_description"), $_smarty_tpl);
        ?>

            </th>
            <th colspan="<?php 
        echo $_smarty_tpl->tpl_vars['accountTypesCount']->value;
        ?>
" class="ow_tr_top">
                <div class="ow_tr_top_buttons">
                    <div class="ow_tr_top_button ow_tr_top_button_selected" ><div><?php 
        echo smarty_function_text(array('key' => 'admin+question_menu_account_types'), $_smarty_tpl);
        ?>
</div></div>
                    <div class="ow_tr_top_button" onclick='window.location.href="<?php 
        echo $_smarty_tpl->tpl_vars['propertiesUrl']->value;
        ?>
"'><div><?php 
        echo smarty_function_text(array('key' => 'admin+question_menu_properties'), $_smarty_tpl);
        ?>
</div></div>
                </div>
            </th>
        </tr>
        <tr class="ow_tr_last ow_tr_titles">
            <th class="question_label_th"   ><div class="question_label_div"><?php 
        echo smarty_function_text(array('key' => 'admin+question_column_question'), $_smarty_tpl);
        ?>
</div></th>
            <th class="question_account_type_th"><div class="question_account_type_div"><?php 
        echo smarty_function_text(array('key' => 'admin+question_column_type'), $_smarty_tpl);
        ?>
</div></th>
            <th class="question_values_th"><div class="question_values_div"><?php 
        echo smarty_function_text(array('key' => 'admin+question_column_values'), $_smarty_tpl);
        ?>
</div></th>
            <th class="question_buttons_th" ><div class="question_buttons_div"></div></th>
            <?php 
        $_smarty_tpl->tpl_vars['accountType'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['accountType']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['accountTypeDtoList']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['accountType']->key => $_smarty_tpl->tpl_vars['accountType']->value) {
            $_smarty_tpl->tpl_vars['accountType']->_loop = true;
            ?>
                <th class="ow_small account_type_th" style="width:<?php 
            echo $_smarty_tpl->tpl_vars['td_width']->value;
            ?>
px;" data-accounttype="<?php 
            echo $_smarty_tpl->tpl_vars['accountType']->value->name;
            ?>
">
                    <div style="width:<?php 
            echo $_smarty_tpl->tpl_vars['div_width']->value;
            ?>
px;position:relative;">
                        <input type='hidden' value='<?php 
            echo $_smarty_tpl->tpl_vars['accountType']->value->name;
            ?>
'>
                        <div class="account_type_menu" style="position:absolute;top: -8px; right: -8px;display:none;"><?php 
            echo $_smarty_tpl->tpl_vars['accountTypeMenu']->value;
            ?>
</div>
                        <div class="table_content_block"style="overflow:hidden; font-weight: normal;"><?php 
            echo smarty_function_text(array('key' => "base+questions_account_type_" . (string) $_smarty_tpl->tpl_vars['accountType']->value->name), $_smarty_tpl);
            ?>
</div>

                    </div>
                </th>
            <?php 
        }
        ?>
            <th class="ow_small account_type_th" style="width:<?php 
        echo $_smarty_tpl->tpl_vars['td_width']->value;
        ?>
px;">
                <div class="table_content_block" style="width:<?php 
        echo $_smarty_tpl->tpl_vars['div_width']->value;
        ?>
px;overflow:hidden; font-weight: normal;"><a class="add_account_type" href="javascript://"><?php 
        echo smarty_function_text(array('key' => "base+questions_add_account_type"), $_smarty_tpl);
        ?>
</div>
            </th>
        </tr>
    </table>

    <?php 
        $_smarty_tpl->tpl_vars['questions'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['questions']->_loop = false;
        $_smarty_tpl->tpl_vars['section'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['questionsBySections']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['questions']->key => $_smarty_tpl->tpl_vars['questions']->value) {
            $_smarty_tpl->tpl_vars['questions']->_loop = true;
            $_smarty_tpl->tpl_vars['section']->value = $_smarty_tpl->tpl_vars['questions']->key;
            ?>
    <table class="ow_table_2 ow_smallmargin ow_admin_profile_questions_list <?php 
            if (!$_smarty_tpl->tpl_vars['section']->value) {
                ?>
no_section<?php 
            } else {
                echo $_smarty_tpl->tpl_vars['section']->value;
            }
            ?>
" sectionName=<?php 
            if ($_smarty_tpl->tpl_vars['section']->value) {
                ?>
"<?php 
                echo $_smarty_tpl->tpl_vars['section']->value;
                ?>
"<?php 
            } else {
                ?>
"no_section"<?php 
            }
            ?>
>
        <tr class="question_section_tr ow_tr_first">
            <th class="section_value <?php 
            if ($_smarty_tpl->tpl_vars['section']->value) {
                ?>
ow_admin_profile_question_dnd_cursor<?php 
            }
            ?>
" colspan="<?php 
            echo $_smarty_tpl->tpl_vars['tableColumnCount']->value;
            ?>
">
               <div class="ow_section_label" ><?php 
            if ($_smarty_tpl->tpl_vars['section']->value) {
                echo smarty_function_text(array('key' => "base+questions_section_" . (string) $_smarty_tpl->tpl_vars['section']->value . "_label"), $_smarty_tpl);
            } else {
                echo smarty_function_text(array('key' => "base+questions_no_section_label"), $_smarty_tpl);
            }
            ?>
</div>
                   <div class="delete_edit_buttons quest_buttons ow_right">
                        <?php 
            if ($_smarty_tpl->tpl_vars['section']->value) {
                ?>
                            <a href="javascript://" class="ow_lbutton edit_sectionNameLang" style="visibility:hidden;" ><?php 
                echo smarty_function_text(array('key' => 'admin+btn_label_edit'), $_smarty_tpl);
                ?>
</a>
                            <?php 
                if ($_smarty_tpl->tpl_vars['sectionList']->value[$_smarty_tpl->tpl_vars['section']->value]->isDeletable) {
                    ?>
                                <a  href="javascript://" class="ow_lbutton ow_red section_delete_button" style="visibility:hidden;" ><?php 
                    echo smarty_function_text(array('key' => 'admin+btn_label_delete'), $_smarty_tpl);
                    ?>
</a>
                            <?php 
                }
                ?>
                        <?php 
            }
            ?>
                    </div>

            </th>
        </tr>
       <?php 
            if (isset($_smarty_tpl->tpl_vars['questions']->value)) {
                ?>
           <?php 
                $_smarty_tpl->tpl_vars['question'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['question']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['questions']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars['question']->total = $_smarty_tpl->_count($_from);
                $_smarty_tpl->tpl_vars['question']->iteration = 0;
                foreach ($_from as $_smarty_tpl->tpl_vars['question']->key => $_smarty_tpl->tpl_vars['question']->value) {
                    $_smarty_tpl->tpl_vars['question']->_loop = true;
                    $_smarty_tpl->tpl_vars['question']->iteration++;
                    $_smarty_tpl->tpl_vars['question']->last = $_smarty_tpl->tpl_vars['question']->iteration === $_smarty_tpl->tpl_vars['question']->total;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']['question']['last'] = $_smarty_tpl->tpl_vars['question']->last;
                    ?>
                  <?php 
                    $_smarty_tpl->_capture_stack[0][] = array("evenstyle", null, null);
                    ob_start();
                    echo smarty_function_cycle(array('name' => "acc_" . (string) $_smarty_tpl->tpl_vars['section']->value, 'values' => "ow_alt1,ow_alt2"), $_smarty_tpl);
                    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="question_tr ow_admin_profile_question_dnd_cursor <?php 
                    if ($_smarty_tpl->getVariable('smarty')->value['foreach']['question']['last']) {
                        ?>
ow_tr_last<?php 
                    }
                    ?>
" question_name="<?php 
                    echo $_smarty_tpl->tpl_vars['question']->value['name'];
                    ?>
">
                    <td class="question_label_td <?php 
                    echo Smarty::$_smarty_vars['capture']['evenstyle'];
                    ?>
 ow_txtleft" >
                        <div class="question_label_div ow_overflow_hidden"  ><?php 
                    echo smarty_function_text(array('key' => "base+questions_question_" . (string) $_smarty_tpl->tpl_vars['question']->value['name'] . "_label"), $_smarty_tpl);
                    ?>
</div>
                    </td>
                    <td class="question_presentation_td <?php 
                    echo Smarty::$_smarty_vars['capture']['evenstyle'];
                    ?>
 ow_small" >
                        <div class="question_account_type_div ow_overflow_hidden" ><?php 
                    echo smarty_function_text(array('key' => "base+questions_question_presentation_" . (string) $_smarty_tpl->tpl_vars['question']->value['presentation'] . "_label"), $_smarty_tpl);
                    ?>
</div>
                    </td>
                    <td class="question_values_td question_values_type_td <?php 
                    echo Smarty::$_smarty_vars['capture']['evenstyle'];
                    ?>
 ow_small">
                        <?php 
                    if (!empty($_smarty_tpl->tpl_vars['previewValues']->value[$_smarty_tpl->tpl_vars['question']->value['name']])) {
                        ?>
                            <div class="question_values_div"><?php 
                        echo $_smarty_tpl->tpl_vars['previewValues']->value[$_smarty_tpl->tpl_vars['question']->value['name']];
                        ?>
</div>
                            
                        <?php 
                    } else {
                        ?>
                            <?php 
                        if (isset($_smarty_tpl->tpl_vars['questionValues']->value[$_smarty_tpl->tpl_vars['question']->value['name']]['values'])) {
                            ?>
                                <?php 
                            if (!empty($_smarty_tpl->tpl_vars['question']->value['parentUrl'])) {
                                ?>
                                    <div class="question_values_div ow_overflow_hidden"><?php 
                                echo smarty_function_text(array('key' => 'admin+questions_matched_question_values', 'label' => $_smarty_tpl->tpl_vars['question']->value['parentLabel'], 'parentId' => $_smarty_tpl->tpl_vars['question']->value['parentId'], 'url' => $_smarty_tpl->tpl_vars['question']->value['parentUrl']), $_smarty_tpl);
                                ?>
</div>
                                <?php 
                            } else {
                                ?>
                                <div class="question_values_div">
                                    <center><a class="question_values" href="javascript://"><?php 
                                echo smarty_function_text(array('key' => "admin+questions_values_count", 'count' => $_smarty_tpl->tpl_vars['questionValues']->value[$_smarty_tpl->tpl_vars['question']->value['name']]['count']), $_smarty_tpl);
                                ?>
</a></center>

                                    <div style="padding:0 0 0 15px;text-align:left;display:none;width:100px;overflow:hidden;" >
                                        <ul style="list-style-type:disc;">
                                            <?php 
                                $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars['value']->_loop = false;
                                $_from = $_smarty_tpl->tpl_vars['questionValues']->value[$_smarty_tpl->tpl_vars['question']->value['name']]['values'];
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) {
                                    $_smarty_tpl->tpl_vars['value']->_loop = true;
                                    ?>
                                                    <li><?php 
                                    echo $_smarty_tpl->tpl_vars['valueLabels']->value[$_smarty_tpl->tpl_vars['question']->value['name']][$_smarty_tpl->tpl_vars['value']->value->value];
                                    ?>
</li>
                                            <?php 
                                }
                                ?>
                                        </ul>
                                    </div>
                                </div>
                                <?php 
                            }
                            ?>
                            <?php 
                        } else {
                            ?>
                                <div class="question_values_div"></div>
                            <?php 
                        }
                        ?>
                        <?php 
                    }
                    ?>
                    </td>

                    <td class="question_buttons_td <?php 
                    echo Smarty::$_smarty_vars['capture']['evenstyle'];
                    ?>
 ow_nowrap quest_buttons <?php 
                    echo Smarty::$_smarty_vars['capture']['evenstyle'];
                    ?>
">
                            
                                <?php 
                    if (!empty($_smarty_tpl->tpl_vars['deleteEditButtons']->value[$_smarty_tpl->tpl_vars['question']->value['name']])) {
                        ?>
                                    <div class="question_buttons_div ow_overflow_hidden">
                                        <?php 
                        echo $_smarty_tpl->tpl_vars['deleteEditButtons']->value[$_smarty_tpl->tpl_vars['question']->value['name']];
                        ?>

                                    </div>
                                <?php 
                    } else {
                        ?>
                                    <div class="question_buttons_div delete_edit_buttons ow_overflow_hidden">
                                        <input type="hidden" value="<?php 
                        echo $_smarty_tpl->tpl_vars['question']->value['id'];
                        ?>
">
                                        <a href="javascript://" class="ow_lbutton question_edit_button" style="visibility:hidden;"><?php 
                        echo smarty_function_text(array('key' => 'admin+btn_label_edit'), $_smarty_tpl);
                        ?>
</a>
                                        <?php 
                        if ($_smarty_tpl->tpl_vars['question']->value['base'] != 1 && $_smarty_tpl->tpl_vars['question']->value['removable'] == 1 && empty($_smarty_tpl->tpl_vars['question']->value['parentUrl'])) {
                            ?>
                                            <a href="javascript://" class="ow_lbutton ow_red question_delete_button" style="visibility:hidden;"><?php 
                            echo smarty_function_text(array('key' => 'admin+btn_label_delete'), $_smarty_tpl);
                            ?>
</a>
                                        <?php 
                        }
                        ?>
                                    </div>
                                <?php 
                    }
                    ?>
                            
                    </td>
                    <?php 
                    if (!empty($_smarty_tpl->tpl_vars['accountTypesCheckboxContent']->value[$_smarty_tpl->tpl_vars['question']->value['name']])) {
                        ?>
                        <td class="ow_small ow_lightweigh <?php 
                        echo Smarty::$_smarty_vars['capture']['evenstyle'];
                        ?>
" colspan="<?php 
                        echo $_smarty_tpl->tpl_vars['accountTypesCount']->value;
                        ?>
" style="width:<?php 
                        echo smarty_function_math(array('equation' => "count*(width)", 'count' => $_smarty_tpl->tpl_vars['accountTypesCount']->value, 'width' => $_smarty_tpl->tpl_vars['td_width']->value), $_smarty_tpl);
                        ?>
px">
                            <div style="width:<?php 
                        echo smarty_function_math(array('equation' => "count*(width) - 18", 'count' => $_smarty_tpl->tpl_vars['accountTypesCount']->value, 'width' => $_smarty_tpl->tpl_vars['td_width']->value), $_smarty_tpl);
                        ?>
px;overflow:hidden;"><?php 
                        echo $_smarty_tpl->tpl_vars['accountTypesCheckboxContent']->value[$_smarty_tpl->tpl_vars['question']->value['name']];
                        ?>
</div>
                        </td>
                    <?php 
                    } else {
                        ?>
                        <?php 
                        $_smarty_tpl->tpl_vars['accountType'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['accountType']->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['accountTypeDtoList']->value;
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['accountType']->key => $_smarty_tpl->tpl_vars['accountType']->value) {
                            $_smarty_tpl->tpl_vars['accountType']->_loop = true;
                            ?>
                            <td class="account_type_td ow_small ow_lightweigh <?php 
                            echo Smarty::$_smarty_vars['capture']['evenstyle'];
                            ?>
" data-accounttype="<?php 
                            echo $_smarty_tpl->tpl_vars['accountType']->value->name;
                            ?>
"  style="width:<?php 
                            echo $_smarty_tpl->tpl_vars['td_width']->value;
                            ?>
px">
                                <div style="width:<?php 
                            echo $_smarty_tpl->tpl_vars['div_width']->value;
                            ?>
px;overflow:hidden;">
                                    <div class="<?php 
                            echo $_smarty_tpl->tpl_vars['accountType']->value->name;
                            ?>
 ow_checkbox
                                         <?php 
                            if ($_smarty_tpl->tpl_vars['questionList']->value[$_smarty_tpl->tpl_vars['question']->value['name']]['disable_account_type'] == 1) {
                                ?>
                                            <?php 
                                if (!empty($_smarty_tpl->tpl_vars['accountTypesToQuestionsDtoList']->value[$_smarty_tpl->tpl_vars['question']->value['name']][$_smarty_tpl->tpl_vars['accountType']->value->name])) {
                                    ?>
                                                ow_checkbox_cell_marked_lock
                                            <?php 
                                } else {
                                    ?>
                                                ow_checkbox_cell_lock
                                            <?php 
                                }
                                ?>
                                         <?php 
                            } else {
                                ?>
                                            <?php 
                                if (!empty($_smarty_tpl->tpl_vars['accountTypesToQuestionsDtoList']->value[$_smarty_tpl->tpl_vars['question']->value['name']][$_smarty_tpl->tpl_vars['accountType']->value->name])) {
                                    ?>
                                                ow_checkbox_cell_marked
                                            <?php 
                                } else {
                                    ?>
                                                ow_checkbox_cell
                                            <?php 
                                }
                                ?>
                                         <?php 
                            }
                            ?>
"></div>
                                </div>
                            </td>
                        <?php 
                        }
                        ?>
                        
                        <td class="ow_small ow_lightweigh <?php 
                        echo Smarty::$_smarty_vars['capture']['evenstyle'];
                        ?>
" style="width:<?php 
                        echo $_smarty_tpl->tpl_vars['td_width']->value;
                        ?>
px">
                                <div class="account_type_empty" style="width:<?php 
                        echo $_smarty_tpl->tpl_vars['div_width']->value;
                        ?>
px;overflow:hidden"></div>
                        </td>
                    <?php 
                    }
                    ?>
                 </tr>
           <?php 
                }
                ?>
        <?php 
            }
            ?>

        <tr class="question_tr no_question" style="display:none;">
            <td colspan="9"></td>
        </tr>

        <tr class="ow_tr_delimiter"><td colspan="9"></td></tr>
    </table>
    <?php 
        }
        ?>
</div>
<div class="clearfix ow_std_margin">
    <div class="ow_right">
        <?php 
        echo smarty_function_decorator(array('name' => 'button', 'class' => "ow_ic_add add_new_question_button ow_positive", 'langLabel' => 'admin+questions_add_question_button'), $_smarty_tpl);
        ?>

        <?php 
        echo smarty_function_decorator(array('name' => 'button', 'class' => "ow_ic_add add_new_section_button ow_positive", 'langLabel' => 'admin+questions_add_section_button'), $_smarty_tpl);
        ?>

    </div>
</div>
<?php 
    }
    function content_555adfd0dc3e86_38241256($_smarty_tpl)
    {
        if (!is_callable('smarty_block_script')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\block.script.php';
        }
        if (!is_callable('smarty_function_text')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.text.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 
            if ($_smarty_tpl->tpl_vars['authorized']->value || $_smarty_tpl->tpl_vars['userInList']->value) {
                ?>
    

    $("#add_to_list").click(function(){
        hotListFloatBox = OW.ajaxFloatBox("HOTLIST_CMP_Floatbox", {} , {width:380, iconClass: "ow_ic_heart", title: "<?php 
                if ($_smarty_tpl->tpl_vars['userInList']->value) {
                    echo smarty_function_text(array('key' => "hotlist+floatbox_header_remove_from_list"), $_smarty_tpl);
                } else {
                    echo smarty_function_text(array('key' => "hotlist+floatbox_header"), $_smarty_tpl);
                }
                ?>
"});
    });

    

<?php 
            } else {
                ?>
    

    $("#add_to_list").click(function(){
    OW.authorizationLimitedFloatbox('<?php 
                echo $_smarty_tpl->tpl_vars['authMsg']->value;
                ?>
');
    });

    
<?php 
            }
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['userInList']->value) {
                ?>
    
        $(".hotlist").hover(
        function () {
            $('.hotlist_footer').css('visibility', 'visible');
        },
        function () {
            $('.hotlist_footer').css('visibility', 'hidden');
        }
        );
    
<?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="hotlist ow_center" style="height: auto;">
<?php 
        if ($_smarty_tpl->tpl_vars['userList']->value) {
            ?>
	<div class="users_slideshow ow_std_margin ow_automargin clearfix" style="height: 100%; width: 100%;">
	<?php 
            $_smarty_tpl->tpl_vars['user'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['user']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['userList']->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;
            $_smarty_tpl->tpl_vars['user']->index = -1;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['userList']['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']->index++;
                $_smarty_tpl->tpl_vars['user']->first = $_smarty_tpl->tpl_vars['user']->index === 0;
                $_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']['userList']['first'] = $_smarty_tpl->tpl_vars['user']->first;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['userList']['iteration']++;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['userList']['last'] = $_smarty_tpl->tpl_vars['user']->last;
                ?>
		<?php 
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['userList']['first']) {
                    ?>
<div class="hot_list_normal_item ow_lp_avatars" style="display: <?php 
                    if ($_smarty_tpl->tpl_vars['count']->value > $_smarty_tpl->tpl_vars['number_of_users']->value) {
                        ?>
none<?php 
                    } else {
                        ?>
block<?php 
                    }
                    ?>
;"><?php 
                }
                ?>
			<div class="ow_avatar">
                <?php 
                if (!empty($_smarty_tpl->tpl_vars['user']->value['isMarked'])) {
                    ?>
<div class="ow_ic_bookmark ow_bookmark_icon"></div><?php 
                }
                ?>
                <a class="ow_item_set<?php 
                echo $_smarty_tpl->tpl_vars['number_of_users']->value;
                ?>
" href="<?php 
                echo $_smarty_tpl->tpl_vars['user']->value['url'];
                ?>
" target="_blank"><img title="<?php 
                echo $_smarty_tpl->tpl_vars['user']->value['displayName'];
                ?>
<br/><?php 
                echo $_smarty_tpl->tpl_vars['user']->value['sex'];
                ?>
, <?php 
                echo $_smarty_tpl->tpl_vars['user']->value['age'];
                ?>
<br/><?php 
                echo $_smarty_tpl->tpl_vars['user']->value['googlemap_location'];
                ?>
" src="<?php 
                echo $_smarty_tpl->tpl_vars['user']->value['avatarUrl'];
                ?>
" alt="<?php 
                echo $_smarty_tpl->tpl_vars['user']->value['displayName'];
                ?>
" style="max-width: 100%" /></a>
            </div>
		<?php 
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['userList']['iteration'] % ($_smarty_tpl->tpl_vars['number_of_users']->value * $_smarty_tpl->tpl_vars['number_of_rows']->value) == 0 && !$_smarty_tpl->getVariable('smarty')->value['foreach']['userList']['last']) {
                    ?>
</div><div class="hot_list_normal_item ow_lp_avatars" style="display: none;"><?php 
                }
                ?>
		<?php 
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['userList']['last']) {
                    ?>
</div><?php 
                }
                ?>
	<?php 
            }
            ?>
	</div>
<?php 
        } else {
            ?>
    <div class="ow_nocontent"><?php 
            echo smarty_function_text(array('key' => "hotlist+label_no_users"), $_smarty_tpl);
            ?>
</div>
<?php 
        }
        ?>
    <div class="ow_center hotlist_footer" <?php 
        if ($_smarty_tpl->tpl_vars['userInList']->value) {
            ?>
style="visibility: hidden;"<?php 
        }
        ?>
><a href="javascript://" id="add_to_list"><?php 
        if ($_smarty_tpl->tpl_vars['userInList']->value) {
            echo smarty_function_text(array('key' => "hotlist+remove_from_hot_list"), $_smarty_tpl);
        } else {
            echo smarty_function_text(array('key' => "hotlist+are_you_hot_too"), $_smarty_tpl);
        }
        ?>
</a></div>
</div>
<?php 
    }
    function content_558d2eb5bd78d7_24896752($_smarty_tpl)
    {
        if (!is_callable('smarty_block_script')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\block.script.php';
        }
        if (!is_callable('smarty_block_form')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\block.form.php';
        }
        if (!is_callable('smarty_function_input')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.input.php';
        }
        if (!is_callable('smarty_function_submit')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.submit.php';
        }
        if (!is_callable('smarty_function_text')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.text.php';
        }
        if (!is_callable('smarty_function_decorator')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.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();
            ?>



    $("#invite_btn").click(function(){
	    var $form_content = $("#invite_members");
	
	    window.invite_members_floatbox = new OW_FloatBox({
	        $title: OW.getLanguageText('admin', 'invite_members_cap_label'),
	        $contents: $form_content,
	        icon_class: 'ow_ic_add',
	        width: 550
	    });
    });
    
    $("#username-search-input").focus();


<?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="ow_hidden">
    <div id="invite_members" class="ow_center">
        <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('form', array('name' => 'invite-members'));
        $_block_repeat = true;
        echo smarty_block_form(array('name' => 'invite-members'), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

        <?php 
            echo smarty_function_input(array('name' => 'emails'), $_smarty_tpl);
            ?>

        <div style="text-align: center;padding: 5px;"><?php 
            echo smarty_function_submit(array('name' => 'submit'), $_smarty_tpl);
            ?>
</div>
        <?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_form(array('name' => 'invite-members'), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

    </div>
</div>

<?php 
        echo smarty_function_text(array('key' => 'admin+total_users', 'count' => $_smarty_tpl->tpl_vars['totalUsers']->value), $_smarty_tpl);
        ?>


<div class="ow_stdmargin clearfix">
	<div class="ow_right ow_superwide ow_txtright">
        <form method="get">
		<div class="ow_box ow_admin_search_box ow_smallmargin">
	       <?php 
        echo smarty_function_text(array('key' => 'admin+search_by'), $_smarty_tpl);
        ?>

	       <select name="search_by">
	           <?php 
        $_smarty_tpl->tpl_vars['label'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['label']->_loop = false;
        $_smarty_tpl->tpl_vars['question'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['searchQ']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['label']->key => $_smarty_tpl->tpl_vars['label']->value) {
            $_smarty_tpl->tpl_vars['label']->_loop = true;
            $_smarty_tpl->tpl_vars['question']->value = $_smarty_tpl->tpl_vars['label']->key;
            ?>
	           <option value="<?php 
            echo $_smarty_tpl->tpl_vars['question']->value;
            ?>
"<?php 
            if ($_smarty_tpl->tpl_vars['currentSearch']->value['question'] == $_smarty_tpl->tpl_vars['question']->value) {
                ?>
 selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['label']->value;
            ?>
</option>
	           <?php 
        }
        ?>
	       </select> :
	       <input type="text" name="search" id="username-search-input" style="width: 280px" value="<?php 
        echo $_smarty_tpl->tpl_vars['currentSearch']->value['value'];
        ?>
" />
	       <?php 
        echo smarty_function_decorator(array('name' => 'button', 'type' => "submit", 'langLabel' => 'admin+go'), $_smarty_tpl);
        ?>

	    </div>
	    
	    <?php 
        echo smarty_function_decorator(array('name' => 'button', 'class' => 'ow_ic_add', 'langLabel' => 'admin+invite_members_button_label', 'id' => 'invite_btn'), $_smarty_tpl);
        ?>

	    </form>	
	</div>
</div>

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


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

<?php 
    }
    function content_52ccccbe62c990_57935617($_smarty_tpl)
    {
        if (!is_callable('smarty_block_script')) {
            include '/home/kairat/www/private/ow_smarty/plugin/block.script.php';
        }
        if (!is_callable('smarty_block_style')) {
            include '/home/kairat/www/private/ow_smarty/plugin/block.style.php';
        }
        if (!is_callable('smarty_function_add_content')) {
            include '/home/kairat/www/private/ow_smarty/plugin/function.add_content.php';
        }
        if (!is_callable('smarty_block_block_decorator')) {
            include '/home/kairat/www/private/ow_smarty/plugin/block.block_decorator.php';
        }
        if (!is_callable('smarty_function_decorator')) {
            include '/home/kairat/www/private/ow_smarty/plugin/function.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();
            ?>

    DND_InterfaceFix.fix('.place_section');
<?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();
            ?>


    #place_components .component {
        float: left;
    }

    .view_component div{
       overflow: hidden;
    }

<?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_function_add_content(array('key' => 'base.widget_panel.content.top', 'placeName' => $_smarty_tpl->tpl_vars['placeName']->value, 'entityId' => $_smarty_tpl->tpl_vars['entityId']->value), $_smarty_tpl);
        ?>

<?php 
        echo smarty_function_add_content(array('key' => 'base.`$placeName`.content.top', 'entityId' => $_smarty_tpl->tpl_vars['entityId']->value), $_smarty_tpl);
        ?>


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

		    <div class="ow_center">
		        <?php 
                echo smarty_function_decorator(array('name' => 'button', 'langLabel' => 'base+widgets_customize_btn', 'class' => 'ow_ic_gear_wheel', 'id' => 'goto_customize_btn'), $_smarty_tpl);
                ?>

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

<?php 
        }
        ?>

<div class="ow_stdmargin" id="place_sections">

    <div class="clearfix">

        <div class="place_section top_section">

            <?php 
        if (isset($_smarty_tpl->tpl_vars['componentList']->value['section']['top'])) {
            ?>
                <?php 
            $_smarty_tpl->tpl_vars["component"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["component"]->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['componentList']->value['section']['top'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars["component"]->key => $_smarty_tpl->tpl_vars["component"]->value) {
                $_smarty_tpl->tpl_vars["component"]->_loop = true;
                ?>
                    <?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dd_component'][0][0]->tplComponent(array('uniqName' => $_smarty_tpl->tpl_vars['component']->value['uniqName'], 'render' => true), $_smarty_tpl);
                ?>

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

        </div>

        <div class="clearfix" style="overflow: hidden;">

            <div class="ow_left place_section left_section <?php 
        if (isset($_smarty_tpl->tpl_vars['activeScheme']->value['leftCssClass'])) {
            echo $_smarty_tpl->tpl_vars['activeScheme']->value['leftCssClass'];
        }
        ?>
">

                <?php 
        if (isset($_smarty_tpl->tpl_vars['componentList']->value['section']['left'])) {
            ?>
                    <?php 
            $_smarty_tpl->tpl_vars["component"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["component"]->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['componentList']->value['section']['left'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars["component"]->key => $_smarty_tpl->tpl_vars["component"]->value) {
                $_smarty_tpl->tpl_vars["component"]->_loop = true;
                ?>
                        <?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dd_component'][0][0]->tplComponent(array('uniqName' => $_smarty_tpl->tpl_vars['component']->value['uniqName'], 'render' => true), $_smarty_tpl);
                ?>

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

            </div>

            <div class="ow_right place_section right_section <?php 
        if (isset($_smarty_tpl->tpl_vars['activeScheme']->value['rightCssClass'])) {
            echo $_smarty_tpl->tpl_vars['activeScheme']->value['rightCssClass'];
        }
        ?>
" >

                <?php 
        if (isset($_smarty_tpl->tpl_vars['componentList']->value['section']['right'])) {
            ?>
                    <?php 
            $_smarty_tpl->tpl_vars["component"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["component"]->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['componentList']->value['section']['right'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars["component"]->key => $_smarty_tpl->tpl_vars["component"]->value) {
                $_smarty_tpl->tpl_vars["component"]->_loop = true;
                ?>
                        <?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dd_component'][0][0]->tplComponent(array('uniqName' => $_smarty_tpl->tpl_vars['component']->value['uniqName'], 'render' => true), $_smarty_tpl);
                ?>

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

            </div>

         </div>

        <div class="place_section bottom_section">

            <?php 
        if (isset($_smarty_tpl->tpl_vars['componentList']->value['section']['bottom'])) {
            ?>
                <?php 
            $_smarty_tpl->tpl_vars["component"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["component"]->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['componentList']->value['section']['bottom'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars["component"]->key => $_smarty_tpl->tpl_vars["component"]->value) {
                $_smarty_tpl->tpl_vars["component"]->_loop = true;
                ?>
                    <?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dd_component'][0][0]->tplComponent(array('uniqName' => $_smarty_tpl->tpl_vars['component']->value['uniqName'], 'render' => true), $_smarty_tpl);
                ?>

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

        </div>

    </div>

</div>

<?php 
        echo smarty_function_add_content(array('key' => 'base.widget_panel.content.bottom', 'placeName' => $_smarty_tpl->tpl_vars['placeName']->value, 'entityId' => $_smarty_tpl->tpl_vars['entityId']->value), $_smarty_tpl);
        ?>

<?php 
        echo smarty_function_add_content(array('key' => 'base.`$placeName`.content.bottom', 'entityId' => $_smarty_tpl->tpl_vars['entityId']->value), $_smarty_tpl);
    }
    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_55b238c2164c27_01637478($_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_block_script')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/block.script.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_online_now')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.online_now.php';
        }
        if (!is_callable('smarty_function_format_date')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.format_date.php';
        }
        ?>

<div class="ow_btn_delimiter ow_right">
    <?php 
        if ($_smarty_tpl->tpl_vars['isAuthenticated']->value) {
            ?>
        <?php 
            if (!empty($_smarty_tpl->tpl_vars['canUpload']->value)) {
                ?>
            <?php 
                echo smarty_function_decorator(array('name' => "button", 'class' => "ow_ic_add", 'id' => "add-new-photo-album", 'langLabel' => "photo+create_album"), $_smarty_tpl);
                ?>

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

                jQuery(function()
                {
                    var content = $(document.getElementById('add-new-photo-album-content'));

                    var albumName = new OwTextField('add-new-photo-album-name', 'add-new-photo-album-name', OW.getLanguageText('photo', 'album_name'));
                    var albumDesc = new OwTextArea('add-new-photo-album-desc', 'add-new-photo-album-desc', OW.getLanguageText('photo', 'album_desc'));

                    $('#add-new-photo-album').on('click', function()
                    {
                        var fb = new OW_FloatBox(
                        {
                            $title: OW.getLanguageText('photo', 'create_album'),
                            $contents: content,
                            width: 500
                        });

                        fb.bind('show', function()
                        {
                            $('input.ow_ic_submit', content).off().on('click', function()
                            {
                                var value = albumName.getValue().trim();

                                if ( value.length === 0 )
                                {
                                    $('span.ow_error', content).show();
                                    $(albumName.input).focus();

                                    return;
                                }
                                else if ( value === OW.getLanguageText('photo', 'newsfeed_album') )
                                {
                                    OW.error(OW.getLanguageText('photo', 'newsfeed_album_error_msg'));
                                    $('span.ow_error', content).show();
                                    $(albumName.input).focus();

                                    return;
                                }

                                fb.close();

                                var ajaxUploadPhotoFB = OW.ajaxFloatBox("PHOTO_CMP_AjaxUpload", [0, albumName.getValue(), albumDesc.getValue()], {
                                    title: OW.getLanguageText('photo', 'upload_photos'),
                                    width: "746px"
                                });

                                ajaxUploadPhotoFB.bind("close", function()
                                {
                                    if ( ajaxPhotoUploader.isHasData() )
                                    {
                                        return confirm(OW.getLanguageText('photo', 'close_alert'));
                                    }
                                });
                            });
                        });

                        fb.bind('close', function()
                        {
                            $('span.ow_error', content).hide();
                        });
                    });
                });
            <?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 
            } else {
                ?>
            <?php 
                echo smarty_function_decorator(array('name' => "button", 'class' => "ow_ic_add", 'id' => "add-new-photo-album", 'langLabel' => "photo+create_album", 'onclick' => (string) $_smarty_tpl->tpl_vars['url']->value . "();"), $_smarty_tpl);
                ?>

        <?php 
            }
            ?>

        <?php 
            echo smarty_function_decorator(array('name' => "button", 'class' => "ow_ic_add", 'id' => "btn-add-new-photo", 'langLabel' => "photo+upload_photos", 'onclick' => (string) $_smarty_tpl->tpl_vars['url']->value . "();"), $_smarty_tpl);
            ?>

    <?php 
        }
        ?>
    <div class="ow_hidden">
        <div id="add-new-photo-album-content">
            <div style="margin-bottom: 16px;">
                <div class="ow_smallmargin">
                    <input id="add-new-photo-album-name" type="text" value="<?php 
        echo smarty_function_text(array('key' => "photo+album_name"), $_smarty_tpl);
        ?>
" class="invitation">
                    <span class="ow_error" style="color: #FF0000; display: none"><?php 
        echo smarty_function_text(array('key' => 'base+form_validator_required_error_message'), $_smarty_tpl);
        ?>
</span>
                </div>
                <textarea id="add-new-photo-album-desc" class="invitation"><?php 
        echo smarty_function_text(array('key' => 'photo+album_desc'), $_smarty_tpl);
        ?>
</textarea>
            </div>
            <div style="margin-bottom: 8px;" class="clearfix">
                <div class="ow_right">
                    <span class="ow_button">
                        <span class=" ow_ic_submit ow_positive">
                            <input type="button" class="ow_ic_submit ow_positive" value="<?php 
        echo smarty_function_text(array('key' => 'photo+add_photos'), $_smarty_tpl);
        ?>
">
                        </span>
                    </span>
                </div>
            </div>
        </div>
    </div>
</div>

<?php 
        if (!empty($_smarty_tpl->tpl_vars['photoMenu']->value)) {
            ?>
    <?php 
            echo $_smarty_tpl->tpl_vars['photoMenu']->value;
            ?>

<?php 
        }
        ?>

<?php 
        if (!empty($_smarty_tpl->tpl_vars['user']->value)) {
            ?>
    <div class="clearfix" style="margin-bottom: 12px;">
        <div class="ow_user_list_picture">
            <?php 
            echo smarty_function_decorator(array('name' => 'avatar_item', 'data' => $_smarty_tpl->tpl_vars['avatar']->value), $_smarty_tpl);
            ?>

        </div>
        <div class="ow_user_list_data">
            <a href="<?php 
            echo $_smarty_tpl->tpl_vars['avatar']->value['url'];
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['avatar']->value['title'];
            ?>
</a>
            <div class="ow_small">
                <?php 
            if (!empty($_smarty_tpl->tpl_vars['onlineStatus']->value)) {
                ?>
                    <?php 
                echo smarty_function_online_now(array('userId' => $_smarty_tpl->tpl_vars['user']->value->id), $_smarty_tpl);
                ?>

                <?php 
            } elseif ($_smarty_tpl->tpl_vars['user']->value->activityStamp) {
                ?>
                    <?php 
                echo smarty_function_text(array('key' => "base+user_list_activity"), $_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>
        </div>
    </div>
<?php 
        }
        ?>

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

<?php 
    }
    function content_548e92acc993d4_53113694($_smarty_tpl)
    {
        if (!is_callable('smarty_block_script')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.script.php';
        }
        if (!is_callable('smarty_function_text')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.text.php';
        }
        if (!is_callable('smarty_block_form')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.form.php';
        }
        if (!is_callable('smarty_function_input')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.input.php';
        }
        if (!is_callable('smarty_function_submit')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.submit.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();
            ?>

    function nfShowStatusForm( focus ) {
        OWM.FloatBox({
            "content": $("#newsfeed-status-form")
        });
        
        if ( focus !== false )
            $("#newsfeed_status_input").focus();
            
        $("#newsfeed_status_save_btn_c").removeClass("owm_preloader_circle");
            
        return false;
    };

    $("#newsfeed-status-form-inv").click(nfShowStatusForm);
    
    <?php 
            if (!empty($_smarty_tpl->tpl_vars['focused']->value)) {
                ?>
        window.setTimeout(function() {
            nfShowStatusForm(false);
        }, 10);
    <?php 
            }
            ?>
    
    $("#newsfeed-att-file").change(function() {
        var img = $('#newsfeed-att-file-prevew img');
        var name = $("#newsfeed-att-file-name span");
        
        img.hide();
        name.text("");
    
        if (!this.files || !this.files[0]) {
            return
        };

        if ( window.FileReader ) {
            var reader = new FileReader();

            reader.onload = function (e) {
                img.show().attr('src', e.target.result);
            }

            reader.readAsDataURL(this.files[0]);
        } else {
            name.text(this.files[0].name);
        }
    });
<?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="owm_newsfeed_status_update owm_bg_color_2 clearfix" id="newsfeed-status-form-inv">
    <span class="owm_newsfeed_status_update_add_icon"></span>
    <textarea class="owm_invitation"><?php 
        echo smarty_function_text(array('key' => "newsfeed+status_field_invintation"), $_smarty_tpl);
        ?>
</textarea>
</div>

<div style="display: none">
    <iframe name="newsfeed-status-submit-frame"></iframe>
    <div class="owm_newsfeed_block clearfix" id="newsfeed-status-form">
        <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('form', array('name' => "newsfeed_update_status", 'target' => "newsfeed-status-submit-frame"));
        $_block_repeat = true;
        echo smarty_block_form(array('name' => "newsfeed_update_status", 'target' => "newsfeed-status-submit-frame"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

        <div class="owm_newsfeed_status_update_edit owm_bg_color_2">
            <?php 
            echo smarty_function_input(array('name' => "status", 'id' => "newsfeed_status_input"), $_smarty_tpl);
            ?>

        </div>
        <div class="owm_newsfeed_status_update_btns owm_padding owm_bg_color_3 clearfix">
            <div class="owm_newsfeed_status_update_add_cont owm_float_left">
                <a href="javascript://" class="owm_newsfeed_status_update_add_icon"><input accept="image/*" type="file" id="newsfeed-att-file" name="attachment"></a>
                <span class="owm_newsfeed_status_update_add_name" id="newsfeed-att-file-prevew"><img style="height: 30px; display: none;" /><span></span></span>
            </div>
            <div id="newsfeed_status_save_btn_c" class="owm_newsfeed_status_update_btn owm_float_right"><?php 
            echo smarty_function_submit(array('name' => "save"), $_smarty_tpl);
            ?>
</div>
        </div>
        <?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_form(array('name' => "newsfeed_update_status", 'target' => "newsfeed-status-submit-frame"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

    </div>
</div><?php 
    }
    function content_548e56b8019436_39688535($_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_function_decorator')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.decorator.php';
        }
        if (!is_callable('smarty_block_script')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.script.php';
        }
        if (!is_callable('smarty_function_url_for_route')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.url_for_route.php';
        }
        if (!is_callable('smarty_function_text')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.text.php';
        }
        ?>
<div class="clearfix"><?php 
        echo smarty_function_add_content(array('key' => 'groups.add_content.list.top', 'listType' => $_smarty_tpl->tpl_vars['listType']->value), $_smarty_tpl);
        ?>
</div>

<?php 
        if (empty($_smarty_tpl->tpl_vars['hideCreateNew']->value) && !empty($_smarty_tpl->tpl_vars['showCreate']->value)) {
            ?>
    <div class="ow_right"><?php 
            echo smarty_function_decorator(array('name' => 'button', 'class' => 'ow_ic_add', 'id' => 'btn-create-new-group', 'langLabel' => 'groups+add_new'), $_smarty_tpl);
            ?>
</div>
    <?php 
            if (!empty($_smarty_tpl->tpl_vars['authMsg']->value)) {
                ?>
        <?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-create-new-group').click(function() { OW.authorizationLimitedFloatbox(<?php 
                    echo $_smarty_tpl->tpl_vars['authMsg']->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 
            } else {
                ?>
        <?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-create-new-group').click(function(){location.href='<?php 
                    echo smarty_function_url_for_route(array('for' => "groups-create"), $_smarty_tpl);
                    ?>
'})
        <?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 
            }
        }
        ?>


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


<?php 
        echo smarty_function_add_content(array('key' => 'groups.content.list.after_menu', 'listType' => $_smarty_tpl->tpl_vars['listType']->value), $_smarty_tpl);
        ?>


<div class="ow_group_list clearfix">
    <div class="ow_automargin ow_superwide">
      <?php 
        if (empty($_smarty_tpl->tpl_vars['list']->value)) {
            ?>
        <div class="ow_nocontent"><?php 
            echo smarty_function_text(array('key' => "groups+listing_no_items_msg"), $_smarty_tpl);
            ?>
</div>
      <?php 
        } else {
            ?>
          <?php 
            $_smarty_tpl->tpl_vars['group'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['group']->_loop = false;
            $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['list']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            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['key']->value = $_smarty_tpl->tpl_vars['group']->key;
                ?>
                <?php 
                echo smarty_function_decorator(array('name' => 'ipc', 'addClass' => 'ow_smallmargin', 'data' => $_smarty_tpl->tpl_vars['group']->value, 'infoString' => "<a href=\"" . (string) $_smarty_tpl->tpl_vars['group']->value['url'] . "\">" . (string) $_smarty_tpl->tpl_vars['group']->value['title'] . "</a>"), $_smarty_tpl);
                ?>

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

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

<div class="clearfix"><?php 
        echo smarty_function_add_content(array('key' => 'groups.add_content.list.bottom', 'listType' => $_smarty_tpl->tpl_vars['listType']->value), $_smarty_tpl);
        ?>
</div><?php 
    }
    function content_55b2389f24b191_01492916($_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_function_text')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.text.php';
        }
        if (!is_callable('smarty_function_decorator')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.decorator.php';
        }
        if (!is_callable('smarty_block_form')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/block.form.php';
        }
        if (!is_callable('smarty_function_label')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.label.php';
        }
        if (!is_callable('smarty_function_input')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.input.php';
        }
        if (!is_callable('smarty_function_error')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.error.php';
        }
        if (!is_callable('smarty_function_submit')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.submit.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();
            ?>



        $(function(){
            $("#change_password_button").click(
                function() { 
                    window.oldPassword.floatBox = new OW_FloatBox({$title: '<?php 
            echo smarty_function_text(array('key' => 'base+change_password'), $_smarty_tpl);
            ?>
', $contents: $('#change-password-div'), width: 480});
                    window.owForms['change-user-password'].resetForm();
                    window.owForms['change-user-password'].removeErrors();
                }
            );
       });


<?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 
        echo smarty_function_decorator(array('name' => "button", 'id' => "change_password_button", 'langLabel' => 'base+change_password'), $_smarty_tpl);
        ?>

<div style="display:none;">
    <div id="change-password-div">
        <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('form', array('name' => "change-user-password"));
        $_block_repeat = true;
        echo smarty_block_form(array('name' => "change-user-password"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

                <table class="ow_table_1 ow_form">
                    <tr class="ow_alt2 ow_tr_first">
                        <td class="ow_label" style="width:40%;"><?php 
            echo smarty_function_label(array('name' => 'oldPassword'), $_smarty_tpl);
            ?>
</td>
                        <td class="ow_value"><?php 
            echo smarty_function_input(array('name' => "oldPassword"), $_smarty_tpl);
            ?>
<br/><?php 
            echo smarty_function_error(array('name' => "oldPassword"), $_smarty_tpl);
            ?>
</td>
                    </tr>
                    <tr class="ow_alt1" width="40">
                        <td class="ow_label" style="width:40%;"><?php 
            echo smarty_function_label(array('name' => 'password'), $_smarty_tpl);
            ?>
</td>
                        <td class="ow_value"><?php 
            echo smarty_function_input(array('name' => "password"), $_smarty_tpl);
            ?>
<br/><?php 
            echo smarty_function_error(array('name' => "password"), $_smarty_tpl);
            ?>
</td>
                    </tr>
                    <tr class="ow_alt2 ow_tr_last">
                        <td class="ow_label" style="width:40%;"><?php 
            echo smarty_function_label(array('name' => 'repeatPassword'), $_smarty_tpl);
            ?>
</td>
                        <td class="ow_value"><?php 
            echo smarty_function_input(array('name' => "repeatPassword"), $_smarty_tpl);
            ?>
<br/><?php 
            echo smarty_function_error(array('name' => "repeatPassword"), $_smarty_tpl);
            ?>
</td>
                    </tr>

                </table>
                
                <div class="clearfix ow_stdmargin"><div class="ow_right"><?php 
            echo smarty_function_submit(array('name' => "change"), $_smarty_tpl);
            ?>
</div></div>
         <?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_form(array('name' => "change-user-password"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

    </div>
</div>
<?php 
    }
    function content_555adfab078472_88495779($_smarty_tpl)
    {
        if (!is_callable('smarty_block_style')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\block.style.php';
        }
        if (!is_callable('smarty_block_script')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\block.script.php';
        }
        if (!is_callable('smarty_function_url_for')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.url_for.php';
        }
        if (!is_callable('smarty_function_text')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.text.php';
        }
        if (!is_callable('smarty_block_block_decorator')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\block.block_decorator.php';
        }
        if (!is_callable('smarty_function_url_for_route')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.url_for_route.php';
        }
        if (!is_callable('smarty_function_decorator')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.decorator.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();
            ?>


	.ph{
		border: 1px solid #999;
		float: left;
		height: 26px;
		margin-right: 4px;
	}
        
        .dnd-pannel {
            min-height: 102px;
        }

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


	$(document).ready(function(){
		$('#main-menu-items, #bottom-menu-items, #hidden-menu-items').sortable({
			placeholder: 'ph',
			tolerance: 'pointer',
			connectWith: '#main-menu-items, #bottom-menu-items, #hidden-menu-items',
			start:	function(event, ui){
				$(ui.placeholder).width($(ui.item).width());
			},
			stop:	function(event, ui){

			},
			recieve:	function(event, ui){},
			update:	function(event, ui){
				if(ui.sender){
					return;
				}

				var set = {};
				$('.ow_navbox', '#main-menu-items').each(function(i){
					set['main-menu['+i+']'] = $('input:hidden', this).val();
				});

				$('.ow_navbox', '#bottom-menu-items').each(function(i){
					set['bottom-menu['+i+']'] = $('input:hidden', this).val();
				});

				$('.ow_navbox', '#hidden-menu-items').each(function(i){
					set['hidden-menu['+i+']'] = $('input:hidden', this).val();
				});

				var url = '<?php 
            echo smarty_function_url_for(array('for' => 'ADMIN_CTRL_Pages:ajaxReorder'), $_smarty_tpl);
            ?>
';
				$.post(url, set);
			}
		});
	});

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



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

<!-- Std block for page -->
<?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_stdmargin clearfix', 'iconClass' => 'ow_ic_folder', 'langLabel' => 'admin+pages_and_menus_main_menu_label'));
        $_block_repeat = true;
        echo smarty_block_block_decorator(array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_stdmargin clearfix', 'iconClass' => 'ow_ic_folder', 'langLabel' => 'admin+pages_and_menus_main_menu_label'), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

    <div class="ow_main_menu_scheme"></div>
    <div id="main-menu-items" class="dnd-pannel" style="width: 650px;" class="ow_left clearfix ow_box_empty">
	<?php 
            $_smarty_tpl->tpl_vars['menu'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['menu']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['menuItems']->value['main'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['menu']->key => $_smarty_tpl->tpl_vars['menu']->value) {
                $_smarty_tpl->tpl_vars['menu']->_loop = true;
                ?>
			<?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();
                    ?>

            
				$('#menu-<?php 
                    echo $_smarty_tpl->tpl_vars['menu']->value['id'];
                    ?>
').hover( function(){$('#edit-link-<?php 
                    echo $_smarty_tpl->tpl_vars['menu']->value['id'];
                    ?>
').show();}, function(){ $('#edit-link-<?php 
                    echo $_smarty_tpl->tpl_vars['menu']->value['id'];
                    ?>
').hide(); } );
				
			<?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 ($_smarty_tpl->tpl_vars['menu']->value['externalUrl']) {
                    ?>
						<?php 
                    $_smarty_tpl->tpl_vars['route'] = new Smarty_variable('admin_pages_edit_external', null, 0);
                    ?>
					<?php 
                } elseif ($_smarty_tpl->tpl_vars['menu']->value['routePath']) {
                    ?>
						<?php 
                    $_smarty_tpl->tpl_vars['route'] = new Smarty_variable('admin_pages_edit_plugin', null, 0);
                    ?>
					<?php 
                } else {
                    ?>
						<?php 
                    $_smarty_tpl->tpl_vars['route'] = new Smarty_variable('admin_pages_edit_local', null, 0);
                    ?>
					<?php 
                }
                ?>
					
			<div id="menu-<?php 
                echo $_smarty_tpl->tpl_vars['menu']->value['id'];
                ?>
" class="ow_navbox <?php 
                if ($_smarty_tpl->tpl_vars['menu']->value['visibleFor'] == 1) {
                    ?>
ow_mild_red<?php 
                } elseif ($_smarty_tpl->tpl_vars['menu']->value['visibleFor'] == 2) {
                    ?>
ow_mild_green<?php 
                }
                ?>
">
				<div id="edit-link-<?php 
                echo $_smarty_tpl->tpl_vars['menu']->value['id'];
                ?>
" style="background-color: #999; font-weight: bold; display: none; position:absolute; margin-top: -15px; padding: 0px 3px;">
					<a style="color: white;" href="<?php 
                echo smarty_function_url_for_route(array('for' => (string) $_smarty_tpl->tpl_vars['route']->value . ":[id=>" . (string) $_smarty_tpl->tpl_vars['menu']->value['id'] . "]"), $_smarty_tpl);
                ?>
">edit</a>
				</div>
	        	<input type="hidden" value="<?php 
                echo $_smarty_tpl->tpl_vars['menu']->value['id'];
                ?>
">
	            <a class="move" href="#"><?php 
                echo smarty_function_text(array('key' => (string) $_smarty_tpl->tpl_vars['menu']->value['prefix'] . "+" . (string) $_smarty_tpl->tpl_vars['menu']->value['key']), $_smarty_tpl);
                ?>
</a>
	        </div>
	<?php 
            }
            if (!$_smarty_tpl->tpl_vars['menu']->_loop) {
                ?>
		<div class="empty_" style="text-align: center; display: none;">drag here..</div>        
	<?php 
            }
            ?>
    </div>
    <div class="ow_right ow_txtright">
    	<?php 
            $_smarty_tpl->_capture_stack[0][] = array('default', "add_main", null);
            ob_start();
            echo smarty_function_url_for_route(array('for' => "admin_pages_add:[type=>main]"), $_smarty_tpl);
            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 
            echo smarty_function_decorator(array('name' => "button", 'class' => "ow_ic_add", 'langLabel' => "base+pages_add_item", 'onclick' => "location.href='" . (string) $_smarty_tpl->tpl_vars['add_main']->value . "';"), $_smarty_tpl);
            ?>

    </div>
<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_block_decorator(array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_stdmargin clearfix', 'iconClass' => 'ow_ic_folder', 'langLabel' => 'admin+pages_and_menus_main_menu_label'), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>


<!-- End of STD block -->
<?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_stdmargin clearfix', 'iconClass' => 'ow_ic_folder', 'langLabel' => 'admin+pages_and_menus_bottom_menu_label'));
        $_block_repeat = true;
        echo smarty_block_block_decorator(array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_stdmargin clearfix', 'iconClass' => 'ow_ic_folder', 'langLabel' => 'admin+pages_and_menus_bottom_menu_label'), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

    <div class="ow_bottom_menu_scheme"></div>
    <div id="bottom-menu-items" class="dnd-pannel" style="width: 650px;" class="ow_left clearfix ow_box_empty">
    <?php 
            if (count($_smarty_tpl->tpl_vars['menuItems']->value['bottom'])) {
                ?>
 
		<?php 
                $_smarty_tpl->tpl_vars['menu'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['menu']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['menuItems']->value['bottom'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['menu']->key => $_smarty_tpl->tpl_vars['menu']->value) {
                    $_smarty_tpl->tpl_vars['menu']->_loop = true;
                    ?>
		
			<?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();
                        ?>

            
					
						$('#menu-<?php 
                        echo $_smarty_tpl->tpl_vars['menu']->value['id'];
                        ?>
').hover( function(){$('#edit-link-<?php 
                        echo $_smarty_tpl->tpl_vars['menu']->value['id'];
                        ?>
').show();}, function(){ $('#edit-link-<?php 
                        echo $_smarty_tpl->tpl_vars['menu']->value['id'];
                        ?>
').hide(); } );
					
					
			<?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 ($_smarty_tpl->tpl_vars['menu']->value['externalUrl']) {
                        ?>
						<?php 
                        $_smarty_tpl->tpl_vars['route'] = new Smarty_variable('admin_pages_edit_external', null, 0);
                        ?>
					<?php 
                    } elseif ($_smarty_tpl->tpl_vars['menu']->value['routePath']) {
                        ?>
						<?php 
                        $_smarty_tpl->tpl_vars['route'] = new Smarty_variable('admin_pages_edit_plugin', null, 0);
                        ?>
					<?php 
                    } else {
                        ?>
						<?php 
                        $_smarty_tpl->tpl_vars['route'] = new Smarty_variable('admin_pages_edit_local', null, 0);
                        ?>
					<?php 
                    }
                    ?>
					
	        <div id="menu-<?php 
                    echo $_smarty_tpl->tpl_vars['menu']->value['id'];
                    ?>
" class="ow_navbox <?php 
                    if ($_smarty_tpl->tpl_vars['menu']->value['visibleFor'] == 1) {
                        ?>
ow_mild_red<?php 
                    } elseif ($_smarty_tpl->tpl_vars['menu']->value['visibleFor'] == 2) {
                        ?>
ow_mild_green<?php 
                    }
                    ?>
">
	        	<div id="edit-link-<?php 
                    echo $_smarty_tpl->tpl_vars['menu']->value['id'];
                    ?>
"  style=" background-color: #999; color: #fff;font-weight: bold; display: none; position:absolute; margin-top: -15px; padding: 0px 3px;">
	        		<a style="color: white;" href="<?php 
                    echo smarty_function_url_for_route(array('for' => (string) $_smarty_tpl->tpl_vars['route']->value . ":[id=>" . (string) $_smarty_tpl->tpl_vars['menu']->value['id'] . "]"), $_smarty_tpl);
                    ?>
">
	        			edit
        			</a>
       			</div>
		        <input type="hidden" value="<?php 
                    echo $_smarty_tpl->tpl_vars['menu']->value['id'];
                    ?>
">
		    	<a class="move" href="#"><?php 
                    echo smarty_function_text(array('key' => (string) $_smarty_tpl->tpl_vars['menu']->value['prefix'] . "+" . (string) $_smarty_tpl->tpl_vars['menu']->value['key']), $_smarty_tpl);
                    ?>
</a>
		    </div>
		<?php 
                }
                ?>
	<?php 
            } else {
                ?>
		<div class="empty_" style="display: none;">drag here..</div>
    <?php 
            }
            ?>
    </div>
	<div class="ow_right ow_txtright">
    	<?php 
            $_smarty_tpl->_capture_stack[0][] = array('default', "add_bottom", null);
            ob_start();
            echo smarty_function_url_for_route(array('for' => "admin_pages_add:[type=>bottom]"), $_smarty_tpl);
            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 
            echo smarty_function_decorator(array('name' => "button", 'class' => "ow_ic_add", 'langLabel' => "base+pages_add_item", 'onclick' => "location.href='" . (string) $_smarty_tpl->tpl_vars['add_bottom']->value . "';"), $_smarty_tpl);
            ?>

	</div>    
<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_block_decorator(array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_stdmargin clearfix', 'iconClass' => 'ow_ic_folder', 'langLabel' => 'admin+pages_and_menus_bottom_menu_label'), $_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', 'addClass' => 'ow_stdmargin', 'iconClass' => 'ow_ic_delete', 'langLabel' => 'admin+pages_and_menus_hidden_pages_label'));
        $_block_repeat = true;
        echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin', 'iconClass' => 'ow_ic_delete', 'langLabel' => 'admin+pages_and_menus_hidden_pages_label'), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

    <div class="clearfix">
    <div id="hidden-menu-items" class="ow_stdmargin clearfix ow_center ow_nomargin dnd-hidden-pannel" style="height:25px;">
	    <?php 
            if (count($_smarty_tpl->tpl_vars['menuItems']->value['hidden'])) {
                ?>
			<?php 
                $_smarty_tpl->tpl_vars['menu'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['menu']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['menuItems']->value['hidden'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['menu']->key => $_smarty_tpl->tpl_vars['menu']->value) {
                    $_smarty_tpl->tpl_vars['menu']->_loop = true;
                    ?>

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

                    
					
								$('#menu-<?php 
                        echo $_smarty_tpl->tpl_vars['menu']->value['id'];
                        ?>
').hover( function(){$('#edit-link-<?php 
                        echo $_smarty_tpl->tpl_vars['menu']->value['id'];
                        ?>
').show();}, function(){ $('#edit-link-<?php 
                        echo $_smarty_tpl->tpl_vars['menu']->value['id'];
                        ?>
').hide(); } );
					
						<?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 ($_smarty_tpl->tpl_vars['menu']->value['externalUrl']) {
                        ?>
						<?php 
                        $_smarty_tpl->tpl_vars['route'] = new Smarty_variable('admin_pages_edit_external', null, 0);
                        ?>
					<?php 
                    } elseif ($_smarty_tpl->tpl_vars['menu']->value['routePath']) {
                        ?>
						<?php 
                        $_smarty_tpl->tpl_vars['route'] = new Smarty_variable('admin_pages_edit_plugin', null, 0);
                        ?>
					<?php 
                    } else {
                        ?>
						<?php 
                        $_smarty_tpl->tpl_vars['route'] = new Smarty_variable('admin_pages_edit_local', null, 0);
                        ?>
					<?php 
                    }
                    ?>
		        <div id="menu-<?php 
                    echo $_smarty_tpl->tpl_vars['menu']->value['id'];
                    ?>
" class="ow_navbox <?php 
                    if ($_smarty_tpl->tpl_vars['menu']->value['visibleFor'] == 1) {
                        ?>
ow_mild_red<?php 
                    } elseif ($_smarty_tpl->tpl_vars['menu']->value['visibleFor'] == 2) {
                        ?>
ow_mild_green<?php 
                    }
                    ?>
">
		        	<div id="edit-link-<?php 
                    echo $_smarty_tpl->tpl_vars['menu']->value['id'];
                    ?>
" style="background-color: #999999; color: #fff;font-weight: bold; display: none; position:absolute; margin-top: -15px; padding: 0px 3px;">
		        		<a style="color: white;" href="<?php 
                    echo smarty_function_url_for_route(array('for' => (string) $_smarty_tpl->tpl_vars['route']->value . ":[id=>" . (string) $_smarty_tpl->tpl_vars['menu']->value['id'] . "]"), $_smarty_tpl);
                    ?>
">
		        			edit
	        			</a>
	       			</div>
			        <input type="hidden" value="<?php 
                    echo $_smarty_tpl->tpl_vars['menu']->value['id'];
                    ?>
">
			    	<a class="move" href="#"><?php 
                    echo smarty_function_text(array('key' => (string) $_smarty_tpl->tpl_vars['menu']->value['prefix'] . "+" . (string) $_smarty_tpl->tpl_vars['menu']->value['key']), $_smarty_tpl);
                    ?>
</a>
			    </div>
			<?php 
                }
                ?>
		<?php 
            } else {
                ?>
			<div class="empty_" style="display: none;">drag here..</div>
	    <?php 
            }
            ?>
	</div>
        </div>
    <p><?php 
            echo smarty_function_text(array('key' => 'admin+pages_and_menus_hidden_desc'), $_smarty_tpl);
            ?>
</p>
	
<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin', 'iconClass' => 'ow_ic_delete', 'langLabel' => 'admin+pages_and_menus_hidden_pages_label'), $_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', 'addClass' => 'ow_stdmargin', 'iconClass' => 'ow_ic_help', 'langLabel' => 'admin+pages_and_menus_legend_label'));
        $_block_repeat = true;
        echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin', 'iconClass' => 'ow_ic_help', 'langLabel' => 'admin+pages_and_menus_legend_label'), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

	<div class="clearfix"><div class="ow_navbox"><b><?php 
            echo smarty_function_text(array('key' => 'admin+pages_and_menus_item_label'), $_smarty_tpl);
            ?>
</b></div> - <?php 
            echo smarty_function_text(array('key' => 'admin+pages_and_menus_legend_everyone_label'), $_smarty_tpl);
            ?>
</div>
	<div class="clearfix"><div class="ow_navbox ow_mild_red"><b><?php 
            echo smarty_function_text(array('key' => 'admin+pages_and_menus_item_label'), $_smarty_tpl);
            ?>
</b></div> - <?php 
            echo smarty_function_text(array('key' => 'admin+pages_and_menus_legend_guests_label'), $_smarty_tpl);
            ?>
</div>
	<div class="clearfix"><div class="ow_navbox ow_mild_green"><b><?php 
            echo smarty_function_text(array('key' => 'admin+pages_and_menus_item_label'), $_smarty_tpl);
            ?>
</b></div> - <?php 
            echo smarty_function_text(array('key' => 'admin+pages_and_menus_legend_members_label'), $_smarty_tpl);
            ?>
</div>
<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_block_decorator(array('name' => 'box', 'addClass' => 'ow_stdmargin', 'iconClass' => 'ow_ic_help', 'langLabel' => 'admin+pages_and_menus_legend_label'), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
    }
    function content_548e8c719f6521_71837564($_smarty_tpl)
    {
        if (!is_callable('smarty_block_script')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.script.php';
        }
        if (!is_callable('smarty_function_cycle')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_libraries\\smarty3\\plugins\\function.cycle.php';
        }
        if (!is_callable('smarty_function_text')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.text.php';
        }
        if (!is_callable('smarty_function_decorator')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.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();
            ?>


	window.insImg = function( elid, id, src, size ){
        data = {src:src};
        if( $('#gimg-'+id+'-p').is(':checked') ){data.resize = 300; data.preview = true;}
        if( $('#gimg-'+id+'-align').val() != 'none' ){data.align = $('#gimg-'+id+'-align').val();}
        window.parent.document.getElementById(elid).jhtmlareaObject.insertImage(data);
}

<?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 
        echo $_smarty_tpl->tpl_vars['menu']->value;
        ?>

<div style="height: 430px; overflow-y: scroll;">
	<table style="width: 100%;" cellpadding="5">

		<?php 
        $_smarty_tpl->tpl_vars["img"] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars["img"]->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['images']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars["img"]->key => $_smarty_tpl->tpl_vars["img"]->value) {
            $_smarty_tpl->tpl_vars["img"]->_loop = true;
            ?>
			<?php 
            $_smarty_tpl->tpl_vars['dto'] = new Smarty_variable($_smarty_tpl->tpl_vars['img']->value['dto'], null, 0);
            ?>
			<?php 
            $_smarty_tpl->tpl_vars['data'] = new Smarty_variable($_smarty_tpl->tpl_vars['img']->value['data'], null, 0);
            ?>

			<tr class="<?php 
            echo smarty_function_cycle(array('name' => "1", 'values' => 'ow_alt1, ow_alt2'), $_smarty_tpl);
            ?>
" onclick="if( $('#gimg-<?php 
            echo $_smarty_tpl->tpl_vars['dto']->value->getId();
            ?>
').is(':visible') ){ $('#gimg-<?php 
            echo $_smarty_tpl->tpl_vars['dto']->value->getId();
            ?>
-visbtn').empty().html('show');} else $('#gimg-<?php 
            echo $_smarty_tpl->tpl_vars['dto']->value->getId();
            ?>
-visbtn').empty().html('<?php 
            echo smarty_function_text(array('key' => 'base+mp_gal_hide'), $_smarty_tpl);
            ?>
'); $('#gimg-<?php 
            echo $_smarty_tpl->tpl_vars['dto']->value->getId();
            ?>
').toggle();">
				<td style="padding: 3px;">
					 <div style="float: left;"><?php 
            echo $_smarty_tpl->tpl_vars['data']->value->name;
            ?>
 <?php 
            if (!empty($_smarty_tpl->tpl_vars['data']->value->width) && !empty($_smarty_tpl->tpl_vars['data']->value->height)) {
                echo $_smarty_tpl->tpl_vars['data']->value->width;
                ?>
x<?php 
                echo $_smarty_tpl->tpl_vars['data']->value->height;
            }
            ?>
</div><span id="gimg-<?php 
            echo $_smarty_tpl->tpl_vars['dto']->value->getId();
            ?>
-visbtn" class="ow_lbutton clearfix" style="width: 30px; text-align:center; float: right;"><?php 
            echo smarty_function_text(array('key' => 'base+mp_gal_show'), $_smarty_tpl);
            ?>
</span>
				</td>
			</tr>

			<tr class=" <?php 
            echo smarty_function_cycle(array('name' => "2", 'values' => 'ow_alt1, ow_alt2'), $_smarty_tpl);
            ?>
" id="gimg-<?php 
            echo $_smarty_tpl->tpl_vars['dto']->value->getId();
            ?>
" style="display: <?php 
            if ($_smarty_tpl->tpl_vars['img']->value['sel']) {
                ?>
block<?php 
            } else {
                ?>
none<?php 
            }
            ?>
; ">
				<td align="center">
					<img style="height: 200px;" src="<?php 
            echo $_smarty_tpl->tpl_vars['img']->value['url'];
            ?>
"/>

					<table class="ow_form ow_table_3">
						<tr class="ow_tr_first">
							<td class="ow_label"><?php 
            echo smarty_function_text(array('key' => 'base+mp_gal_pic_url'), $_smarty_tpl);
            ?>
</td>
							<td class="ow_value">
								<input id="gimg-<?php 
            echo $_smarty_tpl->tpl_vars['dto']->value->getId();
            ?>
-url" value="<?php 
            echo $_smarty_tpl->tpl_vars['img']->value['url'];
            ?>
" type="text" /> <a class="ow_lbutton ow_red" onclick="$('#gimg-<?php 
            echo $_smarty_tpl->tpl_vars['dto']->value->getId();
            ?>
-url').val('')" ><?php 
            echo smarty_function_text(array('key' => 'base+mp_gal_delete'), $_smarty_tpl);
            ?>
</a>
							</td>
						</tr>
						<tr>
							<td class="ow_label">Size</td>
							<td class="ow_value">
								<input type="radio" name="pos-<?php 
            echo $_smarty_tpl->tpl_vars['dto']->value->getId();
            ?>
" checked="checked" id="gimg-<?php 
            echo $_smarty_tpl->tpl_vars['dto']->value->getId();
            ?>
-p" value="preview" /> <label for="gimg-<?php 
            echo $_smarty_tpl->tpl_vars['dto']->value->getId();
            ?>
-p"><?php 
            echo smarty_function_text(array('key' => 'base+mp_gal_preview'), $_smarty_tpl);
            ?>
</label>
								<input type="radio" name="pos-<?php 
            echo $_smarty_tpl->tpl_vars['dto']->value->getId();
            ?>
" id="gimg-<?php 
            echo $_smarty_tpl->tpl_vars['dto']->value->getId();
            ?>
-f" value="fullsize"/> <label for="gimg-<?php 
            echo $_smarty_tpl->tpl_vars['dto']->value->getId();
            ?>
-f"><?php 
            echo smarty_function_text(array('key' => 'base+mp_gal_fullsize'), $_smarty_tpl);
            ?>
</label>
							</td>
						</tr>
						<tr class="ow_tr_last">
							<td class="ow_label"><?php 
            echo smarty_function_text(array('key' => 'base+mp_gal_align'), $_smarty_tpl);
            ?>
 </td>
							<td class="ow_value">
								<select id="gimg-<?php 
            echo $_smarty_tpl->tpl_vars['dto']->value->getId();
            ?>
-align">
									<option value="none"><?php 
            echo smarty_function_text(array('key' => 'base+mp_gal_none'), $_smarty_tpl);
            ?>
</option>
									<option value="left"><?php 
            echo smarty_function_text(array('key' => 'base+mp_gal_left'), $_smarty_tpl);
            ?>
</option>
									<option value="center"><?php 
            echo smarty_function_text(array('key' => 'base+mp_gal_center'), $_smarty_tpl);
            ?>
</option>
									<option value="right"><?php 
            echo smarty_function_text(array('key' => 'base+mp_gal_right'), $_smarty_tpl);
            ?>
</option>
								</select>
							</td>
						</tr>
					</table>
					
					<div class="clearfix"><div class="ow_right">								
					<?php 
            if (!empty($_smarty_tpl->tpl_vars['data']->value->width) && !empty($_smarty_tpl->tpl_vars['data']->value->height)) {
                ?>
									<?php 
                $_smarty_tpl->tpl_vars["size"] = new Smarty_variable("[" . (string) $_smarty_tpl->tpl_vars['data']->value->height . ", " . (string) $_smarty_tpl->tpl_vars['data']->value->width . "]", null, 0);
                ?>
								<?php 
            } else {
                ?>
									<?php 
                $_smarty_tpl->tpl_vars["size"] = new Smarty_variable("[]", null, 0);
                ?>
								<?php 
            }
            ?>

								<?php 
            echo smarty_function_decorator(array('name' => "button", 'langLabel' => 'base+mp_gal_ins_into_post', 'onclick' => "insImg('" . (string) $_smarty_tpl->tpl_vars['id']->value . "', " . (string) $_smarty_tpl->tpl_vars['dto']->value->id . ",  '" . (string) $_smarty_tpl->tpl_vars['img']->value['url'] . "', " . (string) $_smarty_tpl->tpl_vars['size']->value . ")"), $_smarty_tpl);
            ?>

								<?php 
            echo smarty_function_decorator(array('name' => "button", 'langLabel' => 'base+delete', 'class' => 'ow_red', 'onclick' => "\$" . "('input[name=img-id]', '#delete-image-form').val('" . (string) $_smarty_tpl->tpl_vars['dto']->value->id . "'); " . "\$" . "('#delete-image-form')[0].submit();"), $_smarty_tpl);
            ?>

					</div></div>
				</td>
			</tr>
		<?php 
        }
        ?>
	</table>
    <a name="bottom"></a>

<form method="POST" id="delete-image-form" style="display: none;">
	<input type="hidden" name="command" value="delete-image" />
	<input type="hidden" name="img-id" value="" />
</form>
</div>
<?php 
    }