function content_55db8bda354729_13376326($_smarty_tpl)
 {
     if (!is_callable('smarty_function_style')) {
         include '/var/www/html/market/app/functions/smarty_plugins/function.style.php';
     }
     echo smarty_function_style(array('src' => "addons/hybrid_auth/styles.css"), $_smarty_tpl);
 }
 function content_55ccdf859ad106_40677724($_smarty_tpl)
 {
     if (!is_callable('smarty_function_style')) {
         include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.style.php';
     }
     echo smarty_function_style(array('src' => "addons/seo/styles.less"), $_smarty_tpl);
 }
 function content_55ccdf859b3a07_51721256($_smarty_tpl)
 {
     if (!is_callable('smarty_function_style')) {
         include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.style.php';
     }
     echo smarty_function_style(array('src' => "addons/altteam_review_attributes/styles.css"), $_smarty_tpl);
 }
 function content_55d2ec3d9ab3f8_08333480($_smarty_tpl)
 {
     if (!is_callable('smarty_function_style')) {
         include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.style.php';
     }
     echo smarty_function_style(array('src' => "addons/hw_restrict/styles.less"), $_smarty_tpl);
 }
 function content_55db8bda351b25_32570246($_smarty_tpl)
 {
     if (!is_callable('smarty_function_style')) {
         include '/var/www/html/market/app/functions/smarty_plugins/function.style.php';
     }
     echo smarty_function_style(array('src' => "addons/discussion/styles.less"), $_smarty_tpl);
 }
 function content_55db8bda33b778_56043465($_smarty_tpl)
 {
     if (!is_callable('smarty_function_style')) {
         include '/var/www/html/market/app/functions/smarty_plugins/function.style.php';
     }
     echo smarty_function_style(array('src' => "addons/seo/styles.less"), $_smarty_tpl);
 }
 function content_55ccdf859b05a7_65053932($_smarty_tpl)
 {
     if (!is_callable('smarty_function_style')) {
         include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.style.php';
     }
     echo smarty_function_style(array('src' => "addons/discussion/styles.less"), $_smarty_tpl);
 }
    function content_55dc759c8b8983_44968297($_smarty_tpl)
    {
        if (!is_callable('smarty_function_style')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.style.php';
        }
        if (!is_callable('smarty_function_set_id')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.set_id.php';
        }
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            echo smarty_function_style(array('src' => "addons/form_builder/styles.less"), $_smarty_tpl);
            ?>

<?php 
            echo smarty_function_style(array('src' => "addons/form_builder/responsive.less"), $_smarty_tpl);
            ?>

<?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
                if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
                    ?>
<span class="cm-template-box template-box" data-ca-te-template="addons/form_builder/hooks/index/styles.post.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "addons/form_builder/hooks/index/styles.post.tpl"), $_smarty_tpl);
                    ?>
"><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php 
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                    ?>
<!--[/tpl_id]--></span><?php 
                } else {
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                }
            }
        } else {
            echo smarty_function_style(array('src' => "addons/form_builder/styles.less"), $_smarty_tpl);
            ?>

<?php 
            echo smarty_function_style(array('src' => "addons/form_builder/responsive.less"), $_smarty_tpl);
            ?>

<?php 
        }
    }
    function content_55ccdf859a9bf7_71676976($_smarty_tpl)
    {
        if (!is_callable('smarty_function_style')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.style.php';
        }
        echo smarty_function_style(array('src' => "addons/help_tutorial/styles.less"), $_smarty_tpl);
        ?>

<?php 
    }
    function content_55db8bda3575d6_07817942($_smarty_tpl)
    {
        if (!is_callable('smarty_function_style')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.style.php';
        }
        echo smarty_function_style(array('src' => "addons/twigmo/styles.css"), $_smarty_tpl);
        ?>

<?php 
    }
    function content_55db8bda338049_18928026($_smarty_tpl)
    {
        if (!is_callable('smarty_function_style')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.style.php';
        }
        echo smarty_function_style(array('src' => "addons/tags/styles.css"), $_smarty_tpl);
        ?>

<?php 
    }
    function content_55db8bda3347c2_93639823($_smarty_tpl)
    {
        if (!is_callable('smarty_function_style')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.style.php';
        }
        echo smarty_function_style(array('src' => "addons/help_tutorial/styles.less"), $_smarty_tpl);
        ?>

<?php 
    }
    function content_55ccec9be97749_64076698($_smarty_tpl)
    {
        if (!is_callable('smarty_function_style')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.style.php';
        }
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            echo smarty_function_style(array('src' => "addons/hybrid_auth/colorbox.css"), $_smarty_tpl);
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
                if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
                    ?>
<span class="cm-template-box template-box" data-ca-te-template="addons/hybrid_auth/hooks/index/styles.post.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "addons/hybrid_auth/hooks/index/styles.post.tpl"), $_smarty_tpl);
                    ?>
"><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php 
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                    ?>
<!--[/tpl_id]--></span><?php 
                } else {
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                }
            }
        } else {
            echo smarty_function_style(array('src' => "addons/hybrid_auth/colorbox.css"), $_smarty_tpl);
        }
    }
    function content_55ccdf859a2700_03616223($_smarty_tpl)
    {
        if (!is_callable('smarty_function_style')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.style.php';
        }
        $_smarty_tpl->_capture_stack[0][] = array("styles", null, null);
        ob_start();
        $_smarty_tpl->tpl_vars['type'] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['type']->value) === null || $tmp === '' ? @constant('STATUSES_ORDER') : $tmp, null, 0);
        $_smarty_tpl->tpl_vars['statuses'] = new Smarty_variable(fn_get_statuses($_smarty_tpl->tpl_vars['type']->value), null, 0);
        if ($_smarty_tpl->tpl_vars['statuses']->value) {
            ?>
	
    <?php 
            $_smarty_tpl->tpl_vars["status_data"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["status_data"]->_loop = false;
            $_smarty_tpl->tpl_vars["status"] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['statuses']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars["status_data"]->key => $_smarty_tpl->tpl_vars["status_data"]->value) {
                $_smarty_tpl->tpl_vars["status_data"]->_loop = true;
                $_smarty_tpl->tpl_vars["status"]->value = $_smarty_tpl->tpl_vars["status_data"]->key;
                ?>
        .<?php 
                echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['type']->value, 'UTF-8'), ENT_QUOTES, 'UTF-8');
                ?>
-status-<?php 
                echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['status']->value, 'UTF-8'), ENT_QUOTES, 'UTF-8');
                ?>
 {
            .buttonBackground(lighten(<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['status_data']->value['params']['color'], ENT_QUOTES, 'UTF-8');
                ?>
, 15%), darken(<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['status_data']->value['params']['color'], ENT_QUOTES, 'UTF-8');
                ?>
, 5%));
        }
    <?php 
            }
        }
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>

<?php 
        echo smarty_function_style(array('content' => Smarty::$_smarty_vars['capture']['styles'], 'type' => "less"), $_smarty_tpl);
        ?>

