function content_569673bd523f35_62492910($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_get_opt')) {
            include '/home/janilv/public_html/codoforum/sys/CODOF/Smarty/plugins/modifier.get_opt.php';
        }
        if (!is_callable('smarty_modifier_load_block')) {
            include '/home/janilv/public_html/codoforum/sys/CODOF/Smarty/plugins/modifier.load_block.php';
        }
        if (!is_callable('smarty_modifier_get_preference')) {
            include '/home/janilv/public_html/codoforum/sys/CODOF/Smarty/plugins/modifier.get_preference.php';
        }
        ?>

<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="generator" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="description" content="<?php 
        echo smarty_modifier_get_opt("site_description");
        ?>
">

        <meta name="author" content="BABA">
        <title><?php 
        echo $_smarty_tpl->tpl_vars['sub_title']->value;
        ?>
 | <?php 
        echo $_smarty_tpl->tpl_vars['site_title']->value;
        ?>
</title>
        <!--[if lte IE 8]>
         <script src="//cdnjs.cloudflare.com/ajax/libs/json2/20121008/json2.min.js"></script>
        <![endif]-->

        <?php 
        echo smarty_modifier_load_block("block_head");
        ?>



        <script type="text/javascript">

            var on_codo_loaded = function () {
            };
            var codo_defs = {
                url: "<?php 
        echo @constant('RURI');
        ?>
",
                duri: "<?php 
        echo @constant('DURI');
        ?>
",
                def_theme: "<?php 
        echo @constant('DEF_THEME_PATH');
        ?>
",
                reluri: "<?php 
        echo @constant('DATA_REL_PATH');
        ?>
",
                token: "<?php 
        echo $_smarty_tpl->tpl_vars['CSRF_token']->value;
        ?>
",
                smiley_path: "<?php 
        echo @constant('SMILEY_PATH');
        ?>
",
                logged_in: "<?php 
        echo $_smarty_tpl->tpl_vars['I']->value->loggedIn() ? 'yes' : 'no';
        ?>
",
                uid: "<?php 
        echo $_smarty_tpl->tpl_vars['I']->value->id;
        ?>
",
                time: "<?php 
        echo $_smarty_tpl->tpl_vars['php_time_now']->value;
        ?>
",
                trans: {
                    embed_no_preview: "<?php 
        echo _t('preview not available inside editor');
        ?>
",
                    notify: {
                        mention: "<?php 
        echo _t("New mention");
        ?>
",
                        mention_action: "<?php 
        echo _t("mentioned you in");
        ?>
",
                        rolled_up_trans: "<?php 
        echo _t(" for same topic");
        ?>
",
                        caught_up: "<?php 
        echo _t("No new notifications");
        ?>
"
                    }
                },
                preferences: {
                    drafts: {
                        autosave: 'yes'
                    },
                    notify: {
                        real_time: "<?php 
        echo smarty_modifier_get_preference("real_time_notifications");
        ?>
",
                        desktop: "<?php 
        echo smarty_modifier_get_preference("desktop_notifications");
        ?>
"
                    }
                }

            };

            var CODOF = {
                hook: {
                    hooks: [],
                    add: function (myhook, func, weight, args) {

                        var i = 0;
                        if (typeof weight === "undefined") {

                            weight = 0;
                        }
                        if (typeof args === "undefined") {

                            args = {
                            };
                        }

                        if (typeof CODOF.hook.hooks[myhook] !== "undefined") {

                            i = CODOF.hook.hooks[myhook].length;
                        } else {

                            CODOF.hook.hooks[myhook] = [];
                        }

                        CODOF.hook.hooks[myhook][i] = {
                            func: func,
                            args: args,
                            weight: weight
                        };
                    }
                }
            }


        </script>


        <link rel="shortcut icon" type="image/x-icon" href="<?php 
        echo @constant('DURI');
        ?>
assets/img/general/img/favicon.ico?v=1">
        <link rel="apple-touch-icon" sizes="57x57" href="http://codoforum.com/img/apple-touch-icon-57x57.png">
        <link rel="apple-touch-icon" sizes="114x114" href="http://codoforum.com/img/apple-touch-icon-114x114.png">
        <link rel="apple-touch-icon" sizes="72x72" href="http://codoforum.com/img/apple-touch-icon-72x72.png">
        <link rel="apple-touch-icon" sizes="144x144" href="http://codoforum.com/img/apple-touch-icon-144x144.png">
        <link rel="apple-touch-icon" sizes="60x60" href="http://codoforum.com/img/apple-touch-icon-60x60.png">
        <link rel="apple-touch-icon" sizes="120x120" href="http://codoforum.com/img/apple-touch-icon-120x120.png">
        <link rel="apple-touch-icon" sizes="76x76" href="http://codoforum.com/img/apple-touch-icon-76x76.png">
        <link rel="apple-touch-icon" sizes="152x152" href="http://codoforum.com/img/apple-touch-icon-152x152.png">
        <link rel="icon" type="image/png" href="http://codoforum.com/img/favicon-196x196.png" sizes="196x196">
        <link rel="icon" type="image/png" href="http://codoforum.com/img/favicon-160x160.png" sizes="160x160">
        <link rel="icon" type="image/png" href="http://codoforum.com/img/favicon-96x96.png" sizes="96x96">
        <link rel="icon" type="image/png" href="http://codoforum.com/img/favicon-16x16.png" sizes="16x16">
        <link rel="icon" type="image/png" href="http://codoforum.com/img/favicon-32x32.png" sizes="32x32">


        <!-- Some SEO stuff -->

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

            <meta name="robots" content="<?php 
            echo $_smarty_tpl->tpl_vars['meta_robots']->value;
            ?>
">
        <?php 
        }
        ?>

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

            <link rel="canonical" href="<?php 
            echo $_smarty_tpl->tpl_vars['canonical']->value;
            ?>
" />
        <?php 
        }
        ?>
        <?php 
        if (isset($_smarty_tpl->tpl_vars['rel_prev']->value)) {
            ?>

            <link rel="prev" href="<?php 
            echo $_smarty_tpl->tpl_vars['rel_prev']->value;
            ?>
" />
        <?php 
        }
        ?>
        <?php 
        if (isset($_smarty_tpl->tpl_vars['rel_next']->value)) {
            ?>

            <link rel="next" href="<?php 
            echo $_smarty_tpl->tpl_vars['rel_next']->value;
            ?>
" />
        <?php 
        }
        ?>

        <?php 
        if (isset($_smarty_tpl->tpl_vars['google_plus_profile']->value)) {
            ?>
            <link rel="author" href="https://plus.google.com/<?php 
            echo $_smarty_tpl->tpl_vars['google_plus_profile']->value;
            ?>
"/>
        <?php 
        }
        ?>

        <?php 
        if (isset($_smarty_tpl->tpl_vars['og']->value)) {
            ?>
    <!-- Twitter Card data -->
            <meta name="twitter:card" content="summary">

            <!-- Open Graph data -->
            <meta property="og:title" content="<?php 
            echo $_smarty_tpl->tpl_vars['og']->value['title'];
            ?>
" />
            <meta property="og:type" content="<?php 
            echo $_smarty_tpl->tpl_vars['og']->value['type'];
            ?>
" />
            <?php 
            if (isset($_smarty_tpl->tpl_vars['og']->value['url'])) {
                ?>
<meta property="og:url" content="<?php 
                echo $_smarty_tpl->tpl_vars['og']->value['url'];
                ?>
" /><?php 
            }
            ?>

            <?php 
            if (isset($_smarty_tpl->tpl_vars['og']->value['image'])) {
                ?>
<meta property="og:image" content="<?php 
                echo $_smarty_tpl->tpl_vars['og']->value['image'];
                ?>
" /><?php 
            }
            ?>
             
            <?php 
            if (isset($_smarty_tpl->tpl_vars['og']->value['desc'])) {
                ?>
<meta property="og:description" content="<?php 
                echo $_smarty_tpl->tpl_vars['og']->value['desc'];
                ?>
" /><?php 
            }
            ?>

            <meta property="og:site_name" content="<?php 
            echo $_smarty_tpl->tpl_vars['site_title']->value;
            ?>
" />

            <!-- Schema.org markup for Google+ -->
            <meta itemprop="name" content="<?php 
            echo $_smarty_tpl->tpl_vars['og']->value['title'];
            ?>
">
            <?php 
            if (isset($_smarty_tpl->tpl_vars['og']->value['desc'])) {
                ?>
<meta itemprop="description" content="<?php 
                echo $_smarty_tpl->tpl_vars['og']->value['desc'];
                ?>
"><?php 
            }
            ?>

            <?php 
            if (isset($_smarty_tpl->tpl_vars['og']->value['image'])) {
                ?>
<meta itemprop="image" content="<?php 
                echo $_smarty_tpl->tpl_vars['og']->value['image'];
                ?>
"><?php 
            }
            ?>
        <?php 
        }
        ?>

        <?php 
        if (isset($_smarty_tpl->tpl_vars['article_published']->value)) {
            ?>
<meta property="article:published_time" content="<?php 
            echo $_smarty_tpl->tpl_vars['article_published']->value;
            ?>
" /><?php 
        }
        ?>

        <?php 
        if (isset($_smarty_tpl->tpl_vars['article_modified']->value)) {
            ?>
<meta property="article:modified_time" content="<?php 
            echo $_smarty_tpl->tpl_vars['article_modified']->value;
            ?>
" /><?php 
        }
        ?>

        <!-- SEO stuff ends -->


        <?php 
        echo $_smarty_tpl->tpl_vars['page']->value['head']['css'];
        ?>
        
        <?php 
        echo $_smarty_tpl->tpl_vars['page']->value['head']['js'];
        ?>


        <style type="text/css">

            .navbar {

                border-radius: 0;

            }


            .nav .open > a, .nav .open > a:hover, .nav .open > a:focus {

                background: white;
            }

            .navbar-clean .container-fluid {

                padding-left: 20px;
                padding-right: 30px;
            }


            .codo_forum_title:hover {
                -webkit-transition: all 0.5s ease;
                -moz-transition: all 0.5s ease;
                -o-transition: all 0.5s ease;
                transition: all 0.5s ease;
            }

            .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {

                color: white;
                background: #3794db;
            }

            .container{
               // margin-top: 60px;
            }

            .CODOFORUM{

                position:relative !important;
                top:0;

            }

            .mm-page {

                height: 100%;
            }
        </style>

    </head>

    <body>

        <?php 
        echo smarty_modifier_load_block("block_body_start");
        ?>




        <div class="CODOFORUM">


            <nav id="mmenu" style="display: none">
                <ul>



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

                        <li style="text-align:center">
                            <a href="<?php 
            echo $_smarty_tpl->tpl_vars['profile_url']->value;
            ?>
"><img  src="<?php 
            echo $_smarty_tpl->tpl_vars['I']->value->avatar;
            ?>
" style="width: 50px;border-radius: 30px;border: 3px solid"/></a>
                            <span style="padding: 10px 0px;font-weight:bold"><?php 
            echo $_smarty_tpl->tpl_vars['I']->value->name;
            ?>
</span>
                        </li>
                        <li title="<?php 
            echo _t('Notifications');
            ?>
" class="codo_inline_notifications_show_all">

                            <a class="glyphicon glyphicon-bell">
                                <span><?php 
            echo _t('Notifications');
            ?>
</span>
                                <?php 
            if ($_smarty_tpl->tpl_vars['unread_notifications']->value) {
                ?>
                                    <span class="codo_inline_notifications_unread_no codo_inline_notifications_unread_no_mobile"><?php 
                echo $_smarty_tpl->tpl_vars['unread_notifications']->value;
                ?>
</span>
                                <?php 
            }
            ?>

                            </a>

                        </li>

                        <?php 
            if ($_smarty_tpl->tpl_vars['canCreateTopicInAtleastOneCategory']->value) {
                ?>
                            <li class="" onclick="codo_create_topic()">


                                <a class="glyphicon glyphicon-pencil" >  <span><?php 
                echo _t('New topic');
                ?>
</span></a>

                            </li>
                        <?php 
            }
            ?>

                        <li class="">

                            <span  class="glyphicon glyphicon-user" > <?php 
            echo _t('Profile');
            ?>
</span>
                            <ul>


                                <li><a class="glyphicon glyphicon-user" href="<?php 
            echo $_smarty_tpl->tpl_vars['profile_url']->value;
            ?>
">  <span><?php 
            echo _t("View Profile");
            ?>
</span></a></li>
                                <li><a class="glyphicon glyphicon-pencil" href="<?php 
            echo $_smarty_tpl->tpl_vars['profile_url']->value;
            ?>
/<?php 
            echo $_smarty_tpl->tpl_vars['I']->value->id;
            ?>
/edit">  <span><?php 
            echo _t("Edit");
            ?>
</span></a></li>
                                <li><a class="glyphicon glyphicon-log-out" href="<?php 
            echo $_smarty_tpl->tpl_vars['logout_url']->value;
            ?>
">  <span><?php 
            echo _t("Logout");
            ?>
</span></a></li>

                            </ul>
                        </li>

                        

                    <?php 
        } else {
            ?>

                        <li class="active"><a href="<?php 
            echo $_smarty_tpl->tpl_vars['register_url']->value;
            ?>
"><?php 
            echo _t("Register");
            ?>
</a></li>
                        <li><a id="codo_login_link" href="<?php 
            echo $_smarty_tpl->tpl_vars['login_url']->value;
            ?>
"><?php 
            echo _t("Login");
            ?>
</a></li>
                        <?php 
        }
        ?>

                    <?php 
        echo smarty_modifier_load_block("block_main_menu");
        ?>



                </ul>
            </nav>
            <nav id="nav" class="navbar navbar-clean navbar-fixed-top" role="navigation">
                <div class="container-fluid">
                    <!-- Brand and toggle get grouped for better mobile display -->
                    <div class="navbar-header">

                        <button type="button" class="navbar-toggle pull-left"  onclick='$("#mmenu").trigger("open.mm");' >
                            <span class="sr-only"><?php 
        echo _t("Toggle navigation");
        ?>
</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>

                        


                        <img src="<?php 
        echo @constant('DURI');
        ?>
assets/img/general/brand.png" alt="codoforum logo" class="navbar-header-img">
                        <a href="<?php 
        echo @constant('RURI');
        echo $_smarty_tpl->tpl_vars['site_url']->value;
        ?>
" class="navbar-brand codo_forum_title" ><?php 
        echo $_smarty_tpl->tpl_vars['site_title']->value;
        ?>
</a>

                        

                    </div>


                    <!-- Collect the nav links, forms, and other content for toggling -->
                    <div class="collapse navbar-collapse" id="codo_navbar_content">




                        <ul class="nav navbar-nav navbar-right">


                            <?php 
        echo smarty_modifier_load_block("block_main_menu");
        ?>


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

                                <?php 
            if ($_smarty_tpl->tpl_vars['canCreateTopicInAtleastOneCategory']->value) {
                ?>
                                    <li class="codo_topics_new_topic hidden-xs codo_tooltip" data-placement="bottom" data-toggle="tooltip" title="<?php 
                echo _t('Add new Topic');
                ?>
">
                                        <a class="codo_nav_icon" href="#" onclick="codo_create_topic()">
                                            <i class="icon-new-topic"></i>
                                        </a>
                                    </li>
                                <?php 
            }
            ?>

                                <li class="dropdown hidden-xs codo_tooltip" data-toggle="tooltip" data-placement="bottom" title="<?php 
            echo _t('Notifications');
            ?>
">
                                    <a data-toggle="dropdown" class="codo_nav_icon codo_inline_notifications" id="codo_inline_notifications">
                                        <i class="icon-bell"></i>
                                        <?php 
            if ($_smarty_tpl->tpl_vars['unread_notifications']->value) {
                ?>
                                            <span class="codo_inline_notifications_unread_no"><?php 
                echo $_smarty_tpl->tpl_vars['unread_notifications']->value;
                ?>
</span>
                                        <?php 
            }
            ?>
                                    </a>
                                    <ul class="dropdown-menu codo_inline_notifications_list" id="codo_inline_notifications_list" role="menu" aria-labelledby="dLabel">

                                        <div class="codo_inline_notification_header">
                                            <div class="codo_load_more_bar_black_gif" ></div>
                                            <div class="codo_inline_notification_header_content" id="codo_inline_notification_header_content">

                                                <span><?php 
            echo _t("Notifications");
            ?>
</span>
                                                <div>
                                                    
                                                    <span id="codo_inline_notifications_preferences" class="glyphicon glyphicon-tasks"  data-toggle="tooltip" data-placement="bottom" title="<?php 
            echo _t('preferences');
            ?>
"></span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="codo_inline_notification_body" id="codo_inline_notification_body">

                                            
                                        </div>
                                        <div class="codo_inline_notification_footer codo_inline_notifications_show_all">
                                            <span><?php 
            echo _t("show all");
            ?>
</span><i class="glyphicon glyphicon-time"></i>
                                        </div>
                                    </ul>
                                </li>

                                <li class="codo_xs_li visible-xs-block">
                                    <a href="<?php 
            echo $_smarty_tpl->tpl_vars['profile_url']->value;
            ?>
/<?php 
            echo $_smarty_tpl->tpl_vars['I']->value->id;
            ?>
/edit#notifications">
                                        <i class="icon-bell"></i>
                                        <span class="visible-xs-inline"> <?php 
            echo _t("Notifications");
            ?>
</span>
                                    </a>
                                </li>

                                <?php 
            if ($_smarty_tpl->tpl_vars['can_moderate_posts']->value) {
                ?>
                                    <li class="" role="presentation">
                                        <a class="codo_nav_icon codo_tooltip" data-toggle="tooltip" data-placement="bottom" title="<?php 
                echo _t('Moderation');
                ?>
" 
                                           href="<?php 
                echo @constant('RURI');
                ?>
moderation"><i class="icon-spam"></i></a>
                                    </li>
                                <?php 
            }
            ?>

                                <li class="codo_menu_user dropdown">

                                    <a class="codo_menu_user_img" data-toggle="dropdown"><img  src="<?php 
            echo $_smarty_tpl->tpl_vars['I']->value->avatar;
            ?>
" />
                                        <span class="visible-xs-inline"><?php 
            echo $_smarty_tpl->tpl_vars['I']->value->name;
            ?>
</span>
                                    </a>
                                    <ul class="dropdown-menu codo_menu_user_container" role="menu" aria-labelledby="dLabel">


                                        <li><a class="glyphicon glyphicon-user" href="<?php 
            echo $_smarty_tpl->tpl_vars['profile_url']->value;
            ?>
">  <span><?php 
            echo _t("Profile");
            ?>
</span></a></li>
                                        <li><a class="glyphicon glyphicon-pencil" href="<?php 
            echo $_smarty_tpl->tpl_vars['profile_url']->value;
            ?>
/<?php 
            echo $_smarty_tpl->tpl_vars['I']->value->id;
            ?>
/edit">  <span><?php 
            echo _t("Edit");
            ?>
</span></a></li>
                                        <li><a class="glyphicon glyphicon-log-out" href="<?php 
            echo $_smarty_tpl->tpl_vars['logout_url']->value;
            ?>
">  <span><?php 
            echo _t("Logout");
            ?>
