function content_548f1ae4445c76_49946492($_smarty_tpl)
    {
        if (!is_callable('smarty_function_url_for_route')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.url_for_route.php';
        }
        $_smarty_tpl->_capture_stack[0][] = array('default', 'img', null);
        ob_start();
        ?>
data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==<?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();
        }
        $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['p']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['photos']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['p']->key => $_smarty_tpl->tpl_vars['p']->value) {
            $_smarty_tpl->tpl_vars['p']->_loop = true;
            ?>
<div class="owm_photo_list_item" data-ref="<?php 
            echo $_smarty_tpl->tpl_vars['p']->value['id'];
            ?>
"><a href="<?php 
            echo smarty_function_url_for_route(array('for' => "view_photo:[id=>" . (string) $_smarty_tpl->tpl_vars['p']->value['id'] . "]"), $_smarty_tpl);
            ?>
" style="background-image: url(<?php 
            echo $_smarty_tpl->tpl_vars['p']->value['url'];
            ?>
)"><img src="<?php 
            echo $_smarty_tpl->tpl_vars['img']->value;
            ?>
" /></a></div><?php 
        }
    }
    function content_548e92f8cfb8d4_27297070($_smarty_tpl)
    {
        if (!is_callable('smarty_function_text')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.text.php';
        }
        if (!is_callable('smarty_function_url_for_route')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.url_for_route.php';
        }
        ?>
<div class="owm_sidebar_profile_block">
    <div class="owm_sidebar_profile_cont clearfix">
        <div class="owm_avatar"><a href="<?php 
        echo $_smarty_tpl->tpl_vars['url']->value;
        ?>
"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['avatarUrl']->value;
        ?>
" /></a></div>
        <div class="owm_sidebar_profile_name"><?php 
        echo $_smarty_tpl->tpl_vars['username']->value;
        ?>
</div>
        <a href="<?php 
        echo $_smarty_tpl->tpl_vars['url']->value;
        ?>
" class="owm_sidebar_profile_btn"><span><?php 
        echo smarty_function_text(array('key' => 'mobile+view_profile'), $_smarty_tpl);
        ?>
</span></a>
    </div>
    <div class="owm_sidebar_profile_delimiter"></div>
    <input class="owm_sidebar_profile_logout" type="button" onclick="location.href='<?php 
        echo smarty_function_url_for_route(array('for' => 'base_sign_out'), $_smarty_tpl);
        ?>
'" value="<?php 
        echo smarty_function_text(array('key' => 'mobile+sign_out'), $_smarty_tpl);
        ?>
" />
</div><?php 
    }
    function content_548e5310882b84_46798503($_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_function_url_for')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.url_for.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_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();
            ?>


    $(document).ready(function(){
        var $tb_container = $(".ow_box_toolbar_cont", $("#video_list_widget").parents('.ow_box, .ow_box_empty').get(0));

        $("#video-widget-menu-featured").click(function(){
            $tb_container.html($("div#video-widget-toolbar-featured").html());
        });

        $("#video-widget-menu-latest").click(function(){
            $tb_container.html($("div#video-widget-toolbar-latest").html());
        });

        $("#video-widget-menu-toprated").click(function(){
            $tb_container.html($("div#video-widget-toolbar-toprated").html());
        });
    });

<?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="video_list_widget">

    <?php 
        if ($_smarty_tpl->tpl_vars['latest']->value || $_smarty_tpl->tpl_vars['featured']->value || $_smarty_tpl->tpl_vars['toprated']->value) {
            ?>
 <?php 
            if (isset($_smarty_tpl->tpl_vars['menu']->value)) {
                echo $_smarty_tpl->tpl_vars['menu']->value;
            }
            ?>
 <?php 
        }
        ?>
    
    <?php 
        $_smarty_tpl->_capture_stack[0][] = array('default', 'nocontent', null);
        ob_start();
        ?>
       <div class="ow_nocontent"><?php 
        echo smarty_function_text(array('key' => 'video+no_video'), $_smarty_tpl);
        ?>
, <a href="<?php 
        echo smarty_function_url_for(array('for' => "VIDEO_CTRL_Add:index"), $_smarty_tpl);
        ?>
"><?php 
        echo smarty_function_text(array('key' => 'video+add_new'), $_smarty_tpl);
        ?>
</a></div>
    <?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();
        }
        ?>

	<div id="<?php 
        echo $_smarty_tpl->tpl_vars['items']->value['latest']['contId'];
        ?>