<?php 
    }
    function content_55dc759c7ba823_67022274($_smarty_tpl)
    {
        if (!is_callable('smarty_block_styles')) {
            include '/var/www/html/market/app/functions/smarty_plugins/block.styles.php';
        }
        if (!is_callable('smarty_block_hook')) {
            include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php';
        }
        if (!is_callable('smarty_function_style')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.style.php';
        }
        if (!is_callable('smarty_function_set_id')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.set_id.php';
        }
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            $_smarty_tpl->smarty->_tag_stack[] = array('styles', array('use_scheme' => true, 'reflect_less' => $_smarty_tpl->tpl_vars['reflect_less']->value));
            $_block_repeat = true;
            echo smarty_block_styles(array('use_scheme' => true, 'reflect_less' => $_smarty_tpl->tpl_vars['reflect_less']->value), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

<?php 
                $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:styles"));
                $_block_repeat = true;
                echo smarty_block_hook(array('name' => "index:styles"), null, $_smarty_tpl, $_block_repeat);
                while ($_block_repeat) {
                    ob_start();
                    ?>


    <?php 
                    echo smarty_function_style(array('src' => "styles.less"), $_smarty_tpl);
                    ?>

    <?php 
                    echo smarty_function_style(array('src' => "tygh/responsive.less"), $_smarty_tpl);
                    ?>


    
    <?php 
                    if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['live_editor'] || $_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design']) {
                        ?>
        <?php 
                        echo smarty_function_style(array('src' => "tygh/design_mode.less"), $_smarty_tpl);
                        ?>

    <?php 
                    }
                    ?>

    
    <?php 
                    if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['theme_editor']) {
                        ?>
        <?php 
                        echo smarty_function_style(array('src' => "tygh/theme_editor.less"), $_smarty_tpl);
                        ?>

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

<?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_styles(array('use_scheme' => true, 'reflect_less' => $_smarty_tpl->tpl_vars['reflect_less']->value), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
                if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
                    ?>
<span class="cm-template-box template-box" data-ca-te-template="common/styles.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "common/styles.tpl"), $_smarty_tpl);
                    ?>
"><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php 
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                    ?>
<!--[/tpl_id]--></span><?php 
                } else {
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                }
            }
        } else {
            $_smarty_tpl->smarty->_tag_stack[] = array('styles', array('use_scheme' => true, 'reflect_less' => $_smarty_tpl->tpl_vars['reflect_less']->value));
            $_block_repeat = true;
            echo smarty_block_styles(array('use_scheme' => true, 'reflect_less' => $_smarty_tpl->tpl_vars['reflect_less']->value), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

<?php 
                $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:styles"));
                $_block_repeat = true;
                echo smarty_block_hook(array('name' => "index:styles"), null, $_smarty_tpl, $_block_repeat);
                while ($_block_repeat) {
                    ob_start();
                    ?>


    <?php 
                    echo smarty_function_style(array('src' => "styles.less"), $_smarty_tpl);
                    ?>

    <?php 
                    echo smarty_function_style(array('src' => "tygh/responsive.less"), $_smarty_tpl);
                    ?>


    
    <?php 
                    if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['live_editor'] || $_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design']) {
                        ?>
        <?php 
                        echo smarty_function_style(array('src' => "tygh/design_mode.less"), $_smarty_tpl);
                        ?>

    <?php 
                    }
                    ?>

    
    <?php 
                    if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['theme_editor']) {
                        ?>
        <?php 
                        echo smarty_function_style(array('src' => "tygh/theme_editor.less"), $_smarty_tpl);
                        ?>

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

<?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_styles(array('use_scheme' => true, 'reflect_less' => $_smarty_tpl->tpl_vars['reflect_less']->value), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
        }
    }
    function content_55ccf1718591a0_13840260($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php';
        }
        if (!is_callable('smarty_function_style')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.style.php';
        }
        if (!is_callable('smarty_function_render_location')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.render_location.php';
        }
        if (!is_callable('smarty_block_hook')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php';
        }
        fn_preload_lang_vars(array('block_already_exists_in_grid', 'new_layout', 'add_layout', 'block_manager', 'manage_blocks', 'export_layout', 'export_layout', 'import_layout', 'import_layout', 'editing_location', 'add_location', 'new_location', 'switch_layout', 'preview', 'make_default', 'editing_layout', 'properties', 'delete', 'widget_code', 'select_all', 'editing_layout'));
        ?>

<?php 
        $_smarty_tpl->tpl_vars["m_url"] = new Smarty_variable(rawurlencode($_REQUEST['manage_url']), null, 0);
        ?>

<?php 
        echo smarty_function_script(array('src' => "js/tygh/block_manager.js"), $_smarty_tpl);
        ?>


<script type="text/javascript">
    var selected_location = '<?php 
        echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['location']->value['location_id']) === null || $tmp === '' ? 0 : $tmp, ENT_QUOTES, 'UTF-8');
        ?>
';

    var dynamic_object_id = '<?php 
        echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['dynamic_object']->value['object_id']) === null || $tmp === '' ? 0 : $tmp, ENT_QUOTES, 'UTF-8');
        ?>
';
    var dynamic_object_type = '<?php 
        echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['dynamic_object_scheme']->value['object_type']) === null || $tmp === '' ? '' : $tmp, ENT_QUOTES, 'UTF-8');
        ?>
';

    var BlockManager = new BlockManager_Class();

    // New traslations
    Tygh.tr({
        block_already_exists_in_grid: '<?php 
        echo strtr($_smarty_tpl->__("block_already_exists_in_grid"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
        ?>
'
    });


    if (dynamic_object_id > 0) {
        var items = null;
    } else {
        var items = '.block';
    }

    (function(_, $) {
        $(document).ready(function() {
            $('#content_location_' + selected_location).appear(function(){
                BlockManager.init('.grid', {
                    // UI settings
                    connectWith: '.grid',
                    items: items,
                    revert: true,
                    placeholder: 'ui-hover-block',
                    opacity: 0.5,
                    
                    // BlockManager_Class settings
                    parent: this,
                    container_class: 'container',
                    grid_class: 'grid',
                    block_class: 'block',
                    hover_element_class: 'hover-element'
                });
            });
        });
    }(Tygh, Tygh.$));

</script>

<?php 
        if ($_smarty_tpl->tpl_vars['dynamic_object']->value['object_id'] > 0) {
            ?>
    <?php 
            echo smarty_function_style(array('src' => "block_manager_in_tab.css"), $_smarty_tpl);
            ?>

<?php 
        }
        echo smarty_function_style(array('src' => "lib/960/960.css"), $_smarty_tpl);
        ?>


<div id="block_window" class="grid-block hidden"></div>
<div id="block_manager_menu" class="grid-menu hidden"></div>
<div id="block_manager_prop" class="grid-prop hidden"></div>

<?php 
        echo $_smarty_tpl->getSubTemplate("views/block_manager/render/grid.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('default_class' => "base-grid hidden", 'show_menu' => true), 0);
        ?>

<?php 
        echo $_smarty_tpl->getSubTemplate("views/block_manager/render/block.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('default_class' => "base-block hidden", 'block_data' => true), 0);
        ?>


<?php 
        $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null);
        ob_start();
        $_smarty_tpl->_capture_stack[0][] = array("tabsbox", null, null);
        ob_start();
        ?>
    <div id="content_location_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['location']->value['location_id'], ENT_QUOTES, 'UTF-8');
        ?>
">
        <?php 
        echo smarty_function_render_location(array('dispatch' => $_smarty_tpl->tpl_vars['location']->value['dispatch'], 'location_id' => $_smarty_tpl->tpl_vars['location']->value['location_id'], 'area' => 'A', 'lang_code' => $_smarty_tpl->tpl_vars['location']->value['lang_code']), $_smarty_tpl);
        ?>

    </div>
<?php 
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>

<?php 
        $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null);
        ob_start();
        ?>
    <?php 
        $_smarty_tpl->_capture_stack[0][] = array("add_new_picker", null, null);
        ob_start();
        ?>
        <?php 
        echo $_smarty_tpl->getSubTemplate("views/block_manager/components/update_layout.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('layout_data' => array()), 0);
        ?>

    <?php 
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>
    <?php 
        echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_layout", 'text' => __("new_layout"), 'content' => Smarty::$_smarty_vars['capture']['add_new_picker'], 'act' => "general", 'icon' => "icon-plus", 'title' => __("add_layout")), 0);
        ?>

<?php 
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>

<?php 
        $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null);
        ob_start();
        ?>
    
    <?php 
        if (!$_smarty_tpl->tpl_vars['dynamic_object']->value['object_id']) {
            ?>
        <?php 
            $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null);
            ob_start();
            ?>
            <li>
                <?php 
            echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "manage_blocks", 'text' => __("block_manager"), 'link_text' => __("manage_blocks"), 'link_class' => "cm-action bm-action-manage-blocks", 'act' => "link", 'content' => '', 'general_class' => "action-btn"), 0);
            ?>

            </li>
            <li class="divider"></li>
            <li>
                <?php 
            echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "export_layout_manager", 'text' => __("export_layout"), 'link_text' => __("export_layout"), 'act' => "link", 'href' => "block_manager.export_layout", 'opener_ajax_class' => "cm-ajax", 'link_class' => "cm-ajax-force", 'content' => '', 'general_class' => "action-btn"), 0);
            ?>

            </li>
            <li>
                <?php 
            echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "import_layout_manager", 'text' => __("import_layout"), 'link_text' => __("import_layout"), 'act' => "link", 'href' => "block_manager.import_layout", 'opener_ajax_class' => "cm-ajax", 'link_class' => "cm-ajax-force", 'content' => '', 'general_class' => "action-btn"), 0);
            ?>

            </li>
        <?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            ?>
        <?php 
            smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list']));
            ?>

    <?php 
        }
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>