</span></a></li>

                                    </ul>
                                </li>

                                

                            <?php 
        } else {
            ?>

                                <li class="active"><a href="<?php 
            echo $_smarty_tpl->tpl_vars['register_url']->value;
            ?>
"><?php 
            echo _t("Register");
            ?>
</a></li>
                                <li><a id="codo_login_link" href="<?php 
            echo $_smarty_tpl->tpl_vars['login_url']->value;
            ?>
"><?php 
            echo _t("Login");
            ?>
</a></li>
                                <?php 
        }
        ?>

                            <li class="codo_back_to_top"><a class="codo_back_to_top_arrow"><i class="icon-arrow-top"></i></a></li>
                        </ul>
                    </div><!-- /.navbar-collapse -->
                </div><!-- /.container-fluid -->
            </nav>




            <div class='codo_modal_bg'></div>

        

    <style type='text/css'>

        .no_topics {
        
            padding: 20px;
            background: #fff;
        }
    </style>

    <?php 
        echo smarty_modifier_load_block("block_breadcrumbs_before");
        ?>

    <div id="breadcrumb" class="col-md-12">
        <?php 
        echo smarty_modifier_load_block("block_breadcrumbs_before");
        ?>


        <div class="codo_breadcrumb_list btn-breadcrumb hidden-xs">
            <a href="<?php 
        echo @constant('RURI');
        echo $_smarty_tpl->tpl_vars['site_url']->value;
        ?>
"><div><i class="glyphicon glyphicon-home"></i></div></a>
        </div>

        <?php 
        echo smarty_modifier_load_block("block_breadcrumbs_after");
        ?>
                
    </div>

    <div class="container" id="codo_topics_row">


        <div class="row">

            <div class="codo_topics col-md-8 clearfix">
                <div class="codo_topics_head">

                    <div class="codo_topics_head_item <?php 
        echo $_smarty_tpl->tpl_vars['topic_head']->value;
        ?>
"><a href="<?php 
        echo @constant('RURI');
        ?>
moderation"><?php 
        echo $_smarty_tpl->tpl_vars['num_topics']->value;
        ?>
 <?php 
        echo _t('Topics');
        ?>
</a></li></div>
                    <div class="codo_topics_head_item <?php 
        echo $_smarty_tpl->tpl_vars['reply_head']->value;
        ?>
"><a href="<?php 
        echo @constant('RURI');
        ?>
moderation/replies"><?php 
        echo $_smarty_tpl->tpl_vars['num_replies']->value;
        ?>
 <?php 
        echo _t('Replies');
        ?>