">
	<?php 
        if ($_smarty_tpl->tpl_vars['showTitles']->value) {
            ?>
	   <?php 
            $_smarty_tpl->tpl_vars['c'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['c']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['latest']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['clips']['iteration'] = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars['c']->key => $_smarty_tpl->tpl_vars['c']->value) {
                $_smarty_tpl->tpl_vars['c']->_loop = true;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['clips']['iteration']++;
                ?>
	   <div class="clearfix ow_smallmargin">
            <div class="ow_other_video_thumb ow_left">
                <a href="<?php 
                echo smarty_function_url_for_route(array('for' => "view_clip:[id=>" . (string) $_smarty_tpl->tpl_vars['c']->value['id'] . "]"), $_smarty_tpl);
                ?>
">
                    <?php 
                if ($_smarty_tpl->tpl_vars['c']->value['thumb'] != 'undefined') {
                    ?>
<img src="<?php 
                    echo $_smarty_tpl->tpl_vars['c']->value['thumb'];
                    ?>
" /><?php 
                }
                ?>
                </a>
            </div>
            <div class="ow_other_video_item_title ow_small">
                <a href="<?php 
                echo smarty_function_url_for_route(array('for' => "view_clip:[id=>" . (string) $_smarty_tpl->tpl_vars['c']->value['id'] . "]"), $_smarty_tpl);
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['c']->value['title'];
                ?>
</a>
            </div>
	   </div>
	   <?php 
            }
            if (!$_smarty_tpl->tpl_vars['c']->_loop) {
                ?>
          <?php 
                echo $_smarty_tpl->tpl_vars['nocontent']->value;
                ?>

	   <?php 
            }
            ?>
	<?php 
        } else {
            ?>
	<div class="clearfix ow_center">
	<?php 
            $_smarty_tpl->tpl_vars['c'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['c']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['latest']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['clips']['iteration'] = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars['c']->key => $_smarty_tpl->tpl_vars['c']->value) {
                $_smarty_tpl->tpl_vars['c']->_loop = true;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['clips']['iteration']++;
                ?>
		<?php 
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['clips']['iteration'] == 1) {
                    ?>
		   <div class="ow_smallmargin"><?php 
                    echo $_smarty_tpl->tpl_vars['c']->value['code'];
                    ?>
</div>
		<?php 
                } else {
                    ?>
            <div class="ow_other_video_thumb video_thumb_no_title ow_left">
				<a class="ow_other_video_floated" href="<?php 
                    echo smarty_function_url_for_route(array('for' => "view_clip:[id=>" . (string) $_smarty_tpl->tpl_vars['c']->value['id'] . "]"), $_smarty_tpl);
                    ?>
" title="<?php 
                    echo $_smarty_tpl->tpl_vars['c']->value['title'];
                    ?>
">
					<?php 
                    if ($_smarty_tpl->tpl_vars['c']->value['thumb'] != 'undefined') {
                        ?>
<img src="<?php 
                        echo $_smarty_tpl->tpl_vars['c']->value['thumb'];
                        ?>
" /><?php 
                    }
                    ?>
				</a>
			</div>
		<?php 
                }
                ?>
    <?php 
            }
            if (!$_smarty_tpl->tpl_vars['c']->_loop) {
                ?>
        <?php 
                echo $_smarty_tpl->tpl_vars['nocontent']->value;
                ?>
		
	<?php 
            }
            ?>
	</div>
	<?php 
        }
        ?>
	
	</div>
	
	<?php 
        if ($_smarty_tpl->tpl_vars['featured']->value) {
            ?>
	<div id="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['featured']['contId'];
            ?>
" style="display: none">
    <?php 
            if ($_smarty_tpl->tpl_vars['showTitles']->value) {
                ?>
       <?php 
                $_smarty_tpl->tpl_vars['c'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['c']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['featured']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['clips']['iteration'] = 0;
                foreach ($_from as $_smarty_tpl->tpl_vars['c']->key => $_smarty_tpl->tpl_vars['c']->value) {
                    $_smarty_tpl->tpl_vars['c']->_loop = true;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']['clips']['iteration']++;
                    ?>
       <div class="clearfix ow_smallmargin">
            <div class="ow_other_video_thumb ow_left">
                <a href="<?php 
                    echo smarty_function_url_for_route(array('for' => "view_clip:[id=>" . (string) $_smarty_tpl->tpl_vars['c']->value['id'] . "]"), $_smarty_tpl);
                    ?>
">
                    <?php 
                    if ($_smarty_tpl->tpl_vars['c']->value['thumb'] != 'undefined') {
                        ?>
<img src="<?php 
                        echo $_smarty_tpl->tpl_vars['c']->value['thumb'];
                        ?>
" /><?php 
                    }
                    ?>
                </a>
            </div>
            <div class="ow_other_video_item_title ow_small">
                <a href="<?php 
                    echo smarty_function_url_for_route(array('for' => "view_clip:[id=>" . (string) $_smarty_tpl->tpl_vars['c']->value['id'] . "]"), $_smarty_tpl);
                    ?>
"><?php 
                    echo $_smarty_tpl->tpl_vars['c']->value['title'];
                    ?>
</a>
            </div>
       </div>
       <?php 
                }
                if (!$_smarty_tpl->tpl_vars['c']->_loop) {
                    ?>
          <?php 
                    echo $_smarty_tpl->tpl_vars['nocontent']->value;
                    ?>

       <?php 
                }
                ?>
    <?php 
            } else {
                ?>
    <div class="clearfix ow_center">
    <?php 
                $_smarty_tpl->tpl_vars['c'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['c']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['featured']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['clips']['iteration'] = 0;
                foreach ($_from as $_smarty_tpl->tpl_vars['c']->key => $_smarty_tpl->tpl_vars['c']->value) {
                    $_smarty_tpl->tpl_vars['c']->_loop = true;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']['clips']['iteration']++;
                    ?>
        <?php 
                    if ($_smarty_tpl->getVariable('smarty')->value['foreach']['clips']['iteration'] == 1) {
                        ?>
           <div class="ow_smallmargin"><?php 
                        echo $_smarty_tpl->tpl_vars['c']->value['code'];
                        ?>
</div>
        <?php 
                    } else {
                        ?>
	        <a class="ow_other_video_floated" href="<?php 
                        echo smarty_function_url_for_route(array('for' => "view_clip:[id=>" . (string) $_smarty_tpl->tpl_vars['c']->value['id'] . "]"), $_smarty_tpl);
                        ?>
" title="<?php 
                        echo $_smarty_tpl->tpl_vars['c']->value['title'];
                        ?>
">
	            <?php 
                        if ($_smarty_tpl->tpl_vars['c']->value['thumb'] != 'undefined') {
                            ?>
<img src="<?php 
                            echo $_smarty_tpl->tpl_vars['c']->value['thumb'];
                            ?>
" /><?php 
                        }
                        ?>
	        </a>
        <?php 
                    }
                    ?>
    <?php 
                }
                if (!$_smarty_tpl->tpl_vars['c']->_loop) {
                    ?>
        <?php 
                    echo $_smarty_tpl->tpl_vars['nocontent']->value;
                    ?>

    <?php 
                }
                ?>
    </div>
    <?php 
            }
            ?>
    </div>
    <?php 
        }
        ?>
	
	<div id="<?php 
        echo $_smarty_tpl->tpl_vars['items']->value['toprated']['contId'];
        ?>
" style="display: none">
    <?php 
        if ($_smarty_tpl->tpl_vars['showTitles']->value) {
            ?>
       <?php 
            $_smarty_tpl->tpl_vars['c'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['c']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['toprated']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['clips']['iteration'] = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars['c']->key => $_smarty_tpl->tpl_vars['c']->value) {
                $_smarty_tpl->tpl_vars['c']->_loop = true;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['clips']['iteration']++;
                ?>
       <div class="clearfix ow_smallmargin">
            <div class="ow_other_video_thumb ow_left">
                <a href="<?php 
                echo smarty_function_url_for_route(array('for' => "view_clip:[id=>" . (string) $_smarty_tpl->tpl_vars['c']->value['id'] . "]"), $_smarty_tpl);
                ?>
">
                    <?php 
                if ($_smarty_tpl->tpl_vars['c']->value['thumb'] != 'undefined') {
                    ?>
<img src="<?php 
                    echo $_smarty_tpl->tpl_vars['c']->value['thumb'];
                    ?>
" /><?php 
                }
                ?>
                </a>
            </div>
            <div class="ow_other_video_item_title ow_small">
                <a href="<?php 
                echo smarty_function_url_for_route(array('for' => "view_clip:[id=>" . (string) $_smarty_tpl->tpl_vars['c']->value['id'] . "]"), $_smarty_tpl);
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['c']->value['title'];
                ?>
</a>
            </div>
       </div>
       <?php 
            }
            if (!$_smarty_tpl->tpl_vars['c']->_loop) {
                ?>
          <?php 
                echo $_smarty_tpl->tpl_vars['nocontent']->value;
                ?>

       <?php 
            }
            ?>
    <?php 
        } else {
            ?>
    <div class="clearfix ow_center">
    <?php 
            $_smarty_tpl->tpl_vars['c'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['c']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['toprated']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['clips']['iteration'] = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars['c']->key => $_smarty_tpl->tpl_vars['c']->value) {
                $_smarty_tpl->tpl_vars['c']->_loop = true;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['clips']['iteration']++;
                ?>
        <?php 
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['clips']['iteration'] == 1) {
                    ?>
           <div class="ow_smallmargin"><?php 
                    echo $_smarty_tpl->tpl_vars['c']->value['code'];
                    ?>
</div>
        <?php 
                } else {
                    ?>
	        <a class="ow_other_video_floated" href="<?php 
                    echo smarty_function_url_for_route(array('for' => "view_clip:[id=>" . (string) $_smarty_tpl->tpl_vars['c']->value['id'] . "]"), $_smarty_tpl);
                    ?>
" title="<?php 
                    echo $_smarty_tpl->tpl_vars['c']->value['title'];
                    ?>
">
	            <?php 
                    if ($_smarty_tpl->tpl_vars['c']->value['thumb'] != 'undefined') {
                        ?>
<img src="<?php 
                        echo $_smarty_tpl->tpl_vars['c']->value['thumb'];
                        ?>
" /><?php 
                    }
                    ?>
	        </a>
        <?php 
                }
                ?>
    <?php 
            }
            if (!$_smarty_tpl->tpl_vars['c']->_loop) {
                ?>
        <?php 
                echo $_smarty_tpl->tpl_vars['nocontent']->value;
                ?>
        
    <?php 
            }
            ?>
    </div>
    <?php 
        }
        ?>
    </div>
	
	<?php 
        if ($_smarty_tpl->tpl_vars['latest']->value) {
            ?>
<div id="video-widget-toolbar-latest" style="display: none"><?php 
            echo smarty_function_decorator(array('name' => 'box_toolbar', 'itemList' => $_smarty_tpl->tpl_vars['toolbars']->value['latest']), $_smarty_tpl);
            ?>
</div><?php 
        }
        ?>
    <?php 
        if ($_smarty_tpl->tpl_vars['featured']->value) {
            ?>
<div id="video-widget-toolbar-featured" style="display: none"><?php 
            echo smarty_function_decorator(array('name' => 'box_toolbar', 'itemList' => $_smarty_tpl->tpl_vars['toolbars']->value['featured']), $_smarty_tpl);
            ?>
</div><?php 
        }
        ?>
  
    <?php 
        if ($_smarty_tpl->tpl_vars['toprated']->value) {
            ?>
<div id="video-widget-toolbar-toprated" style="display: none"><?php 
            echo smarty_function_decorator(array('name' => 'box_toolbar', 'itemList' => $_smarty_tpl->tpl_vars['toolbars']->value['toprated']), $_smarty_tpl);
            ?>
</div><?php 
        }
        ?>
    
</div><?php 
    }
    function content_548e998920a966_27344058($_smarty_tpl)
    {
        if (!is_callable('smarty_block_style')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.style.php';
        }
        if (!is_callable('smarty_block_block_decorator')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.block_decorator.php';
        }
        if (!is_callable('smarty_function_text')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.text.php';
        }
        if (!is_callable('smarty_function_url_for_route')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.url_for_route.php';
        }
        if (!is_callable('smarty_function_decorator')) {
            include 'C:\\xampp\\htdocs\\havanabook\\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();
            ?>


    .ow_forum_matching_posts { padding: 5px; }
    .ow_forum_search_result .ow_highbox { padding: 0 3px; }

<?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['token']->value) || !empty($_smarty_tpl->tpl_vars['userToken']->value)) {
            ?>
	<?php 
            if (isset($_smarty_tpl->tpl_vars['componentForumCaption']->value)) {
                ?>
	    <div class="ow_stdmargin">
	        <?php 
                echo $_smarty_tpl->tpl_vars['componentForumCaption']->value;
                ?>
        
	    </div>
	<?php 
            }
            ?>

    <div class="ow_smallmargin clearfix">
        <div class="ow_left"><?php 
            if (isset($_smarty_tpl->tpl_vars['paging']->value)) {
                echo $_smarty_tpl->tpl_vars['paging']->value;
            }
            ?>
</div>
	    <div class="ow_right ow_txtright"><?php 
            echo $_smarty_tpl->tpl_vars['search']->value;
            ?>
</div>
    </div>
    
    <?php 
            if ($_smarty_tpl->tpl_vars['topics']->value) {
                ?>
    
    <?php 
                if (!empty($_smarty_tpl->tpl_vars['token']->value)) {
                    echo $_smarty_tpl->tpl_vars['sort']->value;
                }
                ?>
    	
	<div class="ow_forum_search_result">
    <?php 
                $_smarty_tpl->tpl_vars['topic'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['topic']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['topics']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['topic']->key => $_smarty_tpl->tpl_vars['topic']->value) {
                    $_smarty_tpl->tpl_vars['topic']->_loop = true;
                    ?>
        <?php 
                    $_smarty_tpl->_capture_stack[0][] = array('default', 'label', null);
                    ob_start();
                    ?>
<a href="<?php 
                    echo $_smarty_tpl->tpl_vars['topic']->value['topicUrl'];
                    ?>
"><?php 
                    echo $_smarty_tpl->tpl_vars['topic']->value['title'];
                    ?>
</a><?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->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_stdmargin', 'label' => $_smarty_tpl->tpl_vars['label']->value, 'iconClass' => 'ow_ic_forum'));
                    $_block_repeat = true;
                    echo smarty_block_block_decorator(array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_stdmargin', 'label' => $_smarty_tpl->tpl_vars['label']->value, 'iconClass' => 'ow_ic_forum'), null, $_smarty_tpl, $_block_repeat);
                    while ($_block_repeat) {
                        ob_start();
                        ?>

        <div class="ow_forum_matching_posts">
        <div class="ow_smallmargin ow_small">
            <?php 
                        echo smarty_function_text(array('key' => 'forum+topic_location'), $_smarty_tpl);
                        ?>

            <a href="<?php 
                        echo smarty_function_url_for_route(array('for' => "forum-default"), $_smarty_tpl);
                        ?>
#section-<?php 
                        echo $_smarty_tpl->tpl_vars['topic']->value['sectionId'];
                        ?>
"><?php 
                        echo $_smarty_tpl->tpl_vars['topic']->value['sectionName'];
                        ?>
</a> 
            &raquo; <a href="<?php 
                        echo smarty_function_url_for_route(array('for' => "group-default:[groupId=>" . (string) $_smarty_tpl->tpl_vars['topic']->value['groupId'] . "]"), $_smarty_tpl);
                        ?>
"><?php 
                        echo $_smarty_tpl->tpl_vars['topic']->value['groupName'];
                        ?>
</a>
        </div>
        <?php 
                        if (isset($_smarty_tpl->tpl_vars['topic']->value['posts'])) {
                            ?>
            <?php 
                            $_smarty_tpl->tpl_vars['post'] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars['post']->_loop = false;
                            $_from = $_smarty_tpl->tpl_vars['topic']->value['posts'];
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            foreach ($_from as $_smarty_tpl->tpl_vars['post']->key => $_smarty_tpl->tpl_vars['post']->value) {
                                $_smarty_tpl->tpl_vars['post']->_loop = true;
                                ?>

            <?php 
                                $_smarty_tpl->_capture_stack[0][] = array('default', 'info_string', 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"><?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('default', 'content', null);
                                ob_start();
                                ?>
	            <div class="post_content"><?php 
                                echo $_smarty_tpl->tpl_vars['post']->value['text'];
                                ?>
 <a href="<?php 
                                echo $_smarty_tpl->tpl_vars['post']->value['postUrl'];
                                ?>
" class="ow_lbutton"><?php 
                                echo smarty_function_text(array('key' => 'base+more'), $_smarty_tpl);
                                ?>
</a></div>
	        <?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', 'addClass' => 'ow_smallmargin', 'avatar' => $_smarty_tpl->tpl_vars['avatars']->value[$_smarty_tpl->tpl_vars['post']->value['userId']], 'content' => $_smarty_tpl->tpl_vars['content']->value, 'infoString' => $_smarty_tpl->tpl_vars['info_string']->value), $_smarty_tpl);
                                ?>


		   <?php 
                            }
                            ?>
	   <?php 
                        }
                        ?>
	   </div>
	   <?php 
                        $_block_content = ob_get_clean();
                        $_block_repeat = false;
                        echo smarty_block_block_decorator(array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_stdmargin', 'label' => $_smarty_tpl->tpl_vars['label']->value, 'iconClass' => 'ow_ic_forum'), $_block_content, $_smarty_tpl, $_block_repeat);
                    }
                    array_pop($_smarty_tpl->smarty->_tag_stack);
                    ?>

	<?php 
                }
                ?>
	</div>
	
	<?php 
                if (isset($_smarty_tpl->tpl_vars['paging']->value)) {
                    echo $_smarty_tpl->tpl_vars['paging']->value;
                }
                ?>
	
	<?php 
            } else {
                ?>
	   <div class="ow_anno ow_center"><?php 
                echo smarty_function_text(array('key' => 'forum+no_posts_found'), $_smarty_tpl);
                ?>
</div>
	<?php 
            }
        }
    }
    function content_55b23ba3756f76_89217623($_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_function_text')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.text.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';
        }
        $_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_photo_item_widget {
    width: 72px;
    height: 72px;
    background-size: cover;
    background-repeat: no-repeat;
}
<?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->_capture_stack[0][] = array('default', 'cmp', null);
        ob_start();
        ?>
    <div id="photo_list_cmp<?php 
        echo $_smarty_tpl->tpl_vars['uniqId']->value;
        ?>
">
        <?php 
        if ($_smarty_tpl->tpl_vars['latest']->value || $_smarty_tpl->tpl_vars['featured']->value || $_smarty_tpl->tpl_vars['toprated']->value) {
            ?>
            <?php 
            if (isset($_smarty_tpl->tpl_vars['menu']->value)) {
                echo $_smarty_tpl->tpl_vars['menu']->value;
            }
            ?>
        <?php 
        }
        ?>

        <?php 
        $_smarty_tpl->_capture_stack[0][] = array('default', 'nocontent', null);
        ob_start();
        ?>
            <div class="ow_nocontent"><?php 
        echo smarty_function_text(array('key' => 'photo+no_photo'), $_smarty_tpl);
        ?>
, <a href="javascript:<?php 
        echo $_smarty_tpl->tpl_vars['url']->value;
        ?>
()"><?php 
        echo smarty_function_text(array('key' => 'photo+add_new'), $_smarty_tpl);
        ?>
</a></div>
        <?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();
        }
        ?>

        <div class="ow_lp_photos ow_center" id="<?php 
        echo $_smarty_tpl->tpl_vars['items']->value['latest']['contId'];
        ?>
">
            <?php 
        $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['p']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['latest']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['p']->key => $_smarty_tpl->tpl_vars['p']->value) {
            $_smarty_tpl->tpl_vars['p']->_loop = true;
            ?>
                <a class="ow_lp_wrapper" rel="<?php 
            echo $_smarty_tpl->tpl_vars['p']->value['id'];
            ?>
" href="<?php 
            echo smarty_function_url_for_route(array('for' => "view_photo:[id=>" . (string) $_smarty_tpl->tpl_vars['p']->value['id'] . "]"), $_smarty_tpl);
            ?>
" list-type="latest">
                   <div class="ow_photo_item_widget" style="background-image: url(<?php 
            echo $_smarty_tpl->tpl_vars['p']->value['url'];
            ?>
);" ></div>
                </a>
            <?php 
        }
        if (!$_smarty_tpl->tpl_vars['p']->_loop) {
            ?>
                <?php 
            echo $_smarty_tpl->tpl_vars['nocontent']->value;
            ?>

            <?php 
        }
        ?>
        </div>

        <?php 
        if ($_smarty_tpl->tpl_vars['featured']->value) {
            ?>
            <div class="ow_lp_photos ow_center" id="<?php 
            echo $_smarty_tpl->tpl_vars['items']->value['featured']['contId'];
            ?>
" style="display: none">
                <?php 
            $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['p']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['featured']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['p']->key => $_smarty_tpl->tpl_vars['p']->value) {
                $_smarty_tpl->tpl_vars['p']->_loop = true;
                ?>
                    <a class="ow_lp_wrapper" rel="<?php 
                echo $_smarty_tpl->tpl_vars['p']->value['id'];
                ?>
" href="<?php 
                echo smarty_function_url_for_route(array('for' => "view_photo:[id=>" . (string) $_smarty_tpl->tpl_vars['p']->value['id'] . "]"), $_smarty_tpl);
                ?>
" list-type="featured">
                       <div class="ow_photo_item_widget" style="background-image: url(<?php 
                echo $_smarty_tpl->tpl_vars['p']->value['url'];
                ?>
);" ></div>
                    </a>
                <?php 
            }
            if (!$_smarty_tpl->tpl_vars['p']->_loop) {
                ?>
                    <?php 
                echo $_smarty_tpl->tpl_vars['nocontent']->value;
                ?>

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

        <div class="ow_lp_photos ow_center" id="<?php 
        echo $_smarty_tpl->tpl_vars['items']->value['toprated']['contId'];
        ?>
" style="display: none">
            <?php 
        $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['p']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['toprated']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['p']->key => $_smarty_tpl->tpl_vars['p']->value) {
            $_smarty_tpl->tpl_vars['p']->_loop = true;
            ?>
                <a class="ow_lp_wrapper" rel="<?php 
            echo $_smarty_tpl->tpl_vars['p']->value['id'];
            ?>
" href="<?php 
            echo smarty_function_url_for_route(array('for' => "view_photo:[id=>" . (string) $_smarty_tpl->tpl_vars['p']->value['id'] . "]"), $_smarty_tpl);
            ?>
" list-type="toprated">
                   <div class="ow_photo_item_widget" style="background-image: url(<?php 
            echo $_smarty_tpl->tpl_vars['p']->value['url'];
            ?>
);" ></div>
                </a>
            <?php 
        }
        if (!$_smarty_tpl->tpl_vars['p']->_loop) {
            ?>
                <?php 
            echo $_smarty_tpl->tpl_vars['nocontent']->value;
            ?>

            <?php 
        }
        ?>
        </div>

        <?php 
        if ($_smarty_tpl->tpl_vars['showToolbar']->value) {
            ?>
            <?php 
            if ($_smarty_tpl->tpl_vars['latest']->value) {
                ?>
<div id="photo-cmp-toolbar-latest-<?php 
                echo $_smarty_tpl->tpl_vars['uniqId']->value;
                ?>
" style="display: none"><?php 
                echo smarty_function_decorator(array('name' => 'box_toolbar', 'itemList' => $_smarty_tpl->tpl_vars['toolbars']->value['latest']), $_smarty_tpl);
                ?>
</div><?php 
            }
            ?>
            <?php 
            if ($_smarty_tpl->tpl_vars['featured']->value) {
                ?>
<div id="photo-cmp-toolbar-featured-<?php 
                echo $_smarty_tpl->tpl_vars['uniqId']->value;
                ?>
" style="display: none"><?php 
                echo smarty_function_decorator(array('name' => 'box_toolbar', 'itemList' => $_smarty_tpl->tpl_vars['toolbars']->value['featured']), $_smarty_tpl);
                ?>
</div><?php 
            }
            ?>
            <?php 
            if ($_smarty_tpl->tpl_vars['toprated']->value) {
                ?>
<div id="photo-cmp-toolbar-top-rated-<?php 
                echo $_smarty_tpl->tpl_vars['uniqId']->value;
                ?>
" style="display: none"><?php 
                echo smarty_function_decorator(array('name' => 'box_toolbar', 'itemList' => $_smarty_tpl->tpl_vars['toolbars']->value['toprated']), $_smarty_tpl);
                ?>
</div><?php 
            }
            ?>
        <?php 
        }
        ?>

    </div>