<?php 
        echo smarty_function_script(array('src' => "js/tygh/tabs.js"), $_smarty_tpl);
        ?>


<div class="cm-j-tabs tabs tabs-with-conf">
    <ul class="nav nav-tabs">
        <?php 
        $_smarty_tpl->tpl_vars['tab'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['tab']->_loop = false;
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['navigation']->value['tabs'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['tab']->key => $_smarty_tpl->tpl_vars['tab']->value) {
            $_smarty_tpl->tpl_vars['tab']->_loop = true;
            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['tab']->key;
            ?>
                <li id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8');
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8');
            ?>
" class="<?php 
            if ($_smarty_tpl->tpl_vars['tab']->value['hidden'] == "Y") {
                ?>
hidden <?php 
            }
            if ($_smarty_tpl->tpl_vars['key']->value == "location_" . (string) $_smarty_tpl->tpl_vars['location']->value['location_id']) {
                ?>
active extra-tab<?php 
            }
            ?>
">
                    <?php 
            if ($_smarty_tpl->tpl_vars['key']->value == "location_" . (string) $_smarty_tpl->tpl_vars['location']->value['location_id']) {
                ?>
                        <?php 
                ob_start();
                echo $_smarty_tpl->__("editing_location");
                $_tmp1 = ob_get_clean();
                smarty_template_function_btn($_smarty_tpl, array('type' => "dialog", 'class' => "cm-ajax-force hand icon-cog", 'href' => "block_manager.update_location?location=" . (string) $_smarty_tpl->tpl_vars['location']->value['location_id'], 'id' => "tab_location_" . (string) $_smarty_tpl->tpl_vars['location']->value['location_id'], 'title' => $_tmp1 . ": " . (string) $_smarty_tpl->tpl_vars['tab']->value['title']));
                ?>

                    <?php 
            }
            ?>
                    <a <?php 
            if ($_smarty_tpl->tpl_vars['tab']->value['href']) {
                ?>
href="<?php 
                echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['tab']->value['href']), ENT_QUOTES, 'UTF-8');
                ?>
"<?php 
            }
            ?>
><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['tab']->value['title'], ENT_QUOTES, 'UTF-8');
            ?>
</a>
                </li>
        <?php 
        }
        ?>
        <li class="divider"></li>
        <?php 
        if (!$_smarty_tpl->tpl_vars['dynamic_object']->value['object_id']) {
            ?>
            <li class="cm-no-highlight">
                <?php 
            ob_start();
            echo $_smarty_tpl->__("add_location");
            $_tmp2 = ob_get_clean();
            echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_location", 'text' => __("new_location"), 'link_text' => $_tmp2 . "…", 'act' => "link", 'href' => "block_manager.update_location", 'opener_ajax_class' => "cm-ajax", 'link_class' => "cm-ajax-force", 'icon' => "icon-plus", 'content' => ''), 0);
            ?>
</li>
        <?php 
        }
        ?>
    </ul>
</div>
<div class="cm-tabs-content">
    <?php 
        echo Smarty::$_smarty_vars['capture']['tabsbox'];
        ?>

</div>

<?php 
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>

<?php 
        $_smarty_tpl->_capture_stack[0][] = array("sidebar", null, null);
        ob_start();
        ?>
    <div id="block_manager_sidebar">
        <div class="sidebar-row layouts">
            <h6><?php 
        echo $_smarty_tpl->__("switch_layout");
        ?>
</h6>
            <ul class="nav nav-list">
                <?php 
        $_smarty_tpl->tpl_vars["layout"] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars["layout"]->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['layouts']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars["layout"]->key => $_smarty_tpl->tpl_vars["layout"]->value) {
            $_smarty_tpl->tpl_vars["layout"]->_loop = true;
            ?>
                    <li class="with-menu <?php 
            if ($_smarty_tpl->tpl_vars['layout']->value['layout_id'] == $_smarty_tpl->tpl_vars['runtime']->value['layout']['layout_id']) {
                ?>
 active<?php 
            }
            ?>
">
                        <?php 
            $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null);
            ob_start();
            ?>
                            <li><?php 
            ob_start();
            echo htmlspecialchars(fn_url("?s_layout=" . (string) $_smarty_tpl->tpl_vars['layout']->value['layout_id'], "C"), ENT_QUOTES, 'UTF-8');
            $_tmp3 = ob_get_clean();
            smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("preview"), 'href' => $_tmp3, 'target' => "_blank"));
            ?>
</li>
                            <li class="divider"></li>
                            <?php 
            if (!$_smarty_tpl->tpl_vars['layout']->value['is_default']) {
                ?>
                            <li><?php 
                smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("make_default"), 'href' => "block_manager.set_default_layout?layout_id=" . (string) $_smarty_tpl->tpl_vars['layout']->value['layout_id'], 'class' => "cm-ajax", 'data' => array("data-ca-target-id" => "block_manager_sidebar")));
                ?>
</li>
                            <?php 
            }
            ?>

                            <li>
                                <?php 
            $_smarty_tpl->_capture_stack[0][] = array("add_new_picker", null, null);
            ob_start();
            ?>
                                    <?php 
            echo $_smarty_tpl->getSubTemplate("views/block_manager/components/update_layout.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('layout_data' => $_smarty_tpl->tpl_vars['layout']->value), 0);
            ?>

                                <?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            ?>
                                <?php 
            ob_start();
            echo $_smarty_tpl->__("editing_layout");
            $_tmp4 = ob_get_clean();
            echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "upate_layout_" . (string) $_smarty_tpl->tpl_vars['layout']->value['layout_id'], 'text' => $_tmp4 . ": " . (string) $_smarty_tpl->tpl_vars['layout']->value['name'], 'content' => Smarty::$_smarty_vars['capture']['add_new_picker'], 'act' => "link", 'link_text' => __("properties")), 0);
            ?>

                            </li>

                            <?php 
            if (!$_smarty_tpl->tpl_vars['layout']->value['is_default']) {
                ?>
                                <li class="divider"></li>
                                <li><?php 
                smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("delete"), 'href' => "block_manager.delete_layout?layout_id=" . (string) $_smarty_tpl->tpl_vars['layout']->value['layout_id'], 'class' => "cm-confirm"));
                ?>