</a></li></div>

                </div>

                <div class="codo_topics_body" id="codo_topics_body">

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

                    <?php 
        } else {
            ?>
                        <div class='no_topics'>
                            <?php 
            echo _t('No topics/posts to moderate');
            ?>

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

        <div class="codo_moderation_multi_floatbox">

            With <span id="codo_number_selected"></span> selected <button id="codo_multi_approve" class="codo_btn codo_btn_primary"><?php 
        echo _t("Approve");
        ?>
</button>
            <button id="codo_multi_delete" class="codo_btn codo_btn_danger"><?php 
        echo _t("Delete");
        ?>
</button>
        </div>


        <script type="text/javascript">

            function on_codo_loaded() {

                var floatbox = $('.codo_moderation_multi_floatbox');
                var tab_option = '<?php 
        echo $_smarty_tpl->tpl_vars['tab_option']->value;
        ?>
';

                $('#codo_topics_body input[type=checkbox]').on('change', function () {

                    var number = $('#codo_topics_body input[type=checkbox]:checked').length;
                    $('#codo_number_selected').html(number);

                    if (parseInt(number) > 0) {

                        floatbox.show();
                    } else {
                        floatbox.hide();
                    }
                });

                $('#codo_topics_body').on('click', ".codo_btn_approve", function () {

                    var info = $(this).parent();
                    if (tab_option === 'topics') {
                        var tids = [info.data('tid')];
                    } else {
                        var tids = [info.data('pid')];
                    }

                    action('approve', tids);
                });

                $('#codo_topics_body').on('click', ".codo_btn_delete", function () {

                    var info = $(this).parent();
                    if (tab_option === 'topics') {
                        var tids = [info.data('tid')];
                    } else {
                        var tids = [info.data('pid')];
                    }

                    action('delete', tids);
                });

                $('#codo_multi_approve').on('click', function () {

                    var tids = [];
                    $('.codo_topics_body input[type=checkbox]:checked').next().each(function () {

                        if (tab_option === 'topics') {
                            tids.push($(this).data('tid'));
                        } else {
                            tids.push($(this).data('pid'));
                        }
                    });

                    action('approve', tids);
                });

                $('#codo_multi_delete').on('click', function () {

                    var tids = [];
                    $('.codo_topics_body input[type=checkbox]:checked').next().each(function () {

                        if (tab_option === 'topics') {
                            tids.push($(this).data('tid'));
                        } else {
                            tids.push($(this).data('pid'));
                        }
                    });

                    action('delete', tids);
                });

                function action(what, tids) {


                    jQuery.post(codo_defs.url + 'Ajax/moderation/' + tab_option + '/' + what, {
                        token: codo_defs.token,
                        tids: tids
                    }, function (resp) {

                        if (resp === "success") {

                            window.location.reload();
                        }
                    }
                    );

                }
            }
        </script>

    

        <div class="codo_footer">

            <?php 
        echo $_smarty_tpl->tpl_vars['page']->value['body']['js'];
        ?>

            <?php 
        echo smarty_modifier_load_block("block_footer");
        ?>



            <footer class="footer">
                <div class="container" style="padding:0px;">
                    <div class="row" style="padding: 5px !important">
                        <div class="col-sm-4">&copy; 2015 <?php 
        echo $_smarty_tpl->tpl_vars['site_title']->value;
        ?>
<br>


                            <small><?php 
        echo _t("Powered by");
        ?>
 <a href="http://codoforum.com" target="_blank">Codoforum</a></small>
                        </div>

                        <div class="col-sm-4 pull-right" style="text-align: center">


                            <?php 
        echo smarty_modifier_load_block("block_footer_right");
        ?>




                            <span class=''></span>

                        </div>

                    </div>
                </div>
            </footer>        


            <div style="display: none" id="codo_js_php_defs"></div>
        </div>
        <div class='notifications bottom-right'></div>


    </div>


    <?php 
        echo smarty_modifier_load_block("block_body_end");
        ?>


    
    
        <script style="display: none" id="codo_inline_notifications_template" type="text/html">

            {{#each objects}}
            <a target="_blank" href="{{../url}}topic/{{tid}}/post-{{pid}}/#post-{{pid}}" class="codo_inline_notification_el">

                <div class="codo_inline_notification_el_img">

                    {{#isRemote actor.avatar}}
                    <img src="{{../actor.avatar}}" />                    
                    {{else}}
                    <img src="{{../../duri}}assets/img/profiles/icons/{{../actor.avatar}}" />                    
                    {{/isRemote}}
                </div>
                <div class="codo_inline_notification_el_body">
                    <div class="codo_inline_notification_el_head">
                        <span class="codo_inline_notification_el_title">{{title}}</span>
                        {{#if rolledX}}
                        <span data-toggle="tooltip" data-placement="bottom" title="{{../rolledX}}{{../../rolled_up_trans}}" class="codo_inline_notification_el_rolled">{{rolledX}}</span>
                        {{/if}}
                        <div class="codo_inline_notification_el_created">{{created}}</div>
                    </div>
                    <div class="codo_inline_notification_el_text">
                        <span>{{{body}}}</b></span>
                    </div>
                </div>
            </a>
            {{else}}
            <div class="codo_inline_notification_caught_up">{{../caught_up}}</div>
            {{/each}}
        </script>
    

    <div class="codo_editor_draft">
        <div>
            <div id="codo_pending_text" class="codo_pending_text"><?php 
        echo _t("Pending draft ...");
        ?>
 <?php 
        echo _t("Click to resume editing");
        ?>
</div>
            <div class="codo_delete_draft"><i class="icon-trash"></i> <?php 
        echo _t(" Discard draft");
        ?>
 </div>
        </div>
    </div>

    <div id="codo_is_xs" class="hidden-xs"></div>    
    <div id="codo_is_sm" class="hidden-sm"></div>

    <script type="text/javascript">
                                        /** Lets optimize to the MAX **/
                                        function downloadJSAtOnload() {

                                        var files = JSON.parse('<?php 
        echo $_smarty_tpl->tpl_vars['page']->value['defer'];
        ?>
');
                                                var len = files.length;
                                                var i = 0;
                                                var element = document.createElement("script");
                                                element.src = files[i];
                                                element.async = false;
                                                document.body.appendChild(element);
                                                if (element.readyState) {  //IE
                                        element.onreadystatechange = function() {
                                        if (element.readyState === "loaded" || element.readyState === "complete") {
                                        element.onreadystatechange = null;
                                                on_codo_loaded();
                                                codo_load_js();
                                        }
                                        };
                                        } else {  //Others
                                        element.onload = function() {
                                        on_codo_loaded();
                                                CODOF.hook.call('on_cf_loaded');
                                                codo_load_js();
                                        };
                                        }

                                        function codo_load_js() {
                                        var element;
                                                for (var i = 1; i < len; i++) {
                                        element = document.createElement("script");
                                                element.src = files[i];
                                                element.async = false;
                                                document.body.appendChild(element);
                                                if (i === len - 1) {
                                        element.onload = function() {
                                        CODOF.hook.call('on_scripts_loaded');
                                        }
                                        }
                                        }
                                        }
                                        }
                                        if (window.addEventListener)
                                                window.addEventListener("load", downloadJSAtOnload, false);
                                                else if (window.attachEvent)
                                                window.attachEvent("onload", downloadJSAtOnload);
                                                else window.onload = downloadJSAtOnload;
    </script>    
</body>

</html>
<?php 
    }
    function content_569675990f4bf3_41762565($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_get_opt')) {
            include '/home/janilv/public_html/php-ruhmatoo-projekt/forum/sys/CODOF/Smarty/plugins/modifier.get_opt.php';
        }
        if (!is_callable('smarty_modifier_load_block')) {
            include '/home/janilv/public_html/php-ruhmatoo-projekt/forum/sys/CODOF/Smarty/plugins/modifier.load_block.php';
        }
        if (!is_callable('smarty_modifier_get_preference')) {
            include '/home/janilv/public_html/php-ruhmatoo-projekt/forum/sys/CODOF/Smarty/plugins/modifier.get_preference.php';
        }
        if (!is_callable('smarty_modifier_URL_safe')) {
            include '/home/janilv/public_html/php-ruhmatoo-projekt/forum/sys/CODOF/Smarty/plugins/modifier.URL_safe.php';
        }
        if (!is_callable('smarty_modifier_abbrev_no')) {
            include '/home/janilv/public_html/php-ruhmatoo-projekt/forum/sys/CODOF/Smarty/plugins/modifier.abbrev_no.php';
        }
        ?>

<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="generator" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="description" content="<?php 
        echo smarty_modifier_get_opt("site_description");
        ?>
">

        <meta name="author" content="BABA">
        <title><?php 
        echo $_smarty_tpl->tpl_vars['sub_title']->value;
        ?>
 | <?php 
        echo $_smarty_tpl->tpl_vars['site_title']->value;
        ?>
</title>
        <!--[if lte IE 8]>
         <script src="//cdnjs.cloudflare.com/ajax/libs/json2/20121008/json2.min.js"></script>
        <![endif]-->

        <?php 
        echo smarty_modifier_load_block("block_head");
        ?>



        <script type="text/javascript">

            var on_codo_loaded = function () {
            };
            var codo_defs = {
                url: "<?php 
        echo @constant('RURI');
        ?>
",
                duri: "<?php 
        echo @constant('DURI');
        ?>
",
                def_theme: "<?php 
        echo @constant('DEF_THEME_PATH');
        ?>
",
                reluri: "<?php 
        echo @constant('DATA_REL_PATH');
        ?>
",
                token: "<?php 
        echo $_smarty_tpl->tpl_vars['CSRF_token']->value;
        ?>
",
                smiley_path: "<?php 
        echo @constant('SMILEY_PATH');
        ?>
",
                logged_in: "<?php 
        echo $_smarty_tpl->tpl_vars['I']->value->loggedIn() ? 'yes' : 'no';
        ?>
",
                uid: "<?php 
        echo $_smarty_tpl->tpl_vars['I']->value->id;
        ?>
",
                time: "<?php 
        echo $_smarty_tpl->tpl_vars['php_time_now']->value;
        ?>
",
                trans: {
                    embed_no_preview: "<?php 
        echo _t('preview not available inside editor');
        ?>
",
                    notify: {
                        mention: "<?php 
        echo _t("New mention");
        ?>
",
                        mention_action: "<?php 
        echo _t("mentioned you in");
        ?>
",
                        rolled_up_trans: "<?php 
        echo _t(" for same topic");
        ?>
",
                        caught_up: "<?php 
        echo _t("No new notifications");
        ?>
"
                    }
                },
                preferences: {
                    drafts: {
                        autosave: 'yes'
                    },
                    notify: {
                        real_time: "<?php 
        echo smarty_modifier_get_preference("real_time_notifications");
        ?>
",
                        desktop: "<?php 
        echo smarty_modifier_get_preference("desktop_notifications");
        ?>
"
                    }
                }

            };

            var CODOF = {
                hook: {
                    hooks: [],
                    add: function (myhook, func, weight, args) {

                        var i = 0;
                        if (typeof weight === "undefined") {

                            weight = 0;
                        }
                        if (typeof args === "undefined") {

                            args = {
                            };
                        }

                        if (typeof CODOF.hook.hooks[myhook] !== "undefined") {

                            i = CODOF.hook.hooks[myhook].length;
                        } else {

                            CODOF.hook.hooks[myhook] = [];
                        }

                        CODOF.hook.hooks[myhook][i] = {
                            func: func,
                            args: args,
                            weight: weight
                        };
                    }
                }
            }


        </script>


        <link rel="shortcut icon" type="image/x-icon" href="<?php 
        echo @constant('DURI');
        ?>
assets/img/general/img/favicon.ico?v=1">
        <link rel="apple-touch-icon" sizes="57x57" href="http://codoforum.com/img/apple-touch-icon-57x57.png">
        <link rel="apple-touch-icon" sizes="114x114" href="http://codoforum.com/img/apple-touch-icon-114x114.png">
        <link rel="apple-touch-icon" sizes="72x72" href="http://codoforum.com/img/apple-touch-icon-72x72.png">
        <link rel="apple-touch-icon" sizes="144x144" href="http://codoforum.com/img/apple-touch-icon-144x144.png">
        <link rel="apple-touch-icon" sizes="60x60" href="http://codoforum.com/img/apple-touch-icon-60x60.png">
        <link rel="apple-touch-icon" sizes="120x120" href="http://codoforum.com/img/apple-touch-icon-120x120.png">
        <link rel="apple-touch-icon" sizes="76x76" href="http://codoforum.com/img/apple-touch-icon-76x76.png">
        <link rel="apple-touch-icon" sizes="152x152" href="http://codoforum.com/img/apple-touch-icon-152x152.png">
        <link rel="icon" type="image/png" href="http://codoforum.com/img/favicon-196x196.png" sizes="196x196">
        <link rel="icon" type="image/png" href="http://codoforum.com/img/favicon-160x160.png" sizes="160x160">
        <link rel="icon" type="image/png" href="http://codoforum.com/img/favicon-96x96.png" sizes="96x96">
        <link rel="icon" type="image/png" href="http://codoforum.com/img/favicon-16x16.png" sizes="16x16">
        <link rel="icon" type="image/png" href="http://codoforum.com/img/favicon-32x32.png" sizes="32x32">


        <!-- Some SEO stuff -->

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

            <meta name="robots" content="<?php 
            echo $_smarty_tpl->tpl_vars['meta_robots']->value;
            ?>
">
        <?php 
        }
        ?>

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

            <link rel="canonical" href="<?php 
            echo $_smarty_tpl->tpl_vars['canonical']->value;
            ?>
" />
        <?php 
        }
        ?>
        <?php 
        if (isset($_smarty_tpl->tpl_vars['rel_prev']->value)) {
            ?>

            <link rel="prev" href="<?php 
            echo $_smarty_tpl->tpl_vars['rel_prev']->value;
            ?>
" />
        <?php 
        }
        ?>
        <?php 
        if (isset($_smarty_tpl->tpl_vars['rel_next']->value)) {
            ?>

            <link rel="next" href="<?php 
            echo $_smarty_tpl->tpl_vars['rel_next']->value;
            ?>
" />
        <?php 
        }
        ?>

        <?php 
        if (isset($_smarty_tpl->tpl_vars['google_plus_profile']->value)) {
            ?>
            <link rel="author" href="https://plus.google.com/<?php 
            echo $_smarty_tpl->tpl_vars['google_plus_profile']->value;
            ?>
"/>
        <?php 
        }
        ?>

        <?php 
        if (isset($_smarty_tpl->tpl_vars['og']->value)) {
            ?>
    <!-- Twitter Card data -->
            <meta name="twitter:card" content="summary">

            <!-- Open Graph data -->
            <meta property="og:title" content="<?php 
            echo $_smarty_tpl->tpl_vars['og']->value['title'];
            ?>
" />
            <meta property="og:type" content="<?php 
            echo $_smarty_tpl->tpl_vars['og']->value['type'];
            ?>
" />
            <?php 
            if (isset($_smarty_tpl->tpl_vars['og']->value['url'])) {
                ?>
<meta property="og:url" content="<?php 
                echo $_smarty_tpl->tpl_vars['og']->value['url'];
                ?>
" /><?php 
            }
            ?>

            <?php 
            if (isset($_smarty_tpl->tpl_vars['og']->value['image'])) {
                ?>
<meta property="og:image" content="<?php 
                echo $_smarty_tpl->tpl_vars['og']->value['image'];
                ?>
" /><?php 
            }
            ?>
             
            <?php 
            if (isset($_smarty_tpl->tpl_vars['og']->value['desc'])) {
                ?>
<meta property="og:description" content="<?php 
                echo $_smarty_tpl->tpl_vars['og']->value['desc'];
                ?>
" /><?php 
            }
            ?>

            <meta property="og:site_name" content="<?php 
            echo $_smarty_tpl->tpl_vars['site_title']->value;
            ?>
" />

            <!-- Schema.org markup for Google+ -->
            <meta itemprop="name" content="<?php 
            echo $_smarty_tpl->tpl_vars['og']->value['title'];
            ?>
">
            <?php 
            if (isset($_smarty_tpl->tpl_vars['og']->value['desc'])) {
                ?>
<meta itemprop="description" content="<?php 
                echo $_smarty_tpl->tpl_vars['og']->value['desc'];
                ?>
"><?php 
            }
            ?>

            <?php 
            if (isset($_smarty_tpl->tpl_vars['og']->value['image'])) {
                ?>
<meta itemprop="image" content="<?php 
                echo $_smarty_tpl->tpl_vars['og']->value['image'];
                ?>
"><?php 
            }
            ?>
        <?php 
        }
        ?>

        <?php 
        if (isset($_smarty_tpl->tpl_vars['article_published']->value)) {
            ?>
<meta property="article:published_time" content="<?php 
            echo $_smarty_tpl->tpl_vars['article_published']->value;
            ?>
" /><?php 
        }
        ?>

        <?php 
        if (isset($_smarty_tpl->tpl_vars['article_modified']->value)) {
            ?>
<meta property="article:modified_time" content="<?php 
            echo $_smarty_tpl->tpl_vars['article_modified']->value;
            ?>
" /><?php 
        }
        ?>

        <!-- SEO stuff ends -->


        <?php 
        echo $_smarty_tpl->tpl_vars['page']->value['head']['css'];
        ?>
        
        <?php 
        echo $_smarty_tpl->tpl_vars['page']->value['head']['js'];
        ?>


        <style type="text/css">

            .navbar {

                border-radius: 0;

            }


            .nav .open > a, .nav .open > a:hover, .nav .open > a:focus {

                background: white;
            }

            .navbar-clean .container-fluid {

                padding-left: 20px;
                padding-right: 30px;
            }


            .codo_forum_title:hover {
                -webkit-transition: all 0.5s ease;
                -moz-transition: all 0.5s ease;
                -o-transition: all 0.5s ease;
                transition: all 0.5s ease;
            }

            .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {

                color: white;
                background: #3794db;
            }

            .container{
               // margin-top: 60px;
            }

            .CODOFORUM{

                position:relative !important;
                top:0;

            }

            .mm-page {

                height: 100%;
            }
        </style>

    </head>

    <body>

        <?php 
        echo smarty_modifier_load_block("block_body_start");
        ?>




        <div class="CODOFORUM">


            <nav id="mmenu" style="display: none">
                <ul>



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

                        <li style="text-align:center">
                            <a href="<?php 
            echo $_smarty_tpl->tpl_vars['profile_url']->value;
            ?>
"><img  src="<?php 
            echo $_smarty_tpl->tpl_vars['I']->value->avatar;
            ?>
" style="width: 50px;border-radius: 30px;border: 3px solid"/></a>
                            <span style="padding: 10px 0px;font-weight:bold"><?php 
            echo $_smarty_tpl->tpl_vars['I']->value->name;
            ?>
</span>
                        </li>
                        <li title="<?php 
            echo _t('Notifications');
            ?>
" class="codo_inline_notifications_show_all">

                            <a class="glyphicon glyphicon-bell">
                                <span><?php 
            echo _t('Notifications');
            ?>
</span>
                                <?php 
            if ($_smarty_tpl->tpl_vars['unread_notifications']->value) {
                ?>
                                    <span class="codo_inline_notifications_unread_no codo_inline_notifications_unread_no_mobile"><?php 
                echo $_smarty_tpl->tpl_vars['unread_notifications']->value;
                ?>
</span>
                                <?php 
            }
            ?>

                            </a>

                        </li>

                        <?php 
            if ($_smarty_tpl->tpl_vars['canCreateTopicInAtleastOneCategory']->value) {
                ?>
                            <li class="" onclick="codo_create_topic()">


                                <a class="glyphicon glyphicon-pencil" >  <span><?php 
                echo _t('New topic');
                ?>
</span></a>

                            </li>
                        <?php 
            }
            ?>

                        <li class="">

                            <span  class="glyphicon glyphicon-user" > <?php 
            echo _t('Profile');
            ?>
</span>
                            <ul>


                                <li><a class="glyphicon glyphicon-user" href="<?php 
            echo $_smarty_tpl->tpl_vars['profile_url']->value;
            ?>
">  <span><?php 
            echo _t("View Profile");
            ?>
</span></a></li>
                                <li><a class="glyphicon glyphicon-pencil" href="<?php 
            echo $_smarty_tpl->tpl_vars['profile_url']->value;
            ?>
/<?php 
            echo $_smarty_tpl->tpl_vars['I']->value->id;
            ?>
/edit">  <span><?php 
            echo _t("Edit");
            ?>
</span></a></li>
                                <li><a class="glyphicon glyphicon-log-out" href="<?php 
            echo $_smarty_tpl->tpl_vars['logout_url']->value;
            ?>
">  <span><?php 
            echo _t("Logout");
            ?>
</span></a></li>

                            </ul>
                        </li>

                        

                    <?php 
        } else {
            ?>

                        <li class="active"><a href="<?php 
            echo $_smarty_tpl->tpl_vars['register_url']->value;
            ?>
"><?php 
            echo _t("Register");
            ?>
</a></li>
                        <li><a id="codo_login_link" href="<?php 
            echo $_smarty_tpl->tpl_vars['login_url']->value;
            ?>
"><?php 
            echo _t("Login");
            ?>
</a></li>
                        <?php 
        }
        ?>

                    <?php 
        echo smarty_modifier_load_block("block_main_menu");
        ?>



                </ul>
            </nav>
            <nav id="nav" class="navbar navbar-clean navbar-fixed-top" role="navigation">
                <div class="container-fluid">
                    <!-- Brand and toggle get grouped for better mobile display -->
                    <div class="navbar-header">

                        <button type="button" class="navbar-toggle pull-left"  onclick='$("#mmenu").trigger("open.mm");' >
                            <span class="sr-only"><?php 
        echo _t("Toggle navigation");
        ?>
</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>

                        


                        <img src="<?php 
        echo @constant('DURI');
        ?>
assets/img/general/brand.png" alt="codoforum logo" class="navbar-header-img">
                        <a href="<?php 
        echo @constant('RURI');
        echo $_smarty_tpl->tpl_vars['site_url']->value;
        ?>
" class="navbar-brand codo_forum_title" ><?php 
        echo $_smarty_tpl->tpl_vars['site_title']->value;
        ?>
</a>

                        

                    </div>


                    <!-- Collect the nav links, forms, and other content for toggling -->
                    <div class="collapse navbar-collapse" id="codo_navbar_content">




                        <ul class="nav navbar-nav navbar-right">


                            <?php 
        echo smarty_modifier_load_block("block_main_menu");
        ?>


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

                                <?php 
            if ($_smarty_tpl->tpl_vars['canCreateTopicInAtleastOneCategory']->value) {
                ?>
                                    <li class="codo_topics_new_topic hidden-xs codo_tooltip" data-placement="bottom" data-toggle="tooltip" title="<?php 
                echo _t('Add new Topic');
                ?>
">
                                        <a class="codo_nav_icon" href="#" onclick="codo_create_topic()">
                                            <i class="icon-new-topic"></i>
                                        </a>
                                    </li>
                                <?php 
            }
            ?>

                                <li class="dropdown hidden-xs codo_tooltip" data-toggle="tooltip" data-placement="bottom" title="<?php 
            echo _t('Notifications');
            ?>
">
                                    <a data-toggle="dropdown" class="codo_nav_icon codo_inline_notifications" id="codo_inline_notifications">
                                        <i class="icon-bell"></i>
                                        <?php 
            if ($_smarty_tpl->tpl_vars['unread_notifications']->value) {
                ?>
                                            <span class="codo_inline_notifications_unread_no"><?php 
                echo $_smarty_tpl->tpl_vars['unread_notifications']->value;
                ?>
</span>
                                        <?php 
            }
            ?>
                                    </a>
                                    <ul class="dropdown-menu codo_inline_notifications_list" id="codo_inline_notifications_list" role="menu" aria-labelledby="dLabel">

                                        <div class="codo_inline_notification_header">
                                            <div class="codo_load_more_bar_black_gif" ></div>
                                            <div class="codo_inline_notification_header_content" id="codo_inline_notification_header_content">

                                                <span><?php 
            echo _t("Notifications");
            ?>
</span>
                                                <div>
                                                    
                                                    <span id="codo_inline_notifications_preferences" class="glyphicon glyphicon-tasks"  data-toggle="tooltip" data-placement="bottom" title="<?php 
            echo _t('preferences');
            ?>
"></span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="codo_inline_notification_body" id="codo_inline_notification_body">

                                            
                                        </div>
                                        <div class="codo_inline_notification_footer codo_inline_notifications_show_all">
                                            <span><?php 
            echo _t("show all");
            ?>
</span><i class="glyphicon glyphicon-time"></i>
                                        </div>
                                    </ul>
                                </li>

                                <li class="codo_xs_li visible-xs-block">
                                    <a href="<?php 
            echo $_smarty_tpl->tpl_vars['profile_url']->value;
            ?>
/<?php 
            echo $_smarty_tpl->tpl_vars['I']->value->id;
            ?>
/edit#notifications">
                                        <i class="icon-bell"></i>
                                        <span class="visible-xs-inline"> <?php 
            echo _t("Notifications");
            ?>
</span>
                                    </a>
                                </li>

                                <?php 
            if ($_smarty_tpl->tpl_vars['can_moderate_posts']->value) {
                ?>
                                    <li class="" role="presentation">
                                        <a class="codo_nav_icon codo_tooltip" data-toggle="tooltip" data-placement="bottom" title="<?php 
                echo _t('Moderation');
                ?>
" 
                                           href="<?php 
                echo @constant('RURI');
                ?>
moderation"><i class="icon-spam"></i></a>
                                    </li>
                                <?php 
            }
            ?>

                                <li class="codo_menu_user dropdown">

                                    <a class="codo_menu_user_img" data-toggle="dropdown"><img  src="<?php 
            echo $_smarty_tpl->tpl_vars['I']->value->avatar;
            ?>
" />
                                        <span class="visible-xs-inline"><?php 
            echo $_smarty_tpl->tpl_vars['I']->value->name;
            ?>
</span>
                                    </a>
                                    <ul class="dropdown-menu codo_menu_user_container" role="menu" aria-labelledby="dLabel">


                                        <li><a class="glyphicon glyphicon-user" href="<?php 
            echo $_smarty_tpl->tpl_vars['profile_url']->value;
            ?>
">  <span><?php 
            echo _t("Profile");
            ?>
</span></a></li>
                                        <li><a class="glyphicon glyphicon-pencil" href="<?php 
            echo $_smarty_tpl->tpl_vars['profile_url']->value;
            ?>
/<?php 
            echo $_smarty_tpl->tpl_vars['I']->value->id;
            ?>
/edit">  <span><?php 
            echo _t("Edit");
            ?>
</span></a></li>
                                        <li><a class="glyphicon glyphicon-log-out" href="<?php 
            echo $_smarty_tpl->tpl_vars['logout_url']->value;
            ?>
">  <span><?php 
            echo _t("Logout");
            ?>
</span></a></li>

                                    </ul>
                                </li>

                                

                            <?php 
        } else {
            ?>

                                <li class="active"><a href="<?php 
            echo $_smarty_tpl->tpl_vars['register_url']->value;
            ?>
"><?php 
            echo _t("Register");
            ?>
</a></li>
                                <li><a id="codo_login_link" href="<?php 
            echo $_smarty_tpl->tpl_vars['login_url']->value;
            ?>
"><?php 
            echo _t("Login");
            ?>
</a></li>
                                <?php 
        }
        ?>

                            <li class="codo_back_to_top"><a class="codo_back_to_top_arrow"><i class="icon-arrow-top"></i></a></li>
                        </ul>
                    </div><!-- /.navbar-collapse -->
                </div><!-- /.container-fluid -->
            </nav>




            <div class='codo_modal_bg'></div>

        

    <?php 
        $_smarty_tpl->tpl_vars["safe_title"] = new Smarty_variable(smarty_modifier_URL_safe($_smarty_tpl->tpl_vars['title']->value), null, 0);
        ?>
    <?php 
        $_smarty_tpl->tpl_vars["tid"] = new Smarty_variable($_smarty_tpl->tpl_vars['topic_info']->value['topic_id'], null, 0);
        ?>
    <?php 
        $_smarty_tpl->tpl_vars["cid"] = new Smarty_variable($_smarty_tpl->tpl_vars['topic_info']->value['cat_id'], null, 0);
        ?>

    <div id="breadcrumb" class="col-md-12">


        <?php 
        echo smarty_modifier_load_block("block_breadcrumbs_before");
        ?>


        <div class="codo_breadcrumb_list btn-breadcrumb hidden-xs">
            <a href="<?php 
        echo @constant('RURI');
        echo $_smarty_tpl->tpl_vars['site_url']->value;
        ?>
"><div><i class="glyphicon glyphicon-home"></i></div></a>

            <?php 
        $_smarty_tpl->tpl_vars['crumb'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['crumb']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['parents']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['crumb']->key => $_smarty_tpl->tpl_vars['crumb']->value) {
            $_smarty_tpl->tpl_vars['crumb']->_loop = true;
            ?>
                <a title="<?php 
            echo $_smarty_tpl->tpl_vars['crumb']->value['name'];
            ?>
" data-placement="bottom" data-toggle="tooltip" href="<?php 
            echo @constant('RURI');
            ?>
category/<?php 
            echo $_smarty_tpl->tpl_vars['crumb']->value['alias'];
            ?>
"><div><?php 
            echo $_smarty_tpl->tpl_vars['crumb']->value['name'];
            ?>
</div></a>                    
                    <?php 
        }
        ?>
            &nbsp;
        </div>


        <select id="codo_breadcrumb_select" class="form-control hidden-sm hidden-md hidden-lg">
            <option selected="selected" value=""><?php 
        echo _t("Where am I ?");
        ?>
</option>
            <?php 
        $_smarty_tpl->tpl_vars['space'] = new Smarty_variable("&nbsp;&nbsp;&nbsp;", null, 0);
        ?>
            <?php 
        $_smarty_tpl->tpl_vars['indent'] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['space']->value, null, 0);
        ?>

            <option value="<?php 
        echo @constant('RURI');
        echo $_smarty_tpl->tpl_vars['site_url']->value;
        ?>
"><?php 
        echo $_smarty_tpl->tpl_vars['indent']->value;
        echo $_smarty_tpl->tpl_vars['home_title']->value;
        ?>
</option>

            <?php 
        $_smarty_tpl->tpl_vars['crumb'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['crumb']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['parents']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['crumb']->key => $_smarty_tpl->tpl_vars['crumb']->value) {
            $_smarty_tpl->tpl_vars['crumb']->_loop = true;
            ?>
                <?php 
            $_smarty_tpl->tpl_vars['indent'] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['indent']->value . (string) $_smarty_tpl->tpl_vars['space']->value, null, 0);
            ?>
                <option value="<?php 
            echo @constant('RURI');
            ?>
category/<?php 
            echo $_smarty_tpl->tpl_vars['crumb']->value['alias'];
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['indent']->value;
            echo $_smarty_tpl->tpl_vars['crumb']->value['name'];
            ?>
</option>                   
            <?php 
        }
        ?>

        </select>    
        <?php 
        echo smarty_modifier_load_block("block_breadcrumbs_after");
        ?>
                
    </div>

    <?php 
        if ($_smarty_tpl->tpl_vars['topic_is_spam']->value) {
            ?>
        <div class="codo_spam_alert alert alert-warning"><b><?php 
            echo _t('NOTE: ');
            ?>
</b><?php 
            echo _t('This topic is marked as spam and is hidden from public view.');
            ?>
</div>
            <?php 
        }
        ?>
    <div class="container">

        <div class="row">




            <div class="codo_posts col-md-9">

                <?php 
        echo smarty_modifier_load_block("block_posts_before");
        ?>

                <div class="codo_widget">
                    <div class="codo_widget-header" id="codo_head_title">
                        <div class="row">
                            <div class="codo_topic_title">
                                <a href="<?php 
        echo @constant('RURI');
        ?>
topic/<?php 
        echo $_smarty_tpl->tpl_vars['tid']->value;
        ?>
/<?php 
        echo $_smarty_tpl->tpl_vars['safe_title']->value;
        ?>
">
                                    <h1><div class="codo_widget_header_title"><?php 
        echo htmlspecialchars_decode($_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES);
        ?>
</div></h1>
                                </a>
                            </div>
                            <div id="codo_topic_title_pagination" class="codo_head_navigation">
                                <?php 
        echo $_smarty_tpl->tpl_vars['pagination']->value;
        ?>

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


                    <div style="display: none" id="codo_no_topics_display" class="codo_no_topics"><?php 
        echo _t("No posts to display");
        ?>
</div>

                    <div id="codo_posts_container" class="codo_widget-content">

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

                        <?php 
        if ($_smarty_tpl->tpl_vars['num_pages']->value > 1) {
            ?>
                            <div class="codo_topics_pagination">

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

                            </div>
                        <?php 
        }
        ?>

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

            <div class="codo_topic col-md-3" id="codo_topic_sidebar">
                <?php 
        echo smarty_modifier_load_block("block_topic_info_before");
        ?>


                <div class="codo_topic_statistics codo_sidebar_fixed_els row">

                    <div class="codo_cat_num col-xs-4">
                        <div class="codo_topic_views" data-number="<?php 
        echo $_smarty_tpl->tpl_vars['topic_info']->value['no_views'];
        ?>
">
                            <?php 
        echo smarty_modifier_abbrev_no($_smarty_tpl->tpl_vars['topic_info']->value['no_views']);
        ?>

                        </div>
                        <?php 
        echo _t('views');
        ?>

                    </div>
                    <div class="codo_cat_num col-xs-4">
                        <div>
                            <?php 
        echo smarty_modifier_abbrev_no($_smarty_tpl->tpl_vars['topic_info']->value['no_replies']);
        ?>

                        </div>
                        <?php 
        echo _t('replies');
        ?>

                    </div>
                    <div class="codo_cat_num col-xs-4">
                        <div>
                            <?php 
        echo smarty_modifier_abbrev_no($_smarty_tpl->tpl_vars['no_followers']->value);
        ?>

                        </div>
                        <?php 
        echo _t('followers');
        ?>

                    </div>

                </div>

                <?php 
        if ($_smarty_tpl->tpl_vars['can_search']->value) {
            ?>
    
                    <div class="codo_sidebar_search">
                        <input type="text" placeholder="<?php 
            echo _t('Search');
            ?>
" class="form-control codo_topics_search_input" />
                        <i class="glyphicon glyphicon-search codo_topics_search_icon" title="Advanced search" ></i>
                    </div>
                <?php 
        }
        ?>


                <?php 
        if ($_smarty_tpl->tpl_vars['tags']->value) {
            ?>
                    <div class="codo_statistic_block">
                        <ul class="codo_tags">

                            <?php 
            $_smarty_tpl->tpl_vars['tag'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['tag']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['tags']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['tag']->key => $_smarty_tpl->tpl_vars['tag']->value) {
                $_smarty_tpl->tpl_vars['tag']->_loop = true;
                ?>
                                <li ><a href="<?php 
                echo @constant('RURI');
                ?>
tags/<?php 
                echo $_smarty_tpl->tpl_vars['tag']->value;
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['tag']->value;
                ?>
</a></li>
                                <?php 
            }
            ?>
                        </ul>
                    </div>
                <?php 
        }
        ?>
                <?php 
        if ($_smarty_tpl->tpl_vars['logged_in']->value) {
            ?>
                    <?php 
            /*  Call merged included template "forum/notification_level.tpl" */
            $_tpl_stack[] = $_smarty_tpl;
            $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('forum/notification_level.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0, '1092252080569675988c4f01-64712762');
            content_56967598dbabe0_79720004($_smarty_tpl);
            $_smarty_tpl = array_pop($_tpl_stack);
            /*  End of included template "forum/notification_level.tpl" */
            ?>
                <?php 
        }
        ?>

                <div class="codo_sidebar_fixed">

                    <?php 
        if ($_smarty_tpl->tpl_vars['can_search']->value) {
            ?>
                        <div id="codo_sidebar_fixed_search" class="codo_sidebar_search codo_sidebar_fixed_els">
                            <input type="text" placeholder="<?php 
            echo _t('Search');
            ?>
" class="form-control codo_topics_search_input" />
                            <i class="glyphicon glyphicon-search codo_topics_search_icon" title="Advanced search" ></i>
                        </div>
                    <?php 
        }
        ?>

                </div>

                <?php 
        echo smarty_modifier_load_block("block_topic_info_after");
        ?>


            </div>

        </div>
        <div id="codo_new_reply" class="codo_new_reply">

            <div class="codo_reply_resize_handle"></div>
            <form id="codo_new_reply_post" action="/" method="POST">

                <div class="codo_reply_box" id="codo_reply_box">
                    <textarea placeholder="<?php 
        echo _t('Start typing here . You can use BBcode or Markdown');
        ?>
" id="codo_new_reply_textarea" name="input_text"></textarea>
                    <div class="codo_new_reply_preview" id="codo_new_reply_preview_container">
                        <div class="codo_editor_preview_placeholder"><?php 
        echo _t("live preview");
        ?>
</div>
                        <div id="codo_new_reply_preview"></div>
                    </div>
                    <div class="codo_reply_min_chars"><?php 
        echo _t("enter atleast ");
        ?>
<span id="codo_reply_min_chars_left"><?php 
        echo $_smarty_tpl->tpl_vars['reply_min_chars']->value;
        ?>
</span><?php 
        echo _t(" characters");
        ?>
</div>

                </div>
                <div id="codo_non_mentionable" class="codo_non_mentionable"><b><?php 
        echo _t("WARNING:");
        ?>
 </b><?php 
        echo _t("You mentioned %MENTIONS%, but they cannot see this message and will not be notified");
        ?>
 
                </div>

                <div class="codo_new_reply_action">
                    <button class="codo_btn" id="codo_post_new_reply"><i class="icon-check"></i><span class="codo_action_button_txt"><?php 
        echo _t("Post");
        ?>
</span></button>
                    <button class="codo_btn codo_btn_def" id="codo_post_cancel"><i class="icon-times"></i><span class="codo_action_button_txt"><?php 
        echo _t("Cancel");
        ?>
</span></button>

                    <img id="codo_new_reply_loading" src="<?php 
        echo @constant('DEF_THEME_PATH');
        ?>
img/ajax-loader.gif" />
                    <button class="codo_btn codo_btn_def codo_post_preview_bg" id="codo_post_preview_btn">&nbsp;</button>
                    <button class="codo_btn codo_btn_def codo_post_preview_bg" id="codo_post_preview_btn_resp">&nbsp;</button>
                    <div class="codo_draft_status_saving"><?php 
        echo _t("Saving...");
        ?>
</div>
                    <div class="codo_draft_status_saved"><?php 
        echo _t("Saved");
        ?>
</div>

                </div>
                <input type="text" class="end-of-line" name="end_of_line" id="end_of_line" />
            </form>

        </div>

        <?php 
        /*  Call merged included template "forum/editor.tpl" */
        $_tpl_stack[] = $_smarty_tpl;
        $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('forum/editor.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0, '1092252080569675988c4f01-64712762');
        content_56967598eab516_15454800($_smarty_tpl);
        $_smarty_tpl = array_pop($_tpl_stack);
        /*  End of included template "forum/editor.tpl" */
        ?>
    </div>

    
    <div class="modal fade" id='codo_history_modal'>
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title"><?php 
        echo _t("Edit history");
        ?>
</h4>
                </div>
                <div class="modal-body">
                    
                    <div id="codo_history_table"></div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal"><?php 
        echo _t("Close");
        ?>
</button>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal-dialog -->
    </div><!-- /.modal -->

    <div id='codo_delete_topic_confirm_html'>
        <div class='codo_posts_topic_delete'>
            <div class='codo_content'>
                <?php 
        echo _t("All posts under this topic will be ");
        ?>
<b><?php 
        echo _t("deleted");
        ?>
</b> ?
                <br/>

                <div class="codo_consider_as_spam codo_spam_checkbox">
                    <input id="codo_spam_checkbox" name="spam" type="checkbox" checked="">
                    <label class="codo_spam_checkbox" for="spam"><?php 
        echo _t('Mark as spam');
        ?>
</label>
                </div>
            </div>
            <div class="codo_modal_footer">
                <div class="codo_btn codo_btn_def codo_modal_delete_topic_cancel"><?php 
        echo _t("Cancel");
        ?>
</div>
                <div class="codo_btn codo_btn_primary codo_modal_delete_topic_submit"><?php 
        echo _t("Delete");
        ?>
</div>
            </div>
            <div class="codo_spinner"></div>
        </div>
    </div>

    <script>

        CODOFVAR = {
            tid: <?php 
        echo $_smarty_tpl->tpl_vars['tid']->value;
        ?>
,
            cid: <?php 
        echo $_smarty_tpl->tpl_vars['cid']->value;
        ?>
,
            post_id: <?php 
        echo $_smarty_tpl->tpl_vars['topic_info']->value['post_id'];
        ?>
,
            cat_alias: '<?php 
        echo $_smarty_tpl->tpl_vars['topic_info']->value['cat_alias'];
        ?>
',
            title: '<?php 
        echo $_smarty_tpl->tpl_vars['safe_title']->value;
        ?>
',
            full_title: '<?php 
        echo $_smarty_tpl->tpl_vars['title']->value;
        ?>
',
            curr_page: <?php 
        echo $_smarty_tpl->tpl_vars['curr_page']->value;
        ?>
,
            num_pages: <?php 
        echo $_smarty_tpl->tpl_vars['num_pages']->value;
        ?>
,
            url: '<?php 
        echo $_smarty_tpl->tpl_vars['url']->value;
        ?>
',
            new_page: '<?php 
        echo $_smarty_tpl->tpl_vars['new_page']->value;
        ?>
',
            smileys: JSON.parse('<?php 
        echo $_smarty_tpl->tpl_vars['forum_smileys']->value;
        ?>
'),
            reply_min_chars: parseInt(<?php 
        echo $_smarty_tpl->tpl_vars['reply_min_chars']->value;
        ?>
),
            dropzone: {
                dictDefaultMessage: '<?php 
        echo _t("Drop files to upload &nbsp;&nbsp;(or click)");
        ?>
',
                max_file_size: parseInt('<?php 
        echo $_smarty_tpl->tpl_vars['max_file_size']->value;
        ?>
'),
                allowed_file_mimetypes: '<?php 
        echo $_smarty_tpl->tpl_vars['allowed_file_mimetypes']->value;
        ?>
',
                forum_attachments_multiple: <?php 
        echo $_smarty_tpl->tpl_vars['forum_attachments_multiple']->value;
        ?>
,
                forum_attachments_parallel: parseInt('<?php 
        echo $_smarty_tpl->tpl_vars['forum_attachments_parallel']->value;
        ?>
'),
                forum_attachments_max: parseInt('<?php 
        echo $_smarty_tpl->tpl_vars['forum_attachments_max']->value;
        ?>
')

            },
            trans: {
                continue_mesg: '<?php 
        echo _t("Continue");
        ?>
'
            },
            deleted_msg: '<?php 
        echo _t("The post has been ");
        ?>
',
            deleted: '<?php 
        echo _t("deleted");
        ?>
',
            undo_msg: '<?php 
        echo _t("undo");
        ?>
',
            search_data: '<?php 
        echo $_smarty_tpl->tpl_vars['search_data']->value;
        ?>
'
        }

    </script>

    <link rel="stylesheet" type="text/css" href="<?php 
        echo @constant('DURI');
        ?>
assets/markitup/highlight/styles/github.css" />
    <link rel="stylesheet" type="text/css" href="<?php 
        echo @constant('DURI');
        ?>
assets/dropzone/css/basic.css" />
    <link rel="stylesheet" type="text/css" href="<?php 
        echo @constant('DURI');
        ?>
assets/oembedget/oembed-get.css" />



        <div class="codo_footer">

            <?php 
        echo $_smarty_tpl->tpl_vars['page']->value['body']['js'];
        ?>

            <?php 
        echo smarty_modifier_load_block("block_footer");
        ?>



            <footer class="footer">
                <div class="container" style="padding:0px;">
                    <div class="row" style="padding: 5px !important">
                        <div class="col-sm-4">&copy; 2015 <?php 
        echo $_smarty_tpl->tpl_vars['site_title']->value;
        ?>
<br>


                            <small><?php 
        echo _t("Powered by");
        ?>
 <a href="http://codoforum.com" target="_blank">Codoforum</a></small>
                        </div>

                        <div class="col-sm-4 pull-right" style="text-align: center">


                            <?php 
        echo smarty_modifier_load_block("block_footer_right");
        ?>




                            <span class=''></span>

                        </div>

                    </div>
                </div>
            </footer>        


            <div style="display: none" id="codo_js_php_defs"></div>
        </div>
        <div class='notifications bottom-right'></div>


    </div>


    <?php 
        echo smarty_modifier_load_block("block_body_end");
        ?>


    
    
        <script style="display: none" id="codo_inline_notifications_template" type="text/html">

            {{#each objects}}
            <a target="_blank" href="{{../url}}topic/{{tid}}/post-{{pid}}/#post-{{pid}}" class="codo_inline_notification_el">

                <div class="codo_inline_notification_el_img">

                    {{#isRemote actor.avatar}}
                    <img src="{{../actor.avatar}}" />                    
                    {{else}}
                    <img src="{{../../duri}}assets/img/profiles/icons/{{../actor.avatar}}" />                    
                    {{/isRemote}}
                </div>
                <div class="codo_inline_notification_el_body">
                    <div class="codo_inline_notification_el_head">
                        <span class="codo_inline_notification_el_title">{{title}}</span>
                        {{#if rolledX}}
                        <span data-toggle="tooltip" data-placement="bottom" title="{{../rolledX}}{{../../rolled_up_trans}}" class="codo_inline_notification_el_rolled">{{rolledX}}</span>
                        {{/if}}
                        <div class="codo_inline_notification_el_created">{{created}}</div>
                    </div>
                    <div class="codo_inline_notification_el_text">
                        <span>{{{body}}}</b></span>
                    </div>
                </div>
            </a>
            {{else}}
            <div class="codo_inline_notification_caught_up">{{../caught_up}}</div>
            {{/each}}
        </script>
    

    <div class="codo_editor_draft">
        <div>
            <div id="codo_pending_text" class="codo_pending_text"><?php 
        echo _t("Pending draft ...");
        ?>
 <?php 
        echo _t("Click to resume editing");
        ?>
</div>
            <div class="codo_delete_draft"><i class="icon-trash"></i> <?php 
        echo _t(" Discard draft");
        ?>
 </div>
        </div>
    </div>

    <div id="codo_is_xs" class="hidden-xs"></div>    
    <div id="codo_is_sm" class="hidden-sm"></div>

    <script type="text/javascript">
                                        /** Lets optimize to the MAX **/
                                        function downloadJSAtOnload() {

                                        var files = JSON.parse('<?php 
        echo $_smarty_tpl->tpl_vars['page']->value['defer'];
        ?>
');
                                                var len = files.length;
                                                var i = 0;
                                                var element = document.createElement("script");
                                                element.src = files[i];
                                                element.async = false;
                                                document.body.appendChild(element);
                                                if (element.readyState) {  //IE
                                        element.onreadystatechange = function() {
                                        if (element.readyState === "loaded" || element.readyState === "complete") {
                                        element.onreadystatechange = null;
                                                on_codo_loaded();
                                                codo_load_js();
                                        }
                                        };
                                        } else {  //Others
                                        element.onload = function() {
                                        on_codo_loaded();
                                                CODOF.hook.call('on_cf_loaded');
                                                codo_load_js();
                                        };
                                        }

                                        function codo_load_js() {
                                        var element;
                                                for (var i = 1; i < len; i++) {
                                        element = document.createElement("script");
                                                element.src = files[i];
                                                element.async = false;
                                                document.body.appendChild(element);
                                                if (i === len - 1) {
                                        element.onload = function() {
                                        CODOF.hook.call('on_scripts_loaded');
                                        }
                                        }
                                        }
                                        }
                                        }
                                        if (window.addEventListener)
                                                window.addEventListener("load", downloadJSAtOnload, false);
                                                else if (window.attachEvent)
                                                window.attachEvent("onload", downloadJSAtOnload);
                                                else window.onload = downloadJSAtOnload;
    </script>    
</body>

</html>
<?php 
    }
    function content_569674de1cdad9_32940273($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_get_opt')) {
            include '/home/janilv/public_html/php-ruhmatoo-projekt/forum/sys/CODOF/Smarty/plugins/modifier.get_opt.php';
        }
        if (!is_callable('smarty_modifier_load_block')) {
            include '/home/janilv/public_html/php-ruhmatoo-projekt/forum/sys/CODOF/Smarty/plugins/modifier.load_block.php';
        }
        if (!is_callable('smarty_modifier_get_preference')) {
            include '/home/janilv/public_html/php-ruhmatoo-projekt/forum/sys/CODOF/Smarty/plugins/modifier.get_preference.php';
        }
        if (!is_callable('smarty_modifier_abbrev_no')) {
            include '/home/janilv/public_html/php-ruhmatoo-projekt/forum/sys/CODOF/Smarty/plugins/modifier.abbrev_no.php';
        }
        if (!is_callable('smarty_function_get_children')) {
            include '/home/janilv/public_html/php-ruhmatoo-projekt/forum/sys/CODOF/Smarty/plugins/function.get_children.php';
        }
        if (!is_callable('smarty_function_print_children')) {
            include '/home/janilv/public_html/php-ruhmatoo-projekt/forum/sys/CODOF/Smarty/plugins/function.print_children.php';
        }
        ?>

<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="generator" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="description" content="<?php 
        echo smarty_modifier_get_opt("site_description");
        ?>
">

        <meta name="author" content="BABA">
        <title><?php 
        echo $_smarty_tpl->tpl_vars['sub_title']->value;
        ?>
 | <?php 
        echo $_smarty_tpl->tpl_vars['site_title']->value;
        ?>
</title>
        <!--[if lte IE 8]>
         <script src="//cdnjs.cloudflare.com/ajax/libs/json2/20121008/json2.min.js"></script>
        <![endif]-->

        <?php 
        echo smarty_modifier_load_block("block_head");
        ?>



        <script type="text/javascript">

            var on_codo_loaded = function () {
            };
            var codo_defs = {
                url: "<?php 
        echo @constant('RURI');
        ?>
",
                duri: "<?php 
        echo @constant('DURI');
        ?>
",
                def_theme: "<?php 
        echo @constant('DEF_THEME_PATH');
        ?>
",
                reluri: "<?php 
        echo @constant('DATA_REL_PATH');
        ?>
",
                token: "<?php 
        echo $_smarty_tpl->tpl_vars['CSRF_token']->value;
        ?>
",
                smiley_path: "<?php 
        echo @constant('SMILEY_PATH');
        ?>
",
                logged_in: "<?php 
        echo $_smarty_tpl->tpl_vars['I']->value->loggedIn() ? 'yes' : 'no';
        ?>
",
                uid: "<?php 
        echo $_smarty_tpl->tpl_vars['I']->value->id;
        ?>
",
                time: "<?php 
        echo $_smarty_tpl->tpl_vars['php_time_now']->value;
        ?>
",
                trans: {
                    embed_no_preview: "<?php 
        echo _t('preview not available inside editor');
        ?>
",
                    notify: {
                        mention: "<?php 
        echo _t("New mention");
        ?>
",
                        mention_action: "<?php 
        echo _t("mentioned you in");
        ?>
",
                        rolled_up_trans: "<?php 
        echo _t(" for same topic");
        ?>
",
                        caught_up: "<?php 
        echo _t("No new notifications");
        ?>
"
                    }
                },
                preferences: {
                    drafts: {
                        autosave: 'yes'
                    },
                    notify: {
                        real_time: "<?php 
        echo smarty_modifier_get_preference("real_time_notifications");
        ?>
",
                        desktop: "<?php 
        echo smarty_modifier_get_preference("desktop_notifications");
        ?>
"
                    }
                }

            };

            var CODOF = {
                hook: {
                    hooks: [],
                    add: function (myhook, func, weight, args) {

                        var i = 0;
                        if (typeof weight === "undefined") {

                            weight = 0;
                        }
                        if (typeof args === "undefined") {

                            args = {
                            };
                        }

                        if (typeof CODOF.hook.hooks[myhook] !== "undefined") {

                            i = CODOF.hook.hooks[myhook].length;
                        } else {

                            CODOF.hook.hooks[myhook] = [];
                        }

                        CODOF.hook.hooks[myhook][i] = {
                            func: func,
                            args: args,
                            weight: weight
                        };
                    }
                }
            }


        </script>


        <link rel="shortcut icon" type="image/x-icon" href="<?php 
        echo @constant('DURI');
        ?>
assets/img/general/img/favicon.ico?v=1">
        <link rel="apple-touch-icon" sizes="57x57" href="http://codoforum.com/img/apple-touch-icon-57x57.png">
        <link rel="apple-touch-icon" sizes="114x114" href="http://codoforum.com/img/apple-touch-icon-114x114.png">
        <link rel="apple-touch-icon" sizes="72x72" href="http://codoforum.com/img/apple-touch-icon-72x72.png">
        <link rel="apple-touch-icon" sizes="144x144" href="http://codoforum.com/img/apple-touch-icon-144x144.png">
        <link rel="apple-touch-icon" sizes="60x60" href="http://codoforum.com/img/apple-touch-icon-60x60.png">
        <link rel="apple-touch-icon" sizes="120x120" href="http://codoforum.com/img/apple-touch-icon-120x120.png">
        <link rel="apple-touch-icon" sizes="76x76" href="http://codoforum.com/img/apple-touch-icon-76x76.png">
        <link rel="apple-touch-icon" sizes="152x152" href="http://codoforum.com/img/apple-touch-icon-152x152.png">
        <link rel="icon" type="image/png" href="http://codoforum.com/img/favicon-196x196.png" sizes="196x196">
        <link rel="icon" type="image/png" href="http://codoforum.com/img/favicon-160x160.png" sizes="160x160">
        <link rel="icon" type="image/png" href="http://codoforum.com/img/favicon-96x96.png" sizes="96x96">
        <link rel="icon" type="image/png" href="http://codoforum.com/img/favicon-16x16.png" sizes="16x16">
        <link rel="icon" type="image/png" href="http://codoforum.com/img/favicon-32x32.png" sizes="32x32">


        <!-- Some SEO stuff -->

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

            <meta name="robots" content="<?php 
            echo $_smarty_tpl->tpl_vars['meta_robots']->value;
            ?>
">
        <?php 
        }
        ?>

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

            <link rel="canonical" href="<?php 
            echo $_smarty_tpl->tpl_vars['canonical']->value;
            ?>
" />
        <?php 
        }
        ?>
        <?php 
        if (isset($_smarty_tpl->tpl_vars['rel_prev']->value)) {
            ?>

            <link rel="prev" href="<?php 
            echo $_smarty_tpl->tpl_vars['rel_prev']->value;
            ?>
" />
        <?php 
        }
        ?>
        <?php 
        if (isset($_smarty_tpl->tpl_vars['rel_next']->value)) {
            ?>

            <link rel="next" href="<?php 
            echo $_smarty_tpl->tpl_vars['rel_next']->value;
            ?>
" />
        <?php 
        }
        ?>

        <?php 
        if (isset($_smarty_tpl->tpl_vars['google_plus_profile']->value)) {
            ?>
            <link rel="author" href="https://plus.google.com/<?php 
            echo $_smarty_tpl->tpl_vars['google_plus_profile']->value;
            ?>
"/>
        <?php 
        }
        ?>

        <?php 
        if (isset($_smarty_tpl->tpl_vars['og']->value)) {
            ?>
    <!-- Twitter Card data -->
            <meta name="twitter:card" content="summary">

            <!-- Open Graph data -->
            <meta property="og:title" content="<?php 
            echo $_smarty_tpl->tpl_vars['og']->value['title'];
            ?>
" />
            <meta property="og:type" content="<?php 
            echo $_smarty_tpl->tpl_vars['og']->value['type'];
            ?>
" />
            <?php 
            if (isset($_smarty_tpl->tpl_vars['og']->value['url'])) {
                ?>
<meta property="og:url" content="<?php 
                echo $_smarty_tpl->tpl_vars['og']->value['url'];
                ?>
" /><?php 
            }
            ?>

            <?php 
            if (isset($_smarty_tpl->tpl_vars['og']->value['image'])) {
                ?>
<meta property="og:image" content="<?php 
                echo $_smarty_tpl->tpl_vars['og']->value['image'];
                ?>
" /><?php 
            }
            ?>
             
            <?php 
            if (isset($_smarty_tpl->tpl_vars['og']->value['desc'])) {
                ?>
<meta property="og:description" content="<?php 
                echo $_smarty_tpl->tpl_vars['og']->value['desc'];
                ?>
" /><?php 
            }
            ?>

            <meta property="og:site_name" content="<?php 
            echo $_smarty_tpl->tpl_vars['site_title']->value;
            ?>
" />

            <!-- Schema.org markup for Google+ -->
            <meta itemprop="name" content="<?php 
            echo $_smarty_tpl->tpl_vars['og']->value['title'];
            ?>
">
            <?php 
            if (isset($_smarty_tpl->tpl_vars['og']->value['desc'])) {
                ?>
<meta itemprop="description" content="<?php 
                echo $_smarty_tpl->tpl_vars['og']->value['desc'];
                ?>
"><?php 
            }
            ?>

            <?php 
            if (isset($_smarty_tpl->tpl_vars['og']->value['image'])) {
                ?>
<meta itemprop="image" content="<?php 
                echo $_smarty_tpl->tpl_vars['og']->value['image'];
                ?>
"><?php 
            }
            ?>
        <?php 
        }
        ?>

        <?php 
        if (isset($_smarty_tpl->tpl_vars['article_published']->value)) {
            ?>
<meta property="article:published_time" content="<?php 
            echo $_smarty_tpl->tpl_vars['article_published']->value;
            ?>
" /><?php 
        }
        ?>

        <?php 
        if (isset($_smarty_tpl->tpl_vars['article_modified']->value)) {
            ?>
<meta property="article:modified_time" content="<?php 
            echo $_smarty_tpl->tpl_vars['article_modified']->value;
            ?>
" /><?php 
        }
        ?>

        <!-- SEO stuff ends -->


        <?php 
        echo $_smarty_tpl->tpl_vars['page']->value['head']['css'];
        ?>
        
        <?php 
        echo $_smarty_tpl->tpl_vars['page']->value['head']['js'];
        ?>


        <style type="text/css">

            .navbar {

                border-radius: 0;

            }


            .nav .open > a, .nav .open > a:hover, .nav .open > a:focus {

                background: white;
            }

            .navbar-clean .container-fluid {

                padding-left: 20px;
                padding-right: 30px;
            }


            .codo_forum_title:hover {
                -webkit-transition: all 0.5s ease;
                -moz-transition: all 0.5s ease;
                -o-transition: all 0.5s ease;
                transition: all 0.5s ease;
            }

            .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {

                color: white;
                background: #3794db;
            }

            .container{
               // margin-top: 60px;
            }

            .CODOFORUM{

                position:relative !important;
                top:0;

            }

            .mm-page {

                height: 100%;
            }
        </style>

    </head>

    <body>

        <?php 
        echo smarty_modifier_load_block("block_body_start");
        ?>




        <div class="CODOFORUM">


            <nav id="mmenu" style="display: none">
                <ul>



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

                        <li style="text-align:center">
                            <a href="<?php 
            echo $_smarty_tpl->tpl_vars['profile_url']->value;
            ?>
"><img  src="<?php 
            echo $_smarty_tpl->tpl_vars['I']->value->avatar;
            ?>
" style="width: 50px;border-radius: 30px;border: 3px solid"/></a>
                            <span style="padding: 10px 0px;font-weight:bold"><?php 
            echo $_smarty_tpl->tpl_vars['I']->value->name;
            ?>
</span>
                        </li>
                        <li title="<?php 
            echo _t('Notifications');
            ?>
" class="codo_inline_notifications_show_all">

                            <a class="glyphicon glyphicon-bell">
                                <span><?php 
            echo _t('Notifications');
            ?>
</span>
                                <?php 
            if ($_smarty_tpl->tpl_vars['unread_notifications']->value) {
                ?>
                                    <span class="codo_inline_notifications_unread_no codo_inline_notifications_unread_no_mobile"><?php 
                echo $_smarty_tpl->tpl_vars['unread_notifications']->value;
                ?>
</span>
                                <?php 
            }
            ?>

                            </a>

                        </li>

                        <?php 
            if ($_smarty_tpl->tpl_vars['canCreateTopicInAtleastOneCategory']->value) {
                ?>
                            <li class="" onclick="codo_create_topic()">


                                <a class="glyphicon glyphicon-pencil" >  <span><?php 
                echo _t('New topic');
                ?>
</span></a>

                            </li>
                        <?php 
            }
            ?>

                        <li class="">

                            <span  class="glyphicon glyphicon-user" > <?php 
            echo _t('Profile');
            ?>
</span>
                            <ul>


                                <li><a class="glyphicon glyphicon-user" href="<?php 
            echo $_smarty_tpl->tpl_vars['profile_url']->value;
            ?>
">  <span><?php 
            echo _t("View Profile");
            ?>
</span></a></li>
                                <li><a class="glyphicon glyphicon-pencil" href="<?php 
            echo $_smarty_tpl->tpl_vars['profile_url']->value;
            ?>
/<?php 
            echo $_smarty_tpl->tpl_vars['I']->value->id;
            ?>
/edit">  <span><?php 
            echo _t("Edit");
            ?>
</span></a></li>
                                <li><a class="glyphicon glyphicon-log-out" href="<?php 
            echo $_smarty_tpl->tpl_vars['logout_url']->value;
            ?>
">  <span><?php 
            echo _t("Logout");
            ?>
</span></a></li>

                            </ul>
                        </li>

                        

                    <?php 
        } else {
            ?>

                        <li class="active"><a href="<?php 
            echo $_smarty_tpl->tpl_vars['register_url']->value;
            ?>
"><?php 
            echo _t("Register");
            ?>
</a></li>
                        <li><a id="codo_login_link" href="<?php 
            echo $_smarty_tpl->tpl_vars['login_url']->value;
            ?>
"><?php 
            echo _t("Login");
            ?>
</a></li>
                        <?php 
        }
        ?>

                    <?php 
        echo smarty_modifier_load_block("block_main_menu");
        ?>



                </ul>
            </nav>
            <nav id="nav" class="navbar navbar-clean navbar-fixed-top" role="navigation">
                <div class="container-fluid">
                    <!-- Brand and toggle get grouped for better mobile display -->
                    <div class="navbar-header">

                        <button type="button" class="navbar-toggle pull-left"  onclick='$("#mmenu").trigger("open.mm");' >
                            <span class="sr-only"><?php 
        echo _t("Toggle navigation");
        ?>
</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>

                        


                        <img src="<?php 
        echo @constant('DURI');
        ?>
assets/img/general/brand.png" alt="codoforum logo" class="navbar-header-img">
                        <a href="<?php 
        echo @constant('RURI');
        echo $_smarty_tpl->tpl_vars['site_url']->value;
        ?>
" class="navbar-brand codo_forum_title" ><?php 
        echo $_smarty_tpl->tpl_vars['site_title']->value;
        ?>
</a>

                        

                    </div>


                    <!-- Collect the nav links, forms, and other content for toggling -->
                    <div class="collapse navbar-collapse" id="codo_navbar_content">




                        <ul class="nav navbar-nav navbar-right">


                            <?php 
        echo smarty_modifier_load_block("block_main_menu");
        ?>


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

                                <?php 
            if ($_smarty_tpl->tpl_vars['canCreateTopicInAtleastOneCategory']->value) {
                ?>
                                    <li class="codo_topics_new_topic hidden-xs codo_tooltip" data-placement="bottom" data-toggle="tooltip" title="<?php 
                echo _t('Add new Topic');
                ?>
">
                                        <a class="codo_nav_icon" href="#" onclick="codo_create_topic()">
                                            <i class="icon-new-topic"></i>
                                        </a>
                                    </li>
                                <?php 
            }
            ?>

                                <li class="dropdown hidden-xs codo_tooltip" data-toggle="tooltip" data-placement="bottom" title="<?php 
            echo _t('Notifications');
            ?>
">
                                    <a data-toggle="dropdown" class="codo_nav_icon codo_inline_notifications" id="codo_inline_notifications">
                                        <i class="icon-bell"></i>
                                        <?php 
            if ($_smarty_tpl->tpl_vars['unread_notifications']->value) {
                ?>
                                            <span class="codo_inline_notifications_unread_no"><?php 
                echo $_smarty_tpl->tpl_vars['unread_notifications']->value;
                ?>
</span>
                                        <?php 
            }
            ?>
                                    </a>
                                    <ul class="dropdown-menu codo_inline_notifications_list" id="codo_inline_notifications_list" role="menu" aria-labelledby="dLabel">

                                        <div class="codo_inline_notification_header">
                                            <div class="codo_load_more_bar_black_gif" ></div>
                                            <div class="codo_inline_notification_header_content" id="codo_inline_notification_header_content">

                                                <span><?php 
            echo _t("Notifications");
            ?>
</span>
                                                <div>
                                                    
                                                    <span id="codo_inline_notifications_preferences" class="glyphicon glyphicon-tasks"  data-toggle="tooltip" data-placement="bottom" title="<?php 
            echo _t('preferences');
            ?>
"></span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="codo_inline_notification_body" id="codo_inline_notification_body">

                                            
                                        </div>
                                        <div class="codo_inline_notification_footer codo_inline_notifications_show_all">
                                            <span><?php 
            echo _t("show all");
            ?>
</span><i class="glyphicon glyphicon-time"></i>
                                        </div>
                                    </ul>
                                </li>

                                <li class="codo_xs_li visible-xs-block">
                                    <a href="<?php 
            echo $_smarty_tpl->tpl_vars['profile_url']->value;
            ?>
/<?php 
            echo $_smarty_tpl->tpl_vars['I']->value->id;
            ?>
/edit#notifications">
                                        <i class="icon-bell"></i>
                                        <span class="visible-xs-inline"> <?php 
            echo _t("Notifications");
            ?>
</span>
                                    </a>
                                </li>

                                <?php 
            if ($_smarty_tpl->tpl_vars['can_moderate_posts']->value) {
                ?>
                                    <li class="" role="presentation">
                                        <a class="codo_nav_icon codo_tooltip" data-toggle="tooltip" data-placement="bottom" title="<?php 
                echo _t('Moderation');
                ?>
" 
                                           href="<?php 
                echo @constant('RURI');
                ?>
moderation"><i class="icon-spam"></i></a>
                                    </li>
                                <?php 
            }
            ?>

                                <li class="codo_menu_user dropdown">

                                    <a class="codo_menu_user_img" data-toggle="dropdown"><img  src="<?php 
            echo $_smarty_tpl->tpl_vars['I']->value->avatar;
            ?>
" />
                                        <span class="visible-xs-inline"><?php 
            echo $_smarty_tpl->tpl_vars['I']->value->name;
            ?>
</span>
                                    </a>
                                    <ul class="dropdown-menu codo_menu_user_container" role="menu" aria-labelledby="dLabel">


                                        <li><a class="glyphicon glyphicon-user" href="<?php 
            echo $_smarty_tpl->tpl_vars['profile_url']->value;
            ?>
">  <span><?php 
            echo _t("Profile");
            ?>
</span></a></li>
                                        <li><a class="glyphicon glyphicon-pencil" href="<?php 
            echo $_smarty_tpl->tpl_vars['profile_url']->value;
            ?>
/<?php 
            echo $_smarty_tpl->tpl_vars['I']->value->id;
            ?>
/edit">  <span><?php 
            echo _t("Edit");
            ?>
</span></a></li>
                                        <li><a class="glyphicon glyphicon-log-out" href="<?php 
            echo $_smarty_tpl->tpl_vars['logout_url']->value;
            ?>
">  <span><?php 
            echo _t("Logout");
            ?>
</span></a></li>

                                    </ul>
                                </li>

                                

                            <?php 
        } else {
            ?>

                                <li class="active"><a href="<?php 
            echo $_smarty_tpl->tpl_vars['register_url']->value;
            ?>
"><?php 
            echo _t("Register");
            ?>
</a></li>
                                <li><a id="codo_login_link" href="<?php 
            echo $_smarty_tpl->tpl_vars['login_url']->value;
            ?>
"><?php 
            echo _t("Login");
            ?>
</a></li>
                                <?php 
        }
        ?>

                            <li class="codo_back_to_top"><a class="codo_back_to_top_arrow"><i class="icon-arrow-top"></i></a></li>
                        </ul>
                    </div><!-- /.navbar-collapse -->
                </div><!-- /.container-fluid -->
            </nav>




            <div class='codo_modal_bg'></div>

        
    <div class="container" id="codo_topics_row">

        <div class="row">

            <div>
                <?php 
        echo smarty_modifier_load_block("block_catgory_list_before");
        ?>

                <div class="codo_categories col-md-4" id="codo_categories_sidebar">

                    <div class="row active" id="codo_category_all_topics">

                        <div class="codo_categories_category col-md-12">
                            <i class="icon-arrow-up"></i>
                            <div class="codo_category_title"><?php 
        echo _t("All topics");
        ?>
</div>
                            <?php 
        if (isset($_smarty_tpl->tpl_vars['new_topics']->value) && count($_smarty_tpl->tpl_vars['new_topics']->value)) {
            ?>
                                <div id="codo_mark_all_read" class="codo_btn codo_mark_all_read"><?php 
            echo _t('Mark all as read');
            ?>
</div>
                            <?php 
        }
        ?>
                            <span class="codo_category_num_topics"><?php 
        echo $_smarty_tpl->tpl_vars['total_num_topics']->value;
        ?>
</span>
                        </div>
                    </div>
                    <?php 
        if ($_smarty_tpl->tpl_vars['can_search']->value) {
            ?>
    
                        <div class="codo_sidebar_search">
                            <input type="text" placeholder="<?php 
            echo _t('Search');
            ?>
" class="form-control codo_topics_search_input" />
                            <i class="glyphicon glyphicon-search codo_topics_search_icon" title="Advanced search" ></i>
                        </div>
                    <?php 
        }
        ?>

                    <ul id="codo_categories_ul">

                        <?php 
        $_smarty_tpl->tpl_vars['cat'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['cat']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['cats']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['cat']->key => $_smarty_tpl->tpl_vars['cat']->value) {
            $_smarty_tpl->tpl_vars['cat']->_loop = true;
            ?>
                            <li>
                                <div class="row">

                                    <div class="codo_category_img col-md-2 col-xs-2">
                                        <img draggable="false" src="<?php 
            echo @constant('DURI');
            echo @constant('CAT_ICON_IMGS');
            echo $_smarty_tpl->tpl_vars['cat']->value->cat_img;
            ?>
" />
                                    </div>

                                    <div class="codo_categories_category col-md-10 col-xs-10">
                                        <a href="<?php 
            echo @constant('RURI');
            ?>
category/<?php 
            echo rawurlencode($_smarty_tpl->tpl_vars['cat']->value->cat_alias);
            ?>
">
                                            <div class="codo_category_title"><?php 
            echo $_smarty_tpl->tpl_vars['cat']->value->cat_name;
            ?>
</div>
                                        </a>
                                        <span data-toggle="tooltip" data-placement="bottom" title="<?php 
            echo _t('No. of topics');
            ?>
" class="codo_category_num_topics codo_bs_tooltip">
                                            <?php 
            if ($_smarty_tpl->tpl_vars['cat']->value->granted == 1) {
                ?>
                                                <?php 
                echo smarty_modifier_abbrev_no($_smarty_tpl->tpl_vars['cat']->value->no_topics);
                ?>

                                            <?php 
            } else {
                ?>
 - 
                                            <?php 
            }
            ?>
                                        </span>

                                        <?php 
            if (isset($_smarty_tpl->tpl_vars['new_topics']->value) && isset($_smarty_tpl->tpl_vars['new_topics']->value[$_smarty_tpl->tpl_vars['cat']->value->cat_id])) {
                ?>
                                     
                                            <a title="<?php 
                echo _t('new topics');
                ?>
"><span class="codo_new_topics_count"><?php 
                echo smarty_modifier_abbrev_no($_smarty_tpl->tpl_vars['new_topics']->value[$_smarty_tpl->tpl_vars['cat']->value->cat_id]);
                ?>
</span></a>
                                            <?php 
            }
            ?>
                                    </div>
                                </div>
                                <?php 
            echo smarty_function_get_children(array('cat' => $_smarty_tpl->tpl_vars['cat']->value, 'new_topics' => $_smarty_tpl->tpl_vars['new_topics']->value), $_smarty_tpl);
            ?>

                            </li>
                        <?php 
        }
        ?>
                    </ul>
                    <?php 
        echo smarty_modifier_load_block("block_catgory_list_after");
        ?>
 

                    <div class="codo_sidebar_fixed">

                        <?php 
        if ($_smarty_tpl->tpl_vars['can_search']->value) {
            ?>
                            <div id="codo_sidebar_fixed_search" class="codo_sidebar_search codo_sidebar_fixed_els">
                                <input type="text" placeholder="<?php 
            echo _t('Search');
            ?>
" class="form-control codo_topics_search_input" />
                                <i class="glyphicon glyphicon-search codo_topics_search_icon" title="Advanced search" ></i>
                            </div>
                        <?php 
        }
        ?>

                        <div class="dropdown codo_sidebar_navigation codo_sidebar_fixed_els" id="codo_category_select">
                            <button value="" class="dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown">
                                <span><?php 
        echo _t("All topics");
        ?>
</span>
                                <span class="caret"></span>
                            </button>
                            <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">

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

                                    <li role="presentation"><a data-alias="<?php 
            echo $_smarty_tpl->tpl_vars['cat']->value->cat_alias;
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['cat']->value->cat_name;
            ?>
</a></li>

                                    <?php 
            echo smarty_function_print_children(array('cat' => $_smarty_tpl->tpl_vars['cat']->value), $_smarty_tpl);
            ?>

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

                        <div class="codo_sidebar_settings">

                            <div>
                                <div id="codo_sidebar_hide_msg_switch" class="codo_switch codo_switch_off">
                                    <div class="codo_switch_toggle"></div>
                                    <span class="codo_switch_on"><?php 
        echo _t('Yes');
        ?>
</span>
                                    <span class="codo_switch_off"><?php 
        echo _t('No');
        ?>
</span>
                                </div>
                                <span><?php 
        echo _t("Hide topic messages");
        ?>
</span>                                
                            </div>

                            <div>
                                <div id="codo_sidebar_inf_scroll_switch" class="codo_switch codo_switch_off">
                                    <div class="codo_switch_toggle"></div>
                                    <span class="codo_switch_on"><?php 
        echo _t('Yes');
        ?>
</span>
                                    <span class="codo_switch_off"><?php 
        echo _t('No');
        ?>
</span>
                                </div>
                                <span><?php 
        echo _t("Enable infinite scrolling");
        ?>
</span>                                                            
                            </div>

                        </div>    

                    </div>

                </div>

                <div class="codo_topics col-md-8 clearfix">

                    <?php 
        echo smarty_modifier_load_block("block_all_topics_before");
        ?>


                    <div class="codo_topics_head">

                        <div class="codo_topics_head_item"><a href="#"><?php 
        echo _t('Topics');
        ?>
</a></li></div>

                    </div>
                    <div class="codo_topics_body" id="codo_topics_body">

                        <?php 
        if ($_smarty_tpl->tpl_vars['total_num_topics']->value > 0) {
            ?>
                            <?php 
            echo $_smarty_tpl->tpl_vars['topics']->value;
            ?>

                        <?php 
        } else {
            ?>
                            <div class="codo_zero_topics">
                                <?php 
            echo _t("No topics created yet!");
            ?>
<br/><br/>
                                <?php 
            echo _t("Be the first to");
            ?>
 <a href="<?php 
            echo @constant('RURI');
            ?>
new_topic"><?php 
            echo _t("create");
            ?>
</a> <?php 
            echo _t("a topic");
            ?>

                            </div>
                        <?php 
        }
        ?>
                    </div>
                    <?php 
        if (!$_smarty_tpl->tpl_vars['load_more_hidden']->value) {
            ?>
                        <a href="<?php 
            echo @constant('RURI');
            ?>
topics/<?php 
            echo $_smarty_tpl->tpl_vars['curr_page']->value + 1;
            ?>
"
                           class="codo_topics_load_more codo_btn codo_btn_def"
                           id="codo_topics_load_more">
                            <?php 
            echo _t("Load more");
            ?>

                        </a>
                    <?php 
        }
        ?>
                    <span style="display: none">
                        
                        <div id="codo_topic_page_info">
                            <span id="codo_page_info_time_spent" data-toggle="tooltip" title="<?php 
        echo _t("time spent reading previous page");
        ?>
"></span>
                            <span id="codo_page_info_page_no" data-toggle="tooltip" title="<?php 
        echo _t("page no.");
        ?>
"></span>
                            <span id="codo_page_info_pages_to_go" data-toggle="tooltip" title="<?php 
        echo _t("pages to go");
        ?>
"></span>
                        </div>
                    </span>
                </div>

                <div id='codo_delete_topic_confirm_html'>
                    <div class='codo_posts_topic_delete'>
                        <div class='codo_content'>
                            <?php 
        echo _t("All posts under this topic will be ");
        ?>
<b><?php 
        echo _t("deleted");
        ?>
</b> ?
                            <br/>

                            <div class="codo_consider_as_spam codo_spam_checkbox">
                                <input id="codo_spam_checkbox" name="spam" type="checkbox" checked="">
                                <label class="codo_spam_checkbox" for="spam"><?php 
        echo _t('Mark as spam');
        ?>
</label>
                            </div>
                        </div>

                        <div class="codo_modal_footer">
                            <div class="codo_btn codo_btn_def codo_modal_delete_topic_cancel"><?php 
        echo _t("Cancel");
        ?>
</div>
                            <div class="codo_btn codo_btn_primary codo_modal_delete_topic_submit"><?php 
        echo _t("Delete");
        ?>
</div>
                        </div>
                        <div class="codo_spinner"></div>
                    </div>
                </div>

            </div>
        </div>

        <div id="codo_topics_multiselect" class="codo_topics_multiselect">

            <?php 
        ob_start();
        echo _t("With");
        $_tmp1 = ob_get_clean();
        echo $_tmp1;
        ?>
 <span id="codo_number_selected"></span> <?php 
        ob_start();
        echo _t("selected");
        $_tmp2 = ob_get_clean();
        echo $_tmp2;
        ?>
 
            <span class="codo_multiselect_deselect codo_btn codo_btn_sm codo_btn_def" id="codo_multiselect_deselect"><?php 
        ob_start();
        echo _t("deselect topics");
        $_tmp3 = ob_get_clean();
        echo $_tmp3;
        ?>
</span>
            <select class="form-control" id="codo_topics_multiselect_select">
                <option value="nothing"><?php 
        ob_start();
        echo _t("Select action");
        $_tmp4 = ob_get_clean();
        echo $_tmp4;
        ?>
</option>
                <optgroup label="<?php 
        ob_start();
        echo _t("Actions");
        $_tmp5 = ob_get_clean();
        echo $_tmp5;
        ?>
">
                    <?php 
        if ($_smarty_tpl->tpl_vars['can_delete']->value) {
            ?>
                        <option value="delete"><?php 
            ob_start();
            echo _t("Delete topics");
            $_tmp6 = ob_get_clean();
            echo $_tmp6;
            ?>
</option>    
                    <?php 
        }
        ?>

                    <?php 
        if ($_smarty_tpl->tpl_vars['can_merge']->value) {
            ?>
                        <option disabled value="merge"><?php 
            ob_start();
            echo _t("Merge topics");
            $_tmp7 = ob_get_clean();
            echo $_tmp7;
            ?>
</option>    
                    <?php 
        }
        ?>

                    <?php 
        if ($_smarty_tpl->tpl_vars['can_move']->value) {
            ?>
                        <option value="move"><?php 
            ob_start();
            echo _t("Move topics");
            $_tmp8 = ob_get_clean();
            echo $_tmp8;
            ?>
</option>    
                    <?php 
        }
        ?>
                </optgroup>

            </select>
        </div>
        <div class="modal fade" id='codo_multiselect_delete'>
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                        <h4 class="modal-title"><?php 
        echo _t("Delete topics");
        ?>
</h4>
                    </div>
                    <div class="modal-body">
                        <p><?php 
        echo _t("Are you sure you want to delete the following topics including its replies ?");
        ?>
</p>

                        <p>
                        <div id="codo_multiselect_delete_links"></div>
                        </p>

                    </div>
                    <div class="modal-footer">
                        <div class="codo_loading"></div>                        
                        <button type="button" class="btn btn-default" data-dismiss="modal"><?php 
        echo _t("Cancel");
        ?>
</button>
                        <button onclick="multiselect.delete_topics()" type="button" class="btn btn-primary"><?php 
        echo _t("Delete");
        ?>
</button>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div><!-- /.modal -->

        <div class="modal fade" id='codo_multiselect_merge'>
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                        <h4 class="modal-title"><?php 
        echo _t("Merge topics");
        ?>
</h4>
                    </div>
                    <div class="modal-body">
                        <p><?php 
        echo _t("Are you sure you want to merge the following topics ?");
        ?>
</p>

                        <p>
                        <div id="codo_multiselect_merge_links"></div>
                        </p>

                        <p class=""><?php 
        echo _t("Select the destination topic from above, where all topics will be merged");
        ?>
</p>

                    </div>
                    <div class="modal-footer">
                        <div class="codo_loading"></div>                        
                        <button type="button" class="btn btn-default" data-dismiss="modal"><?php 
        echo _t("Cancel");
        ?>
</button>
                        <button onclick="multiselect.merge_topics()" type="button" class="btn btn-primary"><?php 
        echo _t("Merge");
        ?>
</button>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div><!-- /.modal -->

        <div class="modal fade" id='codo_multiselect_move'>
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                        <h4 class="modal-title"><?php 
        echo _t("Move topics");
        ?>
</h4>
                    </div>
                    <div class="modal-body">
                        <p><?php 
        echo _t("The selected topics will be moved to");
        ?>
</p>

                        <p>

                            <select class="form-control" id="codo_multiselect_move_category_select"> 
                                <?php 
        $_smarty_tpl->tpl_vars['cat'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['cat']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['cats']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['cat']->key => $_smarty_tpl->tpl_vars['cat']->value) {
            $_smarty_tpl->tpl_vars['cat']->_loop = true;
            ?>

                                    <option value="<?php 
            echo $_smarty_tpl->tpl_vars['cat']->value->cat_id;
            ?>
" role="presentation"><?php 
            echo $_smarty_tpl->tpl_vars['cat']->value->cat_name;
            ?>
</option>

                                    <?php 
            echo smarty_function_print_children(array('cat' => $_smarty_tpl->tpl_vars['cat']->value, 'el' => 'option'), $_smarty_tpl);
            ?>

                                <?php 
        }
        ?>

                            </select>
                        </p>


                    </div>
                    <div class="modal-footer">
                        <div class="codo_loading"></div>                        
                        <button type="button" class="btn btn-default" data-dismiss="modal"><?php 
        echo _t("Cancel");
        ?>
</button>
                        <button onclick="multiselect.move_topics()" type="button" class="btn btn-primary"><?php 
        echo _t("Move");
        ?>
</button>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div><!-- /.modal -->

        <script type="text/javascript">

            CODOFVAR = {
                no_more_posts: '<?php 
        echo _t("No more topics to display!");
        ?>
',
                no_posts: '<?php 
        echo _t("No topics found matching your criteria!");
        ?>
',
                subcategory_dropdown: '<?php 
        echo $_smarty_tpl->tpl_vars['subcategory_dropdown']->value;
        ?>
',
                num_posts_per_page: '<?php 
        echo $_smarty_tpl->tpl_vars['num_posts_per_page']->value;
        ?>
',
                total: <?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['total_num_topics']->value) === null || $tmp === '' ? 0 : $tmp;
        ?>
,
                last_page: '<?php 
        echo _t("last page");
        ?>
'
            };

        </script>

    

        <div class="codo_footer">

            <?php 
        echo $_smarty_tpl->tpl_vars['page']->value['body']['js'];
        ?>

            <?php 
        echo smarty_modifier_load_block("block_footer");
        ?>



            <footer class="footer">
                <div class="container" style="padding:0px;">
                    <div class="row" style="padding: 5px !important">
                        <div class="col-sm-4">&copy; 2015 <?php 
        echo $_smarty_tpl->tpl_vars['site_title']->value;
        ?>
<br>


                            <small><?php 
        echo _t("Powered by");
        ?>
 <a href="http://codoforum.com" target="_blank">Codoforum</a></small>
                        </div>

                        <div class="col-sm-4 pull-right" style="text-align: center">


                            <?php 
        echo smarty_modifier_load_block("block_footer_right");
        ?>




                            <span class=''></span>

                        </div>

                    </div>
                </div>
            </footer>        


            <div style="display: none" id="codo_js_php_defs"></div>
        </div>
        <div class='notifications bottom-right'></div>


    </div>


    <?php 
        echo smarty_modifier_load_block("block_body_end");
        ?>


    
    
        <script style="display: none" id="codo_inline_notifications_template" type="text/html">

            {{#each objects}}
            <a target="_blank" href="{{../url}}topic/{{tid}}/post-{{pid}}/#post-{{pid}}" class="codo_inline_notification_el">

                <div class="codo_inline_notification_el_img">

                    {{#isRemote actor.avatar}}
                    <img src="{{../actor.avatar}}" />                    
                    {{else}}
                    <img src="{{../../duri}}assets/img/profiles/icons/{{../actor.avatar}}" />                    
                    {{/isRemote}}
                </div>
                <div class="codo_inline_notification_el_body">
                    <div class="codo_inline_notification_el_head">
                        <span class="codo_inline_notification_el_title">{{title}}</span>
                        {{#if rolledX}}
                        <span data-toggle="tooltip" data-placement="bottom" title="{{../rolledX}}{{../../rolled_up_trans}}" class="codo_inline_notification_el_rolled">{{rolledX}}</span>
                        {{/if}}
                        <div class="codo_inline_notification_el_created">{{created}}</div>
                    </div>
                    <div class="codo_inline_notification_el_text">
                        <span>{{{body}}}</b></span>
                    </div>
                </div>
            </a>
            {{else}}
            <div class="codo_inline_notification_caught_up">{{../caught_up}}</div>
            {{/each}}
        </script>
    

    <div class="codo_editor_draft">
        <div>
            <div id="codo_pending_text" class="codo_pending_text"><?php 
        echo _t("Pending draft ...");
        ?>
 <?php 
        echo _t("Click to resume editing");
        ?>
</div>
            <div class="codo_delete_draft"><i class="icon-trash"></i> <?php 
        echo _t(" Discard draft");
        ?>
 </div>
        </div>
    </div>

    <div id="codo_is_xs" class="hidden-xs"></div>    
    <div id="codo_is_sm" class="hidden-sm"></div>

    <script type="text/javascript">
                                        /** Lets optimize to the MAX **/
                                        function downloadJSAtOnload() {

                                        var files = JSON.parse('<?php 
        echo $_smarty_tpl->tpl_vars['page']->value['defer'];
        ?>
');
                                                var len = files.length;
                                                var i = 0;
                                                var element = document.createElement("script");
                                                element.src = files[i];
                                                element.async = false;
                                                document.body.appendChild(element);
                                                if (element.readyState) {  //IE
                                        element.onreadystatechange = function() {
                                        if (element.readyState === "loaded" || element.readyState === "complete") {
                                        element.onreadystatechange = null;
                                                on_codo_loaded();
                                                codo_load_js();
                                        }
                                        };
                                        } else {  //Others
                                        element.onload = function() {
                                        on_codo_loaded();
                                                CODOF.hook.call('on_cf_loaded');
                                                codo_load_js();
                                        };
                                        }

                                        function codo_load_js() {
                                        var element;
                                                for (var i = 1; i < len; i++) {
                                        element = document.createElement("script");
                                                element.src = files[i];
                                                element.async = false;
                                                document.body.appendChild(element);
                                                if (i === len - 1) {
                                        element.onload = function() {
                                        CODOF.hook.call('on_scripts_loaded');
                                        }
                                        }
                                        }
                                        }
                                        }
                                        if (window.addEventListener)
                                                window.addEventListener("load", downloadJSAtOnload, false);
                                                else if (window.attachEvent)
                                                window.attachEvent("onload", downloadJSAtOnload);
                                                else window.onload = downloadJSAtOnload;
    </script>    
</body>

</html>
<?php 
    }
    function content_5696744c4e9782_91039314($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_get_opt')) {
            include '/home/janilv/public_html/codoforum/sys/CODOF/Smarty/plugins/modifier.get_opt.php';
        }
        if (!is_callable('smarty_modifier_load_block')) {
            include '/home/janilv/public_html/codoforum/sys/CODOF/Smarty/plugins/modifier.load_block.php';
        }
        if (!is_callable('smarty_modifier_get_preference')) {
            include '/home/janilv/public_html/codoforum/sys/CODOF/Smarty/plugins/modifier.get_preference.php';
        }
        if (!is_callable('smarty_function_print_children')) {
            include '/home/janilv/public_html/codoforum/sys/CODOF/Smarty/plugins/function.print_children.php';
        }
        ?>

<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="generator" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="description" content="<?php 
        echo smarty_modifier_get_opt("site_description");
        ?>
">

        <meta name="author" content="BABA">
        <title><?php 
        echo $_smarty_tpl->tpl_vars['sub_title']->value;
        ?>
 | <?php 
        echo $_smarty_tpl->tpl_vars['site_title']->value;
        ?>
</title>
        <!--[if lte IE 8]>
         <script src="//cdnjs.cloudflare.com/ajax/libs/json2/20121008/json2.min.js"></script>
        <![endif]-->

        <?php 
        echo smarty_modifier_load_block("block_head");
        ?>



        <script type="text/javascript">

            var on_codo_loaded = function () {
            };
            var codo_defs = {
                url: "<?php 
        echo @constant('RURI');
        ?>
",
                duri: "<?php 
        echo @constant('DURI');
        ?>
",
                def_theme: "<?php 
        echo @constant('DEF_THEME_PATH');
        ?>
",
                reluri: "<?php 
        echo @constant('DATA_REL_PATH');
        ?>
",
                token: "<?php 
        echo $_smarty_tpl->tpl_vars['CSRF_token']->value;
        ?>
",
                smiley_path: "<?php 
        echo @constant('SMILEY_PATH');
        ?>
",
                logged_in: "<?php 
        echo $_smarty_tpl->tpl_vars['I']->value->loggedIn() ? 'yes' : 'no';
        ?>
",
                uid: "<?php 
        echo $_smarty_tpl->tpl_vars['I']->value->id;
        ?>
",
                time: "<?php 
        echo $_smarty_tpl->tpl_vars['php_time_now']->value;
        ?>
",
                trans: {
                    embed_no_preview: "<?php 
        echo _t('preview not available inside editor');
        ?>
",
                    notify: {
                        mention: "<?php 
        echo _t("New mention");
        ?>
",
                        mention_action: "<?php 
        echo _t("mentioned you in");
        ?>
",
                        rolled_up_trans: "<?php 
        echo _t(" for same topic");
        ?>
",
                        caught_up: "<?php 
        echo _t("No new notifications");
        ?>
"
                    }
                },
                preferences: {
                    drafts: {
                        autosave: 'yes'
                    },
                    notify: {
                        real_time: "<?php 
        echo smarty_modifier_get_preference("real_time_notifications");
        ?>
",
                        desktop: "<?php 
        echo smarty_modifier_get_preference("desktop_notifications");
        ?>
"
                    }
                }

            };

            var CODOF = {
                hook: {
                    hooks: [],
                    add: function (myhook, func, weight, args) {

                        var i = 0;
                        if (typeof weight === "undefined") {

                            weight = 0;
                        }
                        if (typeof args === "undefined") {

                            args = {
                            };
                        }

                        if (typeof CODOF.hook.hooks[myhook] !== "undefined") {

                            i = CODOF.hook.hooks[myhook].length;
                        } else {

                            CODOF.hook.hooks[myhook] = [];
                        }

                        CODOF.hook.hooks[myhook][i] = {
                            func: func,
                            args: args,
                            weight: weight
                        };
                    }
                }
            }


        </script>


        <link rel="shortcut icon" type="image/x-icon" href="<?php 
        echo @constant('DURI');
        ?>
assets/img/general/img/favicon.ico?v=1">
        <link rel="apple-touch-icon" sizes="57x57" href="http://codoforum.com/img/apple-touch-icon-57x57.png">
        <link rel="apple-touch-icon" sizes="114x114" href="http://codoforum.com/img/apple-touch-icon-114x114.png">
        <link rel="apple-touch-icon" sizes="72x72" href="http://codoforum.com/img/apple-touch-icon-72x72.png">
        <link rel="apple-touch-icon" sizes="144x144" href="http://codoforum.com/img/apple-touch-icon-144x144.png">
        <link rel="apple-touch-icon" sizes="60x60" href="http://codoforum.com/img/apple-touch-icon-60x60.png">
        <link rel="apple-touch-icon" sizes="120x120" href="http://codoforum.com/img/apple-touch-icon-120x120.png">
        <link rel="apple-touch-icon" sizes="76x76" href="http://codoforum.com/img/apple-touch-icon-76x76.png">
        <link rel="apple-touch-icon" sizes="152x152" href="http://codoforum.com/img/apple-touch-icon-152x152.png">
        <link rel="icon" type="image/png" href="http://codoforum.com/img/favicon-196x196.png" sizes="196x196">
        <link rel="icon" type="image/png" href="http://codoforum.com/img/favicon-160x160.png" sizes="160x160">
        <link rel="icon" type="image/png" href="http://codoforum.com/img/favicon-96x96.png" sizes="96x96">
        <link rel="icon" type="image/png" href="http://codoforum.com/img/favicon-16x16.png" sizes="16x16">
        <link rel="icon" type="image/png" href="http://codoforum.com/img/favicon-32x32.png" sizes="32x32">


        <!-- Some SEO stuff -->

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

            <meta name="robots" content="<?php 
            echo $_smarty_tpl->tpl_vars['meta_robots']->value;
            ?>
">
        <?php 
        }
        ?>

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

            <link rel="canonical" href="<?php 
            echo $_smarty_tpl->tpl_vars['canonical']->value;
            ?>
" />
        <?php 
        }
        ?>
        <?php 
        if (isset($_smarty_tpl->tpl_vars['rel_prev']->value)) {
            ?>

            <link rel="prev" href="<?php 
            echo $_smarty_tpl->tpl_vars['rel_prev']->value;
            ?>
" />
        <?php 
        }
        ?>
        <?php 
        if (isset($_smarty_tpl->tpl_vars['rel_next']->value)) {
            ?>

            <link rel="next" href="<?php 
            echo $_smarty_tpl->tpl_vars['rel_next']->value;
            ?>
" />
        <?php 
        }
        ?>

        <?php 
        if (isset($_smarty_tpl->tpl_vars['google_plus_profile']->value)) {
            ?>
            <link rel="author" href="https://plus.google.com/<?php 
            echo $_smarty_tpl->tpl_vars['google_plus_profile']->value;
            ?>
"/>
        <?php 
        }
        ?>

        <?php 
        if (isset($_smarty_tpl->tpl_vars['og']->value)) {
            ?>
    <!-- Twitter Card data -->
            <meta name="twitter:card" content="summary">

            <!-- Open Graph data -->
            <meta property="og:title" content="<?php 
            echo $_smarty_tpl->tpl_vars['og']->value['title'];
            ?>
" />
            <meta property="og:type" content="<?php 
            echo $_smarty_tpl->tpl_vars['og']->value['type'];
            ?>
" />
            <?php 
            if (isset($_smarty_tpl->tpl_vars['og']->value['url'])) {
                ?>
<meta property="og:url" content="<?php 
                echo $_smarty_tpl->tpl_vars['og']->value['url'];
                ?>
" /><?php 
            }
            ?>

            <?php 
            if (isset($_smarty_tpl->tpl_vars['og']->value['image'])) {
                ?>
<meta property="og:image" content="<?php 
                echo $_smarty_tpl->tpl_vars['og']->value['image'];
                ?>
" /><?php 
            }
            ?>
             
            <?php 
            if (isset($_smarty_tpl->tpl_vars['og']->value['desc'])) {
                ?>
<meta property="og:description" content="<?php 
                echo $_smarty_tpl->tpl_vars['og']->value['desc'];
                ?>
" /><?php 
            }
            ?>

            <meta property="og:site_name" content="<?php 
            echo $_smarty_tpl->tpl_vars['site_title']->value;
            ?>
" />

            <!-- Schema.org markup for Google+ -->
            <meta itemprop="name" content="<?php 
            echo $_smarty_tpl->tpl_vars['og']->value['title'];
            ?>
">
            <?php 
            if (isset($_smarty_tpl->tpl_vars['og']->value['desc'])) {
                ?>
<meta itemprop="description" content="<?php 
                echo $_smarty_tpl->tpl_vars['og']->value['desc'];
                ?>
"><?php 
            }
            ?>

            <?php 
            if (isset($_smarty_tpl->tpl_vars['og']->value['image'])) {
                ?>
<meta itemprop="image" content="<?php 
                echo $_smarty_tpl->tpl_vars['og']->value['image'];
                ?>
"><?php 
            }
            ?>
        <?php 
        }
        ?>

        <?php 
        if (isset($_smarty_tpl->tpl_vars['article_published']->value)) {
            ?>
<meta property="article:published_time" content="<?php 
            echo $_smarty_tpl->tpl_vars['article_published']->value;
            ?>
" /><?php 
        }
        ?>

        <?php 
        if (isset($_smarty_tpl->tpl_vars['article_modified']->value)) {
            ?>
<meta property="article:modified_time" content="<?php 
            echo $_smarty_tpl->tpl_vars['article_modified']->value;
            ?>
" /><?php 
        }
        ?>

        <!-- SEO stuff ends -->


        <?php 
        echo $_smarty_tpl->tpl_vars['page']->value['head']['css'];
        ?>
        
        <?php 
        echo $_smarty_tpl->tpl_vars['page']->value['head']['js'];
        ?>


        <style type="text/css">

            .navbar {

                border-radius: 0;

            }


            .nav .open > a, .nav .open > a:hover, .nav .open > a:focus {

                background: white;
            }

            .navbar-clean .container-fluid {

                padding-left: 20px;
                padding-right: 30px;
            }


            .codo_forum_title:hover {
                -webkit-transition: all 0.5s ease;
                -moz-transition: all 0.5s ease;
                -o-transition: all 0.5s ease;
                transition: all 0.5s ease;
            }

            .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {

                color: white;
                background: #3794db;
            }

            .container{
               // margin-top: 60px;
            }

            .CODOFORUM{

                position:relative !important;
                top:0;

            }

            .mm-page {

                height: 100%;
            }
        </style>

    </head>

    <body>

        <?php 
        echo smarty_modifier_load_block("block_body_start");
        ?>




        <div class="CODOFORUM">


            <nav id="mmenu" style="display: none">
                <ul>



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

                        <li style="text-align:center">
                            <a href="<?php 
            echo $_smarty_tpl->tpl_vars['profile_url']->value;
            ?>
"><img  src="<?php 
            echo $_smarty_tpl->tpl_vars['I']->value->avatar;
            ?>
" style="width: 50px;border-radius: 30px;border: 3px solid"/></a>
                            <span style="padding: 10px 0px;font-weight:bold"><?php 
            echo $_smarty_tpl->tpl_vars['I']->value->name;
            ?>
</span>
                        </li>
                        <li title="<?php 
            echo _t('Notifications');
            ?>
" class="codo_inline_notifications_show_all">

                            <a class="glyphicon glyphicon-bell">
                                <span><?php 
            echo _t('Notifications');
            ?>
</span>
                                <?php 
            if ($_smarty_tpl->tpl_vars['unread_notifications']->value) {
                ?>
                                    <span class="codo_inline_notifications_unread_no codo_inline_notifications_unread_no_mobile"><?php 
                echo $_smarty_tpl->tpl_vars['unread_notifications']->value;
                ?>
</span>
                                <?php 
            }
            ?>

                            </a>

                        </li>

                        <?php 
            if ($_smarty_tpl->tpl_vars['canCreateTopicInAtleastOneCategory']->value) {
                ?>
                            <li class="" onclick="codo_create_topic()">


                                <a class="glyphicon glyphicon-pencil" >  <span><?php 
                echo _t('New topic');
                ?>
</span></a>

                            </li>
                        <?php 
            }
            ?>

                        <li class="">

                            <span  class="glyphicon glyphicon-user" > <?php 
            echo _t('Profile');
            ?>
</span>
                            <ul>


                                <li><a class="glyphicon glyphicon-user" href="<?php 
            echo $_smarty_tpl->tpl_vars['profile_url']->value;
            ?>
">  <span><?php 
            echo _t("View Profile");
            ?>
</span></a></li>
                                <li><a class="glyphicon glyphicon-pencil" href="<?php 
            echo $_smarty_tpl->tpl_vars['profile_url']->value;
            ?>
/<?php 
            echo $_smarty_tpl->tpl_vars['I']->value->id;
            ?>
/edit">  <span><?php 
            echo _t("Edit");
            ?>
</span></a></li>
                                <li><a class="glyphicon glyphicon-log-out" href="<?php 
            echo $_smarty_tpl->tpl_vars['logout_url']->value;
            ?>
">  <span><?php 
            echo _t("Logout");
            ?>
</span></a></li>

                            </ul>
                        </li>

                        

                    <?php 
        } else {
            ?>

                        <li class="active"><a href="<?php 
            echo $_smarty_tpl->tpl_vars['register_url']->value;
            ?>
"><?php 
            echo _t("Register");
            ?>
</a></li>
                        <li><a id="codo_login_link" href="<?php 
            echo $_smarty_tpl->tpl_vars['login_url']->value;
            ?>
"><?php 
            echo _t("Login");
            ?>
</a></li>
                        <?php 
        }
        ?>

                    <?php 
        echo smarty_modifier_load_block("block_main_menu");
        ?>



                </ul>
            </nav>
            <nav id="nav" class="navbar navbar-clean navbar-fixed-top" role="navigation">
                <div class="container-fluid">
                    <!-- Brand and toggle get grouped for better mobile display -->
                    <div class="navbar-header">

                        <button type="button" class="navbar-toggle pull-left"  onclick='$("#mmenu").trigger("open.mm");' >
                            <span class="sr-only"><?php 
        echo _t("Toggle navigation");
        ?>
</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>

                        


                        <img src="<?php 
        echo @constant('DURI');
        ?>
assets/img/general/brand.png" alt="codoforum logo" class="navbar-header-img">
                        <a href="<?php 
        echo @constant('RURI');
        echo $_smarty_tpl->tpl_vars['site_url']->value;
        ?>
" class="navbar-brand codo_forum_title" ><?php 
        echo $_smarty_tpl->tpl_vars['site_title']->value;
        ?>
</a>

                        

                    </div>


                    <!-- Collect the nav links, forms, and other content for toggling -->
                    <div class="collapse navbar-collapse" id="codo_navbar_content">




                        <ul class="nav navbar-nav navbar-right">


                            <?php 
        echo smarty_modifier_load_block("block_main_menu");
        ?>


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

                                <?php 
            if ($_smarty_tpl->tpl_vars['canCreateTopicInAtleastOneCategory']->value) {
                ?>
                                    <li class="codo_topics_new_topic hidden-xs codo_tooltip" data-placement="bottom" data-toggle="tooltip" title="<?php 
                echo _t('Add new Topic');
                ?>
">
                                        <a class="codo_nav_icon" href="#" onclick="codo_create_topic()">
                                            <i class="icon-new-topic"></i>
                                        </a>
                                    </li>
                                <?php 
            }
            ?>

                                <li class="dropdown hidden-xs codo_tooltip" data-toggle="tooltip" data-placement="bottom" title="<?php 
            echo _t('Notifications');
            ?>
">
                                    <a data-toggle="dropdown" class="codo_nav_icon codo_inline_notifications" id="codo_inline_notifications">
                                        <i class="icon-bell"></i>
                                        <?php 
            if ($_smarty_tpl->tpl_vars['unread_notifications']->value) {
                ?>
                                            <span class="codo_inline_notifications_unread_no"><?php 
                echo $_smarty_tpl->tpl_vars['unread_notifications']->value;
                ?>
</span>
                                        <?php 
            }
            ?>
                                    </a>
                                    <ul class="dropdown-menu codo_inline_notifications_list" id="codo_inline_notifications_list" role="menu" aria-labelledby="dLabel">

                                        <div class="codo_inline_notification_header">
                                            <div class="codo_load_more_bar_black_gif" ></div>
                                            <div class="codo_inline_notification_header_content" id="codo_inline_notification_header_content">

                                                <span><?php 
            echo _t("Notifications");
            ?>
</span>
                                                <div>
                                                    
                                                    <span id="codo_inline_notifications_preferences" class="glyphicon glyphicon-tasks"  data-toggle="tooltip" data-placement="bottom" title="<?php 
            echo _t('preferences');
            ?>
"></span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="codo_inline_notification_body" id="codo_inline_notification_body">

                                            
                                        </div>
                                        <div class="codo_inline_notification_footer codo_inline_notifications_show_all">
                                            <span><?php 
            echo _t("show all");
            ?>
</span><i class="glyphicon glyphicon-time"></i>
                                        </div>
                                    </ul>
                                </li>

                                <li class="codo_xs_li visible-xs-block">
                                    <a href="<?php 
            echo $_smarty_tpl->tpl_vars['profile_url']->value;
            ?>
/<?php 
            echo $_smarty_tpl->tpl_vars['I']->value->id;
            ?>
/edit#notifications">
                                        <i class="icon-bell"></i>
                                        <span class="visible-xs-inline"> <?php 
            echo _t("Notifications");
            ?>
</span>
                                    </a>
                                </li>

                                <?php 
            if ($_smarty_tpl->tpl_vars['can_moderate_posts']->value) {
                ?>
                                    <li class="" role="presentation">
                                        <a class="codo_nav_icon codo_tooltip" data-toggle="tooltip" data-placement="bottom" title="<?php 
                echo _t('Moderation');
                ?>
" 
                                           href="<?php 
                echo @constant('RURI');
                ?>
moderation"><i class="icon-spam"></i></a>
                                    </li>
                                <?php 
            }
            ?>

                                <li class="codo_menu_user dropdown">

                                    <a class="codo_menu_user_img" data-toggle="dropdown"><img  src="<?php 
            echo $_smarty_tpl->tpl_vars['I']->value->avatar;
            ?>
" />
                                        <span class="visible-xs-inline"><?php 
            echo $_smarty_tpl->tpl_vars['I']->value->name;
            ?>
</span>
                                    </a>
                                    <ul class="dropdown-menu codo_menu_user_container" role="menu" aria-labelledby="dLabel">


                                        <li><a class="glyphicon glyphicon-user" href="<?php 
            echo $_smarty_tpl->tpl_vars['profile_url']->value;
            ?>
">  <span><?php 
            echo _t("Profile");
            ?>
</span></a></li>
                                        <li><a class="glyphicon glyphicon-pencil" href="<?php 
            echo $_smarty_tpl->tpl_vars['profile_url']->value;
            ?>
/<?php 
            echo $_smarty_tpl->tpl_vars['I']->value->id;
            ?>
/edit">  <span><?php 
            echo _t("Edit");
            ?>
</span></a></li>
                                        <li><a class="glyphicon glyphicon-log-out" href="<?php 
            echo $_smarty_tpl->tpl_vars['logout_url']->value;
            ?>
">  <span><?php 
            echo _t("Logout");
            ?>
</span></a></li>

                                    </ul>
                                </li>

                                

                            <?php 
        } else {
            ?>

                                <li class="active"><a href="<?php 
            echo $_smarty_tpl->tpl_vars['register_url']->value;
            ?>
"><?php 
            echo _t("Register");
            ?>
</a></li>
                                <li><a id="codo_login_link" href="<?php 
            echo $_smarty_tpl->tpl_vars['login_url']->value;
            ?>
"><?php 
            echo _t("Login");
            ?>
</a></li>
                                <?php 
        }
        ?>

                            <li class="codo_back_to_top"><a class="codo_back_to_top_arrow"><i class="icon-arrow-top"></i></a></li>
                        </ul>
                    </div><!-- /.navbar-collapse -->
                </div><!-- /.container-fluid -->
            </nav>




            <div class='codo_modal_bg'></div>

        
    <div id="breadcrumb" class="col-md-12">

        <div class="codo_breadcrumb_list btn-breadcrumb hidden-xs">
            <?php 
        echo smarty_modifier_load_block("block_breadcrumbs_before");
        ?>

            <a href="<?php 
        echo @constant('RURI');
        echo $_smarty_tpl->tpl_vars['site_url']->value;
        ?>
"><div><i class="glyphicon glyphicon-home"></i></div></a>
            <!--<div>_t("New topic")}</div>-->
            <?php 
        echo smarty_modifier_load_block("block_breadcrumbs_after");
        ?>

        </div>
    </div>

    <div class="container">

        <div class="row">


            <?php 
        echo smarty_modifier_load_block("block_create_topic_before");
        ?>


            <div class="codo_widget">

                <div class="codo_widget-header">
                    <?php 
        echo _t("Create Topic");
        ?>

                </div>

                <div class="codo_widget-content">
                    <form id="codo_new_reply_post"  method="POST" class="" role="form">

                        <div class="form-group">
                            <label for="title"><?php 
        echo _t("Title");
        ?>
</label>
                            <div>
                                <input id="codo_topic_title" type="text" class="codo_input" value="<?php 
        echo $_smarty_tpl->tpl_vars['topic']->value['title'];
        ?>
" placeholder="<?php 
        echo _t('Give a title for your topic');
        ?>
" required>
                            </div>

                        </div>

                        <?php 
        if ($_smarty_tpl->tpl_vars['can_add_tags']->value) {
            ?>
   
                        <div class="form-group codo_tags">

                            <label for="tags"><?php 
            echo _t("Tags");
            ?>
</label>
                            <div>
                                <input id="codo_tags" data-role="tagsinput" type="text" value="<?php 
            echo $_smarty_tpl->tpl_vars['tags']->value;
            ?>
" />
                            </div>
                            

                        </div>
                        <?php 
        }
        ?>

                            <div class="form-group codo_select_category">
                                <label for="category"><?php 
        echo _t('Category');
        ?>
</label>
                                <div>
                                    <div class="dropdown" id="codo_category_select">
                                        <button value="" class="btn dropdown-toggle btn-default" type="button" id="dropdownMenu1" data-toggle="dropdown">
                                            <span><?php 
        echo _t("Select a category");
        ?>
</span>
                                            <span class="caret"></span>
                                        </button>
                                        <ul id="codo_select_category" class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">

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

                                                <li role="presentation"><a id="<?php 
            echo $_smarty_tpl->tpl_vars['cat']->value->cat_id;
            ?>
" data-alias="<?php 
            echo $_smarty_tpl->tpl_vars['cat']->value->cat_alias;
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['cat']->value->cat_name;
            ?>
</a></li>

                                                <?php 
            echo smarty_function_print_children(array('cat' => $_smarty_tpl->tpl_vars['cat']->value), $_smarty_tpl);
            ?>

                                            <?php 
        }
        ?>


                                        </ul>

                                    </div>
                                    <div class="codo_move_sep">
                                    </div>
                                    <div class="well codo_move">

                                        <span id="codo_move_text"><?php 
        echo _t("You are moving this topic from %fromCategoryName% to %toCategoryName%");
        ?>
.</span>
                                        <div class="checkbox">
                                            <label>
                                                <input id="move_notify" type="checkbox"> <?php 
        echo _t("Notify any followers of the topic about this change ?");
        ?>

                                            </label>
                                        </div>
                                        <div class="form-group">
                                            <input id="move_reason" type="hidden" class="form-control" placeholder="<?php 
        echo _t('reason - leave blank if not required');
        ?>
" />
                                        </div>
                                    </div>

                                </div>
                            </div>

                            <?php 
        ob_start();
        if ($_smarty_tpl->tpl_vars['can_make_sticky']->value) {
            $_tmp1 = ob_get_clean();
            echo $_tmp1;
            ?>
                
                            <div id="show_frontpage" class="codo_tooltip form-group codo_sticky" data-placement="bottom" data-title="<?php 
            echo _t("if unchecked, will show topic only in category page");
            ?>
">                        
                                <input type="checkbox" name="frontpage" <?php 
            ob_start();
            if ($_smarty_tpl->tpl_vars['frontpage_checked']->value) {
                $_tmp2 = ob_get_clean();
                echo $_tmp2;
                ?>
checked<?php 
                ob_start();
            }
            $_tmp3 = ob_get_clean();
            echo $_tmp3;
            ?>
> 
                                <label><?php 
            echo _t("Show in front page ?");
            ?>
</label>                            
                            </div>                                    
                            <div class="codo_tooltip form-group codo_sticky">
                                <input  type="checkbox" name="sticky" <?php 
            ob_start();
            if ($_smarty_tpl->tpl_vars['sticky_checked']->value) {
                $_tmp4 = ob_get_clean();
                echo $_tmp4;
                ?>
checked<?php 
                ob_start();
            }
            $_tmp5 = ob_get_clean();
            echo $_tmp5;
            ?>
> 
                                <label><?php 
            echo _t("Is sticky ?");
            ?>
</label>
                            </div>
                            <?php 
            ob_start();
        }
        $_tmp6 = ob_get_clean();
        echo $_tmp6;
        ?>


                            <div id="codo_new_reply" class="codo_new_reply">

                                <!--<div class="codo_reply_resize_handle"></div>-->

                                <div class="codo_reply_box" id="codo_reply_box">
                                    <textarea placeholder="<?php 
        echo _t('Describe your topic . You can use BBcode or Markdown');
        ?>
" id="codo_new_reply_textarea" name="input_text"><?php 
        echo $_smarty_tpl->tpl_vars['topic']->value['imessage'];
        ?>
</textarea>
                                    <div class="codo_new_reply_preview" id="codo_new_reply_preview_container">
                                        <div class="codo_editor_preview_placeholder"><?php 
        echo _t("live preview");
        ?>
</div>
                                        <div id="codo_new_reply_preview"></div>
                                    </div>
                                    <div class="codo_reply_min_chars"><?php 
        echo _t("enter atleast ");
        ?>
<span id="codo_reply_min_chars_left"><?php 
        echo $_smarty_tpl->tpl_vars['reply_min_chars']->value;
        ?>
</span><?php 
        echo _t(" characters");
        ?>
</div>                                    
                                </div>

                                <div id="codo_non_mentionable" class="codo_non_mentionable"><b><?php 
        echo _t("WARNING:");
        ?>
 </b><?php 
        echo _t("You mentioned %MENTIONS%, but they cannot see this message and will not be notified");
        ?>
 
                                </div>

                                <div class="codo_new_reply_action">

                                    <button class="codo_btn" id="codo_new_reply_action_post"><i class="icon-check"></i><span class="codo_action_button_txt"><?php 
        echo _t("Post");
        ?>
</span></button>
                                    <button onclick="window.history.back()" class="codo_btn codo_btn_def" id="codo_new_reply_action_cancel"><i class="icon-times"></i><span class="codo_action_button_txt"><?php 
        echo _t("Cancel");
        ?>
</span></button>

                                    <img id="codo_new_reply_loading" src="<?php 
        echo @constant('DEF_THEME_PATH');
        ?>
img/ajax-loader.gif" />
                                    <button class="codo_btn codo_btn_def codo_post_preview_bg" id="codo_post_preview_btn">&nbsp;</button>
                                    <button class="codo_btn codo_btn_def codo_post_preview_bg" id="codo_post_preview_btn_resp">&nbsp;</button>
                                    <div class="codo_draft_status_saving"><?php 
        echo _t("Saving...");
        ?>
</div>
                                    <div class="codo_draft_status_saved"><?php 
        echo _t("Saved");
        ?>
</div>

                                </div>
                                <input type="text" class="end-of-line" name="end_of_line" />

                            </div>

                            <input type="text" class="end-of-line" id="end_of_line" name="end_of_line" />
                            <input id="codo_topic_cat" name="codo_topic_cat" type="hidden" />
                            <input id="codo_topic_cat_alias" name="codo_topic_cat_alias" type="hidden" />
                            <input type="hidden" name="token" value="<?php 
        echo $_smarty_tpl->tpl_vars['CSRF_token']->value;
        ?>
" />

                        </form>
                    </div>

                </div>
                <?php 
        echo smarty_modifier_load_block("block_create_topic_after");
        ?>


            </div>

            <?php 
        /*  Call merged included template "forum/editor.tpl" */
        $_tpl_stack[] = $_smarty_tpl;
        $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('forum/editor.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0, '9718674445696744c20f403-07251690');
        content_5696744c4561d8_59278154($_smarty_tpl);
        $_smarty_tpl = array_pop($_tpl_stack);
        /*  End of included template "forum/editor.tpl" */
        ?>
        </div>
        <script type="text/javascript">

            CODOFVAR = {
                smileys: JSON.parse('<?php 
        echo $_smarty_tpl->tpl_vars['forum_smileys']->value;
        ?>
'),
                reply_min_chars: parseInt(<?php 
        echo $_smarty_tpl->tpl_vars['reply_min_chars']->value;
        ?>
),
                trans: {
                    continue_mesg: '<?php 
        echo _t("Continue");
        ?>
'
                },
                dropzone: {
                    dictDefaultMessage: '<?php 
        echo _t("Drop files to upload &nbsp;&nbsp;(or click)");
        ?>
',
                    max_file_size: parseInt('<?php 
        echo $_smarty_tpl->tpl_vars['max_file_size']->value;
        ?>
'),
                    allowed_file_mimetypes: '<?php 
        echo $_smarty_tpl->tpl_vars['allowed_file_mimetypes']->value;
        ?>
',
                    forum_attachments_multiple: <?php 
        echo $_smarty_tpl->tpl_vars['forum_attachments_multiple']->value;
        ?>
,
                    forum_attachments_parallel: parseInt('<?php 
        echo $_smarty_tpl->tpl_vars['forum_attachments_parallel']->value;
        ?>
'),
                    forum_attachments_max: parseInt('<?php 
        echo $_smarty_tpl->tpl_vars['forum_attachments_max']->value;
        ?>
')

                }

            };

            function on_codo_loaded() {

                CODOF.inTopic = true;


                setTimeout(function () {
                    $('#codo_topic_title').focus();
                }, 500);

                $('html, body').animate({
                    scrollTop: $(".codo_widget-header").offset().top
                }, 500);
                CODOF.editor_form = $('#codo_new_reply_post');
                CODOF.editor_preview_btn = $('#codo_post_preview_btn');
                CODOF.editor_reply_post_btn = $('#codo_new_reply_action_post');

                $('#codo_new_reply_textarea').putCursorAtEnd();
                $('#codo_category_select li  a').on('click', function () {
                    var cid = $(this).attr('id');
                    $('#codo_category_select > button > span:first-child').text($.trim($(this).text()));
                    $('#codo_topic_cat').val(cid);
                    $('#dropdownMenu1').val(cid);
                    $('#codo_topic_cat_alias').val($(this).data('alias'));

                    //return false;
                    CODOFVAR.cid = cid;
                    CODOF.mentions.updateSpec(cid);
                    CODOF.mentions.checkForNonMentions();

                    CODOF.newCatName = $('#codo_category_select > button > span:first-child').text();
                    if (CODOF.oldCatName) {

                        if (CODOF.oldCatName == CODOF.newCatName) {

                            $('.codo_move, .codo_move_sep').slideUp();

                        } else {

                            $('#codo_move_from_category_name').text(CODOF.oldCatName);
                            $('#codo_move_to_category_name').text(CODOF.newCatName);
                            $('.codo_move, .codo_move_sep').slideDown()
                        }
                    }

                });

                $('#codo_tags').tagsinput({
                    maxTags: 5,
                    maxChars: 15,
                    trimValue: true
                });

                var str = $('#codo_non_mentionable').html();
                $('#codo_non_mentionable').html(str.replace('%MENTIONS%', '<span id="codo_nonmentionable_users"></span>'));

                CODOF.selectCat = function (cat_id) {

                    $('#codo_category_select li  a').each(function () {

                        if (parseInt($(this).attr('id')) === cat_id) {

                            $('#codo_category_select > button > span:first-child').text($.trim($(this).text()));
                            $('#codo_topic_cat').val($(this).attr('id'));
                            $('#dropdownMenu1').val($(this).attr('id'));
                            $('#codo_topic_cat_alias').val($(this).data('alias'));
                            //$('#codo_category_select li  a').off();
                            $('#codo_new_reply_action_post').html('<?php 
        echo _t("Save");
        ?>
');
                            //$('#codo_category_select button').css('background','#eee');

                            CODOFVAR.cid = cat_id;
                        }
                    });

                }
                ;


                CODOF.mentions.extractAndAddToManned($("#codo_new_reply_textarea").val());

                //should be called ONLY after tagsinput() init
                CODOF.restoreFromDraft = function () {

                    var obj = JSON.parse(localStorage.getItem('reply_' + codo_defs.uid));

                    if (obj === null)
                        return;
                    if (obj.title !== "") {
                        //add title
                        $('#codo_topic_title').val(obj.title);
                    }

                    if (obj.tags.length > 0) {
                        //add tags
                        var i, len = obj.tags.length;

                        for (i = 0; i < len; i++) {

                            $('#codo_tags').tagsinput('add', obj.tags[i]);
                        }

                    }

                    //add message
                    $("#codo_new_reply_textarea").val(obj.text);

                    CODOF.mentions.extractAndAddToManned(obj.text);
                    if (obj.cat) {
                        //add cat
                        CODOF.selectCat(parseInt(obj.cat));
                        CODOF.mentions.checkForNonMentions();
                    }
                };

                if (window.location.hash === '#draft') {

                    CODOF.restoreFromDraft();
                }
                else if (window.location.hash === '#draftEdit') {

                    var y = confirm('aa');
                } else {

                    if (localStorage.getItem('reply_' + codo_defs.uid) !== null) {

                        var obj = JSON.parse(localStorage.getItem('reply_' + codo_defs.uid));
                        $('#codo_draft_topic_title').html(obj.title);
                        $('#codo_draft_pending').modal();
                    }
                }


                function select_curr_cat() {


                    var cat_id = parseInt('<?php 
        echo $_smarty_tpl->tpl_vars['topic']->value['cat_id'];
        ?>
');

                    CODOF.edit_topic_id = false;

                    if (cat_id !== 0) {

                        CODOF.edit_topic_id = parseInt('<?php 
        echo $_smarty_tpl->tpl_vars['topic']->value['topic_id'];
        ?>
');
                        CODOF.selectCat(cat_id);
                        CODOF.oldCatName = $('#codo_category_select > button > span:first-child').text();

                        $('#codo_move_text').html(
                                $('#codo_move_text').text()
                                .replace('%fromCategoryName%', '<span id="codo_move_from_category_name"></span>')
                                .replace('%toCategoryName%', '<span id="codo_move_to_category_name"></span>')
                                );
                    }

                }
                ;

                select_curr_cat();


            <?php 
        ob_start();
        if ($_smarty_tpl->tpl_vars['sticky_checked']->value) {
            $_tmp7 = ob_get_clean();
            echo $_tmp7;
            ?>

                $('#show_frontpage').show();
            <?php 
            ob_start();
        }
        $_tmp8 = ob_get_clean();
        echo $_tmp8;
        ?>

                $('input[name=sticky]').on('change', function () {


                    if ($(this).is(':checked')) {

                        $('#show_frontpage').show();
                    } else {
                        $('#show_frontpage').hide();

                    }
                });

                CODOF.submitted = function () {
                    //$('#codo_reply_replica').val($('#codo_new_reply_preview').html());

                    var warned = false;
                    if (CODOF.editor_reply_post_btn.hasClass('codo_btn_primary') && !CODOF.is_error()) {

                        if (!warned) {

                            if (CODOF.mentions.warnForNonMentions()) {

                                warned = true;
                                return false;
                            }
                        }
                        CODOF.editor_reply_post_btn.removeClass('codo_btn_primary');
                        $('#codo_new_reply_loading').show();

                        var action = 'create';
                        if (CODOF.edit_topic_id) {

                            action = 'edit';
                        }

                        $('#codo_reply_box').append('<div id="codo_reply_html_playground"></div>');

                        $('#codo_reply_html_playground').html($('#codo_new_reply_preview').html());

                        $('#codo_reply_html_playground .codo_embed_container').remove();
                        $('#codo_reply_html_playground .codo_embed_placeholder').remove();


                        $('#codo_reply_html_playground .codo_oembed').each(function () {

                            var href = $(this).attr('href');
                            $(this).html(href);
                        });


                        var title = $.trim($('#codo_topic_title').val());
                        CODOF.req.data = {
                            title: title,
                            cat: $.trim($('#codo_topic_cat').val()),
                            imesg: $('#codo_new_reply_textarea').val(),
                            omesg: $('#codo_reply_html_playground').html().replace(/\</g, 'STARTCODOTAG'),
                            end_of_line: $('#end_of_line').val(),
                            token: codo_defs.token,
                            tid: CODOF.edit_topic_id,
                            notify: $('#move_notify').prop('checked'),
                            reason: $('#move_notify').val(),
                            tags: $('#codo_tags').tagsinput('items'),
                            sticky: $('input[name=sticky]').is(":checked"),
                            frontpage: $('input[name=frontpage]').is(":checked")
                        };

                        CODOF.hook.call('before_req_send');

                        $.post(
                                codo_defs.url + 'Ajax/topic/' + action,
                                CODOF.req.data,
                                function (response) {

                                    var obj;
                                    try {
                                        obj = JSON.parse(response);
                                    } catch (e) {
                                        obj = response;
                                    }
                                    if (obj.tid) {

                                        CODOF.autoDraft.remove();
                                        window.location.href = codo_defs.url + 'topic/' + obj.tid + '/' + title;
                                    } else {
                                        alert(response);
                                        CODOF.editor_reply_post_btn.addClass('codo_btn_primary');
                                    }

                                    $('#codo_new_topic_loader').hide();
                                }
                        );


                    }

                    return false;
                };

                CODOF.is_error = function () {

                    var error = false;

                    var val = $.trim($('#dropdownMenu1').val());

                    if (val === "") {

                        $('#dropdownMenu1').addClass('boundary-error').focus();
                        error = true;
                    } else {

                        $('#dropdownMenu1').removeClass('boundary-error');
                    }

                    $('#codo_new_reply_post :input[required=""],#codo_new_reply_post :input[required]').each(function () {

                        var val = $(this).val();

                        if ($.trim(val) === "") {

                            $(this).addClass('boundary-error').focus();
                            error = true;
                            return false;
                        } else {
                            $(this).removeClass('boundary-error')
                        }
                    });

                    return error;
                };
            }
            ;

        </script>

        <link rel="stylesheet" type="text/css" href="<?php 
        echo @constant('DURI');
        ?>
assets/markitup/highlight/styles/github.css" />
        <link rel="stylesheet" type="text/css" href="<?php 
        echo @constant('DURI');
        ?>
assets/dropzone/css/basic.css" />


        

        <div class="codo_footer">

            <?php 
        echo $_smarty_tpl->tpl_vars['page']->value['body']['js'];
        ?>

            <?php 
        echo smarty_modifier_load_block("block_footer");
        ?>



            <footer class="footer">
                <div class="container" style="padding:0px;">
                    <div class="row" style="padding: 5px !important">
                        <div class="col-sm-4">&copy; 2015 <?php 
        echo $_smarty_tpl->tpl_vars['site_title']->value;
        ?>
<br>


                            <small><?php 
        echo _t("Powered by");
        ?>
 <a href="http://codoforum.com" target="_blank">Codoforum</a></small>
                        </div>

                        <div class="col-sm-4 pull-right" style="text-align: center">


                            <?php 
        echo smarty_modifier_load_block("block_footer_right");
        ?>




                            <span class=''></span>

                        </div>

                    </div>
                </div>
            </footer>        


            <div style="display: none" id="codo_js_php_defs"></div>
        </div>
        <div class='notifications bottom-right'></div>


    </div>


    <?php 
        echo smarty_modifier_load_block("block_body_end");
        ?>


    
    
        <script style="display: none" id="codo_inline_notifications_template" type="text/html">

            {{#each objects}}
            <a target="_blank" href="{{../url}}topic/{{tid}}/post-{{pid}}/#post-{{pid}}" class="codo_inline_notification_el">

                <div class="codo_inline_notification_el_img">

                    {{#isRemote actor.avatar}}
                    <img src="{{../actor.avatar}}" />                    
                    {{else}}
                    <img src="{{../../duri}}assets/img/profiles/icons/{{../actor.avatar}}" />                    
                    {{/isRemote}}
                </div>
                <div class="codo_inline_notification_el_body">
                    <div class="codo_inline_notification_el_head">
                        <span class="codo_inline_notification_el_title">{{title}}</span>
                        {{#if rolledX}}
                        <span data-toggle="tooltip" data-placement="bottom" title="{{../rolledX}}{{../../rolled_up_trans}}" class="codo_inline_notification_el_rolled">{{rolledX}}</span>
                        {{/if}}
                        <div class="codo_inline_notification_el_created">{{created}}</div>
                    </div>
                    <div class="codo_inline_notification_el_text">
                        <span>{{{body}}}</b></span>
                    </div>
                </div>
            </a>
            {{else}}
            <div class="codo_inline_notification_caught_up">{{../caught_up}}</div>
            {{/each}}
        </script>
    

    <div class="codo_editor_draft">
        <div>
            <div id="codo_pending_text" class="codo_pending_text"><?php 
        echo _t("Pending draft ...");
        ?>
 <?php 
        echo _t("Click to resume editing");
        ?>
</div>
            <div class="codo_delete_draft"><i class="icon-trash"></i> <?php 
        echo _t(" Discard draft");
        ?>
 </div>
        </div>
    </div>

    <div id="codo_is_xs" class="hidden-xs"></div>    
    <div id="codo_is_sm" class="hidden-sm"></div>

    <script type="text/javascript">
                                        /** Lets optimize to the MAX **/
                                        function downloadJSAtOnload() {

                                        var files = JSON.parse('<?php 
        echo $_smarty_tpl->tpl_vars['page']->value['defer'];
        ?>
');
                                                var len = files.length;
                                                var i = 0;
                                                var element = document.createElement("script");
                                                element.src = files[i];
                                                element.async = false;
                                                document.body.appendChild(element);
                                                if (element.readyState) {  //IE
                                        element.onreadystatechange = function() {
                                        if (element.readyState === "loaded" || element.readyState === "complete") {
                                        element.onreadystatechange = null;
                                                on_codo_loaded();
                                                codo_load_js();
                                        }
                                        };
                                        } else {  //Others
                                        element.onload = function() {
                                        on_codo_loaded();
                                                CODOF.hook.call('on_cf_loaded');
                                                codo_load_js();
                                        };
                                        }

                                        function codo_load_js() {
                                        var element;
                                                for (var i = 1; i < len; i++) {
                                        element = document.createElement("script");
                                                element.src = files[i];
                                                element.async = false;
                                                document.body.appendChild(element);
                                                if (i === len - 1) {
                                        element.onload = function() {
                                        CODOF.hook.call('on_scripts_loaded');
                                        }
                                        }
                                        }
                                        }
                                        }
                                        if (window.addEventListener)
                                                window.addEventListener("load", downloadJSAtOnload, false);
                                                else if (window.attachEvent)
                                                window.attachEvent("onload", downloadJSAtOnload);
                                                else window.onload = downloadJSAtOnload;
    </script>    
</body>

</html>
<?php 
    }