<?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['wrapBox']->value) {
            $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'capEnabled' => $_smarty_tpl->tpl_vars['showTitle']->value, 'langLabel' => 'photo+photo_list_widget', 'iconClass' => 'ow_ic_picture', 'type' => $_smarty_tpl->tpl_vars['boxType']->value, 'addClass' => "ow_stdmargin clearfix", 'toolbar' => $_smarty_tpl->tpl_vars['toolbars']->value['latest']));
            $_block_repeat = true;
            echo smarty_block_block_decorator(array('name' => 'box', 'capEnabled' => $_smarty_tpl->tpl_vars['showTitle']->value, 'langLabel' => 'photo+photo_list_widget', 'iconClass' => 'ow_ic_picture', 'type' => $_smarty_tpl->tpl_vars['boxType']->value, 'addClass' => "ow_stdmargin clearfix", 'toolbar' => $_smarty_tpl->tpl_vars['toolbars']->value['latest']), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>


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


<?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_block_decorator(array('name' => 'box', 'capEnabled' => $_smarty_tpl->tpl_vars['showTitle']->value, 'langLabel' => 'photo+photo_list_widget', 'iconClass' => 'ow_ic_picture', 'type' => $_smarty_tpl->tpl_vars['boxType']->value, 'addClass' => "ow_stdmargin clearfix", 'toolbar' => $_smarty_tpl->tpl_vars['toolbars']->value['latest']), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

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

    <?php 
            if ($_smarty_tpl->tpl_vars['latest']->value) {
                ?>
<div class="ow_box_toolbar_cont clearfix"><?php 
                echo smarty_function_decorator(array('name' => 'box_toolbar', 'itemList' => $_smarty_tpl->tpl_vars['toolbars']->value['latest']), $_smarty_tpl);
                ?>
</div><?php 
            }
        }
    }
    function content_5589010f67d433_51083652($_smarty_tpl)
    {
        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_text')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.text.php';
        }
        ?>