</li>
                            <?php 
            }
            ?>
                        <?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            ?>
                        <div class="pull-right">
                            <?php 
            smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list']));
            ?>

                        </div>
                        <a href="<?php 
            echo htmlspecialchars(fn_url("block_manager.manage?s_layout=" . (string) $_smarty_tpl->tpl_vars['layout']->value['layout_id']), ENT_QUOTES, 'UTF-8');
            ?>
"><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['layout']->value['name'], ENT_QUOTES, 'UTF-8');
            ?>
</a>
                    </li>
                <?php 
        }
        ?>
            </ul>
        </div>
        <hr>
        <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "layouts:sidebar"));
        $_block_repeat = true;
        echo smarty_block_hook(array('name' => "layouts:sidebar"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

        <div class="sidebar-row">
<?php 
            $_smarty_tpl->_capture_stack[0][] = array("widget_code", null, null);
            ob_start();
            ?>
<div class="tygh" id="tygh_container">
</div>
<script type="text/javascript">
(function() {
var url = 'https:' == document.location.protocol ? '<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['widget_https_url']->value, ENT_QUOTES, 'UTF-8');
            ?>
' : '<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['widget_http_url']->value, ENT_QUOTES, 'UTF-8');
            ?>
';
var cw = document.createElement('script'); cw.type = 'text/javascript'; cw.async = true;
cw.src = '//widget.cart-services.com/static/init.js?url=' + url + '&layout=<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['runtime']->value['layout']['layout_id'], ENT_QUOTES, 'UTF-8');
            ?>
';
document.getElementById('tygh_container').appendChild(cw);
})();
</script>
<?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            ?>
            <h6><?php 
            echo $_smarty_tpl->__("widget_code");
            ?>
</h6>
            <div class="clearfix">
                <fieldset>
                    <textarea class="copy-field" id="widget_code_box" readonly="readonly" cols="30" rows="10"><?php 
            echo htmlspecialchars(Smarty::$_smarty_vars['capture']['widget_code'], ENT_QUOTES, 'UTF-8');
            ?>
</textarea>
                    <a class="pull-right cm-select-text" data-ca-select-id="widget_code_box"><?php 
            echo $_smarty_tpl->__("select_all");
            ?>
</a>
                </fieldset>
            </div>
        </div>
        <?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_hook(array('name' => "layouts:sidebar"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>


    <!--block_manager_sidebar--></div>
<?php 
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>

<?php 
        if ($_smarty_tpl->tpl_vars['dynamic_object']->value['object_id']) {
            ?>
    <?php 
            echo Smarty::$_smarty_vars['capture']['mainbox'];
            ?>

<?php 
        } else {
            ?>
    <?php 
            ob_start();
            echo $_smarty_tpl->__("editing_layout");
            $_tmp5 = ob_get_clean();
            echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_tmp5 . ": " . (string) $_smarty_tpl->tpl_vars['layout_data']->value['name'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'select_languages' => true, 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar']), 0);
            ?>

<?php 
        }
    }
    function content_55db8bda34b482_92214565($_smarty_tpl)
    {
        if (!is_callable('smarty_function_style')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.style.php';
        }
        echo smarty_function_style(array('src' => "addons/call_requests/styles.less"), $_smarty_tpl);
        ?>


<?php 
        $_smarty_tpl->_capture_stack[0][] = array("styles", null, null);
        ob_start();
        ?>
    <?php 
        $_smarty_tpl->tpl_vars['statuses'] = new Smarty_variable(fn_get_schema('call_requests', 'status_colors'), null, 0);
        ?>
    <?php 
        if ($_smarty_tpl->tpl_vars['statuses']->value) {
            ?>
    
        <?php 
            $_smarty_tpl->tpl_vars["color"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["color"]->_loop = false;
            $_smarty_tpl->tpl_vars["status"] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['statuses']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars["color"]->key => $_smarty_tpl->tpl_vars["color"]->value) {
                $_smarty_tpl->tpl_vars["color"]->_loop = true;
                $_smarty_tpl->tpl_vars["status"]->value = $_smarty_tpl->tpl_vars["color"]->key;
                ?>
            .cr-btn-status-<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['status']->value, ENT_QUOTES, 'UTF-8');
                ?>
 {
                .buttonBackground(lighten(<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['color']->value, ENT_QUOTES, 'UTF-8');
                ?>
, 15%), darken(<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['color']->value, ENT_QUOTES, 'UTF-8');
                ?>
, 5%));
            }
        <?php 
            }
            ?>
    <?php 
        }
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>

<?php 
        echo smarty_function_style(array('content' => Smarty::$_smarty_vars['capture']['styles'], 'type' => "less"), $_smarty_tpl);
        ?>

<?php 
    }
    function content_55ccdf85951d48_47650068($_smarty_tpl)
    {
        if (!is_callable('smarty_block_styles')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.styles.php';
        }
        if (!is_callable('smarty_function_style')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.style.php';
        }
        if (!is_callable('smarty_block_hook')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php';
        }
        $_smarty_tpl->smarty->_tag_stack[] = array('styles', array());
        $_block_repeat = true;
        echo smarty_block_styles(array(), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

	<?php 
            echo smarty_function_style(array('src' => "lib/ui/jqueryui.css"), $_smarty_tpl);
            ?>

    <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:styles"));
            $_block_repeat = true;
            echo smarty_block_hook(array('name' => "index:styles"), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

        <?php 
                echo smarty_function_style(array('src' => "styles.less"), $_smarty_tpl);
                ?>

        <?php 
                echo smarty_function_style(array('src' => "glyphs.css"), $_smarty_tpl);
                ?>

        <?php 
                if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['translation'] || $_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design']) {
                    ?>
        <?php 
                    echo smarty_function_style(array('src' => "design_mode.css"), $_smarty_tpl);
                    ?>

        <?php 
                }
                ?>
        <?php 
                echo $_smarty_tpl->getSubTemplate("views/statuses/components/styles.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                ?>

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

<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_styles(array(), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
    }
    function content_55db8bda2f8579_12773334($_smarty_tpl)
    {
        if (!is_callable('smarty_block_styles')) {
            include '/var/www/html/market/app/functions/smarty_plugins/block.styles.php';
        }
        if (!is_callable('smarty_function_style')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.style.php';
        }
        if (!is_callable('smarty_block_hook')) {
            include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php';
        }
        $_smarty_tpl->smarty->_tag_stack[] = array('styles', array());
        $_block_repeat = true;
        echo smarty_block_styles(array(), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

	<?php 
            echo smarty_function_style(array('src' => "ui/jqueryui.css"), $_smarty_tpl);
            ?>

    <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:styles"));
            $_block_repeat = true;
            echo smarty_block_hook(array('name' => "index:styles"), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

        <?php 
                echo smarty_function_style(array('src' => "styles.less"), $_smarty_tpl);
                ?>

        <?php 
                echo smarty_function_style(array('src' => "glyphs.css"), $_smarty_tpl);
                ?>

        <?php 
                if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['live_editor'] || $_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design']) {
                    ?>
        <?php 
                    echo smarty_function_style(array('src' => "design_mode.css"), $_smarty_tpl);
                    ?>

        <?php 
                }
                ?>
        <?php 
                echo $_smarty_tpl->getSubTemplate("views/statuses/components/styles.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                ?>

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

<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_styles(array(), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
    }
    function content_55ccf16de31ed7_69152506($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php';
        }
        if (!is_callable('smarty_function_style')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.style.php';
        }
        if (!is_callable('smarty_block_hook')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php';
        }
        if (!is_callable('smarty_modifier_replace')) {
            include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/modifier.replace.php';
        }
        if (!is_callable('smarty_function_split')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.split.php';
        }
        fn_preload_lang_vars(array('current_theme', 'general', 'directory', 'name', 'description', 'theme_styles_and_layouts', 'layout', 'theme_editor.style', 'visual_editor', 'theme_no_styles_text', 'visual_editor', 'remove_theme', 'layouts', 'theme_editor.styles', 'active', 'activate', 'use_this_style', 'currently_in_use', 'activate', 'no_themes_available', 'install', 'preview', 'install', 'no_themes_available', 'clone_theme', 'rebuild_cache_automatically', 'rebuild_cache_automatically_tooltip', 'theme_information', 'name', 'directory', 'layouts', 'theme_editor.styles', 'developer', 'marketplace', 'marketplace_find_more', 'upload_theme', 'upload_theme', 'clone_theme', 'themes'));
        echo smarty_function_script(array('src' => "js/lib/bootstrap_switch/js/bootstrapSwitch.js"), $_smarty_tpl);
        ?>

<?php 
        echo smarty_function_style(array('src' => "lib/bootstrap_switch/stylesheets/bootstrapSwitch.css"), $_smarty_tpl);
        ?>


<?php 
        echo $_smarty_tpl->getSubTemplate("common/previewer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>


<?php 
        $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null);
        ob_start();
        ?>

<?php 
        $_smarty_tpl->_capture_stack[0][] = array("upload_theme", null, null);
        ob_start();
        ?>
    <?php 
        echo $_smarty_tpl->getSubTemplate("views/themes/components/upload_theme.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

<?php 
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>

<?php 
        $_smarty_tpl->tpl_vars['theme'] = new Smarty_variable($_smarty_tpl->tpl_vars['available_themes']->value['current'], null, 0);
        $_smarty_tpl->tpl_vars['theme_name'] = new Smarty_variable($_smarty_tpl->tpl_vars['available_themes']->value['current']['theme_name'], null, 0);
        ?>

<div class="themes" id="themes_list">

<h4><?php 
        echo $_smarty_tpl->__("current_theme");
        ?>
</h4>
<div class="row">
    <?php 
        $_smarty_tpl->_capture_stack[0][] = array("add_new_picker", null, null);
        ob_start();
        ?>
        <form action="<?php 
        echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');
        ?>
" method="post" name="clone_theme_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8');
        ?>
_form" class="cm-ajax cm-comet cm-form-dialog-closer form-horizontal form-edit ">
            <input type="hidden" name="theme_data[theme_src]" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8');
        ?>
">
            <input type="hidden" name="result_ids" value="themes_list,elm_sidebar">

            <div class="add-new-object-group">
                <div class="tabs cm-j-tabs">
                    <ul class="nav nav-tabs">
                        <li id="tab_clone_theme_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8');
        ?>
" class="cm-js active"><a><?php 
        echo $_smarty_tpl->__("general");
        ?>
</a></li>
                    </ul>
                </div>

                <div class="cm-tabs-content" id="content_tab_clone_theme_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8');
        ?>
">
                    <fieldset>
                        <div class="control-group">
                            <label class="control-label cm-required" for="elm_theme_dir_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8');
        ?>
"><?php 
        echo $_smarty_tpl->__("directory");
        ?>
</label>
                            <div class="controls">
                                <input type="text" id="elm_theme_dir_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8');
        ?>
" name="theme_data[theme_dest]" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8');
        ?>
_clone" />
                            </div>
                        </div>

                        <div class="control-group">
                            <label class="control-label" for="elm_theme_title_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8');
        ?>
"><?php 
        echo $_smarty_tpl->__("name");
        ?>
</label>
                            <div class="controls">
                                <input type="text" id="elm_theme_title_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8');
        ?>
" name="theme_data[title]" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['theme']->value['title'], ENT_QUOTES, 'UTF-8');
        ?>
" />
                            </div>
                        </div>

                        <div class="control-group">
                            <label class="control-label" for="elm_theme_desc_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8');
        ?>
"><?php 
        echo $_smarty_tpl->__("description");
        ?>
</label>
                            <div class="controls">
                                <textarea name="theme_data[description]" id="elm_theme_desc_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8');
        ?>
" cols="50" rows="4" class="span9"><?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['theme']->value['description'], ENT_QUOTES, 'UTF-8');
        ?>
</textarea>
                            </div>
                        </div>

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

            <div class="buttons-container">
                <?php 
        echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[themes.clone]", 'cancel_action' => "close", 'save' => true), 0);
        ?>

            </div>

        </form>
    <?php 
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>

<?php 
        if ($_smarty_tpl->tpl_vars['theme']->value['screenshot']) {
            ?>
    <div id="theme_image">
        <?php 
            if ($_smarty_tpl->tpl_vars['theme']->value['styles'][$_smarty_tpl->tpl_vars['layout']->value['style_id']]['image']) {
                ?>
            <img class="span4 screenshot" width="250" src="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['theme']->value['styles'][$_smarty_tpl->tpl_vars['layout']->value['style_id']]['image'], ENT_QUOTES, 'UTF-8');
                ?>
">
        <?php 
            } else {
                ?>
            <div class="no-image span4"><i class="glyph-image" title="No image"></i></div>
        <?php 
            }
            ?>

    <!--theme_image--></div>
<?php 
        }
        ?>
<div class="span8 theme-description" id="theme_description_container">
    <h4 class="lead"><?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['theme']->value['title'], ENT_QUOTES, 'UTF-8');
        if ($_smarty_tpl->tpl_vars['layout']->value['style_name']) {
            ?>
: <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['layout']->value['style_name'], ENT_QUOTES, 'UTF-8');
        }
        ?>
</h4>
    <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "themes:current_theme_options"));
        $_block_repeat = true;
        echo smarty_block_hook(array('name' => "themes:current_theme_options"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

    <?php 
            if ($_smarty_tpl->tpl_vars['theme']->value['styles']) {
                ?>
    <span class="muted"><?php 
                echo $_smarty_tpl->__("theme_styles_and_layouts");
                ?>
</span>
        <table class="table table-middle">
            <thead>
                <tr>
                    <th><?php 
                echo $_smarty_tpl->__("layout");
                ?>
</th>
                    <th><?php 
                echo $_smarty_tpl->__("theme_editor.style");
                ?>
</th>
                    <th> </th>
                </tr>
            </thead>
            <tbody>
                <?php 
                $_smarty_tpl->tpl_vars['available_layout'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['available_layout']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['theme']->value['layouts'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['available_layout']->key => $_smarty_tpl->tpl_vars['available_layout']->value) {
                    $_smarty_tpl->tpl_vars['available_layout']->_loop = true;
                    ?>
                    <tr>
                        <td><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['available_layout']->value['name'], ENT_QUOTES, 'UTF-8');
                    ?>
</td>
                        <td>
                            <?php 
                    $_smarty_tpl->tpl_vars['styles_descr'] = new Smarty_variable(array(), null, 0);
                    ?>
                            <?php 
                    $_smarty_tpl->tpl_vars['style'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['style']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['available_themes']->value['current']['styles'];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['style']->key => $_smarty_tpl->tpl_vars['style']->value) {
                        $_smarty_tpl->tpl_vars['style']->_loop = true;
                        ?>
                                <?php 
                        $_smarty_tpl->createLocalArrayVariable('styles_descr', null, 0);
                        $_smarty_tpl->tpl_vars['styles_descr']->value[$_smarty_tpl->tpl_vars['style']->value['style_id']] = $_smarty_tpl->tpl_vars['style']->value['name'];
                        ?>
                            <?php 
                    }
                    ?>

                            <?php 
                    echo $_smarty_tpl->getSubTemplate("common/select_popup.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['available_layout']->value['layout_id'], 'status' => $_smarty_tpl->tpl_vars['available_layout']->value['style_id'], 'items_status' => $_smarty_tpl->tpl_vars['styles_descr']->value, 'update_controller' => "themes.styles", 'status_target_id' => "theme_description_container,themes_list", 'statuses' => $_smarty_tpl->tpl_vars['available_themes']->value['current']['styles'], 'btn_meta' => mb_strtolower("btn-text o-status-" . (string) $_smarty_tpl->tpl_vars['o']->value['status'], 'UTF-8'), 'default_status_text' => __('none')), 0);
                    ?>

                        </td>
                        <td class="right">
                            <?php 
                    if ($_smarty_tpl->tpl_vars['available_layout']->value['is_default']) {
                        ?>
                                <?php 
                        $_smarty_tpl->tpl_vars['is_default'] = new Smarty_variable('btn-small btn-primary', null, 0);
                        ?>
                            <?php 
                    } else {
                        ?>
                                <?php 
                        $_smarty_tpl->tpl_vars['is_default'] = new Smarty_variable('btn-small', null, 0);
                        ?>
                            <?php 
                    }
                    ?>
                            <?php 
                    echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => "customization.update_mode?type=theme_editor&status=enable&s_layout=" . (string) $_smarty_tpl->tpl_vars['available_layout']->value['layout_id'], 'but_text' => __("visual_editor"), 'but_role' => "action", 'but_meta' => $_smarty_tpl->tpl_vars['is_default']->value, 'but_target' => "_blank"), 0);
                    ?>

                        </td>
                    <tr>
                <?php 
                }
                ?>
            </tbody>
        </table>
    <?php 
            } else {
                ?>
        <div class="theme-no-styles">
            <span class="muted"><?php 
                echo $_smarty_tpl->__("theme_no_styles_text");
                ?>
</span>
            <?php 
                echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => "customization.update_mode?type=theme_editor&status=enable", 'but_text' => __("visual_editor"), 'but_role' => "action", 'but_meta' => "btn-primary"), 0);
                ?>

        </div>
    <?php 
            }
            ?>
    <?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_hook(array('name' => "themes:current_theme_options"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

<!--theme_description_container--></div>
</div>

<?php 
        $_smarty_tpl->_capture_stack[0][] = array("tabsbox", null, null);
        ob_start();
        ?>

<div id="content_installed_themes">
    <div id="themes_manage" class="themes-current clearfix">

    <div class="themes-available">
    <?php 
        if ($_smarty_tpl->tpl_vars['available_themes']->value['installed']) {
            ?>
    <?php 
            $_smarty_tpl->tpl_vars['installed_theme'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['installed_theme']->_loop = false;
            $_smarty_tpl->tpl_vars['theme_name'] = new Smarty_Variable();
            $_from = array_reverse($_smarty_tpl->tpl_vars['available_themes']->value['installed']);
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['installed_theme']->key => $_smarty_tpl->tpl_vars['installed_theme']->value) {
                $_smarty_tpl->tpl_vars['installed_theme']->_loop = true;
                $_smarty_tpl->tpl_vars['theme_name']->value = $_smarty_tpl->tpl_vars['installed_theme']->key;
                ?>
        <div class="row">
        <?php 
                if ($_smarty_tpl->tpl_vars['installed_theme']->value) {
                    ?>
            <div class="theme-subtitle">
                <?php 
                    $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "themes:remove_theme"));
                    $_block_repeat = true;
                    echo smarty_block_hook(array('name' => "themes:remove_theme"), null, $_smarty_tpl, $_block_repeat);
                    while ($_block_repeat) {
                        ob_start();
                        ?>

                <a class="cm-confirm cm-tooltip btn pull-right btn-small" data-ce-tooltip-position="top" href="<?php 
                        echo htmlspecialchars(fn_url("themes.delete?theme_name=" . (string) $_smarty_tpl->tpl_vars['theme_name']->value), ENT_QUOTES, 'UTF-8');
                        ?>
" title="<?php 
                        echo $_smarty_tpl->__("remove_theme");
                        ?>
"> <i class="icon-trash"></i> </a>
                <?php 
                        $_block_content = ob_get_clean();
                        $_block_repeat = false;
                        echo smarty_block_hook(array('name' => "themes:remove_theme"), $_block_content, $_smarty_tpl, $_block_repeat);
                    }
                    array_pop($_smarty_tpl->smarty->_tag_stack);
                    ?>

                <span class="label pull-right"><?php 
                    echo htmlspecialchars(count($_smarty_tpl->tpl_vars['installed_theme']->value['layouts']), ENT_QUOTES, 'UTF-8');
                    ?>
 <?php 
                    echo $_smarty_tpl->__("layouts");
                    ?>
</span>
                <span class="label pull-right"><?php 
                    echo htmlspecialchars(count($_smarty_tpl->tpl_vars['installed_theme']->value['styles']), ENT_QUOTES, 'UTF-8');
                    ?>
 <?php 
                    echo $_smarty_tpl->__("theme_editor.styles");
                    ?>
</span>
                <h4 id="anchor_<?php 
                    echo htmlspecialchars(smarty_modifier_replace($_smarty_tpl->tpl_vars['installed_theme']->value['title'], ' ', '_'), ENT_QUOTES, 'UTF-8');
                    ?>
"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['installed_theme']->value['title'], ENT_QUOTES, 'UTF-8');
                    if ($_smarty_tpl->tpl_vars['theme']->value['theme_name'] == $_smarty_tpl->tpl_vars['theme_name']->value) {
                        ?>
 <span class="label label-success"><?php 
                        echo $_smarty_tpl->__("active");
                        ?>
</span><?php 
                    }
                    ?>
</h4>
            </div>
            <?php 
                    if ($_smarty_tpl->tpl_vars['installed_theme']->value['styles']) {
                        ?>
                <?php 
                        $_smarty_tpl->tpl_vars['style'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['style']->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['installed_theme']->value['styles'];
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['style']->key => $_smarty_tpl->tpl_vars['style']->value) {
                            $_smarty_tpl->tpl_vars['style']->_loop = true;
                            ?>
                    <div class="span4">
                        <div class="theme <?php 
                            if ($_smarty_tpl->tpl_vars['style']->value['style_id'] == $_smarty_tpl->tpl_vars['layout']->value['style_id'] && $_smarty_tpl->tpl_vars['layout']->value['theme_name'] == $_smarty_tpl->tpl_vars['theme_name']->value) {
                                ?>
theme-selected<?php 
                            }
                            ?>
">
                            <div class="theme-title">
                               <span title="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['installed_theme']->value['title'], ENT_QUOTES, 'UTF-8');
                            ?>
"><?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['installed_theme']->value['title'], ENT_QUOTES, 'UTF-8');
                            ?>
: <?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['style']->value['name'], ENT_QUOTES, 'UTF-8');
                            ?>
</span>
                            </div>
                            <div class="theme-use">
                                <?php 
                            if ($_smarty_tpl->tpl_vars['theme_name']->value != $_smarty_tpl->tpl_vars['runtime']->value['layout']['theme_name']) {
                                ?>
                                    <?php 
                                $_smarty_tpl->tpl_vars['but_text'] = new Smarty_variable($_smarty_tpl->__("activate"), null, 0);
                                ?>
                                <?php 
                            } else {
                                ?>
                                    <?php 
                                $_smarty_tpl->tpl_vars['but_text'] = new Smarty_variable($_smarty_tpl->__("use_this_style"), null, 0);
                                ?>
                                <?php 
                            }
                            ?>

                                <?php 
                            if ($_smarty_tpl->tpl_vars['style']->value['style_id'] == $_smarty_tpl->tpl_vars['layout']->value['style_id'] && $_smarty_tpl->tpl_vars['layout']->value['theme_name'] == $_smarty_tpl->tpl_vars['theme_name']->value) {
                                ?>
                                    <a href="<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['style']->value['image'], ENT_QUOTES, 'UTF-8');
                                ?>
" data-ca-image-id="img_<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8');
                                ?>
_<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['style']->value['style_id'], ENT_QUOTES, 'UTF-8');
                                ?>
" class="theme-in-use cm-previewer"><?php 
                                echo $_smarty_tpl->__("currently_in_use");
                                ?>
</a>
                                <?php 
                            } else {
                                ?>
                                    <?php 
                                echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => "themes.set?theme_name=" . (string) $_smarty_tpl->tpl_vars['theme_name']->value . "&amp;style=" . (string) $_smarty_tpl->tpl_vars['style']->value['style_id'], 'but_text' => $_smarty_tpl->tpl_vars['but_text']->value, 'but_role' => "action", 'but_meta' => "btn-primary"), 0);
                                ?>

                                <?php 
                            }
                            ?>
                            </div>
                            <?php 
                            if ($_smarty_tpl->tpl_vars['style']->value['image']) {
                                ?>
                                <a id="image_img_<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8');
                                ?>
_<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['style']->value['style_id'], ENT_QUOTES, 'UTF-8');
                                ?>
" href="<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['style']->value['image'], ENT_QUOTES, 'UTF-8');
                                ?>
" data-ca-image-id="img_<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8');
                                ?>
_<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['style']->value['style_id'], ENT_QUOTES, 'UTF-8');
                                ?>
" class="cm-previewer">
                                    <img class="screenshot" src="<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['style']->value['image'], ENT_QUOTES, 'UTF-8');
                                ?>
" alt="" width="250">
                                </a>
                            <?php 
                            } else {
                                ?>
                                <div class="no-image"><i class="glyph-image" title="No image"></i></div>
                            <?php 
                            }
                            ?>
                        </div>
                    </div>
                <?php 
                        }
                        ?>
                
            <?php 
                    } else {
                        ?>
                <div class="span4">
                    <div class="theme">
                        <div class="theme-title">
                           <span title="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['theme']->value['title'], ENT_QUOTES, 'UTF-8');
                        ?>
"><?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['installed_theme']->value['title'], ENT_QUOTES, 'UTF-8');
                        ?>
</span>
                        </div>
                        <?php 
                        if ($_smarty_tpl->tpl_vars['theme_name']->value != $_smarty_tpl->tpl_vars['runtime']->value['layout']['theme_name']) {
                            ?>
                            <div class="theme-use">
                                <?php 
                            echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => "themes.set?theme_name=" . (string) $_smarty_tpl->tpl_vars['theme_name']->value . "&amp;style=" . (string) $_smarty_tpl->tpl_vars['style']->value['style_id'], 'but_text' => __("activate"), 'but_role' => "action", 'but_meta' => "btn-primary"), 0);
                            ?>

                            </div>
                        <?php 
                        }
                        ?>

                        <?php 
                        if ($_smarty_tpl->tpl_vars['installed_theme']->value['screenshot']) {
                            ?>
                            <a id="image_img_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8');
                            ?>
" href="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['installed_theme']->value['screenshot'], ENT_QUOTES, 'UTF-8');
                            ?>