<div class="clearfix ow_lp_albums">	
    <?php 
        if ($_smarty_tpl->tpl_vars['showTitles']->value) {
            ?>
	<?php 
            $_smarty_tpl->tpl_vars['album'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['album']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['albums']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['album']->key => $_smarty_tpl->tpl_vars['album']->value) {
                $_smarty_tpl->tpl_vars['album']->_loop = true;
                ?>
            <div class="clearfix ow_smallmargin">
                <div class="ow_lp_wrapper">
		   <?php 
                $_smarty_tpl->_capture_stack[0][] = array('url', null, null);
                ob_start();
                echo smarty_function_url_for_route(array('for' => "photo_user_album:[user=>" . (string) $_smarty_tpl->tpl_vars['user']->value . ", album=>" . (string) $_smarty_tpl->tpl_vars['album']->value['dto']->id . "]"), $_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();
                }
                ?>
		   <a href="<?php 
                echo Smarty::$_smarty_vars['capture']['url'];
                ?>
"><img title="<?php 
                echo $_smarty_tpl->tpl_vars['album']->value['dto']->name;
                ?>
" src="<?php 
                echo $_smarty_tpl->tpl_vars['album']->value['cover'];
                ?>
" width="100" height="100" /></a>
                </div>
                <div class="ow_lp_label ow_small">
                    <a href="<?php 
                echo Smarty::$_smarty_vars['capture']['url'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['album']->value['dto']->name;
                ?>
</a>
                </div>
            </div>
	<?php 
            }
            if (!$_smarty_tpl->tpl_vars['album']->_loop) {
                ?>
	    <div class="ow_nocontent"><?php 
                echo smarty_function_text(array('key' => 'photo+no_photo_found'), $_smarty_tpl);
                ?>
</div>
	<?php 
            }
            ?>
    <?php 
        } else {
            ?>
        <div class="ow_lp_photos ow_center">
            <?php 
            $_smarty_tpl->tpl_vars['album'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['album']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['albums']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['album']->key => $_smarty_tpl->tpl_vars['album']->value) {
                $_smarty_tpl->tpl_vars['album']->_loop = true;
                ?>
                <?php 
                $_smarty_tpl->_capture_stack[0][] = array('url', null, null);
                ob_start();
                ?>
                    <?php 
                echo smarty_function_url_for_route(array('for' => "photo_user_album:[user=>" . (string) $_smarty_tpl->tpl_vars['user']->value . ", album=>" . (string) $_smarty_tpl->tpl_vars['album']->value['dto']->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();
                }
                ?>
                <a class="ow_lp_wrapper" href="<?php 
                echo Smarty::$_smarty_vars['capture']['url'];
                ?>
"><img title="<?php 
                echo $_smarty_tpl->tpl_vars['album']->value['dto']->name;
                ?>
" src="<?php 
                echo $_smarty_tpl->tpl_vars['album']->value['cover'];
                ?>
" /></a>
            <?php 
            }
            if (!$_smarty_tpl->tpl_vars['album']->_loop) {
                ?>
                <div class="ow_nocontent"><?php 
                echo smarty_function_text(array('key' => 'photo+no_photo_found'), $_smarty_tpl);
                ?>
</div>
            <?php 
            }
            ?>
    </div>
<?php 
        }
        ?>
</div><?php 
    }
    function content_548eba5846a895_69093724($_smarty_tpl)
    {
        if (!is_callable('smarty_block_style')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.style.php';
        }
        if (!is_callable('smarty_function_url_for_route')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.url_for_route.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_user_gifts .ow_gift_wrapper {
        margin: 0px 2px 0px 0px;
        height: 83px;
        width: 80px;
        overflow: hidden;
    }
    
    .ow_user_gifts .ow_gift_wrapper img { width: 80px; }

<?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="clearfix ow_user_gifts">
<?php 
        $_smarty_tpl->tpl_vars['gift'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['gift']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['gifts']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['gift']->key => $_smarty_tpl->tpl_vars['gift']->value) {
            $_smarty_tpl->tpl_vars['gift']->_loop = true;
            ?>
	<div class="ow_gift_wrapper">
        <a href="<?php 
            echo smarty_function_url_for_route(array('for' => "virtual_gifts_view_gift:[giftId=>" . (string) $_smarty_tpl->tpl_vars['gift']->value['dto']->id . "]"), $_smarty_tpl);
            ?>
">
            <img <?php 
            if ($_smarty_tpl->tpl_vars['gift']->value['dto']->message != '') {
                ?>
title="<?php 
                echo $_smarty_tpl->tpl_vars['gift']->value['dto']->message;
                ?>
"<?php 
            }
            ?>
 src="<?php 
            echo $_smarty_tpl->tpl_vars['gift']->value['imageUrl'];
            ?>
" />
        </a>
	</div>
<?php 
        }
        ?>
</div><?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_548ea9cd890997_33278123($_smarty_tpl)
    {
        if (!is_callable('smarty_block_form')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.form.php';
        }
        if (!is_callable('smarty_function_text')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.text.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_input')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.input.php';
        }
        if (!is_callable('smarty_function_label')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.label.php';
        }
        if (!is_callable('smarty_function_submit')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.submit.php';
        }
        if (!is_callable('smarty_function_component')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.component.php';
        }
        $_smarty_tpl->smarty->_tag_stack[] = array('form', array('name' => 'sign-in'));
        $_block_repeat = true;
        echo smarty_block_form(array('name' => 'sign-in'), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

<div class="owm_login_form">
    <div class="clearfix owm_std_margin_top">
        <div class="owm_login_txt owm_float_left">
            <?php 
            echo smarty_function_text(array('key' => 'base+base_sign_in_cap_label'), $_smarty_tpl);
            ?>

        </div>
        <a href="<?php 
            echo smarty_function_url_for_route(array('for' => 'base_forgot_password'), $_smarty_tpl);
            ?>
" class="owm_forgot_txt owm_float_right"><?php 
            echo smarty_function_text(array('key' => 'base+forgot_password_label'), $_smarty_tpl);
            ?>
</a>
    </div>
    <div class="owm_login_field owm_login_username">
        <?php 
            echo smarty_function_input(array('name' => 'identity'), $_smarty_tpl);
            ?>

    </div>
    <div class="owm_login_field owm_login_pass">
        <?php 
            echo smarty_function_input(array('name' => 'password'), $_smarty_tpl);
            ?>

    </div>
    <div style="display:none;"><?php 
            echo smarty_function_input(array('name' => 'remember'), $_smarty_tpl);
            echo smarty_function_label(array('name' => 'remember'), $_smarty_tpl);
            ?>
</div>
    <div class="owm_btn_wide owm_btn_positive owm_std_margin_top">
        <?php 
            echo smarty_function_submit(array('name' => 'submit'), $_smarty_tpl);
            ?>

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


<?php 
        echo smarty_function_component(array('class' => "BASE_MCMP_ConnectButtonList"), $_smarty_tpl);
        ?>


<?php 
    }
    function content_548e531062f143_62109873($_smarty_tpl)
    {
        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_modifier_truncate')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_libraries\\smarty3\\plugins\\modifier.truncate.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->tpl_vars['topic'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['topic']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['topics']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['topic']->key => $_smarty_tpl->tpl_vars['topic']->value) {
            $_smarty_tpl->tpl_vars['topic']->_loop = true;
            ?>

	<?php 
            $_smarty_tpl->_capture_stack[0][] = array('default', 'info_string', null);
            ob_start();
            ?>
	    <a href="<?php 
            echo $_smarty_tpl->tpl_vars['topic']->value['lastPost']['postUrl'];
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['topic']->value['title'];
            ?>
</a>
	<?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('default', 'content', null);
            ob_start();
            ?>
    	<?php 
            $_smarty_tpl->tpl_vars["sectId"] = new Smarty_variable($_smarty_tpl->tpl_vars['groups']->value[$_smarty_tpl->tpl_vars['topic']->value['groupId']]->sectionId, null, 0);
            ?>
		<div class="ow_smallmargin ow_small">
		    <a href="<?php 
            echo smarty_function_url_for_route(array('for' => "forum-default"), $_smarty_tpl);
            ?>
#section-<?php 
            echo $_smarty_tpl->tpl_vars['sectId']->value;
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['sections']->value[$_smarty_tpl->tpl_vars['sectId']->value]->name;
            ?>
</a> &raquo; <a href="<?php 
            echo smarty_function_url_for_route(array('for' => "group-default:[groupId=>" . (string) $_smarty_tpl->tpl_vars['topic']->value['groupId'] . "]"), $_smarty_tpl);
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['groups']->value[$_smarty_tpl->tpl_vars['topic']->value['groupId']]->name;
            ?>
</a>
		</div>
	    <div class="ow_smallmargin">
            <?php 
            $_smarty_tpl->_capture_stack[0][] = array('default', 'length', null);
            ob_start();
            echo preg_match_all('/[^\\s]/u', $_smarty_tpl->tpl_vars['topic']->value['lastPost']['text'], $tmp);
            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_modifier_truncate($_smarty_tpl->tpl_vars['topic']->value['lastPost']['text'], $_smarty_tpl->tpl_vars['postLength']->value);
            ?>
 <?php 
            if ($_smarty_tpl->tpl_vars['length']->value > $_smarty_tpl->tpl_vars['postLength']->value) {
                ?>
<a href="<?php 
                echo $_smarty_tpl->tpl_vars['topic']->value['lastPost']['postUrl'];
                ?>
" class="ow_lbutton"><?php 
                echo smarty_function_text(array('key' => 'base+more'), $_smarty_tpl);
                ?>
</a><?php 
            }
            ?>
	    </div>
	<?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', 'addClass' => 'ow_smallmargin', 'avatar' => $_smarty_tpl->tpl_vars['avatars']->value[$_smarty_tpl->tpl_vars['topic']->value['lastPost']['userId']], 'infoString' => $_smarty_tpl->tpl_vars['info_string']->value, 'content' => $_smarty_tpl->tpl_vars['content']->value, 'toolbar' => $_smarty_tpl->tpl_vars['toolbars']->value[$_smarty_tpl->tpl_vars['topic']->value['lastPost']['postId']]), $_smarty_tpl);
            ?>

	
<?php 
        }
        if (!$_smarty_tpl->tpl_vars['topic']->_loop) {
            ?>
    <div class="ow_nocontent"><?php 
            echo smarty_function_text(array('key' => 'forum+no_topics'), $_smarty_tpl);
            ?>
, <a href="<?php 
            echo smarty_function_url_for_route(array('for' => 'add-topic-default'), $_smarty_tpl);
            ?>
"><?php 
            echo smarty_function_text(array('key' => 'forum+add_new'), $_smarty_tpl);
            ?>
</a></div>
<?php 
        }
    }
    function content_548f1ad771e6b3_34802700($_smarty_tpl)
    {
        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_modifier_truncate')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_libraries\\smarty3\\plugins\\modifier.truncate.php';
        }
        $_smarty_tpl->tpl_vars['album'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['album']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['albums']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['album']->key => $_smarty_tpl->tpl_vars['album']->value) {
            $_smarty_tpl->tpl_vars['album']->_loop = true;
            $_smarty_tpl->_capture_stack[0][] = array('default', 'href', null);
            ob_start();
            echo smarty_function_url_for_route(array('for' => "photo_user_album:[user=>" . (string) $_smarty_tpl->tpl_vars['username']->value . ", album=>" . (string) $_smarty_tpl->tpl_vars['album']->value['dto']->id . "]"), $_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();
            }
            ?>
<li class="owm_photo_album_list_item" data-ref="<?php 
            echo $_smarty_tpl->tpl_vars['album']->value['dto']->id;
            ?>
">
    <a href="<?php 
            echo $_smarty_tpl->tpl_vars['href']->value;
            ?>
" class="owm_photo_album_list_cont clearfix">
        <span class="owm_float_left">
            <span class="owm_photo_album_thumb" style="background-image: url(<?php 
            echo $_smarty_tpl->tpl_vars['album']->value['cover'];
            ?>
)"></span>
            <span class="owm_photo_album_name"><?php 
            echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['album']->value['dto']->name, 22);
            ?>
</span>
        </span>
        <span class="owm_float_right">
            <span class="owm_photo_album_count"><?php 
            echo $_smarty_tpl->tpl_vars['album']->value['photo_count'];
            ?>
</span>
        </span>
    </a>
</li>
<?php 
        }
    }
    function content_548e8ea10107c9_15351732($_smarty_tpl)
    {
        if (!is_callable('smarty_block_style')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.style.php';
        }
        if (!is_callable('smarty_function_cycle')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_libraries\\smarty3\\plugins\\function.cycle.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_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';
        }
        $_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();
            ?>

    div.ow_floatbox_user_list .ow_floatbox_user_list_row .ow_item_set3 {
        width: 31%;
    }

    .ow_floatbox_user_list_scroll {
        height: 400px;
        overflow-y: auto;
    }
<?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['list']->value)) {
            ?>
<div class="ow_user_list ow_floatbox_user_list ow_full<?php 
            if ($_smarty_tpl->tpl_vars['scroll']->value) {
                ?>
 ow_floatbox_user_list_scroll <?php 
            }
            ?>
">
    <?php 
            $_smarty_tpl->tpl_vars['id'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['id']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['list']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['id']->total = $_smarty_tpl->_count($_from);
            $_smarty_tpl->tpl_vars['id']->iteration = 0;
            $_smarty_tpl->tpl_vars['id']->index = -1;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['user_list']['iteration'] = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars['id']->key => $_smarty_tpl->tpl_vars['id']->value) {
                $_smarty_tpl->tpl_vars['id']->_loop = true;
                $_smarty_tpl->tpl_vars['id']->iteration++;
                $_smarty_tpl->tpl_vars['id']->index++;
                $_smarty_tpl->tpl_vars['id']->first = $_smarty_tpl->tpl_vars['id']->index === 0;
                $_smarty_tpl->tpl_vars['id']->last = $_smarty_tpl->tpl_vars['id']->iteration === $_smarty_tpl->tpl_vars['id']->total;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['user_list']['first'] = $_smarty_tpl->tpl_vars['id']->first;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['user_list']['iteration']++;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['user_list']['last'] = $_smarty_tpl->tpl_vars['id']->last;
                ?>

        <?php 
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['user_list']['first']) {
                    ?>
            <div class="clearfix ow_floatbox_user_list_row <?php 
                    echo smarty_function_cycle(array('name' => "rows", 'values' => "ow_alt2, ow_alt1"), $_smarty_tpl);
                    ?>
">
        <?php 
                }
                ?>

        <?php 
                $_smarty_tpl->_capture_stack[0][] = array('default', "_fields", null);
                ob_start();
                ?>
            <?php 
                if (!empty($_smarty_tpl->tpl_vars['fields']->value)) {
                    ?>
                <?php 
                    $_smarty_tpl->tpl_vars["field"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["field"]->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['id']->value];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars["field"]->key => $_smarty_tpl->tpl_vars["field"]->value) {
                        $_smarty_tpl->tpl_vars["field"]->_loop = true;
                        ?>
                    <?php 
                        echo $_smarty_tpl->tpl_vars['field']->value['label'];
                        echo $_smarty_tpl->tpl_vars['field']->value['value'];
                        ?>
<br />
                <?php 
                    }
                    ?>
            <?php 
                }
                ?>
        <?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->tpl_vars["username"] = new Smarty_variable($_smarty_tpl->tpl_vars['usernameList']->value[$_smarty_tpl->tpl_vars['id']->value], null, 0);
                ?>

        <?php 
                $_smarty_tpl->tpl_vars["name"] = new Smarty_variable($_smarty_tpl->tpl_vars['displayNameList']->value[$_smarty_tpl->tpl_vars['id']->value], null, 0);
                ?>

        <?php 
                $_smarty_tpl->_capture_stack[0][] = array('default', 'userUrl', null);
                ob_start();
                ?>
            <?php 
                echo smarty_function_url_for_route(array('for' => "base_user_profile:[username=>" . (string) $_smarty_tpl->tpl_vars['username']->value . "]"), $_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' => "user_list_item", 'avatar' => $_smarty_tpl->tpl_vars['avatarList']->value[$_smarty_tpl->tpl_vars['id']->value], 'userUrl' => $_smarty_tpl->tpl_vars['userUrl']->value, 'username' => $_smarty_tpl->tpl_vars['username']->value, 'displayName' => $_smarty_tpl->tpl_vars['name']->value, 'fields' => $_smarty_tpl->tpl_vars['_fields']->value, 'activity' => '', 'set_class' => 'ow_item_set3'), $_smarty_tpl);
                ?>


        <?php 
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['user_list']['iteration'] % 3 == 0 && !$_smarty_tpl->getVariable('smarty')->value['foreach']['user_list']['last']) {
                    ?>
            </div>
            <div class="clearfix ow_floatbox_user_list_row <?php 
                    echo smarty_function_cycle(array('name' => "rows", 'values' => "ow_alt1,ow_alt2"), $_smarty_tpl);
                    ?>
">
        <?php 
                }
                ?>

        <?php 
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['user_list']['last']) {
                    ?>
          </div>
        <?php 
                }
                ?>

    <?php 
            }
            ?>