" data-ca-image-id="img_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8');
                            ?>
" class="cm-previewer"><img class="screenshot" src="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['installed_theme']->value['screenshot'], ENT_QUOTES, 'UTF-8');
                            ?>
" alt="" width="250"></a>
                        <?php 
                        }
                        ?>
                    </div>
                </div>
            <?php 
                    }
                    ?>
        <?php 
                }
                ?>
        <!--/row--></div>
    <?php 
            }
            ?>
    <?php 
        } else {
            ?>
        <div class="no-items">
            <?php 
            echo $_smarty_tpl->__("no_themes_available");
            ?>

        </div>
    <?php 
        }
        ?>
    </div>
</div>
</div>
<div id="content_browse_all_available_themes">

<?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "themes:install_themes"));
        $_block_repeat = true;
        echo smarty_block_hook(array('name' => "themes:install_themes"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>


    <?php 
            echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['available_themes']->value['repo'], 'size' => 3, 'assign' => "splitted_themes", 'simple' => true), $_smarty_tpl);
            ?>

    <div class="themes-available">
    
    <?php 
            if ($_smarty_tpl->tpl_vars['available_themes']->value['repo']) {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["repo_themes"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["repo_themes"]->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['splitted_themes']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars["repo_themes"]->key => $_smarty_tpl->tpl_vars["repo_themes"]->value) {
                    $_smarty_tpl->tpl_vars["repo_themes"]->_loop = true;
                    ?>
    <div class="row">
    <?php 
                    $_smarty_tpl->tpl_vars["repo_theme"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["repo_theme"]->_loop = false;
                    $_smarty_tpl->tpl_vars["theme_name"] = new Smarty_Variable();
                    $_from = $_smarty_tpl->tpl_vars['repo_themes']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars["repo_theme"]->key => $_smarty_tpl->tpl_vars["repo_theme"]->value) {
                        $_smarty_tpl->tpl_vars["repo_theme"]->_loop = true;
                        $_smarty_tpl->tpl_vars["theme_name"]->value = $_smarty_tpl->tpl_vars["repo_theme"]->key;
                        ?>
        <?php 
                        if ($_smarty_tpl->tpl_vars['repo_theme']->value) {
                            ?>
            <div class="span4">
                <div class="theme">

                    <div class="theme-title">
                       <span title="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['theme']->value['title'], ENT_QUOTES, 'UTF-8');
                            ?>
"><?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['repo_theme']->value['title'], ENT_QUOTES, 'UTF-8');
                            ?>
</span>
                    </div>

                    <div class="theme-use">
                        <?php 
                            echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => "themes.install?theme_name=" . (string) $_smarty_tpl->tpl_vars['theme_name']->value, 'but_text' => __("install"), 'but_role' => "action", 'but_meta' => "btn-primary cm-comet cm-ajax", 'but_target_id' => "themes_list"), 0);
                            ?>

                    </div>

                    <?php 
                            if ($_smarty_tpl->tpl_vars['repo_theme']->value['screenshot']) {
                                ?>
                    <a id="image_img_<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8');
                                ?>
" href="<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['repo_theme']->value['screenshot'], ENT_QUOTES, 'UTF-8');
                                ?>
" data-ca-image-id="img_<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8');
                                ?>
" class="cm-previewer"><img class="screenshot" src="<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['repo_theme']->value['screenshot'], ENT_QUOTES, 'UTF-8');
                                ?>
" alt="" width="250"></a>
                    <?php 
                            }
                            ?>

                    <div class="theme-actions">
                        <?php 
                            $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null);
                            ob_start();
                            ?>

                            <?php 
                            if ($_smarty_tpl->tpl_vars['repo_theme']->value['screenshot']) {
                                ?>
                            <li><a id="image_img_<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8');
                                ?>
" href="<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['repo_theme']->value['screenshot'], ENT_QUOTES, 'UTF-8');
                                ?>