</div>
<?php 
        } else {
            ?>
    <center><?php 
            echo smarty_function_text(array('key' => "base+user_no_users"), $_smarty_tpl);
            ?>
</center>
<?php 
        }
    }
    function content_548e59021e2967_20035996($_smarty_tpl)
    {
        if (!is_callable('smarty_block_form')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.form.php';
        }
        if (!is_callable('smarty_block_block_decorator')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.block_decorator.php';
        }
        if (!is_callable('smarty_function_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';
        }
        if (!is_callable('smarty_function_label')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.label.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';
        }
        if (!is_callable('smarty_function_component')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.component.php';
        }
        ?>
<div class="ow_sign_in_wrap">
<h2><?php 
        echo $_smarty_tpl->tpl_vars['siteName']->value;
        ?>
</h2>
<?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('form', array('name' => 'sign-in'));
        $_block_repeat = true;
        echo smarty_block_form(array('name' => 'sign-in'), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

     <div class="clearfix">
        <div class="ow_sign_in">
            <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'langLabel' => 'base+base_sign_in_cap_label'));
            $_block_repeat = true;
            echo smarty_block_block_decorator(array('name' => 'box', 'langLabel' => 'base+base_sign_in_cap_label'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>


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

                </div>
                <div class="ow_password">
                    <?php 
                echo smarty_function_input(array('name' => 'password'), $_smarty_tpl);
                ?>

                </div>
                <div class="ow_form_options clearfix">
                    <div class="ow_right">
                        <?php 
                echo smarty_function_submit(array('name' => 'submit', 'class' => 'ow_positive'), $_smarty_tpl);
                ?>

                    </div>
                    <p class="ow_remember_me"><?php 
                echo smarty_function_input(array('name' => 'remember'), $_smarty_tpl);
                echo smarty_function_label(array('name' => 'remember'), $_smarty_tpl);
                ?>
</p>
                    <p class="ow_forgot_pass"><a href="<?php 
                echo smarty_function_url_for_route(array('for' => 'base_forgot_password'), $_smarty_tpl);
                ?>
"><?php 
                echo smarty_function_text(array('key' => 'base+forgot_password_label'), $_smarty_tpl);
                ?>
</a></p>
                </div>
            <?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_block_decorator(array('name' => 'box', 'langLabel' => 'base+base_sign_in_cap_label'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

            <div class="ow_connect_buttons">
                <?php 
            echo smarty_function_component(array('class' => 'BASE_CMP_SignInButtonList'), $_smarty_tpl);
            ?>

            </div>
        </div>
        <div class="ow_sign_up">
            <p><?php 
            echo smarty_function_text(array('key' => 'base+base_sign_in_txt'), $_smarty_tpl);
            ?>
</p>
            <hr>
            <p> <a href="<?php 
            echo $_smarty_tpl->tpl_vars['joinUrl']->value;
            ?>
"><?php 
            echo smarty_function_text(array('key' => 'base+join_submit_button_join'), $_smarty_tpl);
            ?>
</a></p>
        </div>
     </div>
<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_form(array('name' => 'sign-in'), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

</div><?php 
    }
    function content_5559721c5085d5_80971572($_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_function_component')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.component.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';
        }
        $_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();
            ?>


.admin_notification, .admin_warning{
    text-align: center;
	margin-bottom:10px;
	padding: 10px 0;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
    background-color: #dfd;
	color: #444;
	text-shadow: #fff 1px 1px 0;
}

.admin_warning{
    background-color: #fdd;
}

<?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_header ow_admin_header clearfix">
	<?php 
        echo smarty_function_component(array('class' => 'BASE_CMP_Console'), $_smarty_tpl);
        ?>

	<div class="ow_site_panel">
		<div class="ow_logo_wrap">
			<a href="<?php 
        echo $_smarty_tpl->tpl_vars['siteUrl']->value;
        ?>
" class="ow_tagline"><?php 
        echo $_smarty_tpl->tpl_vars['siteName']->value;
        ?>
</a>
			<a href="<?php 
        echo smarty_function_url_for_route(array('for' => "admin_default"), $_smarty_tpl);
        ?>
" class="ow_admin_title">Admin Area</a>
		</div>
	</div>
	<div class="ow_canvas">
		<div class="ow_page">
			<div class="admin_menu_cont clearfix">
			<?php 
        $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['item']->_loop = false;
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['menuArr']->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;
            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
            ?>
				<div id="<?php 
            echo $_smarty_tpl->tpl_vars['item']->value['id'];
            ?>
" class="menu_item<?php 
            if ($_smarty_tpl->tpl_vars['item']->value['isActive']) {
                ?>
 active<?php 
            }
            ?>
">
					<span class="icon <?php 
            echo $_smarty_tpl->tpl_vars['key']->value;
            ?>
">
						<span class="label"><?php 
            echo $_smarty_tpl->tpl_vars['item']->value['label'];
            ?>
</span>
						<span class="menu_items ow_tooltip">
						<div class="menu_cont"><?php 
            echo $_smarty_tpl->tpl_vars['item']->value['cmp'];
            ?>
</div>
						</span>
					</span>
				</div>
			<?php 
        }
        ?>
			</div>
		</div>
	</div>
</div>
<?php 
        if (!empty($_smarty_tpl->tpl_vars['submenu']->value)) {
            ?>
<div class="ow_admin_sub_menu"><div class="ow_canvas"><?php 
            echo $_smarty_tpl->tpl_vars['submenu']->value;
            ?>
</div></div><?php 
        }
        ?>
<div class="ow_page_container ow_admin">
	<div class="ow_canvas">
		<div class="ow_page">
			<?php 
        if (!empty($_smarty_tpl->tpl_vars['warnings']->value)) {
            ?>
			<?php 
            $_smarty_tpl->tpl_vars['warning'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['warning']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['warnings']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['warning']->key => $_smarty_tpl->tpl_vars['warning']->value) {
                $_smarty_tpl->tpl_vars['warning']->_loop = true;
                ?>
				<div class="admin_warning"><?php 
                echo $_smarty_tpl->tpl_vars['warning']->value;
                ?>
</div>
			<?php 
            }
            ?>
			<?php 
        }
        ?>
			<?php 
        if (!empty($_smarty_tpl->tpl_vars['notifications']->value)) {
            ?>
			<?php 
            $_smarty_tpl->tpl_vars['notification'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['notification']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['notifications']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['notification']->key => $_smarty_tpl->tpl_vars['notification']->value) {
                $_smarty_tpl->tpl_vars['notification']->_loop = true;
                ?>
				<div class="admin_notification"><?php 
                echo $_smarty_tpl->tpl_vars['notification']->value;
                ?>
</div>
			<?php 
            }
            ?>
			<br />
			<?php 
        }
        ?>
			<?php 
        if (!empty($_smarty_tpl->tpl_vars['heading']->value)) {
            ?>
<h1 class="ow_stdmargin <?php 
            echo $_smarty_tpl->tpl_vars['heading_icon_class']->value;
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['heading']->value;
            ?>
</h1><?php 
        }
        ?>
			<div class="ow_content">
				<?php 
        echo $_smarty_tpl->tpl_vars['content']->value;
        ?>

			</div>
		</div>
	</div>
</div>
<div class="ow_footer ow_admin">
	<div class="ow_canvas">
		<div class="ow_page clearfix" style="padding:20px 0;">
			<div style="float:left;">
				<?php 
        if (empty($_smarty_tpl->tpl_vars['ow_plugin_xp']->value)) {
            ?>
<div class="ow_right ow_small ow_remark"><?php 
            echo $_smarty_tpl->tpl_vars['softVersion']->value;
            ?>
</div><?php 
        }
        ?>
			</div>
			<div style="float:right;line-height:15px;font-size:11px;">
				<?php 
        echo $_smarty_tpl->tpl_vars['bottomPoweredByLink']->value;
        ?>

			</div>
		</div>
	</div>
</div>    
<?php 
        echo smarty_function_decorator(array('name' => 'floatbox'), $_smarty_tpl);
    }
    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_548f196c31cae0_51768811($_smarty_tpl)
    {
        if (!is_callable('smarty_block_style')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.style.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_modifier_truncate')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_libraries\\smarty3\\plugins\\modifier.truncate.php';
        }
        if (!is_callable('smarty_function_decorator')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.decorator.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();
            ?>


    .owm_photo_stage { background-image: url(<?php 
            echo $_smarty_tpl->tpl_vars['url']->value;
            ?>
); }

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


<section>
<?php 
        if (!empty($_smarty_tpl->tpl_vars['authError']->value)) {
            ?>
    <div class="owm_padding">
        <div class="owm_info owm_anno"><?php 
            echo $_smarty_tpl->tpl_vars['authError']->value;
            ?>
</div>
    </div>
<?php 
        } else {
            ?>
    <div class="owm_photo_view">
        <div class="owm_photo_bg">
            <div class="owm_photo_holder">
                <div class="owm_photo_stage"><img src="<?php 
            echo $_smarty_tpl->tpl_vars['url']->value;
            ?>
" /></div>
                <?php 
            if ($_smarty_tpl->tpl_vars['nextPhoto']->value) {
                ?>
<a href="<?php 
                echo smarty_function_url_for_route(array('for' => "view_photo:[id=>" . (string) $_smarty_tpl->tpl_vars['nextPhoto']->value . "]"), $_smarty_tpl);
                ?>
" class="owm_photo_next"></a><?php 
            }
            ?>
                <?php 
            if ($_smarty_tpl->tpl_vars['previousPhoto']->value) {
                ?>
<a href="<?php 
                echo smarty_function_url_for_route(array('for' => "view_photo:[id=>" . (string) $_smarty_tpl->tpl_vars['previousPhoto']->value . "]"), $_smarty_tpl);
                ?>
" class="owm_photo_prev"></a><?php 
            }
            ?>
            </div>
            <div class="owm_photo_info">
                <div class="owm_photo_album_block clearfix">
                    <div class="owm_photo_album owm_float_left">
                        <a class="owm_photo_album_name" href="<?php 
            echo $_smarty_tpl->tpl_vars['albumUrl']->value;
            ?>
"><?php 
            echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['album']->value->name, 60);
            ?>
</a>
                        <span class="owm_photo_number"><?php 
            echo $_smarty_tpl->tpl_vars['photoIndex']->value;
            ?>
</span> / <span class="owm_photo_amount"><?php 
            echo $_smarty_tpl->tpl_vars['photoCount']->value;
            ?>
</span>
                    </div>
                    <?php 
            if ($_smarty_tpl->tpl_vars['fullsizeUrl']->value) {
                ?>
<a class="owm_photo_enlarge owm_float_right" href="<?php 
                echo $_smarty_tpl->tpl_vars['fullsizeUrl']->value;
                ?>
"></a><?php 
            }
            ?>
                </div>
                <div class="owm_photo_author clearfix">
                    <div class="owm_avatar owm_float_left"><?php 
            echo smarty_function_decorator(array('name' => 'avatar_item', 'data' => $_smarty_tpl->tpl_vars['avatar']->value), $_smarty_tpl);
            ?>
</div>
                    <div class="owm_photo_string">
                        <div class="owm_photo_name"><a href="<?php 
            echo $_smarty_tpl->tpl_vars['avatar']->value['url'];
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['avatar']->value['title'];
            ?>
</a></div>
                        <div class="owm_photo_date"><?php 
            echo smarty_function_format_date(array('timestamp' => $_smarty_tpl->tpl_vars['photo']->value->addDatetime), $_smarty_tpl);
            ?>
</div>
                    </div>
                </div>
                <?php 
            if ($_smarty_tpl->tpl_vars['photo']->value->description) {
                ?>
<div class="owm_photo_descr"><?php 
                echo $_smarty_tpl->tpl_vars['photo']->value->description;
                ?>
</div><?php 
            }
            ?>
            </div>
        </div>

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


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

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

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

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

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


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

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

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

                <?php 
        }
        ?>

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


         	</div>

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

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

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


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


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

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

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

				<?php 
        }
        ?>
            </div>
      	</div><?php 
    }
    function content_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_548e6d5f135008_58601313($_smarty_tpl)
    {
        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_decorator')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.decorator.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_label')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.label.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->_capture_stack[0][] = array('default', "back_url", null);
        ob_start();
        echo smarty_function_url_for_route(array('for' => "admin_pages_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();
        }
        ?>

<div class="ow_stdmargin"><?php 
        echo smarty_function_decorator(array('name' => "button", 'class' => "ow_ic_left_arrow", 'onclick' => "location.href='" . (string) $_smarty_tpl->tpl_vars['back_url']->value . "';", 'langLabel' => "base+pages_back"), $_smarty_tpl);
        ?>
</div>
<?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('form', array('name' => "edit-form"));
        $_block_repeat = true;
        echo smarty_block_form(array('name' => "edit-form"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

<div class="ow_superwide ow_automargin">
<table class="ow_table_1 ow_form">

    <tr id="title-tr" class="<?php 
            echo smarty_function_cycle(array('values' => "ow_alt2, ow_alt1"), $_smarty_tpl);
            ?>
 ow_tr_first">
        <td class="ow_label">
        	<?php 
            echo smarty_function_label(array('name' => "name"), $_smarty_tpl);
            ?>

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

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

        </td>        
    </tr>

    <tr class="<?php 
            echo smarty_function_cycle(array('values' => "ow_alt2, ow_alt1"), $_smarty_tpl);
            ?>
 ow_tr_last" >
        <td class="ow_label"><?php 
            echo smarty_function_label(array('name' => "visible-for"), $_smarty_tpl);
            ?>
</td>
        <td class="ow_value">
        	<?php 
            echo smarty_function_input(array('name' => "visible-for"), $_smarty_tpl);
            ?>

        	<br /><?php 
            echo smarty_function_error(array('name' => "visible-for"), $_smarty_tpl);
            ?>

       </td>
    </tr>

</table>
<div class="clearfix ow_stdmargin"><div class="ow_right"><?php 
            echo smarty_function_submit(array('name' => "save", 'class' => "ow_positive"), $_smarty_tpl);
            ?>
</div></div>
</div>
<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_form(array('name' => "edit-form"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
    }
    function content_55d2db955f9496_99686269($_smarty_tpl)
    {
        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_text')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.text.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_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';
        }
        ?>

<div class="ow_photo_upload_wrap" id="add-new-photo-container">
    <div class="ow_hidden">
        <iframe name="iframe_upload" id="iframe_upload" src="about:blank"></iframe>
        <form id="upload-form" target="iframe_upload" enctype="multipart/form-data" method="post" action="<?php 
        echo smarty_function_url_for_route(array('for' => 'photo.ajax_upload'), $_smarty_tpl);
        ?>
">
            <input type="file" name="file" accept="image/jpeg,image/png,image/gif" multiple />
        </form>
        <div id="slot-prototype" class="ow_photo_preview_edit">
            <input type="hidden" name="slot" />
            <input type="hidden" name="rotate" />
            <div class="ow_photo_preview_action">
                <div class="ow_photo_preview_image ow_photo_preview_loading">
                    <div class="ow_photo_preview_image_filter"></div>
                </div>
                <div class="ow_photo_preview_x"></div>
                <div class="ow_photo_preview_rotate"></div>
            </div>
            <div class="ow_photo_upload_description" style="min-height: 58px">
                <textarea class="ow_hidden invitation"></textarea>
            </div>
        </div>
    </div>

    <div class="ow_photo_dragndrop">
        <div id="drop-area" ondragover="return false;"></div>
        <span id="drop-area-label"><?php 
        echo smarty_function_text(array('key' => "photo+dnd_support"), $_smarty_tpl);
        ?>
</span>
    </div>

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

        <div id="slot-area" class="ow_photo_preview_block_wrap clearfix"></div>

        <div id="photo-album-form" class="ow_photo_upload_bottom clearfix">
            <div id="photo-album-list" class="ow_left">
                <div class="ow_suggest_field ow_smallmargin">
                    <?php 
            echo smarty_function_input(array('name' => 'album'), $_smarty_tpl);
            ?>

                    <div class="ow_dropdown_list_wrap">
                        <ul class="ow_dropdown_list">
                            <li><?php 
            echo smarty_function_text(array('key' => "photo+create_album"), $_smarty_tpl);
            ?>
<span class="ow_add_item"></span></li>
                            <?php 
            if (!empty($_smarty_tpl->tpl_vars['albumNameList']->value)) {
                ?>
                                <li class="ow_dropdown_delimeter"><div></div></li>
                                <?php 
                $_smarty_tpl->tpl_vars['album'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['album']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['albumNameList']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['album']->key => $_smarty_tpl->tpl_vars['album']->value) {
                    $_smarty_tpl->tpl_vars['album']->_loop = true;
                    ?>
                                    <li><?php 
                    echo $_smarty_tpl->tpl_vars['album']->value;
                    ?>
</li>
                                <?php 
                }
                ?>
                            <?php 
            }
            ?>
                        </ul>
                    </div>
                    <div class="ow_dropdown_arrow_down upload_photo_spinner"></div>
                    <?php 
            echo smarty_function_error(array('name' => 'album-name'), $_smarty_tpl);
            ?>

                </div>
                <div class="new-album" style="display: none">
                    <?php 
            echo smarty_function_input(array('name' => "album-name"), $_smarty_tpl);
            ?>

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

                </div>
            </div>
            <div class="ow_photo_upload_submit ow_right">
                <span class="ow_button">
                    <span class=" ow_ic_submit ow_positive">
                        <?php 
            echo smarty_function_submit(array('name' => "submit"), $_smarty_tpl);
            ?>

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

</div>
<?php 
    }
    function content_558900fd735f29_68386882($_smarty_tpl)
    {
        if (!is_callable('smarty_block_style')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\block.style.php';
        }
        if (!is_callable('smarty_block_form')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\block.form.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_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_label')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.label.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_text')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.text.php';
        }
        if (!is_callable('smarty_function_component')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.component.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();
            ?>

.base_sign_in{ height: auto; }
.ow_footer{ display:none; }
<?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_sign_in_wrap">

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

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


                <div class="ow_user_name mail_part">
                    <?php 
                echo smarty_function_input(array('style' => ' box-sizing: content-box;', 'name' => 'identity', 'class' => 'email_input'), $_smarty_tpl);
                ?>

                </div>
                <div class="ow_password mail_part">
                    <?php 
                echo smarty_function_input(array('style' => ' box-sizing: content-box;', 'name' => 'password', 'class' => 'email_input'), $_smarty_tpl);
                ?>

                </div>
                <div class="ow_form_options clearfix">
                    <div class="ow_right">
                        <?php 
                echo smarty_function_submit(array('name' => 'submit', 'class' => 'ow_positive', 'style' => 'border:none; height:47px; font-family:none;'), $_smarty_tpl);
                ?>

                    </div>

                </div>
            <div class="forgot_pass">
                <p class="ow_remember_me"><?php 
                echo smarty_function_input(array('name' => 'remember'), $_smarty_tpl);
                echo smarty_function_label(array('name' => 'remember'), $_smarty_tpl);
                ?>
</p>
                <p class="ow_forgot_pass"><a href="<?php 
                echo smarty_function_url_for_route(array('for' => 'base_forgot_password'), $_smarty_tpl);
                ?>
"><?php 
                echo smarty_function_text(array('key' => 'base+forgot_password_label'), $_smarty_tpl);
                ?>
</a></p>
            </div>
            <?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_block_decorator(array('name' => 'box'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

            <div class="ow_connect_buttons">
                <?php 
            echo smarty_function_component(array('class' => 'BASE_CMP_SignInButtonList'), $_smarty_tpl);
            ?>

            </div>
        </div>

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

</div><?php 
    }
    function content_548f13bff23223_15546173($_smarty_tpl)
    {
        if (!is_callable('smarty_block_block_decorator')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.block_decorator.php';
        }
        if (!is_callable('smarty_function_text')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.text.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_url_for_route')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.url_for_route.php';
        }
        if (!is_callable('smarty_function_decorator')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.decorator.php';
        }
        ?>
<div class="clearfix">
    <div class="ow_superwide" style="float:left;">
        <?php 
        $_smarty_tpl->tpl_vars['post'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['post']->_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['post']->key => $_smarty_tpl->tpl_vars['post']->value) {
            $_smarty_tpl->tpl_vars['post']->_loop = true;
            ?>
            <?php 
            $_smarty_tpl->tpl_vars['id'] = new Smarty_variable($_smarty_tpl->tpl_vars['post']->value['id'], null, 0);
            ?>

                    <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => "box", 'type' => "empty", 'label' => $_smarty_tpl->tpl_vars['post']->value['title'], 'href' => $_smarty_tpl->tpl_vars['post']->value['href'], 'addClass' => "ow_stdmargin ow_stdpadding", 'toolbar' => $_smarty_tpl->tpl_vars['tb']->value[$_smarty_tpl->tpl_vars['id']->value]));
            $_block_repeat = true;
            echo smarty_block_block_decorator(array('name' => "box", 'type' => "empty", 'label' => $_smarty_tpl->tpl_vars['post']->value['title'], 'href' => $_smarty_tpl->tpl_vars['post']->value['href'], 'addClass' => "ow_stdmargin ow_stdpadding", 'toolbar' => $_smarty_tpl->tpl_vars['tb']->value[$_smarty_tpl->tpl_vars['id']->value]), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

                        <?php 
                echo $_smarty_tpl->tpl_vars['post']->value['text'];
                if ($_smarty_tpl->tpl_vars['post']->value['truncated']) {
                    ?>
... <a class="ow_lbutton" href="<?php 
                    echo $_smarty_tpl->tpl_vars['post']->value['href'];
                    ?>
"><?php 
                    echo smarty_function_text(array('key' => 'blogs+more'), $_smarty_tpl);
                    ?>
</a><?php 
                }
                ?>


                    <?php 
                if (!empty($_smarty_tpl->tpl_vars['post']->value['parts']) && count($_smarty_tpl->tpl_vars['post']->value['parts']) > 1) {
                    ?>
                        <br />
                        <a href="<?php 
                    echo $_smarty_tpl->tpl_vars['post']->value['href'];
                    ?>
"><?php 
                    echo smarty_function_text(array('key' => "blogs+read_more"), $_smarty_tpl);
                    ?>
</a>&nbsp;&raquo;
                    <?php 
                }
                ?>
                    <?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_block_decorator(array('name' => "box", 'type' => "empty", 'label' => $_smarty_tpl->tpl_vars['post']->value['title'], 'href' => $_smarty_tpl->tpl_vars['post']->value['href'], 'addClass' => "ow_stdmargin ow_stdpadding", 'toolbar' => $_smarty_tpl->tpl_vars['tb']->value[$_smarty_tpl->tpl_vars['id']->value]), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

        <?php 
        }
        if (!$_smarty_tpl->tpl_vars['post']->_loop) {
            ?>
            <?php 
            echo smarty_function_text(array('key' => 'base+empty_list'), $_smarty_tpl);
            ?>

        <?php 
        }
        ?>

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

    </div>

    <div class="ow_supernarrow" style="float:right;">

       <?php 
        echo smarty_function_add_content(array('key' => 'socialsharing.get_sharing_buttons', 'entityType' => 'user_blog', 'entityId' => $_smarty_tpl->tpl_vars['author']->value->id), $_smarty_tpl);
        ?>


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

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

       <?php 
        if ($_smarty_tpl->tpl_vars['isOwner']->value) {
            ?>
       <div style="" class="ow_box ow_stdmargin clearfix ow_no_cap ow_break_word">
            <div class="ow_my_drafts_widget clearfix ow_center">
                <?php 
            echo smarty_function_decorator(array('name' => "button", 'langLabel' => "blogs+my_drafts", 'class' => "ow_ic_draft", 'onclick' => "location.href='" . (string) $_smarty_tpl->tpl_vars['my_drafts_url']->value . "'"), $_smarty_tpl);
            ?>

            </div>
        </div>
       <?php 
        }
        ?>
       <?php 
        echo smarty_function_add_content(array('key' => 'blogs.user_blog.content.after_archive'), $_smarty_tpl);
        ?>

    </div>
</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_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_548ef0fe32d3b7_41199758($_smarty_tpl)
    {
        if (!is_callable('smarty_function_format_date')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.format_date.php';
        }
        if (!is_callable('smarty_function_url_for_route')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.url_for_route.php';
        }
        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';
        }
        ?>
<div class="ow_column ow_automargin">
<?php 
        if ($_smarty_tpl->tpl_vars['gifts']->value) {
            $_smarty_tpl->tpl_vars['gift'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['gift']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['gifts']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['gift']->key => $_smarty_tpl->tpl_vars['gift']->value) {
                $_smarty_tpl->tpl_vars['gift']->_loop = true;
                ?>
    <?php 
                $_smarty_tpl->_capture_stack[0][] = array('default', 'giftId', null);
                ob_start();
                echo $_smarty_tpl->tpl_vars['gift']->value['dto']->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', 'senderId', null);
                ob_start();
                echo $_smarty_tpl->tpl_vars['gift']->value['dto']->senderId;
                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', 'infoString', null);
                ob_start();
                ?>
        <a href="<?php 
                echo $_smarty_tpl->tpl_vars['avatars']->value[$_smarty_tpl->tpl_vars['senderId']->value]['url'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['avatars']->value[$_smarty_tpl->tpl_vars['senderId']->value]['title'];
                ?>
</a>
        <span class="ow_nowrap ow_tiny ow_ipc_date"><?php 
                echo smarty_function_format_date(array('timestamp' => $_smarty_tpl->tpl_vars['gift']->value['dto']->sendTimestamp), $_smarty_tpl);
                ?>
</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('default', 'content', null);
                ob_start();
                ?>
    <div class="clearfix">
        <div class="ow_gift_image">
            <a href="<?php 
                echo smarty_function_url_for_route(array('for' => "virtual_gifts_view_gift:[giftId=>" . (string) $_smarty_tpl->tpl_vars['gift']->value['dto']->id . "]"), $_smarty_tpl);
                ?>
">
                <img src="<?php 
                echo $_smarty_tpl->tpl_vars['gift']->value['imageUrl'];
                ?>
" />
            </a>
        </div>
        <div class="ow_gift_message"><?php 
                if ($_smarty_tpl->tpl_vars['gift']->value['dto']->message != '') {
                    echo $_smarty_tpl->tpl_vars['gift']->value['dto']->message;
                }
                ?>
</div>
    </div>
    <?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', 'addClass' => 'ow_stdmargin', 'avatar' => $_smarty_tpl->tpl_vars['avatars']->value[$_smarty_tpl->tpl_vars['senderId']->value], 'infoString' => $_smarty_tpl->tpl_vars['infoString']->value, 'content' => $_smarty_tpl->tpl_vars['content']->value), $_smarty_tpl);
                ?>

<?php 
            }
            ?>

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


<?php 
        } else {
            ?>
    <div class="ow_nocontent"><?php 
            echo smarty_function_text(array('key' => 'virtualgifts+no_gifts'), $_smarty_tpl);
            ?>
</div>
<?php 
        }
        ?>
</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_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_5349e255330b36_96798765($_smarty_tpl)
    {
        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_function_text')) {
            include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/function.text.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_function_url_for')) {
            include '/home/agilekod/domains/baksmaker.com/public_html/fulfill/ow_smarty/plugin/function.url_for.php';
        }
        if (($_smarty_tpl->tpl_vars['isAdmin']->value || $_smarty_tpl->tpl_vars['isModerator']->value) && $_smarty_tpl->tpl_vars['disaprvdCount']->value + count($_smarty_tpl->tpl_vars['flags']->value) > 0) {
            ?>
	<?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('block_decorator', array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_stdmargin', 'langLabel' => 'base+moderator_panel'));
            $_block_repeat = true;
            echo smarty_block_block_decorator(array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_stdmargin', 'langLabel' => 'base+moderator_panel'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

		<table width="100%">
			<tr>
				<?php 
                if ($_smarty_tpl->tpl_vars['disaprvdCount']->value > 0) {
                    ?>
				<td>
					<div class="ow_smallmargin"><?php 
                    echo smarty_function_text(array('key' => "base+for_approval"), $_smarty_tpl);
                    ?>
</div>
					<ul class="ow_regular">
						<li >
							<a href="<?php 
                    echo smarty_function_url_for_route(array('for' => 'users-waiting-for-approval'), $_smarty_tpl);
                    ?>
"><?php 
                    echo smarty_function_text(array('key' => 'base+users', 'count' => $_smarty_tpl->tpl_vars['disaprvdCount']->value), $_smarty_tpl);
                    ?>
</a> <span class="ow_lbutton ow_green"><?php 
                    echo $_smarty_tpl->tpl_vars['disaprvdCount']->value;
                    ?>
</span>
						</li>
					</ul>							
				</td>
				<?php 
                }
                ?>
				<?php 
                if (count($_smarty_tpl->tpl_vars['flags']->value) > 0) {
                    ?>
				<td>
					<div class="ow_smallmargin"><?php 
                    echo smarty_function_text(array('key' => "base+flagged_content"), $_smarty_tpl);
                    ?>
</div>
					<ul class="ow_regular">
							<?php 
                    $_smarty_tpl->tpl_vars['flag'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['flag']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['flags']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['flag']->key => $_smarty_tpl->tpl_vars['flag']->value) {
                        $_smarty_tpl->tpl_vars['flag']->_loop = true;
                        ?>
							<li>
								<a href="<?php 
                        echo smarty_function_url_for(array('for' => "BASE_CTRL_Flags:index:[type =>" . (string) $_smarty_tpl->tpl_vars['flag']->value['type'] . "]"), $_smarty_tpl);
                        ?>
"><?php 
                        echo smarty_function_text(array('key' => (string) $_smarty_tpl->tpl_vars['flag']->value['langKey']), $_smarty_tpl);
                        ?>
</a> <span class="ow_lbutton ow_red"><?php 
                        echo $_smarty_tpl->tpl_vars['flag']->value['count'];
                        ?>
</span>
							</li>
						<?php 
                    }
                    ?>
					</ul>			
				</td>
				<?php 
                }
                ?>
			</tr>
		</table>
	<?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_block_decorator(array('name' => 'box', 'type' => 'empty', 'addClass' => 'ow_stdmargin', 'langLabel' => 'base+moderator_panel'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

<?php 
        }
        ?>

<?php 
        echo $_smarty_tpl->tpl_vars['componentPanel']->value;
    }
    function content_548e5325a68489_80132852($_smarty_tpl)
    {
        if (!is_callable('smarty_block_style')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\block.style.php';
        }
        if (!is_callable('smarty_function_text')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.text.php';
        }
        if (!is_callable('smarty_function_decorator')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.decorator.php';
        }
        if (!is_callable('smarty_function_url_for_route')) {
            include 'C:\\xampp\\htdocs\\havanabook\\ow_smarty\\plugin\\function.url_for_route.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_ipc .ow_ipc_info .clearfix .ow_ipc_toolbar{
    white-space: normal;
}

<?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['list']->value)) {
            ?>
	<?php 
            $_smarty_tpl->tpl_vars['post'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['post']->_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['post']->key => $_smarty_tpl->tpl_vars['post']->value) {
                $_smarty_tpl->tpl_vars['post']->_loop = true;
                ?>
		
		<?php 
                $_smarty_tpl->tpl_vars["dto"] = new Smarty_variable($_smarty_tpl->tpl_vars['post']->value['dto'], null, 0);
                ?>
		<?php 
                $_smarty_tpl->tpl_vars['userId'] = new Smarty_variable($_smarty_tpl->tpl_vars['dto']->value->getAuthorId(), null, 0);
                ?>
		<?php 
                $_smarty_tpl->_capture_stack[0][] = array('default', 'info_string', null);
                ob_start();
                ?>
			<a href="<?php 
                echo $_smarty_tpl->tpl_vars['post']->value['url'];
                ?>
"><?php 
                echo preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['post']->value['dto']->getTitle());
                ?>
</a>
		<?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('default', "moreLink", null);
                ob_start();
                ?>
<a class="ow_lbutton" href="<?php 
                echo $_smarty_tpl->tpl_vars['post']->value['url'];
                ?>
"><?php 
                echo smarty_function_text(array('key' => 'blogs+more'), $_smarty_tpl);
                ?>
</a><?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('default', 'content', null);
                ob_start();
                ?>
			<?php 
                if ($_smarty_tpl->tpl_vars['commentInfo']->value[$_smarty_tpl->tpl_vars['dto']->value->id] > 0) {
                    ?>
				<div class="ow_small ow_smallmargin">
					<span class="ow_txt_value">
						<?php 
                    echo $_smarty_tpl->tpl_vars['commentInfo']->value[$_smarty_tpl->tpl_vars['dto']->value->id];
                    ?>

					</span>
					<a href="<?php 
                    echo $_smarty_tpl->tpl_vars['post']->value['url'];
                    ?>
">
						<?php 
                    echo smarty_function_text(array('key' => 'blogs+toolbar_comments'), $_smarty_tpl);
                    ?>

					</a>
				</div>
			<?php 
                }
                ?>
			<div class="ow_smallmargin"><?php 
                if ($_smarty_tpl->tpl_vars['post']->value['truncated']) {
                    echo preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['post']->value['text']);
                    ?>
... <?php 
                    echo $_smarty_tpl->tpl_vars['moreLink']->value;
                } else {
                    echo preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['post']->value['text']);
                }
                ?>
</div>
		<?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', 'addClass' => 'ow_smallmargin', 'infoString' => $_smarty_tpl->tpl_vars['info_string']->value, 'content' => $_smarty_tpl->tpl_vars['content']->value, 'avatar' => $_smarty_tpl->tpl_vars['avatars']->value[$_smarty_tpl->tpl_vars['userId']->value], 'toolbar' => $_smarty_tpl->tpl_vars['tbars']->value[$_smarty_tpl->tpl_vars['dto']->value->id]), $_smarty_tpl);
                ?>

	<?php 
            }
        } else {
            ?>
	<div class="ow_nocontent">
		<?php 
            $_smarty_tpl->_capture_stack[0][] = array('default', 'addnewurl', null);
            ob_start();
            echo smarty_function_url_for_route(array('for' => 'post-save-new'), $_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' => "blogs+index_widget_empty"), $_smarty_tpl);
            ?>
 <a href="<?php 
            echo $_smarty_tpl->tpl_vars['addnewurl']->value;
            ?>
"><?php 
            echo smarty_function_text(array('key' => 'blogs+add_new'), $_smarty_tpl);
            ?>
</a>
	</div>
<?php 
        }
    }