" data-ca-image-id="img_button_<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8');
                                ?>
" class="cm-previewer"><?php 
                                echo $_smarty_tpl->__("preview");
                                ?>
</a></li>
                            <?php 
                            }
                            ?>

                            
                            <li><a class="cm-comet cm-ajax" data-ca-target-id="themes_list" href="<?php 
                            echo htmlspecialchars(fn_url("themes.install?theme_name=" . (string) $_smarty_tpl->tpl_vars['theme_name']->value), ENT_QUOTES, 'UTF-8');
                            ?>
" data-ca-target-id="themes_list"><?php 
                            echo $_smarty_tpl->__("install");
                            ?>
</a></li>
                        <?php 
                            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                            if (!empty($_capture_buffer)) {
                                if (isset($_capture_assign)) {
                                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                                }
                                if (isset($_capture_append)) {
                                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                                }
                                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                            } else {
                                $_smarty_tpl->capture_error();
                            }
                            ?>
                        <?php 
                            smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'], 'placement' => "right"));
                            ?>

                    </div>
                </div>
            </div>
        <?php 
                        }
                        ?>
    <?php 
                    }
                    ?>
    </div>
    <?php 
                }
                ?>
    <?php 
            } else {
                ?>
        <div class="no-items">
            <?php 
                echo $_smarty_tpl->__("no_themes_available");
                ?>

        </div>
    <?php 
            }
            ?>
    </div>
<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_hook(array('name' => "themes:install_themes"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>


    <?php 
        $_smarty_tpl->tpl_vars['theme_name'] = new Smarty_variable($_smarty_tpl->tpl_vars['available_themes']->value['current']['theme_name'], null, 0);
        ?>
    <div class="hidden" id="content_elm_clone_theme_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8');
        ?>
" title="<?php 
        echo $_smarty_tpl->__("clone_theme");
        ?>
">
        <?php 
        echo Smarty::$_smarty_vars['capture']['add_new_picker'];
        ?>

    </div>

</div>

<?php 
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        echo $_smarty_tpl->getSubTemplate("common/tabsbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('content' => Smarty::$_smarty_vars['capture']['tabsbox'], 'active_tab' => $_REQUEST['selected_section']), 0);
        ?>

<!--themes_list--></div>

<?php 
        $_smarty_tpl->_capture_stack[0][] = array("sidebar", null, null);
        ob_start();
        ?>
    <div class="container themes-side">

        <div class="sidebar-row">
            <ul class="unstyled list-with-btns">
                <li>
                    <div class="list-description">
                        <?php 
        echo $_smarty_tpl->__("rebuild_cache_automatically");
        ?>
 <i class="cm-tooltip icon-question-sign" title="<?php 
        echo $_smarty_tpl->__("rebuild_cache_automatically_tooltip");
        ?>
"></i>
                    </div>
                    <div class="switch switch-mini cm-switch-change list-btns" id="rebuild_cache_automatically">
                        <input type="checkbox" name="compile_check" value="1" <?php 
        if ($_smarty_tpl->tpl_vars['dev_modes']->value['compile_check']) {
            ?>
checked="checked"<?php 
        }
        ?>
/>
                    </div>
                </li>
            </ul>
        </div>
        <script type="text/javascript">

            (function (_, $) {
                $(_.doc).on('switch-change', '.cm-switch-change', function (e, data) {
                    var value = data.value;
                    $.ceAjax('request', fn_url("themes.update_dev_mode"), {
                        data: {
                            dev_mode: data.el.prop('name'),
                            state: value ? 1 : 0
                        }
                    });
                });

                $.ceEvent('on', 'ce.ajaxdone', function(){
                    if ($('.switch .switch-mini').length == 0) {
                        $('.switch')['bootstrapSwitch']();
                    }
                });
            }(Tygh, Tygh.$));
        </script>

        <hr>

        <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "themes:options"));
        $_block_repeat = true;
        echo smarty_block_hook(array('name' => "themes:options"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

        <div class="sidebar-row clearfix">
            <h6><?php 
            echo $_smarty_tpl->__("theme_information");
            ?>
</h6>
            <div class="row-fluid">
                <div class="span7 muted"><?php 
            echo $_smarty_tpl->__("name");
            ?>
</div>
                <div class="span5 right"><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['theme']->value['title'], ENT_QUOTES, 'UTF-8');
            ?>
</div>
            </div>
            <div class="row-fluid">
                <div class="span7 muted" title="/<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['theme_name'], ENT_QUOTES, 'UTF-8');
            ?>
"><?php 
            echo $_smarty_tpl->__("directory");
            ?>
</div>
                <div class="span5 right"><a class="pull-right" href="<?php 
            echo htmlspecialchars(fn_url("file_editor.manage?active_section=themes&selected_path=" . (string) $_smarty_tpl->tpl_vars['settings']->value['theme_name']), ENT_QUOTES, 'UTF-8');
            ?>
">/<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['theme_name'], ENT_QUOTES, 'UTF-8');
            ?>
</a></div>
            </div>
            <div class="row-fluid">
                <div class="span7 muted"><?php 
            echo $_smarty_tpl->__("layouts");
            ?>
</div>
                <div class="span5 right"><a href="<?php 
            echo htmlspecialchars(fn_url("block_manager.manage"), ENT_QUOTES, 'UTF-8');
            ?>
"><?php 
            echo htmlspecialchars(count($_smarty_tpl->tpl_vars['theme']->value['layouts']), ENT_QUOTES, 'UTF-8');
            ?>
</a></div>
            </div>
            <div class="row-fluid">
                <div class="span7 muted"><?php 
            echo $_smarty_tpl->__("theme_editor.styles");
            ?>
</div>
                <div class="span5 right"><a href="#anchor_<?php 
            echo htmlspecialchars(smarty_modifier_replace($_smarty_tpl->tpl_vars['theme']->value['title'], ' ', '_'), ENT_QUOTES, 'UTF-8');
            ?>
"><?php 
            echo htmlspecialchars(count($_smarty_tpl->tpl_vars['theme']->value['styles']), ENT_QUOTES, 'UTF-8');
            ?>
</a> </div>
            </div>
            <div class="row-fluid">
                <div class="span7 muted" ><?php 
            echo $_smarty_tpl->__("developer");
            ?>
</div>
                <div class="span5 right"><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['theme']->value['developer'], ENT_QUOTES, 'UTF-8');
            ?>
</div>
            </div>
        </div>
        <?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_hook(array('name' => "themes:options"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>


        <hr>
        <div class="sidebar-row marketplace">
            <h6><?php 
        echo $_smarty_tpl->__("marketplace");
        ?>
</h6>
            <p class="marketplace-link"><?php 
        echo $_smarty_tpl->__("marketplace_find_more", array("[href]" => $_smarty_tpl->tpl_vars['config']->value['resources']['marketplace_url']));
        ?>
</p>
        </div>
    </div>
<?php 
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>

<?php 
        $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null);
        ob_start();
        ?>
    <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "themes:adv_buttons"));
        $_block_repeat = true;
        echo smarty_block_hook(array('name' => "themes:adv_buttons"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

    <?php 
            if (fn_allowed_for("ULTIMATE") && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] || fn_allowed_for("MULTIVENDOR") && !$_smarty_tpl->tpl_vars['runtime']->value['company_id']) {
                ?>
        <?php 
                echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "upload_theme", 'text' => __("upload_theme"), 'title' => __("upload_theme"), 'content' => Smarty::$_smarty_vars['capture']['upload_theme'], 'act' => "general", 'link_class' => "cm-dialog-auto-size", 'icon' => "icon-plus", 'link_text' => ''), 0);
                ?>

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

<?php 
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>

<?php 
        $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null);
        ob_start();
        ?>
    <?php 
        $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null);
        ob_start();
        ?>
        <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "themes:tools_list"));
        $_block_repeat = true;
        echo smarty_block_hook(array('name' => "themes:tools_list"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

        <li><?php 
            smarty_template_function_btn($_smarty_tpl, array('type' => "dialog", 'text' => __("clone_theme"), 'target_id' => "content_elm_clone_theme_" . (string) $_smarty_tpl->tpl_vars['theme_name']->value));
            ?>
</li>
        <?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_hook(array('name' => "themes:tools_list"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

    <?php 
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>
    <?php 
        smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list']));
        ?>

<?php 
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>

<?php 
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ob_start();
        echo $_smarty_tpl->__("themes");
        $_tmp1 = ob_get_clean();
        echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_tmp1, 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons']), 0);
        ?>

<?php 
    }