function content_55ccf16de3f093_82615807($_smarty_tpl)
 {
     if (!is_callable('smarty_function_script')) {
         include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php';
     }
     echo smarty_function_script(array('src' => "js/tygh/previewers/" . (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['default_image_previewer'] . ".previewer.js"), $_smarty_tpl);
 }
 function content_55db8bdb7dc285_36548049($_smarty_tpl)
 {
     if (!is_callable('smarty_function_script')) {
         include '/var/www/html/market/app/functions/smarty_plugins/function.script.php';
     }
     echo smarty_function_script(array('src' => "js/addons/seo/func.js"), $_smarty_tpl);
 }
 function content_55dc7ca79c4f85_65632726($_smarty_tpl)
 {
     if (!is_callable('smarty_function_script')) {
         include '/var/www/html/market/app/functions/smarty_plugins/function.script.php';
     }
     echo smarty_function_script(array('src' => "js/tygh/previewers/" . (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['default_image_previewer'] . ".previewer.js"), $_smarty_tpl);
 }
 function content_55ccdf8630db88_05660707($_smarty_tpl)
 {
     if (!is_callable('smarty_function_script')) {
         include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php';
     }
     echo smarty_function_script(array('src' => "js/addons/seo/func.js"), $_smarty_tpl);
 }
 function content_55db8bdb7defc2_46995987($_smarty_tpl)
 {
     if (!is_callable('smarty_function_script')) {
         include '/var/www/html/market/app/functions/smarty_plugins/function.script.php';
     }
     echo smarty_function_script(array('src' => "js/addons/hybrid_auth/func.js"), $_smarty_tpl);
 }
    function content_55ccdf8630b1a0_08184262($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php';
        }
        echo smarty_function_script(array('src' => "js/addons/buy_together/func.js"), $_smarty_tpl);
        ?>

<?php 
    }
    function content_55cddb243ea151_79018599($_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_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_script(array('src' => "js/tygh/previewers/" . (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['default_image_previewer'] . ".previewer.js"), $_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="common/previewer.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "common/previewer.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_script(array('src' => "js/tygh/previewers/" . (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['default_image_previewer'] . ".previewer.js"), $_smarty_tpl);
        }
    }
    function content_55ccec9cc493e2_70495317($_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_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_script(array('src' => "js/addons/hybrid_auth/func.js"), $_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/scripts.post.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "addons/hybrid_auth/hooks/index/scripts.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_script(array('src' => "js/addons/hybrid_auth/func.js"), $_smarty_tpl);
        }
    }
    function content_55e61f9b306642_99798759($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.script.php';
        }
        echo smarty_function_script(array('src' => "js/tygh/node_cloning.js"), $_smarty_tpl);
        ?>


<?php 
        $_smarty_tpl->tpl_vars["tag_level"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['tag_level']->value) === null || $tmp === '' ? "1" : $tmp, null, 0);
        if ($_smarty_tpl->tpl_vars['only_delete']->value != "Y") {
            if (!$_smarty_tpl->tpl_vars['hide_add']->value) {
                echo $_smarty_tpl->getSubTemplate("buttons/add_empty_item.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_onclick' => "Tygh." . "\$" . "('#box_' + this.id).cloneNode(" . (string) $_smarty_tpl->tpl_vars['tag_level']->value . "); " . (string) $_smarty_tpl->tpl_vars['on_add']->value, 'item_id' => $_smarty_tpl->tpl_vars['item_id']->value), 0);
            }
            if (!$_smarty_tpl->tpl_vars['hide_clone']->value) {
                echo $_smarty_tpl->getSubTemplate("buttons/clone_item.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_onclick' => "Tygh." . "\$" . "('#box_' + this.id).cloneNode(" . (string) $_smarty_tpl->tpl_vars['tag_level']->value . ", true);", 'item_id' => $_smarty_tpl->tpl_vars['item_id']->value), 0);
            }
        }
        echo $_smarty_tpl->getSubTemplate("buttons/remove_item.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('only_delete' => $_smarty_tpl->tpl_vars['only_delete']->value, 'but_class' => "cm-delete-row"), 0);
    }
    function content_55ccecdbe676b9_13312280($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php';
        }
        echo smarty_function_script(array('src' => "js/tygh/node_cloning.js"), $_smarty_tpl);
        ?>


<?php 
        $_smarty_tpl->tpl_vars["tag_level"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['tag_level']->value) === null || $tmp === '' ? "1" : $tmp, null, 0);
        if ($_smarty_tpl->tpl_vars['only_delete']->value != "Y") {
            if (!$_smarty_tpl->tpl_vars['hide_add']->value) {
                echo $_smarty_tpl->getSubTemplate("buttons/add_empty_item.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_onclick' => "Tygh." . "\$" . "('#box_' + this.id).cloneNode(" . (string) $_smarty_tpl->tpl_vars['tag_level']->value . "); " . (string) $_smarty_tpl->tpl_vars['on_add']->value, 'item_id' => $_smarty_tpl->tpl_vars['item_id']->value), 0);
            }
            if (!$_smarty_tpl->tpl_vars['hide_clone']->value) {
                echo $_smarty_tpl->getSubTemplate("buttons/clone_item.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_onclick' => "Tygh." . "\$" . "('#box_' + this.id).cloneNode(" . (string) $_smarty_tpl->tpl_vars['tag_level']->value . ", true);", 'item_id' => $_smarty_tpl->tpl_vars['item_id']->value), 0);
            }
        }
        echo $_smarty_tpl->getSubTemplate("buttons/link_to_product.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_onclick' => "alert('test legatura cu un produs');", 'item_id' => $_smarty_tpl->tpl_vars['option_variant_id']->value, 'product_id' => $_smarty_tpl->tpl_vars['product_id']->value, 'linked_product_id' => $_smarty_tpl->tpl_vars['required_product_id']->value), 0);
        echo $_smarty_tpl->getSubTemplate("buttons/remove_item.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('only_delete' => $_smarty_tpl->tpl_vars['only_delete']->value, 'but_class' => "cm-delete-row"), 0);
    }
    function content_55cceca0400fe4_85591749($_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_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        fn_preload_lang_vars(array('save_and_close', 'specify_options', 'specify_options', 'save_and_close', 'specify_options', 'specify_options', 'total_list_price', 'price_for_all', 'add_all_to_cart', 'sign_in_to_view_price', 'save_and_close', 'specify_options', 'specify_options', 'save_and_close', 'specify_options', 'specify_options', 'total_list_price', 'price_for_all', 'add_all_to_cart', 'sign_in_to_view_price'));
        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();
            ?>

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


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

    <?php 
                if (!$_smarty_tpl->tpl_vars['config']->value['tweaks']['disable_dhtml'] && !$_smarty_tpl->tpl_vars['no_ajax']->value) {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars["is_ajax"] = new Smarty_variable(true, null, 0);
                    ?>
    <?php 
                }
                ?>
    
    <?php 
                $_smarty_tpl->tpl_vars["chain"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["chain"]->_loop = false;
                $_smarty_tpl->tpl_vars["key"] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['chains']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars["chain"]->key => $_smarty_tpl->tpl_vars["chain"]->value) {
                    $_smarty_tpl->tpl_vars["chain"]->_loop = true;
                    $_smarty_tpl->tpl_vars["key"]->value = $_smarty_tpl->tpl_vars["chain"]->key;
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars["obj_prefix"] = new Smarty_variable("bt_" . (string) $_smarty_tpl->tpl_vars['chain']->value['chain_id'], null, 0);
                    ?>
        <form <?php 
                    if ($_smarty_tpl->tpl_vars['is_ajax']->value) {
                        ?>
class="cm-ajax cm-ajax-full-render"<?php 
                    }
                    ?>
 action="<?php 
                    echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');
                    ?>
" method="post" name="chain_form_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                    ?>
" enctype="multipart/form-data">
        <input type="hidden" name="redirect_url" value="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['current_url'], ENT_QUOTES, 'UTF-8');
                    ?>
" />
        <input type="hidden" name="result_ids" value="cart_status*,wish_list*" />
        <?php 
                    if (!$_smarty_tpl->tpl_vars['stay_in_cart']->value || $_smarty_tpl->tpl_vars['is_ajax']->value) {
                        ?>
            <input type="hidden" name="redirect_url" value="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['current_url'], ENT_QUOTES, 'UTF-8');
                        ?>
" />
        <?php 
                    }
                    ?>
        <input type="hidden" name="product_data[<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['product_id'], ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                    ?>
][chain]" value="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                    ?>
" />
        <input type="hidden" name="product_data[<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['product_id'], ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                    ?>
][product_id]" value="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['product_id'], ENT_QUOTES, 'UTF-8');
                    ?>
" />

        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_smarty_tpl->tpl_vars['chain']->value['name']), 0);
                    ?>


        <div class="ty-buy-together clearfix">
            <div class="ty-buy-together__products ty-scroll-x clearfix">
            <?php 
                    if ($_smarty_tpl->tpl_vars['chain']->value['products']) {
                        ?>
                <div class="ty-buy-together__product">
                    <a href="<?php 
                        echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['chain']->value['product_id']), ENT_QUOTES, 'UTF-8');
                        ?>
"><?php 
                        echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_width' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_lists_thumbnail_width'], 'image_height' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_lists_thumbnail_height'], 'obj_id' => (string) $_smarty_tpl->tpl_vars['chain']->value['chain_id'] . "_" . (string) $_smarty_tpl->tpl_vars['chain']->value['product_id'], 'images' => $_smarty_tpl->tpl_vars['chain']->value['main_pair'], 'class' => "ty-buy-together__product-image"), 0);
                        ?>
</a>

                    <div class="ty-buy-together__product-name">
                         <a href="<?php 
                        echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['chain']->value['product_id']), ENT_QUOTES, 'UTF-8');
                        ?>
"><?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['product_name'], ENT_QUOTES, 'UTF-8');
                        ?>
</a>
                    </div>

                    <?php 
                        if ($_smarty_tpl->tpl_vars['chain']->value['product_options']) {
                            ?>
                        <?php 
                            $_smarty_tpl->_capture_stack[0][] = array("buy_together_product_options", null, null);
                            ob_start();
                            ?>
                            <div id="buy_together_options_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                            ?>
_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8');
                            ?>
" class="ty-buy-together-box">
                                <div class="cm-reload-<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['product_id'], ENT_QUOTES, 'UTF-8');
                            ?>
_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                            ?>
" id="buy_together_options_update_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                            ?>
_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8');
                            ?>
">
                                    <input type="hidden" name="appearance[show_product_options]" value="1" />
                                    <input type="hidden" name="appearance[bt_chain]" value="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                            ?>
" />
                                    <input type="hidden" name="appearance[bt_id]" value="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8');
                            ?>
" />
                                    
                                    <?php 
                            echo $_smarty_tpl->getSubTemplate("views/products/components/product_options.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => (string) $_smarty_tpl->tpl_vars['chain']->value['product_id'] . "_" . (string) $_smarty_tpl->tpl_vars['chain']->value['chain_id'], 'product_options' => $_smarty_tpl->tpl_vars['chain']->value['product_options'], 'name' => "product_data", 'no_script' => true, 'extra_id' => (string) $_smarty_tpl->tpl_vars['chain']->value['product_id'] . "_" . (string) $_smarty_tpl->tpl_vars['chain']->value['chain_id']), 0);
                            ?>

                                </div>
                                <div class="buttons-container">
                                    <?php 
                            echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_id' => "add_item_close", 'but_name' => '', 'but_text' => __("save_and_close"), 'but_role' => "action", 'but_meta' => "ty-btn__secondary cm-dialog-closer"), 0);
                            ?>

                                </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();
                            }
                            ?>
                        <div class="ty-buy-together__product-options">
                            <?php 
                            echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "buy_together_options_" . (string) $_smarty_tpl->tpl_vars['chain']->value['chain_id'] . "_" . (string) $_smarty_tpl->tpl_vars['key']->value, 'link_meta' => "ty-btn ty-btn__primary", 'text' => __("specify_options"), 'content' => Smarty::$_smarty_vars['capture']['buy_together_product_options'], 'link_text' => __("specify_options"), 'act' => "general"), 0);
                            ?>

                        </div>
                    <?php 
                        }
                        ?>
                    <div class="ty-buy-together__product-price">
                        <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['min_qty'], ENT_QUOTES, 'UTF-8');
                        ?>
&nbsp;x
                        <?php 
                        if (!(!$_smarty_tpl->tpl_vars['auth']->value['user_id'] && $_smarty_tpl->tpl_vars['settings']->value['General']['allow_anonymous_shopping'] == "hide_price_and_add_to_cart")) {
                            ?>
                            <?php 
                            if ($_smarty_tpl->tpl_vars['chain']->value['price'] != $_smarty_tpl->tpl_vars['chain']->value['discounted_price']) {
                                ?>
                                <span class="ty-strike"><?php 
                                echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['chain']->value['price']), 0);
                                ?>
</span>
                            <?php 
                            }
                            ?>
                            <?php 
                            echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['chain']->value['discounted_price']), 0);
                            ?>

                        <?php 
                        }
                        ?>
                    </div>
                </div>
            <?php 
                    }
                    ?>
            
            <?php 
                    $_smarty_tpl->tpl_vars["_product"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["_product"]->_loop = false;
                    $_smarty_tpl->tpl_vars["_id"] = new Smarty_Variable();
                    $_from = $_smarty_tpl->tpl_vars['chain']->value['products'];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars["_product"]->key => $_smarty_tpl->tpl_vars["_product"]->value) {
                        $_smarty_tpl->tpl_vars["_product"]->_loop = true;
                        $_smarty_tpl->tpl_vars["_id"]->value = $_smarty_tpl->tpl_vars["_product"]->key;
                        ?>
                <span class="ty-buy-together__plus chain-plus">+</span>
                
                <div class="ty-buy-together__product">
                    <input type="hidden" name="product_data[<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['_product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                        ?>
][product_id]" value="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['_product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                        ?>
" />
                    <a href="<?php 
                        echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['_product']->value['product_id']), ENT_QUOTES, 'UTF-8');
                        ?>
"><?php 
                        echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_width' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_lists_thumbnail_width'], 'image_height' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_lists_thumbnail_height'], 'obj_id' => (string) $_smarty_tpl->tpl_vars['chain']->value['chain_id'] . "_" . (string) $_smarty_tpl->tpl_vars['_product']->value['product_id'], 'images' => $_smarty_tpl->tpl_vars['_product']->value['main_pair']), 0);
                        ?>
</a>

                    <div class="ty-buy-together__product-name">
                        <a href="<?php 
                        echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['_product']->value['product_id']), ENT_QUOTES, 'UTF-8');
                        ?>
"><?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['_product']->value['product_name'], ENT_QUOTES, 'UTF-8');
                        ?>
</a>
                    </div>

                    <?php 
                        if ($_smarty_tpl->tpl_vars['_product']->value['product_options']) {
                            ?>
                        <?php 
                            $_smarty_tpl->tpl_vars["option"] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars["option"]->_loop = false;
                            $_from = $_smarty_tpl->tpl_vars['_product']->value['product_options'];
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            foreach ($_from as $_smarty_tpl->tpl_vars["option"]->key => $_smarty_tpl->tpl_vars["option"]->value) {
                                $_smarty_tpl->tpl_vars["option"]->_loop = true;
                                ?>
                            <div class="ty-buy-together-option"><span class="ty-buy-together-option__name"><?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['option']->value['option_name'], ENT_QUOTES, 'UTF-8');
                                ?>
</span>: <?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['option']->value['variant_name'], ENT_QUOTES, 'UTF-8');
                                ?>
</div>
                        <?php 
                            }
                            ?>
                    <?php 
                        } elseif ($_smarty_tpl->tpl_vars['_product']->value['aoc']) {
                            ?>
                        <?php 
                            $_smarty_tpl->_capture_stack[0][] = array("buy_together_product_options", null, null);
                            ob_start();
                            ?>
                            <div id="buy_together_options_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                            ?>
_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['_product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                            ?>
" class="ty-buy-together-box">
                                <div class="cm-reload-<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['_product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                            ?>
" id="buy_together_options_update_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                            ?>
_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['_id']->value, ENT_QUOTES, 'UTF-8');
                            ?>
">
                                    <input type="hidden" name="appearance[show_product_options]" value="1" />
                                    <input type="hidden" name="appearance[bt_chain]" value="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                            ?>
" />
                                    <input type="hidden" name="appearance[bt_id]" value="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['_id']->value, ENT_QUOTES, 'UTF-8');
                            ?>
" />
                                    <?php 
                            echo $_smarty_tpl->getSubTemplate("views/products/components/product_options.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['_product']->value['product_id'], 'product_options' => $_smarty_tpl->tpl_vars['_product']->value['options'], 'name' => "product_data", 'no_script' => true, 'product' => $_smarty_tpl->tpl_vars['_product']->value, 'extra_id' => $_smarty_tpl->tpl_vars['_product']->value['product_id']), 0);
                            ?>

                                </div>
                                <div class="buttons-container">
                                    <?php 
                            echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_id' => "add_item_close", 'but_name' => '', 'but_text' => __("save_and_close"), 'but_role' => "action", 'but_meta' => "ty-btn__secondary cm-dialog-closer"), 0);
                            ?>

                                </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();
                            }
                            ?>
                        <div class="ty-buy-together__product-options">
                            <?php 
                            echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "buy_together_options_" . (string) $_smarty_tpl->tpl_vars['chain']->value['chain_id'] . "_" . (string) $_smarty_tpl->tpl_vars['_product']->value['product_id'], 'link_meta' => "ty-btn ty-btn__primary", 'text' => __("specify_options"), 'content' => Smarty::$_smarty_vars['capture']['buy_together_product_options'], 'link_text' => __("specify_options"), 'act' => "general"), 0);
                            ?>

                        </div>
                    <?php 
                        }
                        ?>
                    <div class="ty-buy-together__product-price">
                        <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['_product']->value['amount'], ENT_QUOTES, 'UTF-8');
                        ?>
&nbsp;x
                        <?php 
                        if (!(!$_smarty_tpl->tpl_vars['auth']->value['user_id'] && $_smarty_tpl->tpl_vars['settings']->value['General']['allow_anonymous_shopping'] == "hide_price_and_add_to_cart")) {
                            ?>
                            <?php 
                            if ($_smarty_tpl->tpl_vars['_product']->value['price'] != $_smarty_tpl->tpl_vars['_product']->value['discounted_price']) {
                                ?>
                                <span class="ty-strike"><?php 
                                echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['_product']->value['price']), 0);
                                ?>
</span>
                            <?php 
                            }
                            ?>
                            <?php 
                            echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['_product']->value['discounted_price']), 0);
                            ?>

                        <?php 
                        }
                        ?>
                    </div>
                </div>
            <?php 
                    }
                    ?>
            </div>
            
            <?php 
                    if ($_smarty_tpl->tpl_vars['chain']->value['description']) {
                        ?>
                <div class="ty-buy-together__description">
                    <?php 
                        echo $_smarty_tpl->tpl_vars['chain']->value['description'];
                        ?>

                </div>
            <?php 
                    }
                    ?>
            
            <?php 
                    if (!(!$_smarty_tpl->tpl_vars['auth']->value['user_id'] && $_smarty_tpl->tpl_vars['settings']->value['General']['allow_anonymous_shopping'] == "hide_price_and_add_to_cart")) {
                        ?>
                <div class="ty-buy-together-price">
                    <div class="ty-buy-together-price__old">
                        <span class="ty-buy-together-price__title"><?php 
                        echo $_smarty_tpl->__("total_list_price");
                        ?>
</span>
                        <span class="chain-old-line ty-strike"><?php 
                        echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['chain']->value['total_price']), 0);
                        ?>
</span>
                    </div>
                    <div class="ty-buy-together-price__new">
                        <span class="ty-buy-together-price__title"><?php 
                        echo $_smarty_tpl->__("price_for_all");
                        ?>
</span>
                        <?php 
                        echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['chain']->value['chain_price']), 0);
                        ?>

                    </div>
                </div>
                <?php 
                        if (!(!$_smarty_tpl->tpl_vars['auth']->value['user_id'] && $_smarty_tpl->tpl_vars['settings']->value['General']['allow_anonymous_shopping'] == "hide_add_to_cart_button")) {
                            ?>
                    <div width="100%" class="buttons-container cm-ty-buy-together-submit" id="wrap_chain_button_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                            ?>
">
                            <?php 
                            echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("add_all_to_cart"), 'but_id' => "chain_button_" . (string) $_smarty_tpl->tpl_vars['chain']->value['chain_id'], 'but_meta' => "ty-btn__secondary", 'but_name' => "dispatch[checkout.add]", 'but_role' => "action", 'obj_id' => $_smarty_tpl->tpl_vars['obj_id']->value), 0);
                            ?>

                    </div>
                <?php 
                        }
                        ?>
            <?php 
                    } else {
                        ?>
            <p><?php 
                        echo $_smarty_tpl->__("sign_in_to_view_price");
                        ?>
</p>
            <?php 
                    }
                    ?>
        </div>
        
        </form>
    <?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();
            }
            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/buy_together/blocks/product_tabs/buy_together.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "addons/buy_together/blocks/product_tabs/buy_together.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 {
            ?>

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


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

    <?php 
                if (!$_smarty_tpl->tpl_vars['config']->value['tweaks']['disable_dhtml'] && !$_smarty_tpl->tpl_vars['no_ajax']->value) {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars["is_ajax"] = new Smarty_variable(true, null, 0);
                    ?>
    <?php 
                }
                ?>
    
    <?php 
                $_smarty_tpl->tpl_vars["chain"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["chain"]->_loop = false;
                $_smarty_tpl->tpl_vars["key"] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['chains']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars["chain"]->key => $_smarty_tpl->tpl_vars["chain"]->value) {
                    $_smarty_tpl->tpl_vars["chain"]->_loop = true;
                    $_smarty_tpl->tpl_vars["key"]->value = $_smarty_tpl->tpl_vars["chain"]->key;
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars["obj_prefix"] = new Smarty_variable("bt_" . (string) $_smarty_tpl->tpl_vars['chain']->value['chain_id'], null, 0);
                    ?>
        <form <?php 
                    if ($_smarty_tpl->tpl_vars['is_ajax']->value) {
                        ?>
class="cm-ajax cm-ajax-full-render"<?php 
                    }
                    ?>
 action="<?php 
                    echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');
                    ?>
" method="post" name="chain_form_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                    ?>
" enctype="multipart/form-data">
        <input type="hidden" name="redirect_url" value="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['current_url'], ENT_QUOTES, 'UTF-8');
                    ?>
" />
        <input type="hidden" name="result_ids" value="cart_status*,wish_list*" />
        <?php 
                    if (!$_smarty_tpl->tpl_vars['stay_in_cart']->value || $_smarty_tpl->tpl_vars['is_ajax']->value) {
                        ?>
            <input type="hidden" name="redirect_url" value="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['current_url'], ENT_QUOTES, 'UTF-8');
                        ?>
" />
        <?php 
                    }
                    ?>
        <input type="hidden" name="product_data[<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['product_id'], ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                    ?>
][chain]" value="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                    ?>
" />
        <input type="hidden" name="product_data[<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['product_id'], ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                    ?>
][product_id]" value="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['product_id'], ENT_QUOTES, 'UTF-8');
                    ?>
" />

        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_smarty_tpl->tpl_vars['chain']->value['name']), 0);
                    ?>


        <div class="ty-buy-together clearfix">
            <div class="ty-buy-together__products ty-scroll-x clearfix">
            <?php 
                    if ($_smarty_tpl->tpl_vars['chain']->value['products']) {
                        ?>
                <div class="ty-buy-together__product">
                    <a href="<?php 
                        echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['chain']->value['product_id']), ENT_QUOTES, 'UTF-8');
                        ?>
"><?php 
                        echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_width' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_lists_thumbnail_width'], 'image_height' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_lists_thumbnail_height'], 'obj_id' => (string) $_smarty_tpl->tpl_vars['chain']->value['chain_id'] . "_" . (string) $_smarty_tpl->tpl_vars['chain']->value['product_id'], 'images' => $_smarty_tpl->tpl_vars['chain']->value['main_pair'], 'class' => "ty-buy-together__product-image"), 0);
                        ?>
</a>

                    <div class="ty-buy-together__product-name">
                         <a href="<?php 
                        echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['chain']->value['product_id']), ENT_QUOTES, 'UTF-8');
                        ?>
"><?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['product_name'], ENT_QUOTES, 'UTF-8');
                        ?>
</a>
                    </div>

                    <?php 
                        if ($_smarty_tpl->tpl_vars['chain']->value['product_options']) {
                            ?>
                        <?php 
                            $_smarty_tpl->_capture_stack[0][] = array("buy_together_product_options", null, null);
                            ob_start();
                            ?>
                            <div id="buy_together_options_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                            ?>
_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8');
                            ?>
" class="ty-buy-together-box">
                                <div class="cm-reload-<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['product_id'], ENT_QUOTES, 'UTF-8');
                            ?>
_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                            ?>
" id="buy_together_options_update_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                            ?>
_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8');
                            ?>
">
                                    <input type="hidden" name="appearance[show_product_options]" value="1" />
                                    <input type="hidden" name="appearance[bt_chain]" value="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                            ?>
" />
                                    <input type="hidden" name="appearance[bt_id]" value="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8');
                            ?>
" />
                                    
                                    <?php 
                            echo $_smarty_tpl->getSubTemplate("views/products/components/product_options.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => (string) $_smarty_tpl->tpl_vars['chain']->value['product_id'] . "_" . (string) $_smarty_tpl->tpl_vars['chain']->value['chain_id'], 'product_options' => $_smarty_tpl->tpl_vars['chain']->value['product_options'], 'name' => "product_data", 'no_script' => true, 'extra_id' => (string) $_smarty_tpl->tpl_vars['chain']->value['product_id'] . "_" . (string) $_smarty_tpl->tpl_vars['chain']->value['chain_id']), 0);
                            ?>

                                </div>
                                <div class="buttons-container">
                                    <?php 
                            echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_id' => "add_item_close", 'but_name' => '', 'but_text' => __("save_and_close"), 'but_role' => "action", 'but_meta' => "ty-btn__secondary cm-dialog-closer"), 0);
                            ?>

                                </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();
                            }
                            ?>
                        <div class="ty-buy-together__product-options">
                            <?php 
                            echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "buy_together_options_" . (string) $_smarty_tpl->tpl_vars['chain']->value['chain_id'] . "_" . (string) $_smarty_tpl->tpl_vars['key']->value, 'link_meta' => "ty-btn ty-btn__primary", 'text' => __("specify_options"), 'content' => Smarty::$_smarty_vars['capture']['buy_together_product_options'], 'link_text' => __("specify_options"), 'act' => "general"), 0);
                            ?>

                        </div>
                    <?php 
                        }
                        ?>
                    <div class="ty-buy-together__product-price">
                        <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['min_qty'], ENT_QUOTES, 'UTF-8');
                        ?>
&nbsp;x
                        <?php 
                        if (!(!$_smarty_tpl->tpl_vars['auth']->value['user_id'] && $_smarty_tpl->tpl_vars['settings']->value['General']['allow_anonymous_shopping'] == "hide_price_and_add_to_cart")) {
                            ?>
                            <?php 
                            if ($_smarty_tpl->tpl_vars['chain']->value['price'] != $_smarty_tpl->tpl_vars['chain']->value['discounted_price']) {
                                ?>
                                <span class="ty-strike"><?php 
                                echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['chain']->value['price']), 0);
                                ?>
</span>
                            <?php 
                            }
                            ?>
                            <?php 
                            echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['chain']->value['discounted_price']), 0);
                            ?>

                        <?php 
                        }
                        ?>
                    </div>
                </div>
            <?php 
                    }
                    ?>
            
            <?php 
                    $_smarty_tpl->tpl_vars["_product"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["_product"]->_loop = false;
                    $_smarty_tpl->tpl_vars["_id"] = new Smarty_Variable();
                    $_from = $_smarty_tpl->tpl_vars['chain']->value['products'];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars["_product"]->key => $_smarty_tpl->tpl_vars["_product"]->value) {
                        $_smarty_tpl->tpl_vars["_product"]->_loop = true;
                        $_smarty_tpl->tpl_vars["_id"]->value = $_smarty_tpl->tpl_vars["_product"]->key;
                        ?>
                <span class="ty-buy-together__plus chain-plus">+</span>
                
                <div class="ty-buy-together__product">
                    <input type="hidden" name="product_data[<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['_product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                        ?>
][product_id]" value="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['_product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                        ?>
" />
                    <a href="<?php 
                        echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['_product']->value['product_id']), ENT_QUOTES, 'UTF-8');
                        ?>
"><?php 
                        echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_width' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_lists_thumbnail_width'], 'image_height' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_lists_thumbnail_height'], 'obj_id' => (string) $_smarty_tpl->tpl_vars['chain']->value['chain_id'] . "_" . (string) $_smarty_tpl->tpl_vars['_product']->value['product_id'], 'images' => $_smarty_tpl->tpl_vars['_product']->value['main_pair']), 0);
                        ?>
</a>

                    <div class="ty-buy-together__product-name">
                        <a href="<?php 
                        echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['_product']->value['product_id']), ENT_QUOTES, 'UTF-8');
                        ?>
"><?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['_product']->value['product_name'], ENT_QUOTES, 'UTF-8');
                        ?>
</a>
                    </div>

                    <?php 
                        if ($_smarty_tpl->tpl_vars['_product']->value['product_options']) {
                            ?>
                        <?php 
                            $_smarty_tpl->tpl_vars["option"] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars["option"]->_loop = false;
                            $_from = $_smarty_tpl->tpl_vars['_product']->value['product_options'];
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            foreach ($_from as $_smarty_tpl->tpl_vars["option"]->key => $_smarty_tpl->tpl_vars["option"]->value) {
                                $_smarty_tpl->tpl_vars["option"]->_loop = true;
                                ?>
                            <div class="ty-buy-together-option"><span class="ty-buy-together-option__name"><?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['option']->value['option_name'], ENT_QUOTES, 'UTF-8');
                                ?>
</span>: <?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['option']->value['variant_name'], ENT_QUOTES, 'UTF-8');
                                ?>
</div>
                        <?php 
                            }
                            ?>
                    <?php 
                        } elseif ($_smarty_tpl->tpl_vars['_product']->value['aoc']) {
                            ?>
                        <?php 
                            $_smarty_tpl->_capture_stack[0][] = array("buy_together_product_options", null, null);
                            ob_start();
                            ?>
                            <div id="buy_together_options_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                            ?>
_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['_product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                            ?>
" class="ty-buy-together-box">
                                <div class="cm-reload-<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['_product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                            ?>
" id="buy_together_options_update_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                            ?>
_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['_id']->value, ENT_QUOTES, 'UTF-8');
                            ?>
">
                                    <input type="hidden" name="appearance[show_product_options]" value="1" />
                                    <input type="hidden" name="appearance[bt_chain]" value="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                            ?>
" />
                                    <input type="hidden" name="appearance[bt_id]" value="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['_id']->value, ENT_QUOTES, 'UTF-8');
                            ?>
" />
                                    <?php 
                            echo $_smarty_tpl->getSubTemplate("views/products/components/product_options.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['_product']->value['product_id'], 'product_options' => $_smarty_tpl->tpl_vars['_product']->value['options'], 'name' => "product_data", 'no_script' => true, 'product' => $_smarty_tpl->tpl_vars['_product']->value, 'extra_id' => $_smarty_tpl->tpl_vars['_product']->value['product_id']), 0);
                            ?>

                                </div>
                                <div class="buttons-container">
                                    <?php 
                            echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_id' => "add_item_close", 'but_name' => '', 'but_text' => __("save_and_close"), 'but_role' => "action", 'but_meta' => "ty-btn__secondary cm-dialog-closer"), 0);
                            ?>

                                </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();
                            }
                            ?>
                        <div class="ty-buy-together__product-options">
                            <?php 
                            echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "buy_together_options_" . (string) $_smarty_tpl->tpl_vars['chain']->value['chain_id'] . "_" . (string) $_smarty_tpl->tpl_vars['_product']->value['product_id'], 'link_meta' => "ty-btn ty-btn__primary", 'text' => __("specify_options"), 'content' => Smarty::$_smarty_vars['capture']['buy_together_product_options'], 'link_text' => __("specify_options"), 'act' => "general"), 0);
                            ?>

                        </div>
                    <?php 
                        }
                        ?>
                    <div class="ty-buy-together__product-price">
                        <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['_product']->value['amount'], ENT_QUOTES, 'UTF-8');
                        ?>
&nbsp;x
                        <?php 
                        if (!(!$_smarty_tpl->tpl_vars['auth']->value['user_id'] && $_smarty_tpl->tpl_vars['settings']->value['General']['allow_anonymous_shopping'] == "hide_price_and_add_to_cart")) {
                            ?>
                            <?php 
                            if ($_smarty_tpl->tpl_vars['_product']->value['price'] != $_smarty_tpl->tpl_vars['_product']->value['discounted_price']) {
                                ?>
                                <span class="ty-strike"><?php 
                                echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['_product']->value['price']), 0);
                                ?>
</span>
                            <?php 
                            }
                            ?>
                            <?php 
                            echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['_product']->value['discounted_price']), 0);
                            ?>

                        <?php 
                        }
                        ?>
                    </div>
                </div>
            <?php 
                    }
                    ?>
            </div>
            
            <?php 
                    if ($_smarty_tpl->tpl_vars['chain']->value['description']) {
                        ?>
                <div class="ty-buy-together__description">
                    <?php 
                        echo $_smarty_tpl->tpl_vars['chain']->value['description'];
                        ?>

                </div>
            <?php 
                    }
                    ?>
            
            <?php 
                    if (!(!$_smarty_tpl->tpl_vars['auth']->value['user_id'] && $_smarty_tpl->tpl_vars['settings']->value['General']['allow_anonymous_shopping'] == "hide_price_and_add_to_cart")) {
                        ?>
                <div class="ty-buy-together-price">
                    <div class="ty-buy-together-price__old">
                        <span class="ty-buy-together-price__title"><?php 
                        echo $_smarty_tpl->__("total_list_price");
                        ?>
</span>
                        <span class="chain-old-line ty-strike"><?php 
                        echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['chain']->value['total_price']), 0);
                        ?>
</span>
                    </div>
                    <div class="ty-buy-together-price__new">
                        <span class="ty-buy-together-price__title"><?php 
                        echo $_smarty_tpl->__("price_for_all");
                        ?>
</span>
                        <?php 
                        echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['chain']->value['chain_price']), 0);
                        ?>

                    </div>
                </div>
                <?php 
                        if (!(!$_smarty_tpl->tpl_vars['auth']->value['user_id'] && $_smarty_tpl->tpl_vars['settings']->value['General']['allow_anonymous_shopping'] == "hide_add_to_cart_button")) {
                            ?>
                    <div width="100%" class="buttons-container cm-ty-buy-together-submit" id="wrap_chain_button_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                            ?>
">
                            <?php 
                            echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("add_all_to_cart"), 'but_id' => "chain_button_" . (string) $_smarty_tpl->tpl_vars['chain']->value['chain_id'], 'but_meta' => "ty-btn__secondary", 'but_name' => "dispatch[checkout.add]", 'but_role' => "action", 'obj_id' => $_smarty_tpl->tpl_vars['obj_id']->value), 0);
                            ?>

                    </div>
                <?php 
                        }
                        ?>
            <?php 
                    } else {
                        ?>
            <p><?php 
                        echo $_smarty_tpl->__("sign_in_to_view_price");
                        ?>
</p>
            <?php 
                    }
                    ?>
        </div>
        
        </form>
    <?php 
                }
                ?>
    
<?php 
            }
        }
    }
    function content_55dc7cba1ff3d0_79057342($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.script.php';
        }
        if (!is_callable('smarty_block_inline_script')) {
            include '/var/www/html/market/app/functions/smarty_plugins/block.inline_script.php';
        }
        fn_preload_lang_vars(array('period', 'all', 'this_day', 'this_week', 'this_month', 'this_year', 'yesterday', 'previous_week', 'previous_month', 'previous_year', 'last_24hours', 'last_n_days', 'last_n_days', 'custom', 'select_dates'));
        if ($_smarty_tpl->tpl_vars['display']->value != "form") {
            ?>
    <div class="nowrap">
        <div class="form-inline">
<?php 
        } else {
            ?>
    <div class="sidebar-field">
<?php 
        }
        ?>
       <label for="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8');
        ?>
period_selects"><?php 
        echo $_smarty_tpl->__("period");
        ?>
:</label>
            <select name="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8');
        ?>
period" id="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8');
        ?>
period_selects">
                <option value="A" <?php 
        if ($_smarty_tpl->tpl_vars['period']->value == "A" || !$_smarty_tpl->tpl_vars['period']->value) {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("all");
        ?>
</option>
                <optgroup label="=============">
                    <option value="D" <?php 
        if ($_smarty_tpl->tpl_vars['period']->value == "D") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("this_day");
        ?>
</option>
                    <option value="W" <?php 
        if ($_smarty_tpl->tpl_vars['period']->value == "W") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("this_week");
        ?>
</option>
                    <option value="M" <?php 
        if ($_smarty_tpl->tpl_vars['period']->value == "M") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("this_month");
        ?>
</option>
                    <option value="Y" <?php 
        if ($_smarty_tpl->tpl_vars['period']->value == "Y") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("this_year");
        ?>
</option>
                </optgroup>
                <optgroup label="=============">
                    <option value="LD" <?php 
        if ($_smarty_tpl->tpl_vars['period']->value == "LD") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("yesterday");
        ?>
</option>
                    <option value="LW" <?php 
        if ($_smarty_tpl->tpl_vars['period']->value == "LW") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("previous_week");
        ?>
</option>
                    <option value="LM" <?php 
        if ($_smarty_tpl->tpl_vars['period']->value == "LM") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("previous_month");
        ?>
</option>
                    <option value="LY" <?php 
        if ($_smarty_tpl->tpl_vars['period']->value == "LY") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("previous_year");
        ?>
</option>
                </optgroup>
                <optgroup label="=============">
                    <option value="HH" <?php 
        if ($_smarty_tpl->tpl_vars['period']->value == "HH") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("last_24hours");
        ?>
</option>
                    <option value="HW" <?php 
        if ($_smarty_tpl->tpl_vars['period']->value == "HW") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("last_n_days", array("[N]" => 7));
        ?>
</option>
                    <option value="HM" <?php 
        if ($_smarty_tpl->tpl_vars['period']->value == "HM") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("last_n_days", array("[N]" => 30));
        ?>
</option>
                </optgroup>
                <optgroup label="=============">
                    <option value="C" <?php 
        if ($_smarty_tpl->tpl_vars['period']->value == "C") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("custom");
        ?>
</option>
                </optgroup>
            </select>
            
<?php 
        if ($_smarty_tpl->tpl_vars['display']->value != "form") {
            ?>
    &nbsp;&nbsp;
<?php 
        } else {
            ?>
    </div>
    <div class="sidebar-field">
<?php 
        }
        ?>
            <label<?php 
        if ($_smarty_tpl->tpl_vars['display']->value != "form") {
            ?>
 class="label-html"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("select_dates");
        ?>
:</label>
            
            <?php 
        $_smarty_tpl->tpl_vars["time_from"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['prefix']->value . "time_from", null, 0);
        ?>
            <?php 
        $_smarty_tpl->tpl_vars["time_to"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['prefix']->value . "time_to", null, 0);
        ?>
            
            <?php 
        if ($_smarty_tpl->tpl_vars['display']->value == "form") {
            ?>
                <?php 
            $_smarty_tpl->tpl_vars["date_meta"] = new Smarty_variable("input-date", null, 0);
            ?>
            <?php 
        } else {
            ?>
                <?php 
            $_smarty_tpl->tpl_vars["date_meta"] = new Smarty_variable("input-small", null, 0);
            ?>
            <?php 
        }
        ?>
            
            <?php 
        echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => (string) $_smarty_tpl->tpl_vars['prefix']->value . "f_date", 'date_name' => (string) $_smarty_tpl->tpl_vars['prefix']->value . "time_from", 'date_val' => $_smarty_tpl->tpl_vars['search']->value[$_smarty_tpl->tpl_vars['time_from']->value], 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year'], 'extra' => "onchange=\"Tygh." . "\$" . "('#" . (string) $_smarty_tpl->tpl_vars['prefix']->value . "period_selects').val('C');\"", 'date_meta' => $_smarty_tpl->tpl_vars['date_meta']->value), 0);
        ?>

            <?php 
        if ($_smarty_tpl->tpl_vars['display']->value == "form") {
            ?>
                -
            <?php 
        } else {
            ?>
                &nbsp;&nbsp;-&nbsp;&nbsp;
            <?php 
        }
        ?>
            <?php 
        echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => (string) $_smarty_tpl->tpl_vars['prefix']->value . "t_date", 'date_name' => (string) $_smarty_tpl->tpl_vars['prefix']->value . "time_to", 'date_val' => $_smarty_tpl->tpl_vars['search']->value[$_smarty_tpl->tpl_vars['time_to']->value], 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year'], 'extra' => "onchange=\"Tygh." . "\$" . "('#" . (string) $_smarty_tpl->tpl_vars['prefix']->value . "period_selects').val('C');\"", 'date_meta' => $_smarty_tpl->tpl_vars['date_meta']->value), 0);
        ?>

            
<?php 
        if ($_smarty_tpl->tpl_vars['display']->value != "form") {
            ?>
     
        </div>
    </div>
<?php 
        } else {
            ?>
    </div>
<?php 
        }
        ?>

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

<?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('inline_script', array());
        $_block_repeat = true;
        echo smarty_block_inline_script(array(), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            echo '<script';
            ?>
 type="text/javascript">
Tygh.$(document).ready(function() <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['ldelim']->value, ENT_QUOTES, 'UTF-8');
            ?>

    Tygh.$('#<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8');
            ?>
period_selects').cePeriodSelector(<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['ldelim']->value, ENT_QUOTES, 'UTF-8');
            ?>

        from: '<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8');
            ?>
f_date',
        to: '<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8');
            ?>
t_date'
    <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['rdelim']->value, ENT_QUOTES, 'UTF-8');
            ?>
);
<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['rdelim']->value, ENT_QUOTES, 'UTF-8');
            ?>
);
<?php 
            echo '</script';
            ?>
><?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_inline_script(array(), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

<?php 
    }
    function content_55e61f9ba13292_82585819($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.script.php';
        }
        if (!is_callable('smarty_block_inline_script')) {
            include '/var/www/html/market/app/functions/smarty_plugins/block.inline_script.php';
        }
        fn_preload_lang_vars(array('new_option', 'add_option', 'new_option', 'add_option', 'apply_to_products', 'global', 'edit', 'view', 'view', 'editing_option', 'no_data', 'options'));
        echo smarty_function_script(array('src' => "js/tygh/tabs.js"), $_smarty_tpl);
        ?>


    <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('inline_script', array());
        $_block_repeat = true;
        echo smarty_block_inline_script(array(), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            echo '<script';
            ?>
 type="text/javascript">
    function fn_check_option_type(value, tag_id)
    {
        var id = tag_id.replace('option_type_', '').replace('elm_', '');
        Tygh.$('#tab_option_variants_' + id).toggleBy(!(value == 'S' || value == 'R' || value == 'C'));
        Tygh.$('#required_options_' + id).toggleBy(!(value == 'I' || value == 'T' || value == 'F'));
        Tygh.$('#extra_options_' + id).toggleBy(!(value == 'I' || value == 'T'));
        Tygh.$('#file_options_' + id).toggleBy(!(value == 'F'));

        if (value == 'C') {
            var t = Tygh.$('table', '#content_tab_option_variants_' + id);
            Tygh.$('.cm-non-cb', t).switchAvailability(true); // hide obsolete columns
            Tygh.$('tbody:gt(1)', t).switchAvailability(true); // hide obsolete rows

        } else if (value == 'S' || value == 'R') {
            var t = Tygh.$('table', '#content_tab_option_variants_' + id);
            Tygh.$('.cm-non-cb', t).switchAvailability(false); // show all columns
            Tygh.$('tbody', t).switchAvailability(false); // show all rows
            Tygh.$('#box_add_variant_' + id).show(); // show "add new variants" box

        } else if (value == 'I' || value == 'T') {
            Tygh.$('#extra_options_' + id).show(); // show "add new variants" box
        }
    }
    <?php 
            echo '</script';
            ?>
><?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_inline_script(array(), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>



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

    <?php 
        if ($_smarty_tpl->tpl_vars['object']->value == "global") {
            ?>
        <?php 
            $_smarty_tpl->tpl_vars["select_languages"] = new Smarty_variable(true, null, 0);
            ?>
        <?php 
            $_smarty_tpl->tpl_vars["delete_target_id"] = new Smarty_variable("pagination_contents", null, 0);
            ?>
    <?php 
        } else {
            ?>
        <?php 
            $_smarty_tpl->tpl_vars["delete_target_id"] = new Smarty_variable("product_options_list", null, 0);
            ?>
    <?php 
        }
        ?>

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


    <?php 
        if (!($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['product_data']->value['shared_product'] == "Y" && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] != $_smarty_tpl->tpl_vars['product_data']->value['company_id'])) {
            ?>
        <?php 
            $_smarty_tpl->_capture_stack[0][] = array("toolbar", null, null);
            ob_start();
            ?>
            <?php 
            $_smarty_tpl->_capture_stack[0][] = array("add_new_picker", null, null);
            ob_start();
            ?>
                <?php 
            if ($_smarty_tpl->tpl_vars['product_data']->value) {
                ?>
                    <?php 
                echo $_smarty_tpl->getSubTemplate("views/product_options/update.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('option_id' => "0", 'company_id' => $_smarty_tpl->tpl_vars['product_data']->value['company_id'], 'disable_company_picker' => true), 0);
                ?>

                <?php 
            } else {
                ?>
                    <?php 
                echo $_smarty_tpl->getSubTemplate("views/product_options/update.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('option_id' => "0"), 0);
                ?>

                <?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 
            if ($_smarty_tpl->tpl_vars['object']->value == "product") {
                ?>
                <?php 
                $_smarty_tpl->tpl_vars["position"] = new Smarty_variable("pull-right", null, 0);
                ?>
            <?php 
            }
            ?>
            <?php 
            if ($_smarty_tpl->tpl_vars['view_mode']->value == "embed") {
                ?>
                <?php 
                echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_option", 'text' => __("new_option"), 'link_text' => __("add_option"), 'act' => "general", 'content' => Smarty::$_smarty_vars['capture']['add_new_picker'], 'meta' => $_smarty_tpl->tpl_vars['position']->value, 'icon' => "icon-plus"), 0);
                ?>


            <?php 
            } else {
                ?>
                <?php 
                echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_option", 'text' => __("new_option"), 'title' => __("add_option"), 'act' => "general", 'content' => Smarty::$_smarty_vars['capture']['add_new_picker'], 'meta' => $_smarty_tpl->tpl_vars['position']->value, 'icon' => "icon-plus"), 0);
                ?>

            <?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_tpl->tpl_vars['extra']->value;
            ?>

    <?php 
        }
        ?>
        <?php 
        if ($_smarty_tpl->tpl_vars['object']->value != "global") {
            ?>
            <div class="btn-toolbar clearfix cm-toggle-button">
                <?php 
            echo Smarty::$_smarty_vars['capture']['toolbar'];
            ?>

            </div>
        <?php 
        } else {
            ?>
            <?php 
            $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null);
            ob_start();
            ?>
                <?php 
            if ($_smarty_tpl->tpl_vars['product_options']->value && $_smarty_tpl->tpl_vars['object']->value == "global") {
                ?>
                    <?php 
                echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("apply_to_products"), 'but_role' => "action", 'but_href' => "product_options.apply"), 0);
                ?>

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

            <?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 
        }
        ?>

        <div class="items-container" id="product_options_list">
            <?php 
        if ($_smarty_tpl->tpl_vars['product_options']->value) {
            ?>
            <table width="100%" class="table table-middle table-objects">
                <tbody>
                    <?php 
            $_smarty_tpl->tpl_vars["po"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["po"]->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['product_options']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars["po"]->key => $_smarty_tpl->tpl_vars["po"]->value) {
                $_smarty_tpl->tpl_vars["po"]->_loop = true;
                ?>
                        <?php 
                if ($_smarty_tpl->tpl_vars['object']->value == "product" && !$_smarty_tpl->tpl_vars['po']->value['product_id']) {
                    ?>
                            <?php 
                    ob_start();
                    echo $_smarty_tpl->__("global");
                    $_tmp7 = ob_get_clean();
                    $_smarty_tpl->tpl_vars["details"] = new Smarty_variable("(" . $_tmp7 . ")", null, 0);
                    ?>
                            <?php 
                    $_smarty_tpl->tpl_vars["query_product_id"] = new Smarty_variable('', null, 0);
                    ?>
                        <?php 
                } else {
                    ?>
                            <?php 
                    $_smarty_tpl->tpl_vars["details"] = new Smarty_variable('', null, 0);
                    ?>
                            <?php 
                    $_smarty_tpl->tpl_vars["query_product_id"] = new Smarty_variable("&product_id=" . (string) $_smarty_tpl->tpl_vars['product_id']->value, null, 0);
                    ?>
                        <?php 
                }
                ?>

                        <?php 
                if ($_smarty_tpl->tpl_vars['object']->value == "product") {
                    ?>
                            <?php 
                    if (!$_smarty_tpl->tpl_vars['po']->value['product_id']) {
                        ?>
                                <?php 
                        $_smarty_tpl->tpl_vars["query_product_id"] = new Smarty_variable("&object=" . (string) $_smarty_tpl->tpl_vars['object']->value, null, 0);
                        ?>
                            <?php 
                    } else {
                        ?>
                                <?php 
                        $_smarty_tpl->tpl_vars["query_product_id"] = new Smarty_variable("&product_id=" . (string) $_smarty_tpl->tpl_vars['product_id']->value . "&object=" . (string) $_smarty_tpl->tpl_vars['object']->value, null, 0);
                        ?>
                            <?php 
                    }
                    ?>
                            <?php 
                    $_smarty_tpl->tpl_vars["query_delete_product_id"] = new Smarty_variable("&product_id=" . (string) $_smarty_tpl->tpl_vars['product_id']->value, null, 0);
                    ?>
                            <?php 
                    $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['product_data']->value, "products"), null, 0);
                    ?>
                        <?php 
                } else {
                    ?>
                            <?php 
                    $_smarty_tpl->tpl_vars["query_product_id"] = new Smarty_variable('', null, 0);
                    ?>
                            <?php 
                    $_smarty_tpl->tpl_vars["query_delete_product_id"] = new Smarty_variable('', null, 0);
                    ?>
                            <?php 
                    $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['po']->value, "product_options"), null, 0);
                    ?>
                        <?php 
                }
                ?>

                        <?php 
                if (fn_allowed_for("MULTIVENDOR")) {
                    ?>
                            <?php 
                    if ($_smarty_tpl->tpl_vars['allow_save']->value) {
                        ?>
                                <?php 
                        $_smarty_tpl->tpl_vars["link_text"] = new Smarty_variable($_smarty_tpl->__("edit"), null, 0);
                        ?>
                                <?php 
                        $_smarty_tpl->tpl_vars["additional_class"] = new Smarty_variable("cm-no-hide-input", null, 0);
                        ?>
                                <?php 
                        $_smarty_tpl->tpl_vars["hide_for_vendor"] = new Smarty_variable(false, null, 0);
                        ?>
                            <?php 
                    } else {
                        ?>
                                <?php 
                        $_smarty_tpl->tpl_vars["link_text"] = new Smarty_variable($_smarty_tpl->__("view"), null, 0);
                        ?>
                                <?php 
                        $_smarty_tpl->tpl_vars["additional_class"] = new Smarty_variable('', null, 0);
                        ?>
                                <?php 
                        $_smarty_tpl->tpl_vars["hide_for_vendor"] = new Smarty_variable(true, null, 0);
                        ?>
                            <?php 
                    }
                    ?>
                        <?php 
                }
                ?>

                        <?php 
                $_smarty_tpl->tpl_vars["status"] = new Smarty_variable($_smarty_tpl->tpl_vars['po']->value['status'], null, 0);
                ?>
                        <?php 
                $_smarty_tpl->tpl_vars["href_delete"] = new Smarty_variable("product_options.delete?option_id=" . (string) $_smarty_tpl->tpl_vars['po']->value['option_id'] . (string) $_smarty_tpl->tpl_vars['query_delete_product_id']->value, null, 0);
                ?>

                        <?php 
                if (fn_allowed_for("ULTIMATE")) {
                    ?>
                            <?php 
                    $_smarty_tpl->tpl_vars["non_editable"] = new Smarty_variable(false, null, 0);
                    ?>
                            <?php 
                    if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && ($_smarty_tpl->tpl_vars['product_data']->value['shared_product'] == "Y" && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] != $_smarty_tpl->tpl_vars['product_data']->value['company_id'] || $_smarty_tpl->tpl_vars['object']->value == "global" && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] != $_smarty_tpl->tpl_vars['po']->value['company_id'])) {
                        ?>
                                <?php 
                        $_smarty_tpl->tpl_vars["link_text"] = new Smarty_variable($_smarty_tpl->__("view"), null, 0);
                        ?>
                                <?php 
                        $_smarty_tpl->tpl_vars["href_delete"] = new Smarty_variable(false, null, 0);
                        ?>
                                <?php 
                        $_smarty_tpl->tpl_vars["non_editable"] = new Smarty_variable(true, null, 0);
                        ?>
                                <?php 
                        $_smarty_tpl->tpl_vars["is_view_link"] = new Smarty_variable(true, null, 0);
                        ?>
                            <?php 
                    }
                    ?>
                        <?php 
                }
                ?>

                        <?php 
                ob_start();
                echo $_smarty_tpl->__("editing_option");
                $_tmp8 = ob_get_clean();
                echo $_smarty_tpl->getSubTemplate("common/object_group.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('no_table' => true, 'id' => $_smarty_tpl->tpl_vars['po']->value['option_id'], 'id_prefix' => "_product_option_", 'details' => $_smarty_tpl->tpl_vars['details']->value, 'text' => $_smarty_tpl->tpl_vars['po']->value['option_name'], 'hide_for_vendor' => $_smarty_tpl->tpl_vars['hide_for_vendor']->value, 'status' => $_smarty_tpl->tpl_vars['status']->value, 'table' => "product_options", 'object_id_name' => "option_id", 'href' => "product_options.update?option_id=" . (string) $_smarty_tpl->tpl_vars['po']->value['option_id'] . (string) $_smarty_tpl->tpl_vars['query_product_id']->value, 'href_delete' => $_smarty_tpl->tpl_vars['href_delete']->value, 'delete_target_id' => $_smarty_tpl->tpl_vars['delete_target_id']->value, 'header_text' => $_tmp8 . ": " . (string) $_smarty_tpl->tpl_vars['po']->value['option_name'], 'skip_delete' => !$_smarty_tpl->tpl_vars['allow_save']->value, 'additional_class' => $_smarty_tpl->tpl_vars['additional_class']->value, 'prefix' => "product_options", 'link_text' => $_smarty_tpl->tpl_vars['link_text']->value, 'non_editable' => $_smarty_tpl->tpl_vars['non_editable']->value, 'company_object' => $_smarty_tpl->tpl_vars['po']->value), 0);
                ?>

                <?php 
            }
            ?>
                </tbody>
            </table>
            <?php 
        } else {
            ?>
                <p class="no-items"><?php 
            echo $_smarty_tpl->__("no_data");
            ?>
</p>
            <?php 
        }
        ?>
            <!--product_options_list--></div>
    <?php 
        echo $_smarty_tpl->getSubTemplate("common/pagination.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 
        if ($_smarty_tpl->tpl_vars['object']->value == "product") {
            ?>
    <?php 
            echo Smarty::$_smarty_vars['capture']['mainbox'];
            ?>

<?php 
        } else {
            ?>
    <?php 
            echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("options"), 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'select_language' => $_smarty_tpl->tpl_vars['select_language']->value), 0);
            ?>

<?php 
        }
    }
    function content_55cddb242ef289_50758274($_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_block_hook')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php';
        }
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        fn_preload_lang_vars(array('add_to_cart', 'options', 'add_to_cart', 'options'));
        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();
            if (count($_smarty_tpl->tpl_vars['option_variants_to_product_array_strings']->value) > 0) {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["optionsWithVariantsLinkedToProductsKeys"] = new Smarty_variable(array_keys($_smarty_tpl->tpl_vars['option_variants_to_product_array_strings']->value), null, 0);
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["optionsWithVariantsLinkedToProducts"] = new Smarty_variable(implode(',', $_smarty_tpl->tpl_vars['optionsWithVariantsLinkedToProductsKeys']->value), null, 0);
                ?>
    <input type="hidden" id="options_with_variants_linked_to_products" value="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['optionsWithVariantsLinkedToProducts']->value, ENT_QUOTES, 'UTF-8');
                ?>
">
    <input type="hidden" id="options_variants_user_set" value="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['options_variants_user_set']->value, ENT_QUOTES, 'UTF-8');
                ?>
">
<?php 
            }
            ?>

<div class="ty-quick-view__wrapper">
    
    <?php 
            $_smarty_tpl->_capture_stack[0][] = array("val_hide_form", null, null);
            ob_start();
            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("val_capture_options_vs_qty", null, null);
            ob_start();
            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("val_capture_buttons", null, null);
            ob_start();
            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("val_no_ajax", null, null);
            ob_start();
            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/exceptions.js"), $_smarty_tpl);
            ?>

    
    <?php 
            $_smarty_tpl->tpl_vars['obj_prefix'] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['obj_prefix']->value) === null || $tmp === '' ? "ajax" : $tmp, null, 0);
            ?>
    <button class="ui-dialog-titlebar-close" data-dismiss="modal" type="button" onclick="ls_hide_modal(this);"></button>
    <div class="ty-product-block" id="product_main_info_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
            ?>
">
        <div class="ty-product-block__wrapper clearfix">
        <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:view_main_info"));
            $_block_repeat = true;
            echo smarty_block_hook(array('name' => "products:view_main_info"), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

            <?php 
                if ($_smarty_tpl->tpl_vars['product']->value) {
                    ?>
                <?php 
                    $_smarty_tpl->tpl_vars['obj_id'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                    ?>
                
                <?php 
                    echo $_smarty_tpl->getSubTemplate("common/product_data.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('obj_prefix' => $_smarty_tpl->tpl_vars['obj_prefix']->value, 'obj_id' => $_smarty_tpl->tpl_vars['obj_id']->value, 'product' => $_smarty_tpl->tpl_vars['product']->value, 'but_role' => "big", 'but_text' => __("add_to_cart"), 'add_to_cart_meta' => "cm-form-dialog-closer", 'show_sku' => true, 'show_rating' => true, 'show_old_price' => true, 'show_price' => true, 'show_list_discount' => true, 'show_clean_price' => true, 'details_page' => true, 'show_discount_label' => true, 'show_product_amount' => true, 'show_product_options' => true, 'hide_form' => Smarty::$_smarty_vars['capture']['val_hide_form'], 'min_qty' => true, 'show_edp' => true, 'show_add_to_cart' => true, 'show_list_buttons' => true, 'capture_buttons' => Smarty::$_smarty_vars['capture']['val_capture_buttons'], 'capture_options_vs_qty' => Smarty::$_smarty_vars['capture']['val_capture_options_vs_qty'], 'separate_buttons' => true, 'block_width' => true, 'no_ajax' => Smarty::$_smarty_vars['capture']['val_no_ajax'], 'show_descr' => true, 'quick_view' => true), 0);
                    ?>

                <div class="ty-quick-view-tools">
                    <?php 
                    echo $_smarty_tpl->getSubTemplate("common/view_tools.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('quick_view' => true, 'display_product_info' => true, 'obj_prefix' => $_smarty_tpl->tpl_vars['obj_prefix']->value, 'obj_id' => $_smarty_tpl->tpl_vars['obj_id']->value), 0);
                    ?>

                </div>
                <?php 
                    $_smarty_tpl->tpl_vars["form_open"] = new Smarty_variable("form_open_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_open']->value];
                    ?>

                
                <?php 
                    if ($_smarty_tpl->tpl_vars['view_tools']->value['prev_id']) {
                        ?>
                <div class="ty-product-block_main_info_prev_product" onclick="show_next_prev_product('prev')" style='cursor:pointer'>prev product</div>
                <?php 
                    }
                    ?>
                
                <?php 
                    $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:quick_view_image_wrap"));
                    $_block_repeat = true;
                    echo smarty_block_hook(array('name' => "products:quick_view_image_wrap"), null, $_smarty_tpl, $_block_repeat);
                    while ($_block_repeat) {
                        ob_start();
                        ?>

                    <?php 
                        if (!$_smarty_tpl->tpl_vars['no_images']->value) {
                            ?>
                        <div class="ty-product-block__img cm-reload-<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                            ?>
  ty-product-block__img_initial" id="product_images_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                            ?>
_update">
                            <?php 
                            $_smarty_tpl->tpl_vars["discount_label"] = new Smarty_variable("discount_label_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            ?>
                            <?php 
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['discount_label']->value];
                            ?>

                            <?php 
                            $_smarty_tpl->tpl_vars["hide_modal_image"] = new Smarty_variable(true, null, 0);
                            ?>
                            <?php 
                            $_smarty_tpl->tpl_vars["show_detailed_link"] = new Smarty_variable(true, null, 0);
                            ?>
                            <?php 
                            $_smarty_tpl->tpl_vars["th_size"] = new Smarty_variable("35", null, 0);
                            ?>
                            <?php 
                            if ($_smarty_tpl->tpl_vars['product']->value['main_pair']['icon'] || $_smarty_tpl->tpl_vars['product']->value['main_pair']['detailed']) {
                                ?>
                                <?php 
                                $_smarty_tpl->tpl_vars["image_pair_var"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['main_pair'], null, 0);
                                ?>
                            <?php 
                            } elseif ($_smarty_tpl->tpl_vars['product']->value['option_image_pairs']) {
                                ?>
                                <?php 
                                $_smarty_tpl->tpl_vars["image_pair_var"] = new Smarty_variable(reset($_smarty_tpl->tpl_vars['product']->value['option_image_pairs']), null, 0);
                                ?>
                            <?php 
                            }
                            ?>
                            <?php 
                            if ($_smarty_tpl->tpl_vars['image_pair_var']->value['image_id']) {
                                ?>
                                <?php 
                                $_smarty_tpl->tpl_vars["image_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair_var']->value['image_id'], null, 0);
                                ?>
                            <?php 
                            } else {
                                ?>
                                <?php 
                                $_smarty_tpl->tpl_vars["image_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair_var']->value['detailed_id'], null, 0);
                                ?>
                            <?php 
                            }
                            ?>
                            <?php 
                            if (!$_smarty_tpl->tpl_vars['preview_id']->value) {
                                ?>
                                <?php 
                                $_smarty_tpl->tpl_vars["preview_id"] = new Smarty_variable(uniqid($_smarty_tpl->tpl_vars['product']->value['product_id']), null, 0);
                                ?>
                            <?php 
                            }
                            ?>
                            <div class="ty-product-img cm-preview-wrapper">
                            <?php 
                            $_smarty_tpl->tpl_vars["product_image_pairs"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['image_pairs'], null, 0);
                            ?>
                            
                            <?php 
                            echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['image_id']->value, 'images' => $_smarty_tpl->tpl_vars['image_pair_var']->value, 'main_image' => true, 'link_class' => "cm-image-previewer", 'image_max_width' => $_smarty_tpl->tpl_vars['image_max_width']->value, 'image_id' => "preview[product_images_" . (string) $_smarty_tpl->tpl_vars['preview_id']->value . "]", 'test_hide_modal_image' => $_smarty_tpl->tpl_vars['hide_modal_image']->value), 0);
                            ?>

                            <?php 
                            $_smarty_tpl->tpl_vars["img_nr"] = new Smarty_variable(1, null, 0);
                            ?>
                            <?php 
                            $_smarty_tpl->tpl_vars["img_total_nr"] = new Smarty_variable(count($_smarty_tpl->tpl_vars['product_image_pairs']->value), null, 0);
                            ?>
                            <?php 
                            $_smarty_tpl->tpl_vars["image_pair"] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars["image_pair"]->_loop = false;
                            $_from = $_smarty_tpl->tpl_vars['product_image_pairs']->value;
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            foreach ($_from as $_smarty_tpl->tpl_vars["image_pair"]->key => $_smarty_tpl->tpl_vars["image_pair"]->value) {
                                $_smarty_tpl->tpl_vars["image_pair"]->_loop = true;
                                ?>
                                <?php 
                                if ($_smarty_tpl->tpl_vars['img_nr']->value == $_smarty_tpl->tpl_vars['img_total_nr']->value) {
                                    ?>
                                    <?php 
                                    $_smarty_tpl->tpl_vars["hide_modal_image"] = new Smarty_variable(true, null, 0);
                                    ?>
                                <?php 
                                } else {
                                    ?>
                                    <?php 
                                    $_smarty_tpl->tpl_vars["hide_modal_image"] = new Smarty_variable(false, null, 0);
                                    ?>
                                <?php 
                                }
                                ?>
                                <?php 
                                echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('images' => $_smarty_tpl->tpl_vars['image_pair']->value, 'link_class' => "cm-image-previewer hidden", 'main_image' => true, 'obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['image_pair']->value['detailed_id'], 'image_width' => $_smarty_tpl->tpl_vars['image_width']->value, 'image_height' => $_smarty_tpl->tpl_vars['image_height']->value, 'image_id' => "preview[product_images_" . (string) $_smarty_tpl->tpl_vars['preview_id']->value . "]", 'test_hide_modal_image' => $_smarty_tpl->tpl_vars['hide_modal_image']->value), 0);
                                ?>

                                <?php 
                                $_smarty_tpl->tpl_vars["img_nr"] = new Smarty_variable($_smarty_tpl->tpl_vars['img_nr']->value + 1, null, 0);
                                ?>
                            <?php 
                            }
                            ?>
                            </div>
                            <?php 
                            if ($_smarty_tpl->tpl_vars['product_image_pairs']->value) {
                                ?>
                                <?php 
                                if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['thumbnails_gallery'] == "Y") {
                                    ?>
                                    <input type="hidden" name="no_cache" value="1" />
                                    <div class="ty-center"><div class="cm-image-gallery-wrapper ty-inline-block"><div class="ty-product-thumbnails <?php 
                                    if (!$_smarty_tpl->tpl_vars['hide_modal_image']->value) {
                                        ?>
owl-carousel<?php 
                                    } else {
                                        ?>
no-carousel<?php 
                                    }
                                    ?>
 cm-image-gallery" id="images_preview_<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
"><?php 
                                    if ($_smarty_tpl->tpl_vars['image_pair_var']->value) {
                                        ?>
<div class="cm-item-gallery ty-float-left"><a data-ca-gallery-large-id="det_img_link_<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                                        ?>
_<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['image_id']->value, ENT_QUOTES, 'UTF-8');
                                        ?>
"  class="cm-gallery-item cm-thumbnails-mini active ty-product-thumbnails__item" onclick="show_big_image_quick_view($(this),'det_img_link_<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                                        ?>
_<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['image_id']->value, ENT_QUOTES, 'UTF-8');
                                        ?>
')"><?php 
                                        echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('images' => $_smarty_tpl->tpl_vars['image_pair_var']->value, 'image_width' => 45, 'image_height' => 63, 'show_detailed_link' => false, 'obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['image_id']->value . "_mini"), 0);
                                        ?>
</a></div><?php 
                                    }
                                    if ($_smarty_tpl->tpl_vars['product_image_pairs']->value) {
                                        $_smarty_tpl->tpl_vars["image_pair"] = new Smarty_Variable();
                                        $_smarty_tpl->tpl_vars["image_pair"]->_loop = false;
                                        $_from = $_smarty_tpl->tpl_vars['product_image_pairs']->value;
                                        if (!is_array($_from) && !is_object($_from)) {
                                            settype($_from, 'array');
                                        }
                                        foreach ($_from as $_smarty_tpl->tpl_vars["image_pair"]->key => $_smarty_tpl->tpl_vars["image_pair"]->value) {
                                            $_smarty_tpl->tpl_vars["image_pair"]->_loop = true;
                                            if ($_smarty_tpl->tpl_vars['image_pair']->value) {
                                                ?>
<div class="cm-item-gallery ty-float-left"><?php 
                                                if ($_smarty_tpl->tpl_vars['image_pair']->value['image_id']) {
                                                    $_smarty_tpl->tpl_vars["img_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair']->value['image_id'], null, 0);
                                                } else {
                                                    $_smarty_tpl->tpl_vars["img_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair']->value['detailed_id'], null, 0);
                                                }
                                                ?>
<a data-ca-gallery-large-id="det_img_link_<?php 
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                                                ?>
_<?php 
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['img_id']->value, ENT_QUOTES, 'UTF-8');
                                                ?>
" class="cm-gallery-item cm-thumbnails-mini ty-product-thumbnails__item" onclick="show_big_image_quick_view($(this),'det_img_link_<?php 
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                                                ?>
_<?php 
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['img_id']->value, ENT_QUOTES, 'UTF-8');
                                                ?>
')"><?php 
                                                echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('images' => $_smarty_tpl->tpl_vars['image_pair']->value, 'image_width' => 45, 'image_height' => 63, 'show_detailed_link' => false, 'obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['img_id']->value . "_mini"), 0);
                                                ?>
</a></div><?php 
                                            }
                                        }
                                    }
                                    ?>
</div>
                                        </div>
                                    </div>
                                    
                                <?php 
                                } else {
                                    ?>
                                    <div class="ty-product-thumbnails ty-center cm-image-gallery" id="images_preview_<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
" style="width: <?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['image_width']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
px;">
                                        <?php 
                                    if ($_smarty_tpl->tpl_vars['image_pair_var']->value) {
                                        ?>
<a data-ca-gallery-large-id="det_img_link_<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                                        ?>
_<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['image_id']->value, ENT_QUOTES, 'UTF-8');
                                        ?>
" class="cm-thumbnails-mini active ty-product-thumbnails__item"><?php 
                                        echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('images' => $_smarty_tpl->tpl_vars['image_pair_var']->value, 'image_width' => $_smarty_tpl->tpl_vars['th_size']->value, 'image_height' => $_smarty_tpl->tpl_vars['th_size']->value, 'show_detailed_link' => false, 'obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['image_id']->value . "_mini"), 0);
                                        ?>
</a><?php 
                                    }
                                    if ($_smarty_tpl->tpl_vars['product_image_pairs']->value) {
                                        $_smarty_tpl->tpl_vars["image_pair"] = new Smarty_Variable();
                                        $_smarty_tpl->tpl_vars["image_pair"]->_loop = false;
                                        $_from = $_smarty_tpl->tpl_vars['product_image_pairs']->value;
                                        if (!is_array($_from) && !is_object($_from)) {
                                            settype($_from, 'array');
                                        }
                                        foreach ($_from as $_smarty_tpl->tpl_vars["image_pair"]->key => $_smarty_tpl->tpl_vars["image_pair"]->value) {
                                            $_smarty_tpl->tpl_vars["image_pair"]->_loop = true;
                                            if ($_smarty_tpl->tpl_vars['image_pair']->value) {
                                                if ($_smarty_tpl->tpl_vars['image_pair']->value['image_id'] == 0) {
                                                    $_smarty_tpl->tpl_vars["img_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair']->value['detailed_id'], null, 0);
                                                } else {
                                                    $_smarty_tpl->tpl_vars["img_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair']->value['image_id'], null, 0);
                                                }
                                                ?>
<a data-ca-gallery-large-id="det_img_link_<?php 
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                                                ?>
_<?php 
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['img_id']->value, ENT_QUOTES, 'UTF-8');
                                                ?>
" class="cm-thumbnails-mini ty-product-thumbnails__item"><?php 
                                                echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('images' => $_smarty_tpl->tpl_vars['image_pair']->value, 'image_width' => $_smarty_tpl->tpl_vars['th_size']->value, 'image_height' => $_smarty_tpl->tpl_vars['th_size']->value, 'show_detailed_link' => false, 'obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['img_id']->value . "_mini"), 0);
                                                ?>
</a><?php 
                                            }
                                        }
                                    }
                                    ?>
                                    </div>
                                <?php 
                                }
                                ?>
                            <?php 
                            }
                            ?>
                            <?php 
                            echo $_smarty_tpl->getSubTemplate("common/previewer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                            ?>

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

                            <?php 
                            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:product_images"));
                            $_block_repeat = true;
                            echo smarty_block_hook(array('name' => "products:product_images"), null, $_smarty_tpl, $_block_repeat);
                            while ($_block_repeat) {
                                ob_start();
                                $_block_content = ob_get_clean();
                                $_block_repeat = false;
                                echo smarty_block_hook(array('name' => "products:product_images"), $_block_content, $_smarty_tpl, $_block_repeat);
                            }
                            array_pop($_smarty_tpl->smarty->_tag_stack);
                            ?>
   
                        <!--product_images_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                            ?>
_update--></div>
                    <?php 
                        }
                        ?>
                <?php 
                        $_block_content = ob_get_clean();
                        $_block_repeat = false;
                        echo smarty_block_hook(array('name' => "products:quick_view_image_wrap"), $_block_content, $_smarty_tpl, $_block_repeat);
                    }
                    array_pop($_smarty_tpl->smarty->_tag_stack);
                    ?>

                    <div class="ty-product-block__left_">
                        <div class="ty-product-block_main_info">
                            <div class="<?php 
                    if (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value]) || trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['clean_price']->value]) || trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['list_discount']->value])) {
                        ?>
prices-container <?php 
                    }
                    ?>
price-wrap clearfix">
                                <?php 
                    $_smarty_tpl->tpl_vars["old_price"] = new Smarty_variable("old_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                                <?php 
                    $_smarty_tpl->tpl_vars["price"] = new Smarty_variable("price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                                <?php 
                    $_smarty_tpl->tpl_vars["clean_price"] = new Smarty_variable("clean_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                                <?php 
                    $_smarty_tpl->tpl_vars["list_discount"] = new Smarty_variable("list_discount_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                                <?php 
                    $_smarty_tpl->tpl_vars["discount_label"] = new Smarty_variable("discount_label_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>

                                 <div class="<?php 
                    if (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value]) || trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['clean_price']->value]) || trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['list_discount']->value])) {
                        ?>
prices-container <?php 
                    }
                    ?>
price-wrap clearfix">
                                    <?php 
                    if (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value]) || trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['clean_price']->value]) || trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['list_discount']->value])) {
                        ?>
                                        <div class="ty-float-left ty-product-prices" style='display:none'>
                                            <?php 
                        if (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value])) {
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value];
                            ?>
&nbsp;<?php 
                        }
                        ?>
                                    <?php 
                    }
                    ?>

                                    <div class="ty-product-block__price-actual">
                                        <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['price']->value];
                    ?>

                                    </div>

                                    <?php 
                    if (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value]) || trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['clean_price']->value]) || trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['list_discount']->value])) {
                        ?>
                                            <?php 
                        echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['clean_price']->value];
                        ?>

                                            <?php 
                        echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['list_discount']->value];
                        ?>

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

                                <?php 
                    if (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['discount_label']->value])) {
                        ?>
                                    <div class="ty-float-left">
                                        <?php 
                        echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['discount_label']->value];
                        ?>

                                    </div>
                                <?php 
                    }
                    ?>

                            </div>
                        </div>
                        <div class="ty-product-block_main_info_options hide_options">
                            
                            <div class="ty-product-block_main_info_options_top" style="cursor: pointer;" onclick="ls_show_hide_main_content(this);"><?php 
                    echo $_smarty_tpl->__("options");
                    ?>
</div>
                            <div class="ty-product-block_main_info_options_middle" id="ty-product-block_main_info_options_middle" style="display:none;">
                                <div class="ty-product-block_main_info_options_middle_body">
                                    <?php 
                    if ($_smarty_tpl->tpl_vars['capture_options_vs_qty']->value) {
                        $_smarty_tpl->_capture_stack[0][] = array("product_options", null, null);
                        ob_start();
                        echo Smarty::$_smarty_vars['capture']['product_options'];
                    }
                    ?>
                                    <div class="ty-product-block__option">
                                         <?php 
                    $_smarty_tpl->tpl_vars["product_options"] = new Smarty_variable("product_options_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                                         <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['product_options']->value];
                    ?>

                                     </div>

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

                                    <div class="ty-product-block__sku">
                                        <?php 
                    $_smarty_tpl->tpl_vars['sku'] = new Smarty_variable("sku_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                                        <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['sku']->value];
                    ?>

                                    </div>

                                    <?php 
                    if ($_smarty_tpl->tpl_vars['capture_options_vs_qty']->value) {
                        $_smarty_tpl->_capture_stack[0][] = array("product_options", null, null);
                        ob_start();
                        echo Smarty::$_smarty_vars['capture']['product_options'];
                    }
                    ?>
                                    <div class="ty-product-block__field-group">
                                        <?php 
                    $_smarty_tpl->tpl_vars["product_amount"] = new Smarty_variable("product_amount_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                                        <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['product_amount']->value];
                    ?>


                                        <?php 
                    $_smarty_tpl->tpl_vars["qty"] = new Smarty_variable("qty_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                                        <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['qty']->value];
                    ?>


                                        <?php 
                    $_smarty_tpl->tpl_vars["min_qty"] = new Smarty_variable("min_qty_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                                        <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['min_qty']->value];
                    ?>

                                    </div>
                                    
                                    <div class="ty-product-block__advanced-option">
                                        <?php 
                    if ($_smarty_tpl->tpl_vars['capture_options_vs_qty']->value) {
                        $_smarty_tpl->_capture_stack[0][] = array("product_options", null, null);
                        ob_start();
                        echo Smarty::$_smarty_vars['capture']['product_options'];
                    }
                    ?>
                                        <?php 
                    $_smarty_tpl->tpl_vars["advanced_options"] = new Smarty_variable("advanced_options_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                                        <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['advanced_options']->value];
                    ?>

                                        <?php 
                    if ($_smarty_tpl->tpl_vars['capture_options_vs_qty']->value) {
                        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                        if (!empty($_capture_buffer)) {
                            if (isset($_capture_assign)) {
                                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                            }
                            if (isset($_capture_append)) {
                                $_smarty_tpl->append($_capture_append, ob_get_contents());
                            }
                            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                        } else {
                            $_smarty_tpl->capture_error();
                        }
                    }
                    ?>
                                    </div>
                                    
                                    <?php 
                    if ($_smarty_tpl->tpl_vars['capture_options_vs_qty']->value) {
                        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                        if (!empty($_capture_buffer)) {
                            if (isset($_capture_assign)) {
                                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                            }
                            if (isset($_capture_append)) {
                                $_smarty_tpl->append($_capture_append, ob_get_contents());
                            }
                            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                        } else {
                            $_smarty_tpl->capture_error();
                        }
                    }
                    ?>
                                    <?php 
                    $_smarty_tpl->tpl_vars["product_edp"] = new Smarty_variable("product_edp_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                                    <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['product_edp']->value];
                    ?>


                                    <?php 
                    if ($_smarty_tpl->tpl_vars['capture_buttons']->value) {
                        $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null);
                        ob_start();
                    }
                    ?>
                                    <div class="ty-product-block__button">
                                        <?php 
                    $_smarty_tpl->tpl_vars["add_to_cart"] = new Smarty_variable("add_to_cart_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                                        <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['add_to_cart']->value];
                    ?>

                                        
                                        

                                        <?php 
                    $_smarty_tpl->tpl_vars["list_buttons"] = new Smarty_variable("list_buttons_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                                        <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['list_buttons']->value];
                    ?>

                                    </div>
                                    <?php 
                    if ($_smarty_tpl->tpl_vars['capture_buttons']->value) {
                        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                        if (!empty($_capture_buffer)) {
                            if (isset($_capture_assign)) {
                                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                            }
                            if (isset($_capture_append)) {
                                $_smarty_tpl->append($_capture_append, ob_get_contents());
                            }
                            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                        } else {
                            $_smarty_tpl->capture_error();
                        }
                    }
                    ?>
                                </div>
                            </div>
                            
                        </div>
                </div>
                        
        </div>
        <?php 
                    if ($_smarty_tpl->tpl_vars['view_tools']->value['next_id']) {
                        ?>
        <div class="ty-product-block_main_info_next_product" onclick="show_next_prev_product('next')" style='cursor:pointer'>next product</div>
        <?php 
                    }
                    ?>
            <?php 
                    $_smarty_tpl->tpl_vars["form_close"] = new Smarty_variable("form_close_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
            <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_close']->value];
                    ?>

        <?php 
                }
                ?>

        <?php 
                if (Smarty::$_smarty_vars['capture']['hide_form_changed'] == "Y") {
                    ?>
            <?php 
                    $_smarty_tpl->tpl_vars["hide_form"] = new Smarty_variable(Smarty::$_smarty_vars['capture']['orig_val_hide_form'], null, 0);
                    ?>
        <?php 
                }
                ?>

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

    <!--product_main_info_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
            ?>
--></div>
</div>


    <script type="text/javascript">
        $(document).ready(function(){
            if($('a.ty-product-switcher__a.ty-product-switcher__a-left').hasClass('disabled')){
                $('div.ty-product-block_main_info_prev_product').css('cursor','none');
            }
            if($('a.ty-product-switcher__a.ty-product-switcher__a-right').hasClass('disabled')){
                $('div.ty-product-block_main_info_next_product').css('cursor','none');
            }
        });
    </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();
            }
            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="views/products/quick_view.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "views/products/quick_view.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 {
            if (count($_smarty_tpl->tpl_vars['option_variants_to_product_array_strings']->value) > 0) {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["optionsWithVariantsLinkedToProductsKeys"] = new Smarty_variable(array_keys($_smarty_tpl->tpl_vars['option_variants_to_product_array_strings']->value), null, 0);
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["optionsWithVariantsLinkedToProducts"] = new Smarty_variable(implode(',', $_smarty_tpl->tpl_vars['optionsWithVariantsLinkedToProductsKeys']->value), null, 0);
                ?>
    <input type="hidden" id="options_with_variants_linked_to_products" value="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['optionsWithVariantsLinkedToProducts']->value, ENT_QUOTES, 'UTF-8');
                ?>
">
    <input type="hidden" id="options_variants_user_set" value="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['options_variants_user_set']->value, ENT_QUOTES, 'UTF-8');
                ?>
">
<?php 
            }
            ?>

<div class="ty-quick-view__wrapper">
    
    <?php 
            $_smarty_tpl->_capture_stack[0][] = array("val_hide_form", null, null);
            ob_start();
            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("val_capture_options_vs_qty", null, null);
            ob_start();
            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("val_capture_buttons", null, null);
            ob_start();
            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("val_no_ajax", null, null);
            ob_start();
            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/exceptions.js"), $_smarty_tpl);
            ?>

    
    <?php 
            $_smarty_tpl->tpl_vars['obj_prefix'] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['obj_prefix']->value) === null || $tmp === '' ? "ajax" : $tmp, null, 0);
            ?>
    <button class="ui-dialog-titlebar-close" data-dismiss="modal" type="button" onclick="ls_hide_modal(this);"></button>
    <div class="ty-product-block" id="product_main_info_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
            ?>
">
        <div class="ty-product-block__wrapper clearfix">
        <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:view_main_info"));
            $_block_repeat = true;
            echo smarty_block_hook(array('name' => "products:view_main_info"), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

            <?php 
                if ($_smarty_tpl->tpl_vars['product']->value) {
                    ?>
                <?php 
                    $_smarty_tpl->tpl_vars['obj_id'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                    ?>
                
                <?php 
                    echo $_smarty_tpl->getSubTemplate("common/product_data.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('obj_prefix' => $_smarty_tpl->tpl_vars['obj_prefix']->value, 'obj_id' => $_smarty_tpl->tpl_vars['obj_id']->value, 'product' => $_smarty_tpl->tpl_vars['product']->value, 'but_role' => "big", 'but_text' => __("add_to_cart"), 'add_to_cart_meta' => "cm-form-dialog-closer", 'show_sku' => true, 'show_rating' => true, 'show_old_price' => true, 'show_price' => true, 'show_list_discount' => true, 'show_clean_price' => true, 'details_page' => true, 'show_discount_label' => true, 'show_product_amount' => true, 'show_product_options' => true, 'hide_form' => Smarty::$_smarty_vars['capture']['val_hide_form'], 'min_qty' => true, 'show_edp' => true, 'show_add_to_cart' => true, 'show_list_buttons' => true, 'capture_buttons' => Smarty::$_smarty_vars['capture']['val_capture_buttons'], 'capture_options_vs_qty' => Smarty::$_smarty_vars['capture']['val_capture_options_vs_qty'], 'separate_buttons' => true, 'block_width' => true, 'no_ajax' => Smarty::$_smarty_vars['capture']['val_no_ajax'], 'show_descr' => true, 'quick_view' => true), 0);
                    ?>

                <div class="ty-quick-view-tools">
                    <?php 
                    echo $_smarty_tpl->getSubTemplate("common/view_tools.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('quick_view' => true, 'display_product_info' => true, 'obj_prefix' => $_smarty_tpl->tpl_vars['obj_prefix']->value, 'obj_id' => $_smarty_tpl->tpl_vars['obj_id']->value), 0);
                    ?>

                </div>
                <?php 
                    $_smarty_tpl->tpl_vars["form_open"] = new Smarty_variable("form_open_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_open']->value];
                    ?>

                
                <?php 
                    if ($_smarty_tpl->tpl_vars['view_tools']->value['prev_id']) {
                        ?>
                <div class="ty-product-block_main_info_prev_product" onclick="show_next_prev_product('prev')" style='cursor:pointer'>prev product</div>
                <?php 
                    }
                    ?>
                
                <?php 
                    $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:quick_view_image_wrap"));
                    $_block_repeat = true;
                    echo smarty_block_hook(array('name' => "products:quick_view_image_wrap"), null, $_smarty_tpl, $_block_repeat);
                    while ($_block_repeat) {
                        ob_start();
                        ?>

                    <?php 
                        if (!$_smarty_tpl->tpl_vars['no_images']->value) {
                            ?>
                        <div class="ty-product-block__img cm-reload-<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                            ?>
  ty-product-block__img_initial" id="product_images_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                            ?>
_update">
                            <?php 
                            $_smarty_tpl->tpl_vars["discount_label"] = new Smarty_variable("discount_label_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            ?>
                            <?php 
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['discount_label']->value];
                            ?>

                            <?php 
                            $_smarty_tpl->tpl_vars["hide_modal_image"] = new Smarty_variable(true, null, 0);
                            ?>
                            <?php 
                            $_smarty_tpl->tpl_vars["show_detailed_link"] = new Smarty_variable(true, null, 0);
                            ?>
                            <?php 
                            $_smarty_tpl->tpl_vars["th_size"] = new Smarty_variable("35", null, 0);
                            ?>
                            <?php 
                            if ($_smarty_tpl->tpl_vars['product']->value['main_pair']['icon'] || $_smarty_tpl->tpl_vars['product']->value['main_pair']['detailed']) {
                                ?>
                                <?php 
                                $_smarty_tpl->tpl_vars["image_pair_var"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['main_pair'], null, 0);
                                ?>
                            <?php 
                            } elseif ($_smarty_tpl->tpl_vars['product']->value['option_image_pairs']) {
                                ?>
                                <?php 
                                $_smarty_tpl->tpl_vars["image_pair_var"] = new Smarty_variable(reset($_smarty_tpl->tpl_vars['product']->value['option_image_pairs']), null, 0);
                                ?>
                            <?php 
                            }
                            ?>
                            <?php 
                            if ($_smarty_tpl->tpl_vars['image_pair_var']->value['image_id']) {
                                ?>
                                <?php 
                                $_smarty_tpl->tpl_vars["image_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair_var']->value['image_id'], null, 0);
                                ?>
                            <?php 
                            } else {
                                ?>
                                <?php 
                                $_smarty_tpl->tpl_vars["image_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair_var']->value['detailed_id'], null, 0);
                                ?>
                            <?php 
                            }
                            ?>
                            <?php 
                            if (!$_smarty_tpl->tpl_vars['preview_id']->value) {
                                ?>
                                <?php 
                                $_smarty_tpl->tpl_vars["preview_id"] = new Smarty_variable(uniqid($_smarty_tpl->tpl_vars['product']->value['product_id']), null, 0);
                                ?>
                            <?php 
                            }
                            ?>
                            <div class="ty-product-img cm-preview-wrapper">
                            <?php 
                            $_smarty_tpl->tpl_vars["product_image_pairs"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['image_pairs'], null, 0);
                            ?>
                            
                            <?php 
                            echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['image_id']->value, 'images' => $_smarty_tpl->tpl_vars['image_pair_var']->value, 'main_image' => true, 'link_class' => "cm-image-previewer", 'image_max_width' => $_smarty_tpl->tpl_vars['image_max_width']->value, 'image_id' => "preview[product_images_" . (string) $_smarty_tpl->tpl_vars['preview_id']->value . "]", 'test_hide_modal_image' => $_smarty_tpl->tpl_vars['hide_modal_image']->value), 0);
                            ?>

                            <?php 
                            $_smarty_tpl->tpl_vars["img_nr"] = new Smarty_variable(1, null, 0);
                            ?>
                            <?php 
                            $_smarty_tpl->tpl_vars["img_total_nr"] = new Smarty_variable(count($_smarty_tpl->tpl_vars['product_image_pairs']->value), null, 0);
                            ?>
                            <?php 
                            $_smarty_tpl->tpl_vars["image_pair"] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars["image_pair"]->_loop = false;
                            $_from = $_smarty_tpl->tpl_vars['product_image_pairs']->value;
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            foreach ($_from as $_smarty_tpl->tpl_vars["image_pair"]->key => $_smarty_tpl->tpl_vars["image_pair"]->value) {
                                $_smarty_tpl->tpl_vars["image_pair"]->_loop = true;
                                ?>
                                <?php 
                                if ($_smarty_tpl->tpl_vars['img_nr']->value == $_smarty_tpl->tpl_vars['img_total_nr']->value) {
                                    ?>
                                    <?php 
                                    $_smarty_tpl->tpl_vars["hide_modal_image"] = new Smarty_variable(true, null, 0);
                                    ?>
                                <?php 
                                } else {
                                    ?>
                                    <?php 
                                    $_smarty_tpl->tpl_vars["hide_modal_image"] = new Smarty_variable(false, null, 0);
                                    ?>
                                <?php 
                                }
                                ?>
                                <?php 
                                echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('images' => $_smarty_tpl->tpl_vars['image_pair']->value, 'link_class' => "cm-image-previewer hidden", 'main_image' => true, 'obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['image_pair']->value['detailed_id'], 'image_width' => $_smarty_tpl->tpl_vars['image_width']->value, 'image_height' => $_smarty_tpl->tpl_vars['image_height']->value, 'image_id' => "preview[product_images_" . (string) $_smarty_tpl->tpl_vars['preview_id']->value . "]", 'test_hide_modal_image' => $_smarty_tpl->tpl_vars['hide_modal_image']->value), 0);
                                ?>

                                <?php 
                                $_smarty_tpl->tpl_vars["img_nr"] = new Smarty_variable($_smarty_tpl->tpl_vars['img_nr']->value + 1, null, 0);
                                ?>
                            <?php 
                            }
                            ?>
                            </div>
                            <?php 
                            if ($_smarty_tpl->tpl_vars['product_image_pairs']->value) {
                                ?>
                                <?php 
                                if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['thumbnails_gallery'] == "Y") {
                                    ?>
                                    <input type="hidden" name="no_cache" value="1" />
                                    <div class="ty-center"><div class="cm-image-gallery-wrapper ty-inline-block"><div class="ty-product-thumbnails <?php 
                                    if (!$_smarty_tpl->tpl_vars['hide_modal_image']->value) {
                                        ?>
owl-carousel<?php 
                                    } else {
                                        ?>
no-carousel<?php 
                                    }
                                    ?>
 cm-image-gallery" id="images_preview_<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
"><?php 
                                    if ($_smarty_tpl->tpl_vars['image_pair_var']->value) {
                                        ?>
<div class="cm-item-gallery ty-float-left"><a data-ca-gallery-large-id="det_img_link_<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                                        ?>
_<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['image_id']->value, ENT_QUOTES, 'UTF-8');
                                        ?>
"  class="cm-gallery-item cm-thumbnails-mini active ty-product-thumbnails__item" onclick="show_big_image_quick_view($(this),'det_img_link_<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                                        ?>
_<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['image_id']->value, ENT_QUOTES, 'UTF-8');
                                        ?>
')"><?php 
                                        echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('images' => $_smarty_tpl->tpl_vars['image_pair_var']->value, 'image_width' => 45, 'image_height' => 63, 'show_detailed_link' => false, 'obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['image_id']->value . "_mini"), 0);
                                        ?>
</a></div><?php 
                                    }
                                    if ($_smarty_tpl->tpl_vars['product_image_pairs']->value) {
                                        $_smarty_tpl->tpl_vars["image_pair"] = new Smarty_Variable();
                                        $_smarty_tpl->tpl_vars["image_pair"]->_loop = false;
                                        $_from = $_smarty_tpl->tpl_vars['product_image_pairs']->value;
                                        if (!is_array($_from) && !is_object($_from)) {
                                            settype($_from, 'array');
                                        }
                                        foreach ($_from as $_smarty_tpl->tpl_vars["image_pair"]->key => $_smarty_tpl->tpl_vars["image_pair"]->value) {
                                            $_smarty_tpl->tpl_vars["image_pair"]->_loop = true;
                                            if ($_smarty_tpl->tpl_vars['image_pair']->value) {
                                                ?>
<div class="cm-item-gallery ty-float-left"><?php 
                                                if ($_smarty_tpl->tpl_vars['image_pair']->value['image_id']) {
                                                    $_smarty_tpl->tpl_vars["img_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair']->value['image_id'], null, 0);
                                                } else {
                                                    $_smarty_tpl->tpl_vars["img_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair']->value['detailed_id'], null, 0);
                                                }
                                                ?>
<a data-ca-gallery-large-id="det_img_link_<?php 
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                                                ?>
_<?php 
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['img_id']->value, ENT_QUOTES, 'UTF-8');
                                                ?>
" class="cm-gallery-item cm-thumbnails-mini ty-product-thumbnails__item" onclick="show_big_image_quick_view($(this),'det_img_link_<?php 
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                                                ?>
_<?php 
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['img_id']->value, ENT_QUOTES, 'UTF-8');
                                                ?>
')"><?php 
                                                echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('images' => $_smarty_tpl->tpl_vars['image_pair']->value, 'image_width' => 45, 'image_height' => 63, 'show_detailed_link' => false, 'obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['img_id']->value . "_mini"), 0);
                                                ?>
</a></div><?php 
                                            }
                                        }
                                    }
                                    ?>
</div>
                                        </div>
                                    </div>
                                    
                                <?php 
                                } else {
                                    ?>
                                    <div class="ty-product-thumbnails ty-center cm-image-gallery" id="images_preview_<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
" style="width: <?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['image_width']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
px;">
                                        <?php 
                                    if ($_smarty_tpl->tpl_vars['image_pair_var']->value) {
                                        ?>
<a data-ca-gallery-large-id="det_img_link_<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                                        ?>
_<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['image_id']->value, ENT_QUOTES, 'UTF-8');
                                        ?>
" class="cm-thumbnails-mini active ty-product-thumbnails__item"><?php 
                                        echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('images' => $_smarty_tpl->tpl_vars['image_pair_var']->value, 'image_width' => $_smarty_tpl->tpl_vars['th_size']->value, 'image_height' => $_smarty_tpl->tpl_vars['th_size']->value, 'show_detailed_link' => false, 'obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['image_id']->value . "_mini"), 0);
                                        ?>
</a><?php 
                                    }
                                    if ($_smarty_tpl->tpl_vars['product_image_pairs']->value) {
                                        $_smarty_tpl->tpl_vars["image_pair"] = new Smarty_Variable();
                                        $_smarty_tpl->tpl_vars["image_pair"]->_loop = false;
                                        $_from = $_smarty_tpl->tpl_vars['product_image_pairs']->value;
                                        if (!is_array($_from) && !is_object($_from)) {
                                            settype($_from, 'array');
                                        }
                                        foreach ($_from as $_smarty_tpl->tpl_vars["image_pair"]->key => $_smarty_tpl->tpl_vars["image_pair"]->value) {
                                            $_smarty_tpl->tpl_vars["image_pair"]->_loop = true;
                                            if ($_smarty_tpl->tpl_vars['image_pair']->value) {
                                                if ($_smarty_tpl->tpl_vars['image_pair']->value['image_id'] == 0) {
                                                    $_smarty_tpl->tpl_vars["img_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair']->value['detailed_id'], null, 0);
                                                } else {
                                                    $_smarty_tpl->tpl_vars["img_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair']->value['image_id'], null, 0);
                                                }
                                                ?>
<a data-ca-gallery-large-id="det_img_link_<?php 
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                                                ?>
_<?php 
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['img_id']->value, ENT_QUOTES, 'UTF-8');
                                                ?>
" class="cm-thumbnails-mini ty-product-thumbnails__item"><?php 
                                                echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('images' => $_smarty_tpl->tpl_vars['image_pair']->value, 'image_width' => $_smarty_tpl->tpl_vars['th_size']->value, 'image_height' => $_smarty_tpl->tpl_vars['th_size']->value, 'show_detailed_link' => false, 'obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['img_id']->value . "_mini"), 0);
                                                ?>
</a><?php 
                                            }
                                        }
                                    }
                                    ?>
                                    </div>
                                <?php 
                                }
                                ?>
                            <?php 
                            }
                            ?>
                            <?php 
                            echo $_smarty_tpl->getSubTemplate("common/previewer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                            ?>

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

                            <?php 
                            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:product_images"));
                            $_block_repeat = true;
                            echo smarty_block_hook(array('name' => "products:product_images"), null, $_smarty_tpl, $_block_repeat);
                            while ($_block_repeat) {
                                ob_start();
                                $_block_content = ob_get_clean();
                                $_block_repeat = false;
                                echo smarty_block_hook(array('name' => "products:product_images"), $_block_content, $_smarty_tpl, $_block_repeat);
                            }
                            array_pop($_smarty_tpl->smarty->_tag_stack);
                            ?>
   
                        <!--product_images_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                            ?>
_update--></div>
                    <?php 
                        }
                        ?>
                <?php 
                        $_block_content = ob_get_clean();
                        $_block_repeat = false;
                        echo smarty_block_hook(array('name' => "products:quick_view_image_wrap"), $_block_content, $_smarty_tpl, $_block_repeat);
                    }
                    array_pop($_smarty_tpl->smarty->_tag_stack);
                    ?>

                    <div class="ty-product-block__left_">
                        <div class="ty-product-block_main_info">
                            <div class="<?php 
                    if (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value]) || trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['clean_price']->value]) || trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['list_discount']->value])) {
                        ?>
prices-container <?php 
                    }
                    ?>
price-wrap clearfix">
                                <?php 
                    $_smarty_tpl->tpl_vars["old_price"] = new Smarty_variable("old_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                                <?php 
                    $_smarty_tpl->tpl_vars["price"] = new Smarty_variable("price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                                <?php 
                    $_smarty_tpl->tpl_vars["clean_price"] = new Smarty_variable("clean_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                                <?php 
                    $_smarty_tpl->tpl_vars["list_discount"] = new Smarty_variable("list_discount_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                                <?php 
                    $_smarty_tpl->tpl_vars["discount_label"] = new Smarty_variable("discount_label_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>

                                 <div class="<?php 
                    if (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value]) || trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['clean_price']->value]) || trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['list_discount']->value])) {
                        ?>
prices-container <?php 
                    }
                    ?>
price-wrap clearfix">
                                    <?php 
                    if (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value]) || trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['clean_price']->value]) || trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['list_discount']->value])) {
                        ?>
                                        <div class="ty-float-left ty-product-prices" style='display:none'>
                                            <?php 
                        if (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value])) {
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value];
                            ?>
&nbsp;<?php 
                        }
                        ?>
                                    <?php 
                    }
                    ?>

                                    <div class="ty-product-block__price-actual">
                                        <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['price']->value];
                    ?>

                                    </div>

                                    <?php 
                    if (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value]) || trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['clean_price']->value]) || trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['list_discount']->value])) {
                        ?>
                                            <?php 
                        echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['clean_price']->value];
                        ?>

                                            <?php 
                        echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['list_discount']->value];
                        ?>

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

                                <?php 
                    if (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['discount_label']->value])) {
                        ?>
                                    <div class="ty-float-left">
                                        <?php 
                        echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['discount_label']->value];
                        ?>

                                    </div>
                                <?php 
                    }
                    ?>

                            </div>
                        </div>
                        <div class="ty-product-block_main_info_options hide_options">
                            
                            <div class="ty-product-block_main_info_options_top" style="cursor: pointer;" onclick="ls_show_hide_main_content(this);"><?php 
                    echo $_smarty_tpl->__("options");
                    ?>
</div>
                            <div class="ty-product-block_main_info_options_middle" id="ty-product-block_main_info_options_middle" style="display:none;">
                                <div class="ty-product-block_main_info_options_middle_body">
                                    <?php 
                    if ($_smarty_tpl->tpl_vars['capture_options_vs_qty']->value) {
                        $_smarty_tpl->_capture_stack[0][] = array("product_options", null, null);
                        ob_start();
                        echo Smarty::$_smarty_vars['capture']['product_options'];
                    }
                    ?>
                                    <div class="ty-product-block__option">
                                         <?php 
                    $_smarty_tpl->tpl_vars["product_options"] = new Smarty_variable("product_options_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                                         <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['product_options']->value];
                    ?>

                                     </div>

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

                                    <div class="ty-product-block__sku">
                                        <?php 
                    $_smarty_tpl->tpl_vars['sku'] = new Smarty_variable("sku_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                                        <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['sku']->value];
                    ?>

                                    </div>

                                    <?php 
                    if ($_smarty_tpl->tpl_vars['capture_options_vs_qty']->value) {
                        $_smarty_tpl->_capture_stack[0][] = array("product_options", null, null);
                        ob_start();
                        echo Smarty::$_smarty_vars['capture']['product_options'];
                    }
                    ?>
                                    <div class="ty-product-block__field-group">
                                        <?php 
                    $_smarty_tpl->tpl_vars["product_amount"] = new Smarty_variable("product_amount_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                                        <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['product_amount']->value];
                    ?>


                                        <?php 
                    $_smarty_tpl->tpl_vars["qty"] = new Smarty_variable("qty_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                                        <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['qty']->value];
                    ?>


                                        <?php 
                    $_smarty_tpl->tpl_vars["min_qty"] = new Smarty_variable("min_qty_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                                        <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['min_qty']->value];
                    ?>

                                    </div>
                                    
                                    <div class="ty-product-block__advanced-option">
                                        <?php 
                    if ($_smarty_tpl->tpl_vars['capture_options_vs_qty']->value) {
                        $_smarty_tpl->_capture_stack[0][] = array("product_options", null, null);
                        ob_start();
                        echo Smarty::$_smarty_vars['capture']['product_options'];
                    }
                    ?>
                                        <?php 
                    $_smarty_tpl->tpl_vars["advanced_options"] = new Smarty_variable("advanced_options_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                                        <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['advanced_options']->value];
                    ?>

                                        <?php 
                    if ($_smarty_tpl->tpl_vars['capture_options_vs_qty']->value) {
                        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                        if (!empty($_capture_buffer)) {
                            if (isset($_capture_assign)) {
                                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                            }
                            if (isset($_capture_append)) {
                                $_smarty_tpl->append($_capture_append, ob_get_contents());
                            }
                            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                        } else {
                            $_smarty_tpl->capture_error();
                        }
                    }
                    ?>
                                    </div>
                                    
                                    <?php 
                    if ($_smarty_tpl->tpl_vars['capture_options_vs_qty']->value) {
                        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                        if (!empty($_capture_buffer)) {
                            if (isset($_capture_assign)) {
                                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                            }
                            if (isset($_capture_append)) {
                                $_smarty_tpl->append($_capture_append, ob_get_contents());
                            }
                            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                        } else {
                            $_smarty_tpl->capture_error();
                        }
                    }
                    ?>
                                    <?php 
                    $_smarty_tpl->tpl_vars["product_edp"] = new Smarty_variable("product_edp_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                                    <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['product_edp']->value];
                    ?>


                                    <?php 
                    if ($_smarty_tpl->tpl_vars['capture_buttons']->value) {
                        $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null);
                        ob_start();
                    }
                    ?>
                                    <div class="ty-product-block__button">
                                        <?php 
                    $_smarty_tpl->tpl_vars["add_to_cart"] = new Smarty_variable("add_to_cart_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                                        <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['add_to_cart']->value];
                    ?>

                                        
                                        

                                        <?php 
                    $_smarty_tpl->tpl_vars["list_buttons"] = new Smarty_variable("list_buttons_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
                                        <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['list_buttons']->value];
                    ?>

                                    </div>
                                    <?php 
                    if ($_smarty_tpl->tpl_vars['capture_buttons']->value) {
                        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                        if (!empty($_capture_buffer)) {
                            if (isset($_capture_assign)) {
                                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                            }
                            if (isset($_capture_append)) {
                                $_smarty_tpl->append($_capture_append, ob_get_contents());
                            }
                            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                        } else {
                            $_smarty_tpl->capture_error();
                        }
                    }
                    ?>
                                </div>
                            </div>
                            
                        </div>
                </div>
                        
        </div>
        <?php 
                    if ($_smarty_tpl->tpl_vars['view_tools']->value['next_id']) {
                        ?>
        <div class="ty-product-block_main_info_next_product" onclick="show_next_prev_product('next')" style='cursor:pointer'>next product</div>
        <?php 
                    }
                    ?>
            <?php 
                    $_smarty_tpl->tpl_vars["form_close"] = new Smarty_variable("form_close_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                    ?>
            <?php 
                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_close']->value];
                    ?>

        <?php 
                }
                ?>

        <?php 
                if (Smarty::$_smarty_vars['capture']['hide_form_changed'] == "Y") {
                    ?>
            <?php 
                    $_smarty_tpl->tpl_vars["hide_form"] = new Smarty_variable(Smarty::$_smarty_vars['capture']['orig_val_hide_form'], null, 0);
                    ?>
        <?php 
                }
                ?>

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

    <!--product_main_info_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
            ?>
--></div>
</div>


    <script type="text/javascript">
        $(document).ready(function(){
            if($('a.ty-product-switcher__a.ty-product-switcher__a-left').hasClass('disabled')){
                $('div.ty-product-block_main_info_prev_product').css('cursor','none');
            }
            if($('a.ty-product-switcher__a.ty-product-switcher__a-right').hasClass('disabled')){
                $('div.ty-product-block_main_info_next_product').css('cursor','none');
            }
        });
    </script>
<?php 
        }
    }
    function content_55ccdf864081b0_25610907($_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_block_hook')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php';
        }
        fn_preload_lang_vars(array('marketplace', 'marketplace_find_more', 'installed_addons', 'browse_all_available_addons', 'no_data', 'no_data', 'upload_addon', 'upload_addon', 'addons'));
        echo $_smarty_tpl->getSubTemplate("views/profiles/components/profiles_scripts.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('states' => fn_get_all_states(1)), 0);
        ?>


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

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

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



    <script type="text/javascript">
        (function(_, $) {
            $(document).ready(function(){
                var search_field = $("#elm_addon");
                var search_clear = $("#elm_addon_clear");

                // Init plugin
                search_field.ceFilterTable({
                    table: ".table-addons",
                    empty: ".no-items"
                });

                // Clear input
                search_clear.on("click", function() {
                    search_field.val("").trigger("input");
                    search_clear.addClass("hidden");
                });
                
                // Show clear button if search filed isn't empty
                search_field.on("keyup input", function() {
                    if(search_field.val().length > 0) {
                        search_clear.removeClass("hidden");
                    } else {
                        search_clear.addClass("hidden");
                    }
                });

            });
        }(Tygh, Tygh.$));
    </script>


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

<?php 
        $_smarty_tpl->_capture_stack[0][] = array("sidebar", null, null);
        ob_start();
        ?>
    <?php 
        echo $_smarty_tpl->getSubTemplate("views/addons/components/addons_search_form.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "addons.manage"), 0);
        ?>

    <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>
<?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["c_url"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0);
        ?>

<?php 
        $_smarty_tpl->_capture_stack[0][] = array("upload_addon", null, null);
        ob_start();
        ?>
    <?php 
        echo $_smarty_tpl->getSubTemplate("views/addons/components/upload_addon.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();
        }
        ?>

<div class="items-container" id="addons_list">
<?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "addons:manage"));
        $_block_repeat = true;
        echo smarty_block_hook(array('name' => "addons:manage"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>


<div class="tabs cm-j-tabs clear">
    <ul class="nav nav-tabs">
        <li id="tab_installed_addons" class="cm-js active"><a><?php 
            echo $_smarty_tpl->__("installed_addons");
            ?>
</a></li>
        <li id="tab_browse_all_available_addons" class="cm-js"><a><?php 
            echo $_smarty_tpl->__("browse_all_available_addons");
            ?>
</a></li>
    </ul>
</div>

<div class="cm-tabs-content">
    <div id="content_tab_installed_addons">
        <?php 
            echo $_smarty_tpl->getSubTemplate("views/addons/components/addons_list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('show_installed' => true), 0);
            ?>

        <p class="no-items hidden"><?php 
            echo $_smarty_tpl->__("no_data");
            ?>
</p>
    </div>
    <div id="content_tab_browse_all_available_addons">
        <?php 
            echo $_smarty_tpl->getSubTemplate("views/addons/components/addons_list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
            ?>

        <p class="no-items hidden"><?php 
            echo $_smarty_tpl->__("no_data");
            ?>
</p>
    </div>
</div>

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

<!--addons_list--></div>

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

    <?php 
            if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] && !defined("RESTRICTED_ADMIN")) {
                ?>
        <?php 
                echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "upload_addon", 'text' => __("upload_addon"), 'title' => __("upload_addon"), 'content' => Smarty::$_smarty_vars['capture']['upload_addon'], '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' => "addons: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 
        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/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("addons"), 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons']), 0);
    }
    function content_55db8bdb79d546_98717403($_smarty_tpl)
    {
        if (!is_callable('smarty_block_scripts')) {
            include '/var/www/html/market/app/functions/smarty_plugins/block.scripts.php';
        }
        if (!is_callable('smarty_function_script')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.script.php';
        }
        if (!is_callable('smarty_block_inline_script')) {
            include '/var/www/html/market/app/functions/smarty_plugins/block.inline_script.php';
        }
        if (!is_callable('smarty_block_hook')) {
            include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php';
        }
        fn_preload_lang_vars(array('cannot_buy', 'no_products_selected', 'error_no_items_selected', 'delete_confirmation', 'text_out_of_stock', 'items', 'text_required_group_product', 'save', 'close', 'loading', 'notice', 'warning', 'error', 'text_are_you_sure_to_proceed', 'text_invalid_url', 'error_validator_email', 'error_validator_phone', 'error_validator_integer', 'error_validator_multiple', 'error_validator_password', 'error_validator_required', 'error_validator_zipcode', 'error_validator_message', 'error_validator_color', 'text_page_loading', 'error_ajax', 'text_changes_not_saved', 'text_data_changed', 'text_block_trial_notice', 'text_expired_license', 'file_browser', 'editing_block', 'editing_grid', 'editing_container', 'adding_grid', 'adding_block_to_grid', 'manage_blocks', 'editing_block', 'add_block', 'text_position_updating', 'more', 'browse', 'enter_new_lang_code', 'no_image'));
        $_smarty_tpl->smarty->_tag_stack[] = array('scripts', array());
        $_block_repeat = true;
        echo smarty_block_scripts(array(), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>


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

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

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


<?php 
            echo smarty_function_script(array('src' => "js/lib/twitterbootstrap/bootstrap.min.js"), $_smarty_tpl);
            ?>

<?php 
            echo smarty_function_script(array('src' => "js/lib/jqueryui/jquery-ui.custom.min.js"), $_smarty_tpl);
            ?>

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

<?php 
            echo smarty_function_script(array('src' => "js/lib/appear/jquery.appear-1.1.1.js"), $_smarty_tpl);
            ?>

<?php 
            echo smarty_function_script(array('src' => "js/lib/tools/tooltip.min.js"), $_smarty_tpl);
            ?>


<?php 
            echo smarty_function_script(array('src' => "js/tygh/editors/" . (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['default_wysiwyg_editor'] . ".editor.js"), $_smarty_tpl);
            ?>


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


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


<?php 
            if ($_smarty_tpl->tpl_vars['settings']->value['General']['feedback_type'] == "auto") {
                ?>
    <?php 
                echo $_smarty_tpl->getSubTemplate("common/analytics.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                ?>

<?php 
            }
            ?>

<?php 
            $_smarty_tpl->_capture_stack[0][] = array("promo_data", null, null);
            ob_start();
            ?>
    <div class="commercial-promotion-text">
        <p><?php 
            echo $_smarty_tpl->tpl_vars['addon_permissions_text']->value['text'];
            ?>
</p>
    <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->smarty->_tag_stack[] = array('inline_script', array());
            $_block_repeat = true;
            echo smarty_block_inline_script(array(), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                echo '<script';
                ?>
 type="text/javascript">
(function(_, $) {
    _.tr({
        cannot_buy: '<?php 
                echo strtr($_smarty_tpl->__("cannot_buy"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        no_products_selected: '<?php 
                echo strtr($_smarty_tpl->__("no_products_selected"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        error_no_items_selected: '<?php 
                echo strtr($_smarty_tpl->__("error_no_items_selected"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        delete_confirmation: '<?php 
                echo strtr($_smarty_tpl->__("delete_confirmation"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        text_out_of_stock: '<?php 
                echo strtr($_smarty_tpl->__("text_out_of_stock"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        items: '<?php 
                echo strtr($_smarty_tpl->__("items"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        text_required_group_product: '<?php 
                echo strtr($_smarty_tpl->__("text_required_group_product"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        save: '<?php 
                echo strtr($_smarty_tpl->__("save"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        close: '<?php 
                echo strtr($_smarty_tpl->__("close"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        loading: '<?php 
                echo strtr($_smarty_tpl->__("loading"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        notice: '<?php 
                echo strtr($_smarty_tpl->__("notice"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        warning: '<?php 
                echo strtr($_smarty_tpl->__("warning"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        error: '<?php 
                echo strtr($_smarty_tpl->__("error"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        text_are_you_sure_to_proceed: '<?php 
                echo strtr($_smarty_tpl->__("text_are_you_sure_to_proceed"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        text_invalid_url: '<?php 
                echo strtr($_smarty_tpl->__("text_invalid_url"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        error_validator_email: '<?php 
                echo strtr($_smarty_tpl->__("error_validator_email"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        error_validator_phone: '<?php 
                echo strtr($_smarty_tpl->__("error_validator_phone"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        error_validator_integer: '<?php 
                echo strtr($_smarty_tpl->__("error_validator_integer"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        error_validator_multiple: '<?php 
                echo strtr($_smarty_tpl->__("error_validator_multiple"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        error_validator_password: '******'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        error_validator_required: '<?php 
                echo strtr($_smarty_tpl->__("error_validator_required"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        error_validator_zipcode: '<?php 
                echo strtr($_smarty_tpl->__("error_validator_zipcode"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        error_validator_message: '<?php 
                echo strtr($_smarty_tpl->__("error_validator_message"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        error_validator_color: '<?php 
                echo strtr($_smarty_tpl->__("error_validator_color"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        text_page_loading: '<?php 
                echo strtr($_smarty_tpl->__("text_page_loading"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        error_ajax: '<?php 
                echo strtr($_smarty_tpl->__("error_ajax"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        text_changes_not_saved: '<?php 
                echo strtr($_smarty_tpl->__("text_changes_not_saved"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        text_data_changed: '<?php 
                echo strtr($_smarty_tpl->__("text_data_changed"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        trial_notice: '<?php 
                echo strtr($_smarty_tpl->__("text_block_trial_notice", array("[href]" => $_smarty_tpl->tpl_vars['config']->value['resources']['license_url'])), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        expired_license: '<?php 
                echo strtr($_smarty_tpl->__("text_expired_license", array("[product]" => @constant('PRODUCT_NAME'))), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        file_browser: '<?php 
                echo strtr($_smarty_tpl->__("file_browser"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        editing_block: '<?php 
                echo strtr($_smarty_tpl->__("editing_block"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        editing_grid: '<?php 
                echo strtr($_smarty_tpl->__("editing_grid"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        editing_container: '<?php 
                echo strtr($_smarty_tpl->__("editing_container"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        adding_grid: '<?php 
                echo strtr($_smarty_tpl->__("adding_grid"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        adding_block_to_grid: '<?php 
                echo strtr($_smarty_tpl->__("adding_block_to_grid"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        manage_blocks: '<?php 
                echo strtr($_smarty_tpl->__("manage_blocks"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        editing_block: '<?php 
                echo strtr($_smarty_tpl->__("editing_block"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        add_block: '<?php 
                echo strtr($_smarty_tpl->__("add_block"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        text_position_updating: '<?php 
                echo strtr($_smarty_tpl->__("text_position_updating"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        more: '<?php 
                echo strtr($_smarty_tpl->__("more"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        browse: '<?php 
                echo strtr($_smarty_tpl->__("browse"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        enter_new_lang_code: '<?php 
                echo strtr($_smarty_tpl->__("enter_new_lang_code"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        no_image: '<?php 
                echo strtr($_smarty_tpl->__("no_image"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
'
    });

    $.extend(_, {
        index_script: '<?php 
                if ($_smarty_tpl->tpl_vars['user_info']->value['user_type'] == 'V') {
                    echo strtr($_smarty_tpl->tpl_vars['config']->value['vendor_index'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                } else {
                    echo strtr($_smarty_tpl->tpl_vars['config']->value['admin_index'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                }
                ?>
',
        changes_warning: '<?php 
                echo strtr($_smarty_tpl->tpl_vars['settings']->value['Appearance']['changes_warning'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        currencies: {
            'primary': {
                'decimals_separator': '<?php 
                echo strtr($_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['decimals_separator'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
                'thousands_separator': '<?php 
                echo strtr($_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['thousands_separator'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
                'decimals': '<?php 
                echo strtr($_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['decimals'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
'
            },
            'secondary': {
                'decimals_separator': '<?php 
                echo strtr($_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['secondary_currency']->value]['decimals_separator'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
                'thousands_separator': '<?php 
                echo strtr($_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['secondary_currency']->value]['thousands_separator'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
                'decimals': '<?php 
                echo strtr($_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['secondary_currency']->value]['decimals'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
                'coefficient': '<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['secondary_currency']->value]['coefficient'], ENT_QUOTES, 'UTF-8');
                ?>
'
            }
        },
        default_editor: '<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['Appearance']['default_wysiwyg_editor'], ENT_QUOTES, 'UTF-8');
                ?>
',
        default_previewer: '<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['Appearance']['default_image_previewer'], ENT_QUOTES, 'UTF-8');
                ?>
',
        current_path: '<?php 
                echo strtr($_smarty_tpl->tpl_vars['config']->value['current_path'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        current_location: '<?php 
                echo strtr($_smarty_tpl->tpl_vars['config']->value['current_location'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        images_dir: '<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['images_dir']->value, ENT_QUOTES, 'UTF-8');
                ?>
',
        notice_displaying_time: <?php 
                if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['notice_displaying_time']) {
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['Appearance']['notice_displaying_time'], ENT_QUOTES, 'UTF-8');
                } else {
                    ?>
0<?php 
                }
                ?>
,
        cart_language: '<?php 
                echo htmlspecialchars(@constant('CART_LANGUAGE'), ENT_QUOTES, 'UTF-8');
                ?>
',
        default_language: '<?php 
                echo htmlspecialchars(@constant('DEFAULT_LANGUAGE'), ENT_QUOTES, 'UTF-8');
                ?>
',
        cart_prices_w_taxes: <?php 
                if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['cart_prices_w_taxes'] == 'Y') {
                    ?>
true<?php 
                } else {
                    ?>
false<?php 
                }
                ?>
,
        theme_name: '<?php 
                echo strtr($_smarty_tpl->tpl_vars['settings']->value['theme_name'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        current_url: '<?php 
                echo strtr(fn_url($_smarty_tpl->tpl_vars['config']->value['current_url']), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
        <?php 
                if ($_smarty_tpl->tpl_vars['config']->value['tweaks']['anti_csrf']) {
                    ?>
        security_hash: '<?php 
                    echo htmlspecialchars(fn_generate_security_hash(''), ENT_QUOTES, 'UTF-8');
                    ?>
', // CSRF form protection key
        <?php 
                }
                ?>
        promo_data: {
            title: '<?php 
                echo strtr($_smarty_tpl->tpl_vars['addon_permissions_text']->value['title'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
',
            text: '<?php 
                echo strtr(Smarty::$_smarty_vars['capture']['promo_data'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
'
        }
    });

    $(document).ready(function(){
        $.runCart('A');
    });
}(Tygh, Tygh.$));
<?php 
                echo '</script';
                ?>
><?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_inline_script(array(), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>


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

<?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_hook(array('name' => "index:scripts"), $_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_scripts(array(), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

<?php 
    }
    function content_55d5c545a0bdb6_78626762($_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_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        fn_preload_lang_vars(array('period', 'all', 'this_day', 'this_week', 'this_month', 'this_year', 'yesterday', 'previous_week', 'previous_month', 'previous_year', 'last_24hours', 'last_n_days', 'last_n_days', 'custom', 'select_dates', 'period', 'all', 'this_day', 'this_week', 'this_month', 'this_year', 'yesterday', 'previous_week', 'previous_month', 'previous_year', 'last_24hours', 'last_n_days', 'last_n_days', 'custom', 'select_dates'));
        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();
            ?>
<div class="ty-period">
    <div class="ty-control-group ty-period__wrapper">
        <label class="ty-control-group__title"><?php 
            echo $_smarty_tpl->__("period");
            ?>
</label>
        <select class="ty-period__select" name="period" id="period_selects">
            <option value="A" <?php 
            if ($_smarty_tpl->tpl_vars['period']->value == "A" || !$_smarty_tpl->tpl_vars['period']->value) {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("all");
            ?>
</option>
            <optgroup label="=============">
                <option value="D" <?php 
            if ($_smarty_tpl->tpl_vars['period']->value == "D") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("this_day");
            ?>
</option>
                <option value="W" <?php 
            if ($_smarty_tpl->tpl_vars['period']->value == "W") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("this_week");
            ?>
</option>
                <option value="M" <?php 
            if ($_smarty_tpl->tpl_vars['period']->value == "M") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("this_month");
            ?>
</option>
                <option value="Y" <?php 
            if ($_smarty_tpl->tpl_vars['period']->value == "Y") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("this_year");
            ?>
</option>
            </optgroup>
            <optgroup label="=============">
                <option value="LD" <?php 
            if ($_smarty_tpl->tpl_vars['period']->value == "LD") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("yesterday");
            ?>
</option>
                <option value="LW" <?php 
            if ($_smarty_tpl->tpl_vars['period']->value == "LW") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("previous_week");
            ?>
</option>
                <option value="LM" <?php 
            if ($_smarty_tpl->tpl_vars['period']->value == "LM") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("previous_month");
            ?>
</option>
                <option value="LY" <?php 
            if ($_smarty_tpl->tpl_vars['period']->value == "LY") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("previous_year");
            ?>
</option>
            </optgroup>
            <optgroup label="=============">
                <option value="HH" <?php 
            if ($_smarty_tpl->tpl_vars['period']->value == "HH") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("last_24hours");
            ?>
</option>
                <option value="HW" <?php 
            if ($_smarty_tpl->tpl_vars['period']->value == "HW") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("last_n_days", array("[N]" => 7));
            ?>
</option>
                <option value="HM" <?php 
            if ($_smarty_tpl->tpl_vars['period']->value == "HM") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("last_n_days", array("[N]" => 30));
            ?>
</option>
            </optgroup>
            <optgroup label="=============">
                <option value="C" <?php 
            if ($_smarty_tpl->tpl_vars['period']->value == "C") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("custom");
            ?>
</option>
            </optgroup>
        </select>
    </div>

    <div class="ty-control-group ty-period__select-date calendar">
        <label class="ty-control-group__title"><?php 
            echo $_smarty_tpl->__("select_dates");
            ?>
</label>
        <?php 
            echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "f_date", 'date_name' => "time_from", 'date_val' => $_smarty_tpl->tpl_vars['search']->value['time_from'], 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year'], 'extra' => "onchange=\"Tygh." . "\$" . "('#period_selects').val('C');\""), 0);
            ?>

        <span class="ty-period__dash">&#8211;</span>
        <?php 
            echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "t_date", 'date_name' => "time_to", 'date_val' => $_smarty_tpl->tpl_vars['search']->value['time_to'], 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year'], 'extra' => "onchange=\"Tygh." . "\$" . "('#period_selects').val('C');\""), 0);
            ?>

    </div>

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

    <script type="text/javascript">
    Tygh.$(document).ready(function()<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['ldelim']->value, ENT_QUOTES, 'UTF-8');
            ?>

        Tygh.$('#<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8');
            ?>
period_selects').cePeriodSelector(<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['ldelim']->value, ENT_QUOTES, 'UTF-8');
            ?>

            from: '<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8');
            ?>
f_date',
            to: '<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8');
            ?>
t_date'
        <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['rdelim']->value, ENT_QUOTES, 'UTF-8');
            ?>
);
    <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['rdelim']->value, ENT_QUOTES, 'UTF-8');
            ?>
);
    </script>
</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();
            }
            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/period_selector.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "common/period_selector.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 {
            ?>
<div class="ty-period">
    <div class="ty-control-group ty-period__wrapper">
        <label class="ty-control-group__title"><?php 
            echo $_smarty_tpl->__("period");
            ?>
</label>
        <select class="ty-period__select" name="period" id="period_selects">
            <option value="A" <?php 
            if ($_smarty_tpl->tpl_vars['period']->value == "A" || !$_smarty_tpl->tpl_vars['period']->value) {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("all");
            ?>
</option>
            <optgroup label="=============">
                <option value="D" <?php 
            if ($_smarty_tpl->tpl_vars['period']->value == "D") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("this_day");
            ?>
</option>
                <option value="W" <?php 
            if ($_smarty_tpl->tpl_vars['period']->value == "W") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("this_week");
            ?>
</option>
                <option value="M" <?php 
            if ($_smarty_tpl->tpl_vars['period']->value == "M") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("this_month");
            ?>
</option>
                <option value="Y" <?php 
            if ($_smarty_tpl->tpl_vars['period']->value == "Y") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("this_year");
            ?>
</option>
            </optgroup>
            <optgroup label="=============">
                <option value="LD" <?php 
            if ($_smarty_tpl->tpl_vars['period']->value == "LD") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("yesterday");
            ?>
</option>
                <option value="LW" <?php 
            if ($_smarty_tpl->tpl_vars['period']->value == "LW") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("previous_week");
            ?>
</option>
                <option value="LM" <?php 
            if ($_smarty_tpl->tpl_vars['period']->value == "LM") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("previous_month");
            ?>
</option>
                <option value="LY" <?php 
            if ($_smarty_tpl->tpl_vars['period']->value == "LY") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("previous_year");
            ?>
</option>
            </optgroup>
            <optgroup label="=============">
                <option value="HH" <?php 
            if ($_smarty_tpl->tpl_vars['period']->value == "HH") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("last_24hours");
            ?>
</option>
                <option value="HW" <?php 
            if ($_smarty_tpl->tpl_vars['period']->value == "HW") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("last_n_days", array("[N]" => 7));
            ?>
</option>
                <option value="HM" <?php 
            if ($_smarty_tpl->tpl_vars['period']->value == "HM") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("last_n_days", array("[N]" => 30));
            ?>
</option>
            </optgroup>
            <optgroup label="=============">
                <option value="C" <?php 
            if ($_smarty_tpl->tpl_vars['period']->value == "C") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("custom");
            ?>
</option>
            </optgroup>
        </select>
    </div>

    <div class="ty-control-group ty-period__select-date calendar">
        <label class="ty-control-group__title"><?php 
            echo $_smarty_tpl->__("select_dates");
            ?>
</label>
        <?php 
            echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "f_date", 'date_name' => "time_from", 'date_val' => $_smarty_tpl->tpl_vars['search']->value['time_from'], 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year'], 'extra' => "onchange=\"Tygh." . "\$" . "('#period_selects').val('C');\""), 0);
            ?>

        <span class="ty-period__dash">&#8211;</span>
        <?php 
            echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "t_date", 'date_name' => "time_to", 'date_val' => $_smarty_tpl->tpl_vars['search']->value['time_to'], 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year'], 'extra' => "onchange=\"Tygh." . "\$" . "('#period_selects').val('C');\""), 0);
            ?>

    </div>

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

    <script type="text/javascript">
    Tygh.$(document).ready(function()<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['ldelim']->value, ENT_QUOTES, 'UTF-8');
            ?>

        Tygh.$('#<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8');
            ?>
period_selects').cePeriodSelector(<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['ldelim']->value, ENT_QUOTES, 'UTF-8');
            ?>

            from: '<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8');
            ?>
f_date',
            to: '<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8');
            ?>
t_date'
        <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['rdelim']->value, ENT_QUOTES, 'UTF-8');
            ?>
);
    <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['rdelim']->value, ENT_QUOTES, 'UTF-8');
            ?>
);
    </script>
</div><?php 
        }
    }
    function content_55d5c53ccbba35_89477845($_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_block_hook')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php';
        }
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        fn_preload_lang_vars(array('remove_this_item', 'remove_this_item', 'upload_another_file', 'upload_file', 'or', 'specify_url', 'remove_this_item', 'remove_this_item', 'upload_another_file', 'upload_file', 'or', 'specify_url'));
        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_script(array('src' => "js/tygh/fileuploader_scripts.js"), $_smarty_tpl);
            ?>

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


<?php 
            ob_start();
            echo htmlspecialchars(md5($_smarty_tpl->tpl_vars['var_name']->value), ENT_QUOTES, 'UTF-8');
            $_tmp1 = ob_get_clean();
            $_smarty_tpl->tpl_vars["id_var_name"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['prefix']->value . $_tmp1, null, 0);
            ?>

<div class="ty-fileuploader cm-field-container">
    <input type="hidden" id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['label_id']->value, ENT_QUOTES, 'UTF-8');
            ?>
" value="<?php 
            if ($_smarty_tpl->tpl_vars['images']->value) {
                echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            }
            ?>
" />

    <?php 
            $_smarty_tpl->tpl_vars["image"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["image"]->_loop = false;
            $_smarty_tpl->tpl_vars["image_id"] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['images']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars["image"]->key => $_smarty_tpl->tpl_vars["image"]->value) {
                $_smarty_tpl->tpl_vars["image"]->_loop = true;
                $_smarty_tpl->tpl_vars["image_id"]->value = $_smarty_tpl->tpl_vars["image"]->key;
                ?>
        <div class="ty-fileuploader__file-section cm-uploaded-image" id="message_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
                ?>
_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['image']->value['file'], ENT_QUOTES, 'UTF-8');
                ?>
" title="">
            <p class="cm-fu-file">
                <?php 
                $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "fileuploader:links"));
                $_block_repeat = true;
                echo smarty_block_hook(array('name' => "fileuploader:links"), null, $_smarty_tpl, $_block_repeat);
                while ($_block_repeat) {
                    ob_start();
                    ?>

                    <?php 
                    if ($_smarty_tpl->tpl_vars['image']->value['location'] == "cart") {
                        ?>
                        <?php 
                        $_smarty_tpl->tpl_vars["delete_link"] = new Smarty_variable("checkout.delete_file?cart_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&option_id=" . (string) $_smarty_tpl->tpl_vars['po']->value['option_id'] . "&file=" . (string) $_smarty_tpl->tpl_vars['image_id']->value . "&redirect_mode=cart", null, 0);
                        ?>
                        <?php 
                        $_smarty_tpl->tpl_vars["download_link"] = new Smarty_variable("checkout.get_custom_file?cart_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&option_id=" . (string) $_smarty_tpl->tpl_vars['po']->value['option_id'] . "&file=" . (string) $_smarty_tpl->tpl_vars['image_id']->value, null, 0);
                        ?>
                    <?php 
                    }
                    ?>
                <?php 
                    $_block_content = ob_get_clean();
                    $_block_repeat = false;
                    echo smarty_block_hook(array('name' => "fileuploader:links"), $_block_content, $_smarty_tpl, $_block_repeat);
                }
                array_pop($_smarty_tpl->smarty->_tag_stack);
                ?>

                <?php 
                if ($_smarty_tpl->tpl_vars['image']->value['is_image']) {
                    ?>
                    <a href="<?php 
                    echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['image']->value['detailed']), ENT_QUOTES, 'UTF-8');
                    ?>
"><img src="<?php 
                    echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['image']->value['thumbnail']), ENT_QUOTES, 'UTF-8');
                    ?>
" /></a><br />
                <?php 
                }
                ?>

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

                    <?php 
                    if ($_smarty_tpl->tpl_vars['delete_link']->value) {
                        ?>
                    <a class="cm-ajax" href="<?php 
                        echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['delete_link']->value), ENT_QUOTES, 'UTF-8');
                        ?>
"><?php 
                    }
                    if (!($_smarty_tpl->tpl_vars['po']->value['required'] == "Y" && count($_smarty_tpl->tpl_vars['images']->value) == 1)) {
                        ?>
<i id="clean_selection_<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
                        ?>
_<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['image']->value['file'], ENT_QUOTES, 'UTF-8');
                        ?>
" title="<?php 
                        echo $_smarty_tpl->__("remove_this_item");
                        ?>
" onclick="Tygh.fileuploader.clean_selection(this.id); <?php 
                        if ($_smarty_tpl->tpl_vars['multiupload']->value != "Y") {
                            ?>
Tygh.fileuploader.toggle_links('<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
                            ?>
', 'show');<?php 
                        }
                        ?>
 Tygh.fileuploader.check_required_field('<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
                        ?>
', '<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['label_id']->value, ENT_QUOTES, 'UTF-8');
                        ?>
');" class="ty-icon-cancel-circle fileuploader__icon"></i><?php 
                    }
                    if ($_smarty_tpl->tpl_vars['delete_link']->value) {
                        ?>
</a><?php 
                    }
                    ?>
<span class="ty-fileuploader__filename ty-filename-link"><?php 
                    if ($_smarty_tpl->tpl_vars['download_link']->value) {
                        ?>
<a class="cm-no-ajax" href="<?php 
                        echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['download_link']->value), ENT_QUOTES, 'UTF-8');
                        ?>
"><?php 
                    }
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['image']->value['name'], ENT_QUOTES, 'UTF-8');
                    if ($_smarty_tpl->tpl_vars['download_link']->value) {
                        ?>
</a><?php 
                    }
                    ?>
</span>
                <?php 
                    $_block_content = ob_get_clean();
                    $_block_repeat = false;
                    echo smarty_block_hook(array('name' => "fileuploader:uploaded_files"), $_block_content, $_smarty_tpl, $_block_repeat);
                }
                array_pop($_smarty_tpl->smarty->_tag_stack);
                ?>

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

    <div class="ty-nowrap" id="file_uploader_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
">
        <div class="ty-fileuploader__file-section" id="message_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" title="">
            <p class="cm-fu-file hidden"><i id="clean_selection_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" title="<?php 
            echo $_smarty_tpl->__("remove_this_item");
            ?>
" onclick="Tygh.fileuploader.clean_selection(this.id); <?php 
            if ($_smarty_tpl->tpl_vars['multiupload']->value != "Y") {
                ?>
Tygh.fileuploader.toggle_links(this.id, 'show');<?php 
            }
            ?>
 Tygh.fileuploader.check_required_field('<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
', '<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['label_id']->value, ENT_QUOTES, 'UTF-8');
            ?>
');" class="ty-icon-cancel-circle ty-fileuploader__icon"></i><span class="ty-fileuploader__filename ty-filename-link"></span></p>
        </div>

        <div class="ty-fileuploader__file-link <?php 
            if ($_smarty_tpl->tpl_vars['multiupload']->value != "Y" && $_smarty_tpl->tpl_vars['images']->value) {
                ?>
hidden<?php 
            }
            ?>
" id="link_container_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
"><input type="hidden" name="file_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" value="<?php 
            if ($_smarty_tpl->tpl_vars['image_name']->value) {
                echo htmlspecialchars($_smarty_tpl->tpl_vars['image_name']->value, ENT_QUOTES, 'UTF-8');
            }
            ?>
" id="file_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" /><input type="hidden" name="type_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" value="<?php 
            if ($_smarty_tpl->tpl_vars['image_name']->value) {
                ?>
local<?php 
            }
            ?>
" id="type_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" /><div class="ty-fileuploader__file-local upload-file-local"><input type="file" class="ty-fileuploader__file-input" name="file_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" id="local_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" onchange="Tygh.fileuploader.show_loader(this.id); <?php 
            if ($_smarty_tpl->tpl_vars['multiupload']->value == "Y") {
                ?>
Tygh.fileuploader.check_image(this.id);<?php 
            } else {
                ?>
Tygh.fileuploader.toggle_links(this.id, 'hide');<?php 
            }
            ?>
 Tygh.fileuploader.check_required_field('<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
', '<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['label_id']->value, ENT_QUOTES, 'UTF-8');
            ?>
');" data-ca-empty-file="" onclick="Tygh.$(this).removeAttr('data-ca-empty-file');"><a data-ca-multi="Y" <?php 
            if (!$_smarty_tpl->tpl_vars['images']->value) {
                ?>
class="hidden"<?php 
            }
            ?>
><?php 
            echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['upload_another_file_text']->value) === null || $tmp === '' ? $_smarty_tpl->__("upload_another_file") : $tmp, ENT_QUOTES, 'UTF-8');
            ?>
</a><a data-ca-target-id="local_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" data-ca-multi="N" class="ty-fileuploader__a<?php 
            if ($_smarty_tpl->tpl_vars['images']->value) {
                ?>
 hidden<?php 
            }
            ?>
"><?php 
            echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['upload_file_text']->value) === null || $tmp === '' ? $_smarty_tpl->__("upload_file") : $tmp, ENT_QUOTES, 'UTF-8');
            ?>
</a></div><?php 
            if ($_smarty_tpl->tpl_vars['allow_url_uploading']->value) {
                ?>
&nbsp;<?php 
                echo $_smarty_tpl->__("or");
                ?>
&nbsp;<a onclick="Tygh.fileuploader.show_loader(this.id); <?php 
                if ($_smarty_tpl->tpl_vars['multiupload']->value == "Y") {
                    ?>
Tygh.fileuploader.check_image(this.id);<?php 
                } else {
                    ?>
Tygh.fileuploader.toggle_links(this.id, 'hide');<?php 
                }
                ?>
 Tygh.fileuploader.check_required_field('<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
                ?>
', '<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['label_id']->value, ENT_QUOTES, 'UTF-8');
                ?>
');" id="url_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
                ?>
"><?php 
                echo $_smarty_tpl->__("specify_url");
                ?>
</a><?php 
            }
            if ($_smarty_tpl->tpl_vars['hidden_name']->value) {
                ?>
<input type="hidden" name="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['hidden_name']->value, ENT_QUOTES, 'UTF-8');
                ?>
" value="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['hidden_value']->value, ENT_QUOTES, 'UTF-8');
                ?>
"><?php 
            }
            ?>
</div>
    </div>

</div><!--fileuploader--><?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="common/fileuploader.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "common/fileuploader.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_script(array('src' => "js/tygh/fileuploader_scripts.js"), $_smarty_tpl);
            ?>

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


<?php 
            ob_start();
            echo htmlspecialchars(md5($_smarty_tpl->tpl_vars['var_name']->value), ENT_QUOTES, 'UTF-8');
            $_tmp2 = ob_get_clean();
            $_smarty_tpl->tpl_vars["id_var_name"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['prefix']->value . $_tmp2, null, 0);
            ?>

<div class="ty-fileuploader cm-field-container">
    <input type="hidden" id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['label_id']->value, ENT_QUOTES, 'UTF-8');
            ?>
" value="<?php 
            if ($_smarty_tpl->tpl_vars['images']->value) {
                echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            }
            ?>
" />

    <?php 
            $_smarty_tpl->tpl_vars["image"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["image"]->_loop = false;
            $_smarty_tpl->tpl_vars["image_id"] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['images']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars["image"]->key => $_smarty_tpl->tpl_vars["image"]->value) {
                $_smarty_tpl->tpl_vars["image"]->_loop = true;
                $_smarty_tpl->tpl_vars["image_id"]->value = $_smarty_tpl->tpl_vars["image"]->key;
                ?>
        <div class="ty-fileuploader__file-section cm-uploaded-image" id="message_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
                ?>
_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['image']->value['file'], ENT_QUOTES, 'UTF-8');
                ?>
" title="">
            <p class="cm-fu-file">
                <?php 
                $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "fileuploader:links"));
                $_block_repeat = true;
                echo smarty_block_hook(array('name' => "fileuploader:links"), null, $_smarty_tpl, $_block_repeat);
                while ($_block_repeat) {
                    ob_start();
                    ?>

                    <?php 
                    if ($_smarty_tpl->tpl_vars['image']->value['location'] == "cart") {
                        ?>
                        <?php 
                        $_smarty_tpl->tpl_vars["delete_link"] = new Smarty_variable("checkout.delete_file?cart_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&option_id=" . (string) $_smarty_tpl->tpl_vars['po']->value['option_id'] . "&file=" . (string) $_smarty_tpl->tpl_vars['image_id']->value . "&redirect_mode=cart", null, 0);
                        ?>
                        <?php 
                        $_smarty_tpl->tpl_vars["download_link"] = new Smarty_variable("checkout.get_custom_file?cart_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&option_id=" . (string) $_smarty_tpl->tpl_vars['po']->value['option_id'] . "&file=" . (string) $_smarty_tpl->tpl_vars['image_id']->value, null, 0);
                        ?>
                    <?php 
                    }
                    ?>
                <?php 
                    $_block_content = ob_get_clean();
                    $_block_repeat = false;
                    echo smarty_block_hook(array('name' => "fileuploader:links"), $_block_content, $_smarty_tpl, $_block_repeat);
                }
                array_pop($_smarty_tpl->smarty->_tag_stack);
                ?>

                <?php 
                if ($_smarty_tpl->tpl_vars['image']->value['is_image']) {
                    ?>
                    <a href="<?php 
                    echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['image']->value['detailed']), ENT_QUOTES, 'UTF-8');
                    ?>
"><img src="<?php 
                    echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['image']->value['thumbnail']), ENT_QUOTES, 'UTF-8');
                    ?>
" /></a><br />
                <?php 
                }
                ?>

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

                    <?php 
                    if ($_smarty_tpl->tpl_vars['delete_link']->value) {
                        ?>
                    <a class="cm-ajax" href="<?php 
                        echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['delete_link']->value), ENT_QUOTES, 'UTF-8');
                        ?>
"><?php 
                    }
                    if (!($_smarty_tpl->tpl_vars['po']->value['required'] == "Y" && count($_smarty_tpl->tpl_vars['images']->value) == 1)) {
                        ?>
<i id="clean_selection_<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
                        ?>
_<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['image']->value['file'], ENT_QUOTES, 'UTF-8');
                        ?>
" title="<?php 
                        echo $_smarty_tpl->__("remove_this_item");
                        ?>
" onclick="Tygh.fileuploader.clean_selection(this.id); <?php 
                        if ($_smarty_tpl->tpl_vars['multiupload']->value != "Y") {
                            ?>
Tygh.fileuploader.toggle_links('<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
                            ?>
', 'show');<?php 
                        }
                        ?>
 Tygh.fileuploader.check_required_field('<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
                        ?>
', '<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['label_id']->value, ENT_QUOTES, 'UTF-8');
                        ?>
');" class="ty-icon-cancel-circle fileuploader__icon"></i><?php 
                    }
                    if ($_smarty_tpl->tpl_vars['delete_link']->value) {
                        ?>
</a><?php 
                    }
                    ?>
<span class="ty-fileuploader__filename ty-filename-link"><?php 
                    if ($_smarty_tpl->tpl_vars['download_link']->value) {
                        ?>
<a class="cm-no-ajax" href="<?php 
                        echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['download_link']->value), ENT_QUOTES, 'UTF-8');
                        ?>
"><?php 
                    }
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['image']->value['name'], ENT_QUOTES, 'UTF-8');
                    if ($_smarty_tpl->tpl_vars['download_link']->value) {
                        ?>
</a><?php 
                    }
                    ?>
</span>
                <?php 
                    $_block_content = ob_get_clean();
                    $_block_repeat = false;
                    echo smarty_block_hook(array('name' => "fileuploader:uploaded_files"), $_block_content, $_smarty_tpl, $_block_repeat);
                }
                array_pop($_smarty_tpl->smarty->_tag_stack);
                ?>

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

    <div class="ty-nowrap" id="file_uploader_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
">
        <div class="ty-fileuploader__file-section" id="message_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" title="">
            <p class="cm-fu-file hidden"><i id="clean_selection_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" title="<?php 
            echo $_smarty_tpl->__("remove_this_item");
            ?>
" onclick="Tygh.fileuploader.clean_selection(this.id); <?php 
            if ($_smarty_tpl->tpl_vars['multiupload']->value != "Y") {
                ?>
Tygh.fileuploader.toggle_links(this.id, 'show');<?php 
            }
            ?>
 Tygh.fileuploader.check_required_field('<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
', '<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['label_id']->value, ENT_QUOTES, 'UTF-8');
            ?>
');" class="ty-icon-cancel-circle ty-fileuploader__icon"></i><span class="ty-fileuploader__filename ty-filename-link"></span></p>
        </div>

        <div class="ty-fileuploader__file-link <?php 
            if ($_smarty_tpl->tpl_vars['multiupload']->value != "Y" && $_smarty_tpl->tpl_vars['images']->value) {
                ?>
hidden<?php 
            }
            ?>
" id="link_container_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
"><input type="hidden" name="file_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" value="<?php 
            if ($_smarty_tpl->tpl_vars['image_name']->value) {
                echo htmlspecialchars($_smarty_tpl->tpl_vars['image_name']->value, ENT_QUOTES, 'UTF-8');
            }
            ?>
" id="file_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" /><input type="hidden" name="type_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" value="<?php 
            if ($_smarty_tpl->tpl_vars['image_name']->value) {
                ?>
local<?php 
            }
            ?>
" id="type_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" /><div class="ty-fileuploader__file-local upload-file-local"><input type="file" class="ty-fileuploader__file-input" name="file_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" id="local_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" onchange="Tygh.fileuploader.show_loader(this.id); <?php 
            if ($_smarty_tpl->tpl_vars['multiupload']->value == "Y") {
                ?>
Tygh.fileuploader.check_image(this.id);<?php 
            } else {
                ?>
Tygh.fileuploader.toggle_links(this.id, 'hide');<?php 
            }
            ?>
 Tygh.fileuploader.check_required_field('<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
', '<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['label_id']->value, ENT_QUOTES, 'UTF-8');
            ?>
');" data-ca-empty-file="" onclick="Tygh.$(this).removeAttr('data-ca-empty-file');"><a data-ca-multi="Y" <?php 
            if (!$_smarty_tpl->tpl_vars['images']->value) {
                ?>
class="hidden"<?php 
            }
            ?>
><?php 
            echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['upload_another_file_text']->value) === null || $tmp === '' ? $_smarty_tpl->__("upload_another_file") : $tmp, ENT_QUOTES, 'UTF-8');
            ?>
</a><a data-ca-target-id="local_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" data-ca-multi="N" class="ty-fileuploader__a<?php 
            if ($_smarty_tpl->tpl_vars['images']->value) {
                ?>
 hidden<?php 
            }
            ?>
"><?php 
            echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['upload_file_text']->value) === null || $tmp === '' ? $_smarty_tpl->__("upload_file") : $tmp, ENT_QUOTES, 'UTF-8');
            ?>
</a></div><?php 
            if ($_smarty_tpl->tpl_vars['allow_url_uploading']->value) {
                ?>
&nbsp;<?php 
                echo $_smarty_tpl->__("or");
                ?>
&nbsp;<a onclick="Tygh.fileuploader.show_loader(this.id); <?php 
                if ($_smarty_tpl->tpl_vars['multiupload']->value == "Y") {
                    ?>
Tygh.fileuploader.check_image(this.id);<?php 
                } else {
                    ?>
Tygh.fileuploader.toggle_links(this.id, 'hide');<?php 
                }
                ?>
 Tygh.fileuploader.check_required_field('<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
                ?>
', '<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['label_id']->value, ENT_QUOTES, 'UTF-8');
                ?>
');" id="url_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
                ?>
"><?php 
                echo $_smarty_tpl->__("specify_url");
                ?>
</a><?php 
            }
            if ($_smarty_tpl->tpl_vars['hidden_name']->value) {
                ?>
<input type="hidden" name="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['hidden_name']->value, ENT_QUOTES, 'UTF-8');
                ?>
" value="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['hidden_value']->value, ENT_QUOTES, 'UTF-8');
                ?>
"><?php 
            }
            ?>
</div>
    </div>

</div><!--fileuploader--><?php 
        }
    }
    function content_55ccf2eab791e0_87754991($_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_split')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.split.php';
        }
        if (!is_callable('smarty_function_math')) {
            include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/function.math.php';
        }
        if (!is_callable('smarty_block_hook')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php';
        }
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        fn_preload_lang_vars(array('enter_your_price', 'contact_us_for_price', 'empty', 'enter_your_price', 'contact_us_for_price', 'empty'));
        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();
            if ($_smarty_tpl->tpl_vars['products']->value) {
                ?>
    
    <?php 
                echo smarty_function_script(array('src' => "js/tygh/exceptions.js"), $_smarty_tpl);
                ?>

    

    <?php 
                if (!$_smarty_tpl->tpl_vars['no_pagination']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/pagination2.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>
    
    <?php 
                if (!$_smarty_tpl->tpl_vars['no_sorting']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("views/products/components/sorting.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>

    <?php 
                if (!$_smarty_tpl->tpl_vars['show_empty']->value) {
                    ?>
        <?php 
                    echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products"), $_smarty_tpl);
                    ?>

    <?php 
                } else {
                    ?>
        <?php 
                    echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products", 'skip_complete' => true), $_smarty_tpl);
                    ?>

    <?php 
                }
                ?>

    <?php 
                echo smarty_function_math(array('equation' => "100 / x", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "cell_width"), $_smarty_tpl);
                ?>

    <?php 
                if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars["cur_number"] = new Smarty_variable(1, null, 0);
                    ?>
    <?php 
                }
                ?>

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


    <?php 
                if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars['quick_nav_ids'] = new Smarty_variable(fn_fields_from_multi_level($_smarty_tpl->tpl_vars['products']->value, "product_id", "product_id"), null, 0);
                    ?>
    <?php 
                }
                ?>
    
    <div class="grid-list testgridlist2">
        <?php 
                $_smarty_tpl->tpl_vars["sproducts"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["sproducts"]->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['splitted_products']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars["sproducts"]->total = $_smarty_tpl->_count($_from);
                $_smarty_tpl->tpl_vars["sproducts"]->iteration = 0;
                foreach ($_from as $_smarty_tpl->tpl_vars["sproducts"]->key => $_smarty_tpl->tpl_vars["sproducts"]->value) {
                    $_smarty_tpl->tpl_vars["sproducts"]->_loop = true;
                    $_smarty_tpl->tpl_vars["sproducts"]->iteration++;
                    $_smarty_tpl->tpl_vars["sproducts"]->last = $_smarty_tpl->tpl_vars["sproducts"]->iteration === $_smarty_tpl->tpl_vars["sproducts"]->total;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sprod"]['last'] = $_smarty_tpl->tpl_vars["sproducts"]->last;
                    $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["product"]->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['sproducts']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration'] = 0;
                    foreach ($_from as $_smarty_tpl->tpl_vars["product"]->key => $_smarty_tpl->tpl_vars["product"]->value) {
                        $_smarty_tpl->tpl_vars["product"]->_loop = true;
                        $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration']++;
                        ?>
<div class="ty-column<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8');
                        ?>
 ls_grid_coloumns"><?php 
                        if ($_smarty_tpl->tpl_vars['product']->value) {
                            $_smarty_tpl->tpl_vars["obj_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                            $_smarty_tpl->tpl_vars["obj_id_prefix"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                            echo $_smarty_tpl->getSubTemplate("common/product_data.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value), 0);
                            $_smarty_tpl->tpl_vars["form_open"] = new Smarty_variable("form_open_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_open']->value];
                            $_smarty_tpl->tpl_vars["wishlist_id"] = new Smarty_variable('', null, 0);
                            if ($_smarty_tpl->tpl_vars['wishlist']->value) {
                                $_smarty_tpl->tpl_vars["wishlist_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['cart_id'], null, 0);
                            }
                            ?>
<div class="ty-grid-list__item ty-quick-view-button__wrapper" id="grid_product_default_tpl_<?php 
                            if ($_smarty_tpl->tpl_vars['wishlist_id']->value) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8');
                            } else {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                            }
                            ?>
"><?php 
                            $_smarty_tpl->tpl_vars["is_wishlist"] = new Smarty_variable(false, null, 0);
                            if ($_smarty_tpl->tpl_vars['product']->value['cart_id']) {
                                $_smarty_tpl->tpl_vars["is_wishlist"] = new Smarty_variable(true, null, 0);
                            }
                            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:product_multicolumns_list"));
                            $_block_repeat = true;
                            echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), null, $_smarty_tpl, $_block_repeat);
                            while ($_block_repeat) {
                                ob_start();
                                ?>
<div class="ty-grid-list__image"><div class="ty-grid-list__top_info"><?php 
                                if ($_smarty_tpl->tpl_vars['product']->value['promo_name'] || $_smarty_tpl->tpl_vars['product']->value['top_title']) {
                                    ?>
<div class="ty-grid-list__top_info_promo_name"><?php 
                                    if ($_smarty_tpl->tpl_vars['product']->value['promo_name']) {
                                        echo $_smarty_tpl->tpl_vars['product']->value['promo_name'];
                                    } elseif ($_smarty_tpl->tpl_vars['product']->value['top_title']) {
                                        echo $_smarty_tpl->tpl_vars['product']->value['top_title'];
                                    }
                                    ?>
</div><?php 
                                }
                                ?>
</div><?php 
                                echo $_smarty_tpl->getSubTemplate("views/products/components/product_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value, 'wishlist' => $_smarty_tpl->tpl_vars['is_wishlist']->value, 'show_gallery' => true, 'ls_is_category_page' => true), 0);
                                $_smarty_tpl->tpl_vars["discount_label"] = new Smarty_variable("discount_label_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['discount_label']->value];
                                ?>
</div><div class="ty-grid-list__item-name"><a href="<?php 
                                echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "`&wishlist_id=" . (string) $_smarty_tpl->tpl_vars['wishlist_id']->value . "`"), ENT_QUOTES, 'UTF-8');
                                ?>
" class="ty-cart-content__product-title"><?php 
                                if (strlen($_smarty_tpl->tpl_vars['product']->value['product']) > 24) {
                                    echo substr($_smarty_tpl->tpl_vars['product']->value['product'], 0, 24);
                                    ?>
 ...<?php 
                                } else {
                                    echo $_smarty_tpl->tpl_vars['product']->value['product'];
                                }
                                ?>
</a><?php 
                                if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") {
                                    ?>
<span class="item-number"><?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['cur_number']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
.&nbsp;</span><?php 
                                    echo smarty_function_math(array('equation' => "num + 1", 'num' => $_smarty_tpl->tpl_vars['cur_number']->value, 'assign' => "cur_number"), $_smarty_tpl);
                                }
                                $_smarty_tpl->tpl_vars["name"] = new Smarty_variable("name_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                ?>
</div><div class="ty-grid-list__item-subtitle"><?php 
                                echo $_smarty_tpl->tpl_vars['product']->value['subtitle'];
                                ?>
</div><div class="ty-grid-list__price <?php 
                                if ($_smarty_tpl->tpl_vars['product']->value['price'] == 0) {
                                    ?>
ty-grid-list__no-price<?php 
                                }
                                ?>
"><?php 
                                if ($_smarty_tpl->tpl_vars['product']->value['discount']) {
                                    $_smarty_tpl->tpl_vars["old_price"] = new Smarty_variable("old_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                    if (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value])) {
                                        echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value];
                                    }
                                } else {
                                    $_smarty_tpl->tpl_vars["price"] = new Smarty_variable("price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['price']->value];
                                }
                                $_smarty_tpl->tpl_vars["list_discount"] = new Smarty_variable("list_discount_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['list_discount']->value];
                                ?>
</div><div class="ty-grid-list__control"><?php 
                                if ($_REQUEST['dispatch'] == 'wishlist.view') {
                                    echo $_smarty_tpl->getSubTemplate("views/products/components/move_to_cart_button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('wishlist' => $_smarty_tpl->tpl_vars['wishlist_id']->value, 'item_id' => $_smarty_tpl->tpl_vars['product']->value['cart_id'], 'quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0);
                                } elseif ($_REQUEST['dispatch'] != 'wishlist.view' && $_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
                                    echo $_smarty_tpl->getSubTemplate("views/products/components/quick_view_link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('wishlist' => $_smarty_tpl->tpl_vars['wishlist_id']->value, 'item_id' => $_smarty_tpl->tpl_vars['product']->value['cart_id'], 'quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0);
                                }
                                ?>
<div class="controller_flip"><a href="" onclick="fn_flip_info('<?php 
                                if ($_smarty_tpl->tpl_vars['wishlist_id']->value) {
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8');
                                } else {
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                }
                                ?>
', 'grid_product_default_tpl', 'grid_product_short_details_tpl');return false;" class="controller_flip_link" >test</a></div><?php 
                                if ($_smarty_tpl->tpl_vars['show_add_to_cart']->value) {
                                    ?>
<div class="button-container"><?php 
                                    $_smarty_tpl->tpl_vars["add_to_cart"] = new Smarty_variable("add_to_cart_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['add_to_cart']->value];
                                    ?>
</div><?php 
                                }
                                ?>
</div><?php 
                                $_block_content = ob_get_clean();
                                $_block_repeat = false;
                                echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), $_block_content, $_smarty_tpl, $_block_repeat);
                            }
                            array_pop($_smarty_tpl->smarty->_tag_stack);
                            ?>
</div><div class="product_short_details" id="grid_product_short_details_tpl_<?php 
                            if ($_smarty_tpl->tpl_vars['wishlist_id']->value) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8');
                            } else {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                            }
                            ?>
" style="display:none;"><div class="grid_product_short_details_title"><?php 
                            echo $_smarty_tpl->tpl_vars['product']->value['product'];
                            ?>
</div><div class="grid_product_short_details_short_desc"><?php 
                            echo $_smarty_tpl->tpl_vars['product']->value['subtitle'];
                            ?>
</div><?php 
                            $_smarty_tpl->tpl_vars["rating"] = new Smarty_variable("rating_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            if (Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value]) {
                                ?>
<div class="grid-list__rating"><?php 
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value];
                                ?>
</div><?php 
                            }
                            ?>
<div class="grid_product_short_details_price"><?php 
                            if ($_smarty_tpl->tpl_vars['product']->value['price_range']) {
                                ?>
<span class="ty-price<?php 
                                if (!floatval($_smarty_tpl->tpl_vars['product']->value['price_range']['min_price']) && !$_smarty_tpl->tpl_vars['product']->value['zero_price_action']) {
                                    ?>
 hidden<?php 
                                }
                                ?>
" id="line_discounted_price_<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                ?>
"><?php 
                                echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => round($_smarty_tpl->tpl_vars['product']->value['price_range']['min_price']) - $_smarty_tpl->tpl_vars['product']->value['promo_value'] - $_smarty_tpl->tpl_vars['product']->value['price_range']['min_price'] * $_smarty_tpl->tpl_vars['product']->value['promo_percentage'] / 100, 'span_id' => "discounted_price_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, 'class' => "ty-price-num"), 0);
                                ?>
-<?php 
                                echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => floatval(round($_smarty_tpl->tpl_vars['product']->value['price_range']['max_price']) - floatval($_smarty_tpl->tpl_vars['product']->value['promo_value']) - floatval(floatval($_smarty_tpl->tpl_vars['product']->value['price_range']['max_price']) * $_smarty_tpl->tpl_vars['product']->value['promo_percentage'] / 100)), 'span_id' => "discounted_price_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, 'class' => "ty-price-num"), 0);
                                ?>
</span><?php 
                            } else {
                                if (floatval($_smarty_tpl->tpl_vars['product']->value['price']) || $_smarty_tpl->tpl_vars['product']->value['zero_price_action'] == "P" || $_smarty_tpl->tpl_vars['hide_add_to_cart_button']->value == "Y" && $_smarty_tpl->tpl_vars['product']->value['zero_price_action'] == "A") {
                                    ?>
<span class="ty-price<?php 
                                    if (!floatval($_smarty_tpl->tpl_vars['product']->value['price']) && !$_smarty_tpl->tpl_vars['product']->value['zero_price_action']) {
                                        ?>
 hidden<?php 
                                    }
                                    ?>
" id="line_discounted_price_<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
"><?php 
                                    if ($_smarty_tpl->tpl_vars['details_page']->value) {
                                    }
                                    echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['product']->value['price'], 'span_id' => "discounted_price_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, 'class' => "ty-price-num"), 0);
                                    ?>
</span><?php 
                                } elseif ($_smarty_tpl->tpl_vars['product']->value['zero_price_action'] == "A" && $_smarty_tpl->tpl_vars['show_add_to_cart']->value) {
                                    $_smarty_tpl->tpl_vars["base_currency"] = new Smarty_variable($_smarty_tpl->tpl_vars['currencies']->value[@constant('CART_PRIMARY_CURRENCY')], null, 0);
                                    ?>
<span class="ty-price-curency"><span class="ty-price-curency__title"><?php 
                                    echo $_smarty_tpl->__("enter_your_price");
                                    ?>
:</span><div class="ty-price-curency-input"><?php 
                                    if ($_smarty_tpl->tpl_vars['base_currency']->value['after'] != "Y") {
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['base_currency']->value['symbol'], ENT_QUOTES, 'UTF-8');
                                    }
                                    ?>
<input class="ty-price-curency__input" type="text" size="3" name="product_data[<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
][price]" value="" /></div><?php 
                                    if ($_smarty_tpl->tpl_vars['base_currency']->value['after'] == "Y") {
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['base_currency']->value['symbol'], ENT_QUOTES, 'UTF-8');
                                    }
                                    ?>
</span><?php 
                                } elseif ($_smarty_tpl->tpl_vars['product']->value['zero_price_action'] == "R") {
                                    ?>
<span class="ty-no-price"><?php 
                                    echo $_smarty_tpl->__("contact_us_for_price");
                                    ?>
</span><?php 
                                    $_smarty_tpl->tpl_vars["show_qty"] = new Smarty_variable(false, null, 0);
                                }
                            }
                            ?>
</div><div class="grid_product_short_details_global_options"><?php 
                            if ($_REQUEST['dispatch'] == 'wishlist.view') {
                                ?>
<input type="hidden" name="redirect_url" value="index.php?dispatch=wishlist.delete&cart_id=<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8');
                                ?>
" /><input type="hidden" name="appearance[show_price_values]" value="1" /><input type="hidden" name="appearance[show_price]" value="1" /><input type="hidden" name="appearance[show_product_options]" value="1" /><input type="hidden" name="appearance[details_page]" value="1" /><input type="hidden" name="appearance[dont_show_points]" value="" /><input type="hidden" name="appearance[show_sku]" value="" /><input type="hidden" name="appearance[show_product_amount]" value="1" /><input type="hidden" name="appearance[show_add_to_cart]" value="1" /><input type="hidden" name="appearance[separate_buttons]" value="1" /><input type="hidden" name="appearance[show_list_buttons]" value="1" /><input type="hidden" name="appearance[but_role]" value="big" /><input type="hidden" name="appearance[quick_view]" value="" /><input type="hidden" name="additional_info[info_type]" value="D" /><input type="hidden" name="additional_info[get_icon]" value="1" /><input type="hidden" name="additional_info[get_detailed]" value="1" /><input type="hidden" name="additional_info[get_additional]" value="" /><input type="hidden" name="additional_info[get_options]" value="1" /><input type="hidden" name="additional_info[get_discounts]" value="1" /><input type="hidden" name="additional_info[get_features]" value="" /><input type="hidden" name="additional_info[get_extra]" value="" /><input type="hidden" name="additional_info[get_taxed_prices]" value="1" /><input type="hidden" name="additional_info[get_for_one_product]" value="1" /><input type="hidden" name="additional_info[detailed_params]" value="1" /><input type="hidden" name="additional_info[features_display_on]" value="C" /><input type="hidden" name="product_data[<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                ?>
][extra][price_calc][total_price_calc]" value="<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['price'], ENT_QUOTES, 'UTF-8');
                                ?>
" /><?php 
                            }
                            if (count($_smarty_tpl->tpl_vars['product']->value['product_options']) > 0) {
                                $_smarty_tpl->tpl_vars["product_option_iterat_nr"] = new Smarty_variable(1, null, 0);
                                $_smarty_tpl->tpl_vars["product_options"] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars["product_options"]->_loop = false;
                                $_from = $_smarty_tpl->tpl_vars['product']->value['product_options'];
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars["product_options"]->key => $_smarty_tpl->tpl_vars["product_options"]->value) {
                                    $_smarty_tpl->tpl_vars["product_options"]->_loop = true;
                                    if ($_smarty_tpl->tpl_vars['product_option_iterat_nr']->value < 5) {
                                        ?>
<div class="grid_product_short_details_global_option"><?php 
                                        if ($_REQUEST['dispatch'] == 'wishlist.view') {
                                            ?>
<label class="ty-control-group__label ty-product-options__item-label cm-required" for="option_<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                            ?>
_<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['option_id'], ENT_QUOTES, 'UTF-8');
                                            ?>
"><?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['option_name'], ENT_QUOTES, 'UTF-8');
                                            ?>
:</label><label class="ty-control-group__label ty-product-options__item-label label_option_variant_selected"><?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['variants'][$_smarty_tpl->tpl_vars['product']->value['selected_options'][$_smarty_tpl->tpl_vars['product_options']->value['option_id']]]['variant_name'], ENT_QUOTES, 'UTF-8');
                                            ?>
<input type="hidden" value="<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['variants'][$_smarty_tpl->tpl_vars['product']->value['selected_options'][$_smarty_tpl->tpl_vars['product_options']->value['option_id']]]['variant_id'], ENT_QUOTES, 'UTF-8');
                                            ?>
" name="product_data[<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                            ?>
][product_options][<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['option_id'], ENT_QUOTES, 'UTF-8');
                                            ?>
]"></label><?php 
                                        } else {
                                            if (!$_smarty_tpl->tpl_vars['product_options']->value['product_id']) {
                                                ?>
<span class="grid_product_short_details_global_option_title"><?php 
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['option_name'], ENT_QUOTES, 'UTF-8');
                                                ?>
</span><br/><div class="grid_product_short_details_global_option_variants"><?php 
                                                if (count($_smarty_tpl->tpl_vars['product_options']->value['variants']) > 0) {
                                                    $_smarty_tpl->tpl_vars["product_option__variants_iterat_nr"] = new Smarty_variable(1, null, 0);
                                                    $_smarty_tpl->tpl_vars["product_option_variant"] = new Smarty_Variable();
                                                    $_smarty_tpl->tpl_vars["product_option_variant"]->_loop = false;
                                                    $_from = $_smarty_tpl->tpl_vars['product_options']->value['variants'];
                                                    if (!is_array($_from) && !is_object($_from)) {
                                                        settype($_from, 'array');
                                                    }
                                                    foreach ($_from as $_smarty_tpl->tpl_vars["product_option_variant"]->key => $_smarty_tpl->tpl_vars["product_option_variant"]->value) {
                                                        $_smarty_tpl->tpl_vars["product_option_variant"]->_loop = true;
                                                        if ($_smarty_tpl->tpl_vars['product_option__variants_iterat_nr']->value < 5) {
                                                            if ($_smarty_tpl->tpl_vars['product_options']->value['option_type'] == 'Y' && count($_smarty_tpl->tpl_vars['product_option_variant']->value['image_pair']) > 0) {
                                                                echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('class' => (string) $_smarty_tpl->tpl_vars['_class']->value . " ty-product-options__image", 'images' => $_smarty_tpl->tpl_vars['product_option_variant']->value['image_pair'], 'obj_id' => "variant_image_" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "_" . (string) $_smarty_tpl->tpl_vars['product_options']->value['option_id'] . "_" . (string) $_smarty_tpl->tpl_vars['product_option_variant']->value['variant_id']), 0);
                                                            } else {
                                                                ?>
<span class="grid_product_short_details_global_option_variant_title"><?php 
                                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['product_option_variant']->value['variant_name'], ENT_QUOTES, 'UTF-8');
                                                                ?>
</span>&nbsp;&nbsp;&nbsp;<?php 
                                                            }
                                                        } elseif ($_smarty_tpl->tpl_vars['product_option__variants_iterat_nr']->value == 5) {
                                                            ?>
<span class="option_variant_continue"> ..... </span><?php 
                                                        }
                                                        $_smarty_tpl->tpl_vars["product_option__variants_iterat_nr"] = new Smarty_variable($_smarty_tpl->tpl_vars['product_option__variants_iterat_nr']->value + 1, null, 0);
                                                    }
                                                }
                                                ?>
</div><?php 
                                            }
                                        }
                                        ?>
</div><?php 
                                    }
                                    $_smarty_tpl->tpl_vars["product_option_iterat_nr"] = new Smarty_variable($_smarty_tpl->tpl_vars['product_option_iterat_nr']->value + 1, null, 0);
                                }
                            }
                            if ($_REQUEST['dispatch'] == 'wishlist.view') {
                                ?>
<input type="hidden" name="ls_calculate_estimate" value="true" /><input type="hidden" name="full_render" value="Y" /><input type="hidden" name="dispatch[checkout.add..<?php 
                                ob_start();
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                $_tmp1 = ob_get_clean();
                                echo htmlspecialchars($_tmp1, ENT_QUOTES, 'UTF-8');
                                ?>
]" value="" /><?php 
                            }
                            ?>
</div><div class="grid_product_short_details_view_product"><a href="<?php 
                            echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "`&wishlist_id=" . (string) $_smarty_tpl->tpl_vars['wishlist_id']->value . "`"), ENT_QUOTES, 'UTF-8');
                            ?>
" class="ty-cart-content__product-title-button">VEZI PRODUSUL</a></div><div class="ty-grid-list__control grid_product_short_details_control_buttons"><?php 
                            if ($_REQUEST['dispatch'] == 'wishlist.view') {
                                echo $_smarty_tpl->getSubTemplate("views/products/components/move_to_cart_button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('wishlist' => $_smarty_tpl->tpl_vars['wishlist_id']->value, 'item_id' => $_smarty_tpl->tpl_vars['product']->value['cart_id'], 'quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0);
                            } elseif ($_REQUEST['dispatch'] != 'wishlist.view' && $_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
                                echo $_smarty_tpl->getSubTemplate("views/products/components/quick_view_link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('wishlist' => $_smarty_tpl->tpl_vars['wishlist_id']->value, 'item_id' => $_smarty_tpl->tpl_vars['product']->value['cart_id'], 'quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0);
                            }
                            ?>
<div class="controller_flip"><a href="" onclick="fn_flip_info('<?php 
                            if ($_smarty_tpl->tpl_vars['wishlist_id']->value) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8');
                            } else {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                            }
                            ?>
', 'grid_product_short_details_tpl', 'grid_product_default_tpl');return false;" class="controller_flip_link" >test</a></div></div></div><?php 
                            $_smarty_tpl->tpl_vars["form_close"] = new Smarty_variable("form_close_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_close']->value];
                        }
                        ?>
</div><?php 
                    }
                    if ($_smarty_tpl->tpl_vars['show_empty']->value && $_smarty_tpl->getVariable('smarty')->value['foreach']['sprod']['last']) {
                        $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable($_smarty_tpl->getVariable('smarty')->value['foreach']['sproducts']['iteration'], null, 0);
                        $_smarty_tpl->_capture_stack[0][] = array("iteration", null, null);
                        ob_start();
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['iteration']->value, ENT_QUOTES, 'UTF-8');
                        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                        if (!empty($_capture_buffer)) {
                            if (isset($_capture_assign)) {
                                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                            }
                            if (isset($_capture_append)) {
                                $_smarty_tpl->append($_capture_append, ob_get_contents());
                            }
                            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                        } else {
                            $_smarty_tpl->capture_error();
                        }
                        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:products_multicolumns_extra"));
                        $_block_repeat = true;
                        echo smarty_block_hook(array('name' => "products:products_multicolumns_extra"), null, $_smarty_tpl, $_block_repeat);
                        while ($_block_repeat) {
                            ob_start();
                            $_block_content = ob_get_clean();
                            $_block_repeat = false;
                            echo smarty_block_hook(array('name' => "products:products_multicolumns_extra"), $_block_content, $_smarty_tpl, $_block_repeat);
                        }
                        array_pop($_smarty_tpl->smarty->_tag_stack);
                        $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable(Smarty::$_smarty_vars['capture']['iteration'], null, 0);
                        if ($_smarty_tpl->tpl_vars['iteration']->value % $_smarty_tpl->tpl_vars['columns']->value != 0) {
                            echo smarty_function_math(array('assign' => "empty_count", 'equation' => "c - it%c", 'it' => $_smarty_tpl->tpl_vars['iteration']->value, 'c' => $_smarty_tpl->tpl_vars['columns']->value), $_smarty_tpl);
                            if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"])) {
                                unset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]);
                            }
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['empty_count']->value) ? count($_loop) : max(0, (int) $_loop);
                            unset($_loop);
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['name'] = "empty_rows";
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = true;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] = 1;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] - 1;
                            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                                if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] == 0) {
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = false;
                                }
                            } else {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = 0;
                            }
                            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                                for ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration']++) {
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == 1;
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'];
                                    ?>
<div class="ty-column<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
"><div class="ty-product-empty"><span class="ty-product-empty__text"><?php 
                                    echo $_smarty_tpl->__("empty");
                                    ?>
</span></div></div><?php 
                                }
                            }
                        }
                    }
                }
                ?>
    </div>
    <?php 
                echo $_smarty_tpl->getSubTemplate("common/ls_next_page.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                ?>

    <?php 
                if (!$_smarty_tpl->tpl_vars['no_pagination']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/pagination2.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>

<?php 
            }
            ?>

<?php 
            $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null);
            ob_start();
            echo htmlspecialchars($_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8');
            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();
            }
            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="blocks/list_templates/grid_list.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "blocks/list_templates/grid_list.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 {
            if ($_smarty_tpl->tpl_vars['products']->value) {
                ?>
    
    <?php 
                echo smarty_function_script(array('src' => "js/tygh/exceptions.js"), $_smarty_tpl);
                ?>

    

    <?php 
                if (!$_smarty_tpl->tpl_vars['no_pagination']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/pagination2.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>
    
    <?php 
                if (!$_smarty_tpl->tpl_vars['no_sorting']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("views/products/components/sorting.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>

    <?php 
                if (!$_smarty_tpl->tpl_vars['show_empty']->value) {
                    ?>
        <?php 
                    echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products"), $_smarty_tpl);
                    ?>

    <?php 
                } else {
                    ?>
        <?php 
                    echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products", 'skip_complete' => true), $_smarty_tpl);
                    ?>

    <?php 
                }
                ?>

    <?php 
                echo smarty_function_math(array('equation' => "100 / x", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "cell_width"), $_smarty_tpl);
                ?>

    <?php 
                if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars["cur_number"] = new Smarty_variable(1, null, 0);
                    ?>
    <?php 
                }
                ?>

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


    <?php 
                if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars['quick_nav_ids'] = new Smarty_variable(fn_fields_from_multi_level($_smarty_tpl->tpl_vars['products']->value, "product_id", "product_id"), null, 0);
                    ?>
    <?php 
                }
                ?>
    
    <div class="grid-list testgridlist2">
        <?php 
                $_smarty_tpl->tpl_vars["sproducts"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["sproducts"]->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['splitted_products']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars["sproducts"]->total = $_smarty_tpl->_count($_from);
                $_smarty_tpl->tpl_vars["sproducts"]->iteration = 0;
                foreach ($_from as $_smarty_tpl->tpl_vars["sproducts"]->key => $_smarty_tpl->tpl_vars["sproducts"]->value) {
                    $_smarty_tpl->tpl_vars["sproducts"]->_loop = true;
                    $_smarty_tpl->tpl_vars["sproducts"]->iteration++;
                    $_smarty_tpl->tpl_vars["sproducts"]->last = $_smarty_tpl->tpl_vars["sproducts"]->iteration === $_smarty_tpl->tpl_vars["sproducts"]->total;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sprod"]['last'] = $_smarty_tpl->tpl_vars["sproducts"]->last;
                    $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["product"]->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['sproducts']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration'] = 0;
                    foreach ($_from as $_smarty_tpl->tpl_vars["product"]->key => $_smarty_tpl->tpl_vars["product"]->value) {
                        $_smarty_tpl->tpl_vars["product"]->_loop = true;
                        $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration']++;
                        ?>
<div class="ty-column<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8');
                        ?>
 ls_grid_coloumns"><?php 
                        if ($_smarty_tpl->tpl_vars['product']->value) {
                            $_smarty_tpl->tpl_vars["obj_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                            $_smarty_tpl->tpl_vars["obj_id_prefix"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                            echo $_smarty_tpl->getSubTemplate("common/product_data.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value), 0);
                            $_smarty_tpl->tpl_vars["form_open"] = new Smarty_variable("form_open_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_open']->value];
                            $_smarty_tpl->tpl_vars["wishlist_id"] = new Smarty_variable('', null, 0);
                            if ($_smarty_tpl->tpl_vars['wishlist']->value) {
                                $_smarty_tpl->tpl_vars["wishlist_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['cart_id'], null, 0);
                            }
                            ?>
<div class="ty-grid-list__item ty-quick-view-button__wrapper" id="grid_product_default_tpl_<?php 
                            if ($_smarty_tpl->tpl_vars['wishlist_id']->value) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8');
                            } else {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                            }
                            ?>
"><?php 
                            $_smarty_tpl->tpl_vars["is_wishlist"] = new Smarty_variable(false, null, 0);
                            if ($_smarty_tpl->tpl_vars['product']->value['cart_id']) {
                                $_smarty_tpl->tpl_vars["is_wishlist"] = new Smarty_variable(true, null, 0);
                            }
                            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:product_multicolumns_list"));
                            $_block_repeat = true;
                            echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), null, $_smarty_tpl, $_block_repeat);
                            while ($_block_repeat) {
                                ob_start();
                                ?>
<div class="ty-grid-list__image"><div class="ty-grid-list__top_info"><?php 
                                if ($_smarty_tpl->tpl_vars['product']->value['promo_name'] || $_smarty_tpl->tpl_vars['product']->value['top_title']) {
                                    ?>
<div class="ty-grid-list__top_info_promo_name"><?php 
                                    if ($_smarty_tpl->tpl_vars['product']->value['promo_name']) {
                                        echo $_smarty_tpl->tpl_vars['product']->value['promo_name'];
                                    } elseif ($_smarty_tpl->tpl_vars['product']->value['top_title']) {
                                        echo $_smarty_tpl->tpl_vars['product']->value['top_title'];
                                    }
                                    ?>
</div><?php 
                                }
                                ?>
</div><?php 
                                echo $_smarty_tpl->getSubTemplate("views/products/components/product_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value, 'wishlist' => $_smarty_tpl->tpl_vars['is_wishlist']->value, 'show_gallery' => true, 'ls_is_category_page' => true), 0);
                                $_smarty_tpl->tpl_vars["discount_label"] = new Smarty_variable("discount_label_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['discount_label']->value];
                                ?>
</div><div class="ty-grid-list__item-name"><a href="<?php 
                                echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "`&wishlist_id=" . (string) $_smarty_tpl->tpl_vars['wishlist_id']->value . "`"), ENT_QUOTES, 'UTF-8');
                                ?>
" class="ty-cart-content__product-title"><?php 
                                if (strlen($_smarty_tpl->tpl_vars['product']->value['product']) > 24) {
                                    echo substr($_smarty_tpl->tpl_vars['product']->value['product'], 0, 24);
                                    ?>
 ...<?php 
                                } else {
                                    echo $_smarty_tpl->tpl_vars['product']->value['product'];
                                }
                                ?>
</a><?php 
                                if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") {
                                    ?>
<span class="item-number"><?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['cur_number']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
.&nbsp;</span><?php 
                                    echo smarty_function_math(array('equation' => "num + 1", 'num' => $_smarty_tpl->tpl_vars['cur_number']->value, 'assign' => "cur_number"), $_smarty_tpl);
                                }
                                $_smarty_tpl->tpl_vars["name"] = new Smarty_variable("name_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                ?>
</div><div class="ty-grid-list__item-subtitle"><?php 
                                echo $_smarty_tpl->tpl_vars['product']->value['subtitle'];
                                ?>
</div><div class="ty-grid-list__price <?php 
                                if ($_smarty_tpl->tpl_vars['product']->value['price'] == 0) {
                                    ?>
ty-grid-list__no-price<?php 
                                }
                                ?>
"><?php 
                                if ($_smarty_tpl->tpl_vars['product']->value['discount']) {
                                    $_smarty_tpl->tpl_vars["old_price"] = new Smarty_variable("old_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                    if (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value])) {
                                        echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value];
                                    }
                                } else {
                                    $_smarty_tpl->tpl_vars["price"] = new Smarty_variable("price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['price']->value];
                                }
                                $_smarty_tpl->tpl_vars["list_discount"] = new Smarty_variable("list_discount_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['list_discount']->value];
                                ?>
</div><div class="ty-grid-list__control"><?php 
                                if ($_REQUEST['dispatch'] == 'wishlist.view') {
                                    echo $_smarty_tpl->getSubTemplate("views/products/components/move_to_cart_button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('wishlist' => $_smarty_tpl->tpl_vars['wishlist_id']->value, 'item_id' => $_smarty_tpl->tpl_vars['product']->value['cart_id'], 'quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0);
                                } elseif ($_REQUEST['dispatch'] != 'wishlist.view' && $_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
                                    echo $_smarty_tpl->getSubTemplate("views/products/components/quick_view_link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('wishlist' => $_smarty_tpl->tpl_vars['wishlist_id']->value, 'item_id' => $_smarty_tpl->tpl_vars['product']->value['cart_id'], 'quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0);
                                }
                                ?>
<div class="controller_flip"><a href="" onclick="fn_flip_info('<?php 
                                if ($_smarty_tpl->tpl_vars['wishlist_id']->value) {
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8');
                                } else {
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                }
                                ?>
', 'grid_product_default_tpl', 'grid_product_short_details_tpl');return false;" class="controller_flip_link" >test</a></div><?php 
                                if ($_smarty_tpl->tpl_vars['show_add_to_cart']->value) {
                                    ?>
<div class="button-container"><?php 
                                    $_smarty_tpl->tpl_vars["add_to_cart"] = new Smarty_variable("add_to_cart_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['add_to_cart']->value];
                                    ?>
</div><?php 
                                }
                                ?>
</div><?php 
                                $_block_content = ob_get_clean();
                                $_block_repeat = false;
                                echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), $_block_content, $_smarty_tpl, $_block_repeat);
                            }
                            array_pop($_smarty_tpl->smarty->_tag_stack);
                            ?>
</div><div class="product_short_details" id="grid_product_short_details_tpl_<?php 
                            if ($_smarty_tpl->tpl_vars['wishlist_id']->value) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8');
                            } else {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                            }
                            ?>
" style="display:none;"><div class="grid_product_short_details_title"><?php 
                            echo $_smarty_tpl->tpl_vars['product']->value['product'];
                            ?>
</div><div class="grid_product_short_details_short_desc"><?php 
                            echo $_smarty_tpl->tpl_vars['product']->value['subtitle'];
                            ?>
</div><?php 
                            $_smarty_tpl->tpl_vars["rating"] = new Smarty_variable("rating_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            if (Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value]) {
                                ?>
<div class="grid-list__rating"><?php 
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value];
                                ?>
</div><?php 
                            }
                            ?>
<div class="grid_product_short_details_price"><?php 
                            if ($_smarty_tpl->tpl_vars['product']->value['price_range']) {
                                ?>
<span class="ty-price<?php 
                                if (!floatval($_smarty_tpl->tpl_vars['product']->value['price_range']['min_price']) && !$_smarty_tpl->tpl_vars['product']->value['zero_price_action']) {
                                    ?>
 hidden<?php 
                                }
                                ?>
" id="line_discounted_price_<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                ?>
"><?php 
                                echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => round($_smarty_tpl->tpl_vars['product']->value['price_range']['min_price']) - $_smarty_tpl->tpl_vars['product']->value['promo_value'] - $_smarty_tpl->tpl_vars['product']->value['price_range']['min_price'] * $_smarty_tpl->tpl_vars['product']->value['promo_percentage'] / 100, 'span_id' => "discounted_price_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, 'class' => "ty-price-num"), 0);
                                ?>
-<?php 
                                echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => floatval(round($_smarty_tpl->tpl_vars['product']->value['price_range']['max_price']) - floatval($_smarty_tpl->tpl_vars['product']->value['promo_value']) - floatval(floatval($_smarty_tpl->tpl_vars['product']->value['price_range']['max_price']) * $_smarty_tpl->tpl_vars['product']->value['promo_percentage'] / 100)), 'span_id' => "discounted_price_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, 'class' => "ty-price-num"), 0);
                                ?>
</span><?php 
                            } else {
                                if (floatval($_smarty_tpl->tpl_vars['product']->value['price']) || $_smarty_tpl->tpl_vars['product']->value['zero_price_action'] == "P" || $_smarty_tpl->tpl_vars['hide_add_to_cart_button']->value == "Y" && $_smarty_tpl->tpl_vars['product']->value['zero_price_action'] == "A") {
                                    ?>
<span class="ty-price<?php 
                                    if (!floatval($_smarty_tpl->tpl_vars['product']->value['price']) && !$_smarty_tpl->tpl_vars['product']->value['zero_price_action']) {
                                        ?>
 hidden<?php 
                                    }
                                    ?>
" id="line_discounted_price_<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8');
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
"><?php 
                                    if ($_smarty_tpl->tpl_vars['details_page']->value) {
                                    }
                                    echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['product']->value['price'], 'span_id' => "discounted_price_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, 'class' => "ty-price-num"), 0);
                                    ?>
</span><?php 
                                } elseif ($_smarty_tpl->tpl_vars['product']->value['zero_price_action'] == "A" && $_smarty_tpl->tpl_vars['show_add_to_cart']->value) {
                                    $_smarty_tpl->tpl_vars["base_currency"] = new Smarty_variable($_smarty_tpl->tpl_vars['currencies']->value[@constant('CART_PRIMARY_CURRENCY')], null, 0);
                                    ?>
<span class="ty-price-curency"><span class="ty-price-curency__title"><?php 
                                    echo $_smarty_tpl->__("enter_your_price");
                                    ?>
:</span><div class="ty-price-curency-input"><?php 
                                    if ($_smarty_tpl->tpl_vars['base_currency']->value['after'] != "Y") {
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['base_currency']->value['symbol'], ENT_QUOTES, 'UTF-8');
                                    }
                                    ?>
<input class="ty-price-curency__input" type="text" size="3" name="product_data[<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
][price]" value="" /></div><?php 
                                    if ($_smarty_tpl->tpl_vars['base_currency']->value['after'] == "Y") {
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['base_currency']->value['symbol'], ENT_QUOTES, 'UTF-8');
                                    }
                                    ?>
</span><?php 
                                } elseif ($_smarty_tpl->tpl_vars['product']->value['zero_price_action'] == "R") {
                                    ?>
<span class="ty-no-price"><?php 
                                    echo $_smarty_tpl->__("contact_us_for_price");
                                    ?>
</span><?php 
                                    $_smarty_tpl->tpl_vars["show_qty"] = new Smarty_variable(false, null, 0);
                                }
                            }
                            ?>
</div><div class="grid_product_short_details_global_options"><?php 
                            if ($_REQUEST['dispatch'] == 'wishlist.view') {
                                ?>
<input type="hidden" name="redirect_url" value="index.php?dispatch=wishlist.delete&cart_id=<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8');
                                ?>
" /><input type="hidden" name="appearance[show_price_values]" value="1" /><input type="hidden" name="appearance[show_price]" value="1" /><input type="hidden" name="appearance[show_product_options]" value="1" /><input type="hidden" name="appearance[details_page]" value="1" /><input type="hidden" name="appearance[dont_show_points]" value="" /><input type="hidden" name="appearance[show_sku]" value="" /><input type="hidden" name="appearance[show_product_amount]" value="1" /><input type="hidden" name="appearance[show_add_to_cart]" value="1" /><input type="hidden" name="appearance[separate_buttons]" value="1" /><input type="hidden" name="appearance[show_list_buttons]" value="1" /><input type="hidden" name="appearance[but_role]" value="big" /><input type="hidden" name="appearance[quick_view]" value="" /><input type="hidden" name="additional_info[info_type]" value="D" /><input type="hidden" name="additional_info[get_icon]" value="1" /><input type="hidden" name="additional_info[get_detailed]" value="1" /><input type="hidden" name="additional_info[get_additional]" value="" /><input type="hidden" name="additional_info[get_options]" value="1" /><input type="hidden" name="additional_info[get_discounts]" value="1" /><input type="hidden" name="additional_info[get_features]" value="" /><input type="hidden" name="additional_info[get_extra]" value="" /><input type="hidden" name="additional_info[get_taxed_prices]" value="1" /><input type="hidden" name="additional_info[get_for_one_product]" value="1" /><input type="hidden" name="additional_info[detailed_params]" value="1" /><input type="hidden" name="additional_info[features_display_on]" value="C" /><input type="hidden" name="product_data[<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                ?>
][extra][price_calc][total_price_calc]" value="<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['price'], ENT_QUOTES, 'UTF-8');
                                ?>
" /><?php 
                            }
                            if (count($_smarty_tpl->tpl_vars['product']->value['product_options']) > 0) {
                                $_smarty_tpl->tpl_vars["product_option_iterat_nr"] = new Smarty_variable(1, null, 0);
                                $_smarty_tpl->tpl_vars["product_options"] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars["product_options"]->_loop = false;
                                $_from = $_smarty_tpl->tpl_vars['product']->value['product_options'];
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars["product_options"]->key => $_smarty_tpl->tpl_vars["product_options"]->value) {
                                    $_smarty_tpl->tpl_vars["product_options"]->_loop = true;
                                    if ($_smarty_tpl->tpl_vars['product_option_iterat_nr']->value < 5) {
                                        ?>
<div class="grid_product_short_details_global_option"><?php 
                                        if ($_REQUEST['dispatch'] == 'wishlist.view') {
                                            ?>
<label class="ty-control-group__label ty-product-options__item-label cm-required" for="option_<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                            ?>
_<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['option_id'], ENT_QUOTES, 'UTF-8');
                                            ?>
"><?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['option_name'], ENT_QUOTES, 'UTF-8');
                                            ?>
:</label><label class="ty-control-group__label ty-product-options__item-label label_option_variant_selected"><?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['variants'][$_smarty_tpl->tpl_vars['product']->value['selected_options'][$_smarty_tpl->tpl_vars['product_options']->value['option_id']]]['variant_name'], ENT_QUOTES, 'UTF-8');
                                            ?>
<input type="hidden" value="<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['variants'][$_smarty_tpl->tpl_vars['product']->value['selected_options'][$_smarty_tpl->tpl_vars['product_options']->value['option_id']]]['variant_id'], ENT_QUOTES, 'UTF-8');
                                            ?>
" name="product_data[<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                            ?>
][product_options][<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['option_id'], ENT_QUOTES, 'UTF-8');
                                            ?>
]"></label><?php 
                                        } else {
                                            if (!$_smarty_tpl->tpl_vars['product_options']->value['product_id']) {
                                                ?>
<span class="grid_product_short_details_global_option_title"><?php 
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['option_name'], ENT_QUOTES, 'UTF-8');
                                                ?>
</span><br/><div class="grid_product_short_details_global_option_variants"><?php 
                                                if (count($_smarty_tpl->tpl_vars['product_options']->value['variants']) > 0) {
                                                    $_smarty_tpl->tpl_vars["product_option__variants_iterat_nr"] = new Smarty_variable(1, null, 0);
                                                    $_smarty_tpl->tpl_vars["product_option_variant"] = new Smarty_Variable();
                                                    $_smarty_tpl->tpl_vars["product_option_variant"]->_loop = false;
                                                    $_from = $_smarty_tpl->tpl_vars['product_options']->value['variants'];
                                                    if (!is_array($_from) && !is_object($_from)) {
                                                        settype($_from, 'array');
                                                    }
                                                    foreach ($_from as $_smarty_tpl->tpl_vars["product_option_variant"]->key => $_smarty_tpl->tpl_vars["product_option_variant"]->value) {
                                                        $_smarty_tpl->tpl_vars["product_option_variant"]->_loop = true;
                                                        if ($_smarty_tpl->tpl_vars['product_option__variants_iterat_nr']->value < 5) {
                                                            if ($_smarty_tpl->tpl_vars['product_options']->value['option_type'] == 'Y' && count($_smarty_tpl->tpl_vars['product_option_variant']->value['image_pair']) > 0) {
                                                                echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('class' => (string) $_smarty_tpl->tpl_vars['_class']->value . " ty-product-options__image", 'images' => $_smarty_tpl->tpl_vars['product_option_variant']->value['image_pair'], 'obj_id' => "variant_image_" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "_" . (string) $_smarty_tpl->tpl_vars['product_options']->value['option_id'] . "_" . (string) $_smarty_tpl->tpl_vars['product_option_variant']->value['variant_id']), 0);
                                                            } else {
                                                                ?>
<span class="grid_product_short_details_global_option_variant_title"><?php 
                                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['product_option_variant']->value['variant_name'], ENT_QUOTES, 'UTF-8');
                                                                ?>
</span>&nbsp;&nbsp;&nbsp;<?php 
                                                            }
                                                        } elseif ($_smarty_tpl->tpl_vars['product_option__variants_iterat_nr']->value == 5) {
                                                            ?>
<span class="option_variant_continue"> ..... </span><?php 
                                                        }
                                                        $_smarty_tpl->tpl_vars["product_option__variants_iterat_nr"] = new Smarty_variable($_smarty_tpl->tpl_vars['product_option__variants_iterat_nr']->value + 1, null, 0);
                                                    }
                                                }
                                                ?>
</div><?php 
                                            }
                                        }
                                        ?>
</div><?php 
                                    }
                                    $_smarty_tpl->tpl_vars["product_option_iterat_nr"] = new Smarty_variable($_smarty_tpl->tpl_vars['product_option_iterat_nr']->value + 1, null, 0);
                                }
                            }
                            if ($_REQUEST['dispatch'] == 'wishlist.view') {
                                ?>
<input type="hidden" name="ls_calculate_estimate" value="true" /><input type="hidden" name="full_render" value="Y" /><input type="hidden" name="dispatch[checkout.add..<?php 
                                ob_start();
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                                $_tmp2 = ob_get_clean();
                                echo htmlspecialchars($_tmp2, ENT_QUOTES, 'UTF-8');
                                ?>
]" value="" /><?php 
                            }
                            ?>
</div><div class="grid_product_short_details_view_product"><a href="<?php 
                            echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "`&wishlist_id=" . (string) $_smarty_tpl->tpl_vars['wishlist_id']->value . "`"), ENT_QUOTES, 'UTF-8');
                            ?>
" class="ty-cart-content__product-title-button">VEZI PRODUSUL</a></div><div class="ty-grid-list__control grid_product_short_details_control_buttons"><?php 
                            if ($_REQUEST['dispatch'] == 'wishlist.view') {
                                echo $_smarty_tpl->getSubTemplate("views/products/components/move_to_cart_button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('wishlist' => $_smarty_tpl->tpl_vars['wishlist_id']->value, 'item_id' => $_smarty_tpl->tpl_vars['product']->value['cart_id'], 'quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0);
                            } elseif ($_REQUEST['dispatch'] != 'wishlist.view' && $_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
                                echo $_smarty_tpl->getSubTemplate("views/products/components/quick_view_link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('wishlist' => $_smarty_tpl->tpl_vars['wishlist_id']->value, 'item_id' => $_smarty_tpl->tpl_vars['product']->value['cart_id'], 'quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0);
                            }
                            ?>
<div class="controller_flip"><a href="" onclick="fn_flip_info('<?php 
                            if ($_smarty_tpl->tpl_vars['wishlist_id']->value) {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8');
                            } else {
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
                            }
                            ?>
', 'grid_product_short_details_tpl', 'grid_product_default_tpl');return false;" class="controller_flip_link" >test</a></div></div></div><?php 
                            $_smarty_tpl->tpl_vars["form_close"] = new Smarty_variable("form_close_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_close']->value];
                        }
                        ?>
</div><?php 
                    }
                    if ($_smarty_tpl->tpl_vars['show_empty']->value && $_smarty_tpl->getVariable('smarty')->value['foreach']['sprod']['last']) {
                        $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable($_smarty_tpl->getVariable('smarty')->value['foreach']['sproducts']['iteration'], null, 0);
                        $_smarty_tpl->_capture_stack[0][] = array("iteration", null, null);
                        ob_start();
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['iteration']->value, ENT_QUOTES, 'UTF-8');
                        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                        if (!empty($_capture_buffer)) {
                            if (isset($_capture_assign)) {
                                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                            }
                            if (isset($_capture_append)) {
                                $_smarty_tpl->append($_capture_append, ob_get_contents());
                            }
                            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                        } else {
                            $_smarty_tpl->capture_error();
                        }
                        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:products_multicolumns_extra"));
                        $_block_repeat = true;
                        echo smarty_block_hook(array('name' => "products:products_multicolumns_extra"), null, $_smarty_tpl, $_block_repeat);
                        while ($_block_repeat) {
                            ob_start();
                            $_block_content = ob_get_clean();
                            $_block_repeat = false;
                            echo smarty_block_hook(array('name' => "products:products_multicolumns_extra"), $_block_content, $_smarty_tpl, $_block_repeat);
                        }
                        array_pop($_smarty_tpl->smarty->_tag_stack);
                        $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable(Smarty::$_smarty_vars['capture']['iteration'], null, 0);
                        if ($_smarty_tpl->tpl_vars['iteration']->value % $_smarty_tpl->tpl_vars['columns']->value != 0) {
                            echo smarty_function_math(array('assign' => "empty_count", 'equation' => "c - it%c", 'it' => $_smarty_tpl->tpl_vars['iteration']->value, 'c' => $_smarty_tpl->tpl_vars['columns']->value), $_smarty_tpl);
                            if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"])) {
                                unset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]);
                            }
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['empty_count']->value) ? count($_loop) : max(0, (int) $_loop);
                            unset($_loop);
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['name'] = "empty_rows";
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = true;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] = 1;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] - 1;
                            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                                if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] == 0) {
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = false;
                                }
                            } else {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = 0;
                            }
                            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                                for ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration']++) {
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == 1;
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'];
                                    ?>
<div class="ty-column<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
"><div class="ty-product-empty"><span class="ty-product-empty__text"><?php 
                                    echo $_smarty_tpl->__("empty");
                                    ?>
</span></div></div><?php 
                                }
                            }
                        }
                    }
                }
                ?>
    </div>
    <?php 
                echo $_smarty_tpl->getSubTemplate("common/ls_next_page.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                ?>

    <?php 
                if (!$_smarty_tpl->tpl_vars['no_pagination']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/pagination2.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>

<?php 
            }
            ?>

<?php 
            $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null);
            ob_start();
            echo htmlspecialchars($_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8');
            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();
            }
        }
    }
    function content_55e61f9b7722c4_18014718($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.script.php';
        }
        if (!is_callable('smarty_block_hook')) {
            include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php';
        }
        fn_preload_lang_vars(array('add_post', 'add_post', 'no_data', 'text_enabled_testimonials_notice'));
        if ($_smarty_tpl->tpl_vars['discussion']->value && $_smarty_tpl->tpl_vars['discussion']->value['object_type'] && !$_smarty_tpl->tpl_vars['discussion']->value['is_empty']) {
            ?>

    <?php 
            $_smarty_tpl->tpl_vars['allow_save'] = new Smarty_variable(($_smarty_tpl->tpl_vars['discussion']->value['object_type'] != "M" || !$_smarty_tpl->tpl_vars['runtime']->value['company_id']) && fn_check_view_permissions("discussion.update"), null, 0);
            ?>

    <div id="content_discussion">
    <div class="clearfix">
        <div class="buttons-container buttons-bg pull-right">
            <?php 
            if (fn_check_view_permissions("discussion.add") && !(fn_allowed_for("MULTIVENDOR") && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] != $_smarty_tpl->tpl_vars['object_company_id']->value || $_smarty_tpl->tpl_vars['discussion']->value['object_type'] == 'M'))) {
                ?>
                <?php 
                if ($_smarty_tpl->tpl_vars['discussion']->value['object_type'] == "E") {
                    ?>
                    <?php 
                    $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null);
                    ob_start();
                    ?>
                        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_post", 'title' => __("add_post"), 'icon' => "icon-plus", 'act' => "general", 'link_class' => "cm-dialog-switch-avail"), 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 
                } else {
                    ?>
                    <?php 
                    echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_post", 'link_text' => __("add_post"), 'act' => "general", 'link_class' => "cm-dialog-switch-avail"), 0);
                    ?>

                <?php 
                }
                ?>
            <?php 
            }
            ?>
            <?php 
            if ($_smarty_tpl->tpl_vars['discussion']->value['posts'] && fn_check_view_permissions("discussion_manager")) {
                ?>
                <?php 
                $_smarty_tpl->tpl_vars['show_save_btn'] = new Smarty_variable(true, null, 2);
                $_ptr = $_smarty_tpl->parent;
                while ($_ptr != null) {
                    $_ptr->tpl_vars['show_save_btn'] = clone $_smarty_tpl->tpl_vars['show_save_btn'];
                    $_ptr = $_ptr->parent;
                }
                ?>
                <?php 
                if ($_smarty_tpl->tpl_vars['discussion']->value['object_type'] == "E") {
                    ?>
                    <?php 
                    $_smarty_tpl->_capture_stack[0][] = array("buttons_insert", null, null);
                    ob_start();
                    ?>
                <?php 
                }
                ?>
                <?php 
                if (fn_check_view_permissions("discussion.m_delete")) {
                    ?>
                    <?php 
                    $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null);
                    ob_start();
                    ?>
                        <li><?php 
                    smarty_template_function_btn($_smarty_tpl, array('type' => "delete_selected", 'dispatch' => "dispatch[discussion.m_delete]", 'form' => "update_posts_form"));
                    ?>
</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 
                }
                ?>
                <?php 
                if ($_smarty_tpl->tpl_vars['discussion']->value['object_type'] == "E") {
                    ?>
                    <?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 
                }
                ?>
            <?php 
            }
            ?>
        </div>
    </div><br>

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

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

        <?php 
                echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('save_current_page' => true, 'id' => "pagination_discussion", 'search' => $_smarty_tpl->tpl_vars['discussion']->value['search']), 0);
                ?>


        <div class="posts-container <?php 
                if ($_smarty_tpl->tpl_vars['allow_save']->value) {
                    ?>
cm-no-hide-input<?php 
                } else {
                    ?>
cm-hide-inputs<?php 
                }
                ?>
">
            <?php 
                $_smarty_tpl->tpl_vars["post"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["post"]->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['discussion']->value['posts'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars["post"]->key => $_smarty_tpl->tpl_vars["post"]->value) {
                    $_smarty_tpl->tpl_vars["post"]->_loop = true;
                    ?>
                <div class="post-item <?php 
                    if ($_smarty_tpl->tpl_vars['discussion']->value['object_type'] == "O") {
                        if ($_smarty_tpl->tpl_vars['post']->value['user_id'] == $_smarty_tpl->tpl_vars['user_id']->value) {
                            ?>
incoming<?php 
                        } else {
                            ?>
outgoing<?php 
                        }
                    }
                    ?>
">
                    <?php 
                    $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "discussion:items_list_row"));
                    $_block_repeat = true;
                    echo smarty_block_hook(array('name' => "discussion:items_list_row"), null, $_smarty_tpl, $_block_repeat);
                    while ($_block_repeat) {
                        ob_start();
                        ?>

                        <?php 
                        echo $_smarty_tpl->getSubTemplate("addons/discussion/views/discussion_manager/components/post.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('post' => $_smarty_tpl->tpl_vars['post']->value, 'type' => $_smarty_tpl->tpl_vars['discussion']->value['type']), 0);
                        ?>

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

                </div>
            <?php 
                }
                ?>
        </div>
        <?php 
                echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "pagination_discussion", 'search' => $_smarty_tpl->tpl_vars['discussion']->value['search']), 0);
                ?>


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

    </div>

<?php 
        } elseif ($_smarty_tpl->tpl_vars['discussion']->value['is_empty']) {
            ?>

    <?php 
            echo $_smarty_tpl->__("text_enabled_testimonials_notice", array("[link]" => fn_url("addons.manage#groupdiscussion")));
            ?>


<?php 
        }
    }
    function content_55db8c5b6b8106_59561402($_smarty_tpl)
    {
        if (!is_callable('smarty_block_inline_script')) {
            include '/var/www/html/market/app/functions/smarty_plugins/block.inline_script.php';
        }
        if (!is_callable('smarty_function_script')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.script.php';
        }
        if (!is_callable('smarty_block_hook')) {
            include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php';
        }
        fn_preload_lang_vars(array('file_is_too_large', 'remove_this_item', 'remove_this_item', 'remove_this_item', 'remove_this_item', 'text_select_file', 'upload_another_file', 'local', 'server', 'url', 'text_allowed_to_upload_file_extension'));
        $_smarty_tpl->tpl_vars['post_max_size'] = new Smarty_variable(ini_get("post_max_size"), null, 0);
        $_smarty_tpl->tpl_vars['post_max_size'] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['post_max_size']->value) === null || $tmp === '' ? ini_get("hhvm.server.max_post_size") : $tmp, null, 0);
        ?>

<?php 
        $_smarty_tpl->tpl_vars['upload_max_filesize'] = new Smarty_variable(ini_get("upload_max_filesize"), null, 0);
        $_smarty_tpl->tpl_vars['upload_max_filesize'] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['upload_max_filesize']->value) === null || $tmp === '' ? ini_get("hhvm.server.upload.upload_max_file_size") : $tmp, null, 0);
        ?>

<?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('inline_script', array());
        $_block_repeat = true;
        echo smarty_block_inline_script(array(), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            echo '<script';
            ?>
 type="text/javascript">
(function(_, $) {
    $.extend(_, {
        post_max_size_bytes: '<?php 
            echo htmlspecialchars(fn_return_bytes($_smarty_tpl->tpl_vars['post_max_size']->value), ENT_QUOTES, 'UTF-8');
            ?>
',
        files_upload_max_size_bytes: '<?php 
            echo htmlspecialchars(fn_return_bytes($_smarty_tpl->tpl_vars['upload_max_filesize']->value), ENT_QUOTES, 'UTF-8');
            ?>
',

        post_max_size_mbytes: '<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['post_max_size']->value, ENT_QUOTES, 'UTF-8');
            ?>
',
        files_upload_max_size_mbytes: '<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['upload_max_filesize']->value, ENT_QUOTES, 'UTF-8');
            ?>
',
        allowed_file_path: '<?php 
            echo htmlspecialchars(fn_get_http_files_dir_path(), ENT_QUOTES, 'UTF-8');
            ?>
'
    });

    _.tr({
        file_is_too_large: '<?php 
            echo strtr($_smarty_tpl->__("file_is_too_large"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
            ?>
'
    });
}(Tygh, Tygh.$));
<?php 
            echo '</script';
            ?>
><?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_inline_script(array(), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>


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

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


<?php 
        ob_start();
        echo htmlspecialchars(md5($_smarty_tpl->tpl_vars['var_name']->value), ENT_QUOTES, 'UTF-8');
        $_tmp1 = ob_get_clean();
        $_smarty_tpl->tpl_vars["id_var_name"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['prefix']->value . $_tmp1, null, 0);
        ?>

<div class="fileuploader cm-field-container">
<input type="hidden" id="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['label_id']->value, ENT_QUOTES, 'UTF-8');
        ?>
" value="<?php 
        if ($_smarty_tpl->tpl_vars['images']->value) {
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
        }
        ?>
" />

<?php 
        $_smarty_tpl->tpl_vars["image"] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars["image"]->_loop = false;
        $_smarty_tpl->tpl_vars["image_id"] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['images']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars["image"]->key => $_smarty_tpl->tpl_vars["image"]->value) {
            $_smarty_tpl->tpl_vars["image"]->_loop = true;
            $_smarty_tpl->tpl_vars["image_id"]->value = $_smarty_tpl->tpl_vars["image"]->key;
            ?>
    <div class="upload-file-section cm-uploaded-image" id="message_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['image']->value['file'], ENT_QUOTES, 'UTF-8');
            ?>
" title="">
        <p class="cm-fu-file">
            <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "fileuploader:links"));
            $_block_repeat = true;
            echo smarty_block_hook(array('name' => "fileuploader:links"), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

                <?php 
                if ($_smarty_tpl->tpl_vars['image']->value['location'] == "cart") {
                    ?>
                    <?php 
                    $_smarty_tpl->tpl_vars["delete_link"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['runtime']->value['controller'] . ".delete_file?cart_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&option_id=" . (string) $_smarty_tpl->tpl_vars['po']->value['option_id'] . "&file=" . (string) $_smarty_tpl->tpl_vars['image_id']->value . "&redirect_mode=cart", null, 0);
                    ?>
                    <?php 
                    $_smarty_tpl->tpl_vars["download_link"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['runtime']->value['controller'] . ".get_custom_file?cart_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&option_id=" . (string) $_smarty_tpl->tpl_vars['po']->value['option_id'] . "&file=" . (string) $_smarty_tpl->tpl_vars['image_id']->value, null, 0);
                    ?>
                <?php 
                }
                ?>
            <?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_hook(array('name' => "fileuploader:links"), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

            <?php 
            if ($_smarty_tpl->tpl_vars['image']->value['is_image']) {
                ?>
                <a href="<?php 
                echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['image']->value['detailed']), ENT_QUOTES, 'UTF-8');
                ?>
"><img src="<?php 
                echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['image']->value['thumbnail']), ENT_QUOTES, 'UTF-8');
                ?>
" border="0" /></a><br />
            <?php 
            }
            ?>
            
            <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "fileuploader:uploaded_files"));
            $_block_repeat = true;
            echo smarty_block_hook(array('name' => "fileuploader:uploaded_files"), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

                <?php 
                if ($_smarty_tpl->tpl_vars['delete_link']->value) {
                    ?>
<a class="cm-ajax cm-post" href="<?php 
                    echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['delete_link']->value), ENT_QUOTES, 'UTF-8');
                    ?>
"><?php 
                }
                if (!($_smarty_tpl->tpl_vars['po']->value['required'] == "Y" && count($_smarty_tpl->tpl_vars['images']->value) == 1)) {
                    ?>
<i id="clean_selection_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['image']->value['file'], ENT_QUOTES, 'UTF-8');
                    ?>
" alt="<?php 
                    echo $_smarty_tpl->__("remove_this_item");
                    ?>
" title="<?php 
                    echo $_smarty_tpl->__("remove_this_item");
                    ?>
" onclick="Tygh.fileuploader.clean_selection(this.id); <?php 
                    if ($_smarty_tpl->tpl_vars['multiupload']->value != "Y") {
                        ?>
Tygh.fileuploader.toggle_links('<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
                        ?>
', 'show');<?php 
                    }
                    ?>
 Tygh.fileuploader.check_required_field('<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
                    ?>
', '<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['label_id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
');" class="icon-remove-sign cm-tooltip hand"></i>&nbsp;<?php 
                }
                if ($_smarty_tpl->tpl_vars['delete_link']->value) {
                    ?>
</a><?php 
                }
                ?>
<span><?php 
                if ($_smarty_tpl->tpl_vars['download_link']->value) {
                    ?>
<a href="<?php 
                    echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['download_link']->value), ENT_QUOTES, 'UTF-8');
                    ?>
"><?php 
                }
                echo htmlspecialchars($_smarty_tpl->tpl_vars['image']->value['name'], ENT_QUOTES, 'UTF-8');
                if ($_smarty_tpl->tpl_vars['download_link']->value) {
                    ?>
</a><?php 
                }
                ?>
</span>
            <?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_hook(array('name' => "fileuploader:uploaded_files"), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

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

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

<div id="file_uploader_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
">
    <div class="upload-file-section" id="message_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" title="">
        <p class="cm-fu-file hidden"><i id="clean_selection_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" alt="<?php 
            echo $_smarty_tpl->__("remove_this_item");
            ?>
" title="<?php 
            echo $_smarty_tpl->__("remove_this_item");
            ?>
" onclick="Tygh.fileuploader.clean_selection(this.id); <?php 
            if ($_smarty_tpl->tpl_vars['multiupload']->value != "Y") {
                ?>
Tygh.fileuploader.toggle_links(this.id, 'show');<?php 
            }
            ?>
 Tygh.fileuploader.check_required_field('<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
', '<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['label_id']->value, ENT_QUOTES, 'UTF-8');
            ?>
');" class="icon-remove-sign cm-tooltip hand"></i>&nbsp;<span></span></p>
        <?php 
            if ($_smarty_tpl->tpl_vars['multiupload']->value != "Y") {
                ?>
<p class="cm-fu-no-file <?php 
                if ($_smarty_tpl->tpl_vars['images']->value) {
                    ?>
hidden<?php 
                }
                ?>
"><?php 
                echo $_smarty_tpl->__("text_select_file");
                ?>
</p><?php 
            }
            ?>
    </div>
    
    <input type="hidden" name="file_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" value="<?php 
            if ($_smarty_tpl->tpl_vars['image_name']->value) {
                echo htmlspecialchars($_smarty_tpl->tpl_vars['image_name']->value, ENT_QUOTES, 'UTF-8');
            }
            ?>
" id="file_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" <?php 
            if ($_smarty_tpl->tpl_vars['is_image']->value) {
                ?>
class="cm-image-field"<?php 
            }
            ?>
 /><input type="hidden" name="type_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" value="<?php 
            if ($_smarty_tpl->tpl_vars['image_name']->value) {
                ?>
local<?php 
            }
            ?>
" id="type_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" <?php 
            if ($_smarty_tpl->tpl_vars['is_image']->value) {
                ?>
class="cm-image-field"<?php 
            }
            ?>
 /><div class="btn-group <?php 
            if ($_smarty_tpl->tpl_vars['multiupload']->value != "Y" && $_smarty_tpl->tpl_vars['images']->value) {
                ?>
hidden<?php 
            }
            ?>
" id="link_container_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
"><div class="upload-file-local"><a class="btn"><span data-ca-multi="Y" <?php 
            if (!$_smarty_tpl->tpl_vars['images']->value) {
                ?>
class="hidden"<?php 
            }
            ?>
><?php 
            echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['upload_another_file_text']->value) === null || $tmp === '' ? $_smarty_tpl->__("upload_another_file") : $tmp, ENT_QUOTES, 'UTF-8');
            ?>
</span><span data-ca-multi="N" <?php 
            if ($_smarty_tpl->tpl_vars['images']->value) {
                ?>
class="hidden"<?php 
            }
            ?>
><?php 
            echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['upload_file_text']->value) === null || $tmp === '' ? $_smarty_tpl->__("local") : $tmp, ENT_QUOTES, 'UTF-8');
            ?>
</span></a><div class="image-selector"><label for=""><input type="file" name="file_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" id="local_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" onchange="Tygh.fileuploader.show_loader(this.id); <?php 
            if ($_smarty_tpl->tpl_vars['multiupload']->value == "Y") {
                ?>
Tygh.fileuploader.check_image(this.id);<?php 
            }
            ?>
 Tygh.fileuploader.check_required_field('<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
', '<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['label_id']->value, ENT_QUOTES, 'UTF-8');
            ?>
');" class="file<?php 
            if ($_smarty_tpl->tpl_vars['is_image']->value) {
                ?>
 cm-image-field<?php 
            }
            ?>
" data-ca-empty-file="" onclick="Tygh.$(this).removeAttr('data-ca-empty-file');"></label></div></div><?php 
            if (!($_smarty_tpl->tpl_vars['hide_server']->value || defined("RESTRICTED_ADMIN"))) {
                ?>
<a class="btn" onclick="Tygh.fileuploader.show_loader(this.id);" id="server_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
                ?>
"><?php 
                echo $_smarty_tpl->__("server");
                ?>
</a><?php 
            }
            ?>
<a class="btn" onclick="Tygh.fileuploader.show_loader(this.id);" id="url_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
"><?php 
            echo $_smarty_tpl->__("url");
            ?>
</a><?php 
            if ($_smarty_tpl->tpl_vars['hidden_name']->value) {
                ?>
<input type="hidden" name="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['hidden_name']->value, ENT_QUOTES, 'UTF-8');
                ?>
" value="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['hidden_value']->value, ENT_QUOTES, 'UTF-8');
                ?>
"><?php 
            }
            ?>
</div><?php 
            if ($_smarty_tpl->tpl_vars['allowed_ext']->value) {
                ?>
<p class="mute micro-note"><?php 
                echo $_smarty_tpl->__("text_allowed_to_upload_file_extension", array("[ext]" => $_smarty_tpl->tpl_vars['allowed_ext']->value));
                ?>
</p><?php 
            }
            ?>
</div>
<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_hook(array('name' => "fileuploader:uploader"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>


</div><!--fileuploader--><?php 
    }
    function content_55ccecc7627375_26321283($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php';
        }
        $_smarty_tpl->tpl_vars["_addon"] = new Smarty_variable($_REQUEST['addon'], null, 0);
        if ($_smarty_tpl->tpl_vars['separate']->value) {
            ?>
    <?php 
            echo smarty_function_script(array('src' => "js/tygh/tabs.js"), $_smarty_tpl);
            ?>

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

    <?php 
            echo $_smarty_tpl->getSubTemplate("views/profiles/components/profiles_scripts.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('states' => fn_get_all_states(1)), 0);
            ?>

<?php 
        }
        ?>

<?php 
        if ($_smarty_tpl->tpl_vars['separate']->value) {
            $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null);
            ob_start();
        }
        ?>
<div id="content_group<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['_addon']->value, ENT_QUOTES, 'UTF-8');
        ?>
">
    <div id="content_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['_addon']->value, ENT_QUOTES, 'UTF-8');
        ?>
">
    <div class="tabs cm-j-tabs <?php 
        if ($_smarty_tpl->tpl_vars['separate']->value) {
            ?>
cm-track<?php 
        }
        ?>
 <?php 
        if (count($_smarty_tpl->tpl_vars['subsections']->value) == 1) {
            ?>
hidden<?php 
        }
        ?>
">
        <ul class="nav nav-tabs">
            <?php 
        $_smarty_tpl->tpl_vars["subs"] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars["subs"]->_loop = false;
        $_smarty_tpl->tpl_vars["section"] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['subsections']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars["subs"]->key => $_smarty_tpl->tpl_vars["subs"]->value) {
            $_smarty_tpl->tpl_vars["subs"]->_loop = true;
            $_smarty_tpl->tpl_vars["section"]->value = $_smarty_tpl->tpl_vars["subs"]->key;
            ?>
                <?php 
            $_smarty_tpl->tpl_vars["tab_id"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['_addon']->value . "_" . (string) $_smarty_tpl->tpl_vars['section']->value, null, 0);
            ?>
                <li class="cm-js <?php 
            if ($_REQUEST['selected_section'] == $_smarty_tpl->tpl_vars['tab_id']->value) {
                ?>
active<?php 
            }
            ?>
" id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['tab_id']->value, ENT_QUOTES, 'UTF-8');
            ?>
"><a><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['subs']->value['description'], ENT_QUOTES, 'UTF-8');
            ?>
</a></li>
            <?php 
        }
        ?>
        </ul>
    </div>
    <div class="cm-tabs-content" id="tabs_content_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['_addon']->value, ENT_QUOTES, 'UTF-8');
        ?>
">
        <form action="<?php 
        echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');
        ?>
" method="post" name="update_addon_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['_addon']->value, ENT_QUOTES, 'UTF-8');
        ?>
_form" class=" form-edit form-horizontal" enctype="multipart/form-data">

        <input type="hidden" name="selected_section" value="<?php 
        echo htmlspecialchars($_REQUEST['selected_section'], ENT_QUOTES, 'UTF-8');
        ?>
" />
        <input type="hidden" name="addon" value="<?php 
        echo htmlspecialchars($_REQUEST['addon'], ENT_QUOTES, 'UTF-8');
        ?>
" />
        <?php 
        if ($_REQUEST['return_url']) {
            ?>
        <input type="hidden" name="redirect_url" value="<?php 
            echo htmlspecialchars($_REQUEST['return_url'], ENT_QUOTES, 'UTF-8');
            ?>
" />
        <?php 
        }
        ?>
        
        <?php 
        $_smarty_tpl->tpl_vars["field_item"] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars["field_item"]->_loop = false;
        $_smarty_tpl->tpl_vars["section"] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['options']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars["field_item"]->key => $_smarty_tpl->tpl_vars["field_item"]->value) {
            $_smarty_tpl->tpl_vars["field_item"]->_loop = true;
            $_smarty_tpl->tpl_vars["section"]->value = $_smarty_tpl->tpl_vars["field_item"]->key;
            ?>
        
        <?php 
            if ($_smarty_tpl->tpl_vars['subsections']->value[$_smarty_tpl->tpl_vars['section']->value]['type'] == "SEPARATE_TAB") {
                ?>
            <?php 
                $_smarty_tpl->_capture_stack[0][] = array("separate_section", null, null);
                ob_start();
                ?>
        <?php 
            }
            ?>

        <div id="content_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['_addon']->value, ENT_QUOTES, 'UTF-8');
            ?>
_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['section']->value, ENT_QUOTES, 'UTF-8');
            ?>
" class="settings<?php 
            if ($_smarty_tpl->tpl_vars['subsections']->value[$_smarty_tpl->tpl_vars['section']->value]['type'] == "SEPARATE_TAB") {
                ?>
 cm-hide-save-button<?php 
            }
            ?>
">
            <?php 
            $_smarty_tpl->_capture_stack[0][] = array("header_first", null, null);
            ob_start();
            ?>
false<?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["data"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["data"]->_loop = false;
            $_smarty_tpl->tpl_vars["name"] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['field_item']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars["data"]->total = $_smarty_tpl->_count($_from);
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']["fe_addons"]['total'] = $_smarty_tpl->tpl_vars["data"]->total;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']["fe_addons"]['iteration'] = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars["data"]->key => $_smarty_tpl->tpl_vars["data"]->value) {
                $_smarty_tpl->tpl_vars["data"]->_loop = true;
                $_smarty_tpl->tpl_vars["name"]->value = $_smarty_tpl->tpl_vars["data"]->key;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']["fe_addons"]['iteration']++;
                ?>

                <?php 
                if ($_smarty_tpl->tpl_vars['data']->value['parent_id'] && $_smarty_tpl->tpl_vars['field_item']->value[$_smarty_tpl->tpl_vars['data']->value['parent_id']]) {
                    ?>
                    <?php 
                    $_smarty_tpl->tpl_vars['parent_item'] = new Smarty_variable($_smarty_tpl->tpl_vars['field_item']->value[$_smarty_tpl->tpl_vars['data']->value['parent_id']], null, 0);
                    ?>
                    <?php 
                    $_smarty_tpl->tpl_vars['parent_item_html_id'] = new Smarty_variable("addon_option_" . (string) $_smarty_tpl->tpl_vars['_addon']->value . "_" . (string) $_smarty_tpl->tpl_vars['parent_item']->value['name'], null, 0);
                    ?>
                <?php 
                } else {
                    ?>
                    <?php 
                    $_smarty_tpl->tpl_vars['parent_item'] = new Smarty_variable(array(), null, 0);
                    ?>
                    <?php 
                    $_smarty_tpl->tpl_vars['parent_item_html_id'] = new Smarty_variable('', null, 0);
                    ?>
                <?php 
                }
                ?>

                <?php 
                echo $_smarty_tpl->getSubTemplate("common/settings_fields.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('item' => $_smarty_tpl->tpl_vars['data']->value, 'section' => $_smarty_tpl->tpl_vars['_addon']->value, 'html_id' => "addon_option_" . (string) $_smarty_tpl->tpl_vars['_addon']->value . "_" . (string) $_smarty_tpl->tpl_vars['data']->value['name'], 'html_name' => "addon_data[options][" . (string) $_smarty_tpl->tpl_vars['data']->value['object_id'] . "]", 'index' => $_smarty_tpl->getVariable('smarty')->value['foreach']['fe_addons']['iteration'], 'total' => $_smarty_tpl->getVariable('smarty')->value['foreach']['fe_addons']['total'], 'class' => "setting-wide", 'parent_item' => $_smarty_tpl->tpl_vars['parent_item']->value, 'parent_item_html_id' => $_smarty_tpl->tpl_vars['parent_item_html_id']->value), 0);
                ?>

            <?php 
            }
            ?>
        </div>
        
        <?php 
            if ($_smarty_tpl->tpl_vars['subsections']->value[$_smarty_tpl->tpl_vars['section']->value]['type'] == "SEPARATE_TAB") {
                ?>
            <?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["sep_sections"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['sep_sections']->value . " " . (string) Smarty::$_smarty_vars['capture']['separate_section'], null, 0);
                ?>
        <?php 
            }
            ?>
        <?php 
        }
        ?>
        
        <div class="buttons-container<?php 
        if ($_smarty_tpl->tpl_vars['separate']->value) {
            ?>
 buttons-bg<?php 
        }
        ?>
 cm-toggle-button">
            <?php 
        if ($_smarty_tpl->tpl_vars['separate']->value) {
            ?>
                <?php 
            $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null);
            ob_start();
            ?>
                    <?php 
            echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[addons.update]", 'but_target_form' => "update_addon_" . (string) $_smarty_tpl->tpl_vars['_addon']->value . "_form", 'hide_second_button' => true, 'breadcrumbs' => $_smarty_tpl->tpl_vars['breadcrumbs']->value, 'save' => true), 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 
        } else {
            ?>
                <?php 
            echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[addons.update]", 'cancel_action' => "close", 'save' => true), 0);
            ?>

            <?php 
        }
        ?>
        </div>
        </form> 
        <?php 
        if ($_smarty_tpl->tpl_vars['subsections']->value[$_smarty_tpl->tpl_vars['section']->value]['type'] == "SEPARATE_TAB") {
            ?>
            <?php 
            echo $_smarty_tpl->tpl_vars['sep_sections']->value;
            ?>

        <?php 
        }
        ?>
    </div>
    <!--content_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['_addon']->value, ENT_QUOTES, 'UTF-8');
        ?>
--></div>
<!--content_group<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['_addon']->value, ENT_QUOTES, 'UTF-8');
        ?>
--></div>
<?php 
        if ($_smarty_tpl->tpl_vars['separate']->value) {
            ?>
    <?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/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_smarty_tpl->tpl_vars['addon_name']->value, 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons']), 0);
            ?>

<?php 
        }
    }
    function content_55dc75a003e1f6_47584415($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.script.php';
        }
        if (!is_callable('smarty_function_split')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.split.php';
        }
        if (!is_callable('smarty_function_math')) {
            include '/var/www/html/market/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php';
        }
        if (!is_callable('smarty_block_hook')) {
            include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php';
        }
        if (!is_callable('smarty_function_set_id')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.set_id.php';
        }
        fn_preload_lang_vars(array('empty', 'empty'));
        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();
            if ($_smarty_tpl->tpl_vars['products']->value) {
                ?>

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

    

    <?php 
                if (!$_smarty_tpl->tpl_vars['no_pagination']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>
    
    <?php 
                if (!$_smarty_tpl->tpl_vars['no_sorting']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("views/products/components/sorting.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>

    <?php 
                if (!$_smarty_tpl->tpl_vars['show_empty']->value) {
                    ?>
        <?php 
                    echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products"), $_smarty_tpl);
                    ?>

    <?php 
                } else {
                    ?>
        <?php 
                    echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products", 'skip_complete' => true), $_smarty_tpl);
                    ?>

    <?php 
                }
                ?>

    <?php 
                echo smarty_function_math(array('equation' => "100 / x", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "cell_width"), $_smarty_tpl);
                ?>

    <?php 
                if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars["cur_number"] = new Smarty_variable(1, null, 0);
                    ?>
    <?php 
                }
                ?>

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


    <?php 
                if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars['quick_nav_ids'] = new Smarty_variable(fn_fields_from_multi_level($_smarty_tpl->tpl_vars['products']->value, "product_id", "product_id"), null, 0);
                    ?>
    <?php 
                }
                ?>
    <div class="grid-list">
        <?php 
                $_smarty_tpl->tpl_vars["sproducts"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["sproducts"]->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['splitted_products']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars["sproducts"]->total = $_smarty_tpl->_count($_from);
                $_smarty_tpl->tpl_vars["sproducts"]->iteration = 0;
                foreach ($_from as $_smarty_tpl->tpl_vars["sproducts"]->key => $_smarty_tpl->tpl_vars["sproducts"]->value) {
                    $_smarty_tpl->tpl_vars["sproducts"]->_loop = true;
                    $_smarty_tpl->tpl_vars["sproducts"]->iteration++;
                    $_smarty_tpl->tpl_vars["sproducts"]->last = $_smarty_tpl->tpl_vars["sproducts"]->iteration === $_smarty_tpl->tpl_vars["sproducts"]->total;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sprod"]['last'] = $_smarty_tpl->tpl_vars["sproducts"]->last;
                    $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["product"]->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['sproducts']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration'] = 0;
                    foreach ($_from as $_smarty_tpl->tpl_vars["product"]->key => $_smarty_tpl->tpl_vars["product"]->value) {
                        $_smarty_tpl->tpl_vars["product"]->_loop = true;
                        $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration']++;
                        ?>
<div class="ty-column<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8');
                        ?>
"><?php 
                        if ($_smarty_tpl->tpl_vars['product']->value) {
                            $_smarty_tpl->tpl_vars["obj_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                            $_smarty_tpl->tpl_vars["obj_id_prefix"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                            echo $_smarty_tpl->getSubTemplate("common/product_data.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value), 0);
                            ?>
<div class="ty-grid-list__item ty-quick-view-button__wrapper"><?php 
                            $_smarty_tpl->tpl_vars["form_open"] = new Smarty_variable("form_open_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_open']->value];
                            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:product_multicolumns_list"));
                            $_block_repeat = true;
                            echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), null, $_smarty_tpl, $_block_repeat);
                            while ($_block_repeat) {
                                ob_start();
                                ?>
<div class="ty-grid-list__image"><?php 
                                echo $_smarty_tpl->getSubTemplate("views/products/components/product_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value, 'show_gallery' => true), 0);
                                $_smarty_tpl->tpl_vars["discount_label"] = new Smarty_variable("discount_label_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['discount_label']->value];
                                ?>
</div><div class="ty-grid-list__item-name"><?php 
                                if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") {
                                    ?>
<span class="item-number"><?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['cur_number']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
.&nbsp;</span><?php 
                                    echo smarty_function_math(array('equation' => "num + 1", 'num' => $_smarty_tpl->tpl_vars['cur_number']->value, 'assign' => "cur_number"), $_smarty_tpl);
                                }
                                $_smarty_tpl->tpl_vars["name"] = new Smarty_variable("name_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['name']->value];
                                ?>
</div><div class="ty-grid-list__price <?php 
                                if ($_smarty_tpl->tpl_vars['product']->value['price'] == 0) {
                                    ?>
ty-grid-list__no-price<?php 
                                }
                                ?>
"><?php 
                                $_smarty_tpl->tpl_vars["old_price"] = new Smarty_variable("old_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                if (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value])) {
                                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value];
                                }
                                $_smarty_tpl->tpl_vars["price"] = new Smarty_variable("price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['price']->value];
                                $_smarty_tpl->tpl_vars["clean_price"] = new Smarty_variable("clean_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['clean_price']->value];
                                $_smarty_tpl->tpl_vars["list_discount"] = new Smarty_variable("list_discount_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['list_discount']->value];
                                ?>
</div><?php 
                                $_smarty_tpl->tpl_vars["rating"] = new Smarty_variable("rating_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                if (Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value]) {
                                    ?>
<div class="grid-list__rating"><?php 
                                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value];
                                    ?>
</div><?php 
                                }
                                ?>
<div class="ty-grid-list__control"><?php 
                                if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
                                    echo $_smarty_tpl->getSubTemplate("views/products/components/quick_view_link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0);
                                }
                                if ($_smarty_tpl->tpl_vars['show_add_to_cart']->value) {
                                    ?>
<div class="button-container"><?php 
                                    $_smarty_tpl->tpl_vars["add_to_cart"] = new Smarty_variable("add_to_cart_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['add_to_cart']->value];
                                    ?>
</div><?php 
                                }
                                ?>
</div><?php 
                                $_block_content = ob_get_clean();
                                $_block_repeat = false;
                                echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), $_block_content, $_smarty_tpl, $_block_repeat);
                            }
                            array_pop($_smarty_tpl->smarty->_tag_stack);
                            $_smarty_tpl->tpl_vars["form_close"] = new Smarty_variable("form_close_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_close']->value];
                            ?>
</div><?php 
                        }
                        ?>
</div><?php 
                    }
                    if ($_smarty_tpl->tpl_vars['show_empty']->value && $_smarty_tpl->getVariable('smarty')->value['foreach']['sprod']['last']) {
                        $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable($_smarty_tpl->getVariable('smarty')->value['foreach']['sproducts']['iteration'], null, 0);
                        $_smarty_tpl->_capture_stack[0][] = array("iteration", null, null);
                        ob_start();
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['iteration']->value, ENT_QUOTES, 'UTF-8');
                        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                        if (!empty($_capture_buffer)) {
                            if (isset($_capture_assign)) {
                                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                            }
                            if (isset($_capture_append)) {
                                $_smarty_tpl->append($_capture_append, ob_get_contents());
                            }
                            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                        } else {
                            $_smarty_tpl->capture_error();
                        }
                        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:products_multicolumns_extra"));
                        $_block_repeat = true;
                        echo smarty_block_hook(array('name' => "products:products_multicolumns_extra"), null, $_smarty_tpl, $_block_repeat);
                        while ($_block_repeat) {
                            ob_start();
                            $_block_content = ob_get_clean();
                            $_block_repeat = false;
                            echo smarty_block_hook(array('name' => "products:products_multicolumns_extra"), $_block_content, $_smarty_tpl, $_block_repeat);
                        }
                        array_pop($_smarty_tpl->smarty->_tag_stack);
                        $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable(Smarty::$_smarty_vars['capture']['iteration'], null, 0);
                        if ($_smarty_tpl->tpl_vars['iteration']->value % $_smarty_tpl->tpl_vars['columns']->value != 0) {
                            echo smarty_function_math(array('assign' => "empty_count", 'equation' => "c - it%c", 'it' => $_smarty_tpl->tpl_vars['iteration']->value, 'c' => $_smarty_tpl->tpl_vars['columns']->value), $_smarty_tpl);
                            if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"])) {
                                unset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]);
                            }
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['empty_count']->value) ? count($_loop) : max(0, (int) $_loop);
                            unset($_loop);
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['name'] = "empty_rows";
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = true;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] = 1;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] - 1;
                            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                                if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] == 0) {
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = false;
                                }
                            } else {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = 0;
                            }
                            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                                for ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration']++) {
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == 1;
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'];
                                    ?>
<div class="ty-column<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
"><div class="ty-product-empty"><span class="ty-product-empty__text"><?php 
                                    echo $_smarty_tpl->__("empty");
                                    ?>
</span></div></div><?php 
                                }
                            }
                        }
                    }
                }
                ?>
    </div>

    <?php 
                if (!$_smarty_tpl->tpl_vars['no_pagination']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>

<?php 
            }
            ?>

<?php 
            $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null);
            ob_start();
            echo htmlspecialchars($_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8');
            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();
            }
            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="blocks/list_templates/grid_list.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "blocks/list_templates/grid_list.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 {
            if ($_smarty_tpl->tpl_vars['products']->value) {
                ?>

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

    

    <?php 
                if (!$_smarty_tpl->tpl_vars['no_pagination']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>
    
    <?php 
                if (!$_smarty_tpl->tpl_vars['no_sorting']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("views/products/components/sorting.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>

    <?php 
                if (!$_smarty_tpl->tpl_vars['show_empty']->value) {
                    ?>
        <?php 
                    echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products"), $_smarty_tpl);
                    ?>

    <?php 
                } else {
                    ?>
        <?php 
                    echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products", 'skip_complete' => true), $_smarty_tpl);
                    ?>

    <?php 
                }
                ?>

    <?php 
                echo smarty_function_math(array('equation' => "100 / x", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "cell_width"), $_smarty_tpl);
                ?>

    <?php 
                if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars["cur_number"] = new Smarty_variable(1, null, 0);
                    ?>
    <?php 
                }
                ?>

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


    <?php 
                if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars['quick_nav_ids'] = new Smarty_variable(fn_fields_from_multi_level($_smarty_tpl->tpl_vars['products']->value, "product_id", "product_id"), null, 0);
                    ?>
    <?php 
                }
                ?>
    <div class="grid-list">
        <?php 
                $_smarty_tpl->tpl_vars["sproducts"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["sproducts"]->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['splitted_products']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars["sproducts"]->total = $_smarty_tpl->_count($_from);
                $_smarty_tpl->tpl_vars["sproducts"]->iteration = 0;
                foreach ($_from as $_smarty_tpl->tpl_vars["sproducts"]->key => $_smarty_tpl->tpl_vars["sproducts"]->value) {
                    $_smarty_tpl->tpl_vars["sproducts"]->_loop = true;
                    $_smarty_tpl->tpl_vars["sproducts"]->iteration++;
                    $_smarty_tpl->tpl_vars["sproducts"]->last = $_smarty_tpl->tpl_vars["sproducts"]->iteration === $_smarty_tpl->tpl_vars["sproducts"]->total;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sprod"]['last'] = $_smarty_tpl->tpl_vars["sproducts"]->last;
                    $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["product"]->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['sproducts']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration'] = 0;
                    foreach ($_from as $_smarty_tpl->tpl_vars["product"]->key => $_smarty_tpl->tpl_vars["product"]->value) {
                        $_smarty_tpl->tpl_vars["product"]->_loop = true;
                        $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration']++;
                        ?>
<div class="ty-column<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8');
                        ?>
"><?php 
                        if ($_smarty_tpl->tpl_vars['product']->value) {
                            $_smarty_tpl->tpl_vars["obj_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                            $_smarty_tpl->tpl_vars["obj_id_prefix"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                            echo $_smarty_tpl->getSubTemplate("common/product_data.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value), 0);
                            ?>
<div class="ty-grid-list__item ty-quick-view-button__wrapper"><?php 
                            $_smarty_tpl->tpl_vars["form_open"] = new Smarty_variable("form_open_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_open']->value];
                            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:product_multicolumns_list"));
                            $_block_repeat = true;
                            echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), null, $_smarty_tpl, $_block_repeat);
                            while ($_block_repeat) {
                                ob_start();
                                ?>
<div class="ty-grid-list__image"><?php 
                                echo $_smarty_tpl->getSubTemplate("views/products/components/product_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value, 'show_gallery' => true), 0);
                                $_smarty_tpl->tpl_vars["discount_label"] = new Smarty_variable("discount_label_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['discount_label']->value];
                                ?>
</div><div class="ty-grid-list__item-name"><?php 
                                if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") {
                                    ?>
<span class="item-number"><?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['cur_number']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
.&nbsp;</span><?php 
                                    echo smarty_function_math(array('equation' => "num + 1", 'num' => $_smarty_tpl->tpl_vars['cur_number']->value, 'assign' => "cur_number"), $_smarty_tpl);
                                }
                                $_smarty_tpl->tpl_vars["name"] = new Smarty_variable("name_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['name']->value];
                                ?>
</div><div class="ty-grid-list__price <?php 
                                if ($_smarty_tpl->tpl_vars['product']->value['price'] == 0) {
                                    ?>
ty-grid-list__no-price<?php 
                                }
                                ?>
"><?php 
                                $_smarty_tpl->tpl_vars["old_price"] = new Smarty_variable("old_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                if (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value])) {
                                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value];
                                }
                                $_smarty_tpl->tpl_vars["price"] = new Smarty_variable("price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['price']->value];
                                $_smarty_tpl->tpl_vars["clean_price"] = new Smarty_variable("clean_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['clean_price']->value];
                                $_smarty_tpl->tpl_vars["list_discount"] = new Smarty_variable("list_discount_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['list_discount']->value];
                                ?>
</div><?php 
                                $_smarty_tpl->tpl_vars["rating"] = new Smarty_variable("rating_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                if (Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value]) {
                                    ?>
<div class="grid-list__rating"><?php 
                                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value];
                                    ?>
</div><?php 
                                }
                                ?>
<div class="ty-grid-list__control"><?php 
                                if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
                                    echo $_smarty_tpl->getSubTemplate("views/products/components/quick_view_link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0);
                                }
                                if ($_smarty_tpl->tpl_vars['show_add_to_cart']->value) {
                                    ?>
<div class="button-container"><?php 
                                    $_smarty_tpl->tpl_vars["add_to_cart"] = new Smarty_variable("add_to_cart_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['add_to_cart']->value];
                                    ?>
</div><?php 
                                }
                                ?>
</div><?php 
                                $_block_content = ob_get_clean();
                                $_block_repeat = false;
                                echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), $_block_content, $_smarty_tpl, $_block_repeat);
                            }
                            array_pop($_smarty_tpl->smarty->_tag_stack);
                            $_smarty_tpl->tpl_vars["form_close"] = new Smarty_variable("form_close_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_close']->value];
                            ?>
</div><?php 
                        }
                        ?>
</div><?php 
                    }
                    if ($_smarty_tpl->tpl_vars['show_empty']->value && $_smarty_tpl->getVariable('smarty')->value['foreach']['sprod']['last']) {
                        $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable($_smarty_tpl->getVariable('smarty')->value['foreach']['sproducts']['iteration'], null, 0);
                        $_smarty_tpl->_capture_stack[0][] = array("iteration", null, null);
                        ob_start();
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['iteration']->value, ENT_QUOTES, 'UTF-8');
                        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                        if (!empty($_capture_buffer)) {
                            if (isset($_capture_assign)) {
                                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                            }
                            if (isset($_capture_append)) {
                                $_smarty_tpl->append($_capture_append, ob_get_contents());
                            }
                            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                        } else {
                            $_smarty_tpl->capture_error();
                        }
                        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:products_multicolumns_extra"));
                        $_block_repeat = true;
                        echo smarty_block_hook(array('name' => "products:products_multicolumns_extra"), null, $_smarty_tpl, $_block_repeat);
                        while ($_block_repeat) {
                            ob_start();
                            $_block_content = ob_get_clean();
                            $_block_repeat = false;
                            echo smarty_block_hook(array('name' => "products:products_multicolumns_extra"), $_block_content, $_smarty_tpl, $_block_repeat);
                        }
                        array_pop($_smarty_tpl->smarty->_tag_stack);
                        $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable(Smarty::$_smarty_vars['capture']['iteration'], null, 0);
                        if ($_smarty_tpl->tpl_vars['iteration']->value % $_smarty_tpl->tpl_vars['columns']->value != 0) {
                            echo smarty_function_math(array('assign' => "empty_count", 'equation' => "c - it%c", 'it' => $_smarty_tpl->tpl_vars['iteration']->value, 'c' => $_smarty_tpl->tpl_vars['columns']->value), $_smarty_tpl);
                            if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"])) {
                                unset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]);
                            }
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['empty_count']->value) ? count($_loop) : max(0, (int) $_loop);
                            unset($_loop);
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['name'] = "empty_rows";
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = true;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] = 1;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] - 1;
                            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                                if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] == 0) {
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = false;
                                }
                            } else {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = 0;
                            }
                            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                                for ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration']++) {
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == 1;
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'];
                                    ?>
<div class="ty-column<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
"><div class="ty-product-empty"><span class="ty-product-empty__text"><?php 
                                    echo $_smarty_tpl->__("empty");
                                    ?>
</span></div></div><?php 
                                }
                            }
                        }
                    }
                }
                ?>
    </div>

    <?php 
                if (!$_smarty_tpl->tpl_vars['no_pagination']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>

<?php 
            }
            ?>

<?php 
            $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null);
            ob_start();
            echo htmlspecialchars($_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8');
            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();
            }
        }
    }
    function content_55d58ef54e7612_76153788($_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_math')) {
            include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/function.math.php';
        }
        if (!is_callable('smarty_block_hook')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php';
        }
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        fn_preload_lang_vars(array('empty', 'clear_wishlist', 'wishlist_content', 'empty', 'clear_wishlist', 'wishlist_content'));
        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->tpl_vars["columns"] = new Smarty_variable(4, null, 0);
            if ($_SESSION['auth']['user_id']) {
                ?>
    <?php 
                echo $_smarty_tpl->getSubTemplate("views/profiles/profile_home_menu.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                ?>

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

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


    <?php 
                $_smarty_tpl->tpl_vars["show_hr"] = new Smarty_variable(false, null, 0);
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["location"] = new Smarty_variable("cart", null, 0);
            }
            if ($_smarty_tpl->tpl_vars['products']->value) {
                ?>
    <?php 
                echo $_smarty_tpl->getSubTemplate("blocks/list_templates/grid_list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('columns' => $_smarty_tpl->tpl_vars['columns']->value, 'show_empty' => true, 'show_trunc_name' => true, 'show_old_price' => true, 'show_price' => true, 'show_clean_price' => true, 'show_list_discount' => true, 'no_pagination' => true, 'no_sorting' => true, 'show_add_to_cart' => false, 'is_wishlist' => true), 0);
                ?>


<?php 
            } else {
                ?>
    <?php 
                echo smarty_function_math(array('equation' => "100 / x", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "cell_width"), $_smarty_tpl);
                ?>

    <div class="grid-list <?php 
                if ($_smarty_tpl->tpl_vars['wishlist_is_empty']->value) {
                    ?>
wish-list-empty<?php 
                }
                ?>
">
        <?php 
                $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable(0, null, 0);
                ?>
        <?php 
                $_smarty_tpl->_capture_stack[0][] = array("iteration", null, null);
                ob_start();
                echo htmlspecialchars($_smarty_tpl->tpl_vars['iteration']->value, ENT_QUOTES, 'UTF-8');
                list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                if (!empty($_capture_buffer)) {
                    if (isset($_capture_assign)) {
                        $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                    }
                    if (isset($_capture_append)) {
                        $_smarty_tpl->append($_capture_append, ob_get_contents());
                    }
                    Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                } else {
                    $_smarty_tpl->capture_error();
                }
                ?>
            <?php 
                $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "wishlist:view"));
                $_block_repeat = true;
                echo smarty_block_hook(array('name' => "wishlist:view"), null, $_smarty_tpl, $_block_repeat);
                while ($_block_repeat) {
                    ob_start();
                    ?>

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

        <?php 
                $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable(Smarty::$_smarty_vars['capture']['iteration'], null, 0);
                ?>
        <?php 
                if ($_smarty_tpl->tpl_vars['iteration']->value == 0 || $_smarty_tpl->tpl_vars['iteration']->value % $_smarty_tpl->tpl_vars['columns']->value != 0) {
                    ?>
            <?php 
                    echo smarty_function_math(array('assign' => "empty_count", 'equation' => "c - it%c", 'it' => $_smarty_tpl->tpl_vars['iteration']->value, 'c' => $_smarty_tpl->tpl_vars['columns']->value), $_smarty_tpl);
                    ?>

            <?php 
                    if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"])) {
                        unset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]);
                    }
                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['empty_count']->value) ? count($_loop) : max(0, (int) $_loop);
                    unset($_loop);
                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['name'] = "empty_rows";
                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = true;
                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] = 1;
                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] - 1;
                    if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                        $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                        if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] == 0) {
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = false;
                        }
                    } else {
                        $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = 0;
                    }
                    if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                        for ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration']++) {
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'];
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == 1;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'];
                            ?>
                <div class="ty-column<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8');
                            ?>
">
                    <div class="ty-product-empty">
                        <span class="ty-product-empty__text"><?php 
                            echo $_smarty_tpl->__("empty");
                            ?>
</span>
                    </div>
                </div>
            <?php 
                        }
                    }
                    ?>
        <?php 
                }
                ?>
    </div>
<?php 
            }
            ?>

<?php 
            if (!$_smarty_tpl->tpl_vars['wishlist_is_empty']->value) {
                ?>
    <div class="buttons-container ty-wish-list__buttons testview">
        <?php 
                echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("clear_wishlist"), 'but_href' => "wishlist.clear", 'but_meta' => "ty-btn__tertiary"), 0);
                ?>

        <?php 
                echo $_smarty_tpl->getSubTemplate("buttons/continue_shopping.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => fn_url($_smarty_tpl->tpl_vars['continue_url']->value), 'but_role' => "text"), 0);
                ?>

    </div>
<?php 
            } else {
                ?>
    <div class="buttons-container ty-wish-list__buttons ty-wish-list__continue">
        <?php 
                echo $_smarty_tpl->getSubTemplate("buttons/continue_shopping.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => fn_url($_smarty_tpl->tpl_vars['continue_url']->value), 'but_role' => "text"), 0);
                ?>

    </div>
<?php 
            }
            ?>

<?php 
            $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null);
            ob_start();
            echo $_smarty_tpl->__("wishlist_content");
            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();
            }
            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/wishlist/views/wishlist/view.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "addons/wishlist/views/wishlist/view.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->tpl_vars["columns"] = new Smarty_variable(4, null, 0);
            if ($_SESSION['auth']['user_id']) {
                ?>
    <?php 
                echo $_smarty_tpl->getSubTemplate("views/profiles/profile_home_menu.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                ?>

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

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


    <?php 
                $_smarty_tpl->tpl_vars["show_hr"] = new Smarty_variable(false, null, 0);
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["location"] = new Smarty_variable("cart", null, 0);
            }
            if ($_smarty_tpl->tpl_vars['products']->value) {
                ?>
    <?php 
                echo $_smarty_tpl->getSubTemplate("blocks/list_templates/grid_list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('columns' => $_smarty_tpl->tpl_vars['columns']->value, 'show_empty' => true, 'show_trunc_name' => true, 'show_old_price' => true, 'show_price' => true, 'show_clean_price' => true, 'show_list_discount' => true, 'no_pagination' => true, 'no_sorting' => true, 'show_add_to_cart' => false, 'is_wishlist' => true), 0);
                ?>


<?php 
            } else {
                ?>
    <?php 
                echo smarty_function_math(array('equation' => "100 / x", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "cell_width"), $_smarty_tpl);
                ?>

    <div class="grid-list <?php 
                if ($_smarty_tpl->tpl_vars['wishlist_is_empty']->value) {
                    ?>
wish-list-empty<?php 
                }
                ?>
">
        <?php 
                $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable(0, null, 0);
                ?>
        <?php 
                $_smarty_tpl->_capture_stack[0][] = array("iteration", null, null);
                ob_start();
                echo htmlspecialchars($_smarty_tpl->tpl_vars['iteration']->value, ENT_QUOTES, 'UTF-8');
                list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                if (!empty($_capture_buffer)) {
                    if (isset($_capture_assign)) {
                        $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                    }
                    if (isset($_capture_append)) {
                        $_smarty_tpl->append($_capture_append, ob_get_contents());
                    }
                    Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                } else {
                    $_smarty_tpl->capture_error();
                }
                ?>
            <?php 
                $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "wishlist:view"));
                $_block_repeat = true;
                echo smarty_block_hook(array('name' => "wishlist:view"), null, $_smarty_tpl, $_block_repeat);
                while ($_block_repeat) {
                    ob_start();
                    ?>

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

        <?php 
                $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable(Smarty::$_smarty_vars['capture']['iteration'], null, 0);
                ?>
        <?php 
                if ($_smarty_tpl->tpl_vars['iteration']->value == 0 || $_smarty_tpl->tpl_vars['iteration']->value % $_smarty_tpl->tpl_vars['columns']->value != 0) {
                    ?>
            <?php 
                    echo smarty_function_math(array('assign' => "empty_count", 'equation' => "c - it%c", 'it' => $_smarty_tpl->tpl_vars['iteration']->value, 'c' => $_smarty_tpl->tpl_vars['columns']->value), $_smarty_tpl);
                    ?>

            <?php 
                    if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"])) {
                        unset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]);
                    }
                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['empty_count']->value) ? count($_loop) : max(0, (int) $_loop);
                    unset($_loop);
                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['name'] = "empty_rows";
                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = true;
                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] = 1;
                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] - 1;
                    if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                        $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                        if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] == 0) {
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = false;
                        }
                    } else {
                        $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = 0;
                    }
                    if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                        for ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration']++) {
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'];
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == 1;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'];
                            ?>
                <div class="ty-column<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8');
                            ?>
">
                    <div class="ty-product-empty">
                        <span class="ty-product-empty__text"><?php 
                            echo $_smarty_tpl->__("empty");
                            ?>
</span>
                    </div>
                </div>
            <?php 
                        }
                    }
                    ?>
        <?php 
                }
                ?>
    </div>
<?php 
            }
            ?>

<?php 
            if (!$_smarty_tpl->tpl_vars['wishlist_is_empty']->value) {
                ?>
    <div class="buttons-container ty-wish-list__buttons testview">
        <?php 
                echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("clear_wishlist"), 'but_href' => "wishlist.clear", 'but_meta' => "ty-btn__tertiary"), 0);
                ?>

        <?php 
                echo $_smarty_tpl->getSubTemplate("buttons/continue_shopping.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => fn_url($_smarty_tpl->tpl_vars['continue_url']->value), 'but_role' => "text"), 0);
                ?>

    </div>
<?php 
            } else {
                ?>
    <div class="buttons-container ty-wish-list__buttons ty-wish-list__continue">
        <?php 
                echo $_smarty_tpl->getSubTemplate("buttons/continue_shopping.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => fn_url($_smarty_tpl->tpl_vars['continue_url']->value), 'but_role' => "text"), 0);
                ?>

    </div>
<?php 
            }
            ?>

<?php 
            $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null);
            ob_start();
            echo $_smarty_tpl->__("wishlist_content");
            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();
            }
        }
    }
    function content_55cdd47237dd25_46223753($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php';
        }
        fn_preload_lang_vars(array('settings'));
        echo smarty_function_script(array('src' => "js/tygh/fileuploader_scripts.js"), $_smarty_tpl);
        ?>


<?php 
        echo $_smarty_tpl->getSubTemplate("views/profiles/components/profiles_scripts.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('states' => fn_get_all_states(1)), 0);
        ?>


<?php 
        if ($_REQUEST['highlight']) {
            $_smarty_tpl->tpl_vars["highlight"] = new Smarty_variable(explode(",", $_REQUEST['highlight']), null, 0);
        }
        ?>


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

    <form action="<?php 
        echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');
        ?>
" method="post" name="settings_form" class=" form-horizontal form-edit form-setting">
    <input name="section_id" type="hidden" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['section_id']->value, ENT_QUOTES, 'UTF-8');
        ?>
" />
    <input type="hidden" id="selected_section" name="selected_section" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['selected_section']->value, ENT_QUOTES, 'UTF-8');
        ?>
" />

    <?php 
        $_smarty_tpl->_capture_stack[0][] = array("tabsbox", null, null);
        ob_start();
        ?>
        <?php 
        $_smarty_tpl->tpl_vars['subsection'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['subsection']->_loop = false;
        $_smarty_tpl->tpl_vars["ukey"] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['options']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['subsection']->key => $_smarty_tpl->tpl_vars['subsection']->value) {
            $_smarty_tpl->tpl_vars['subsection']->_loop = true;
            $_smarty_tpl->tpl_vars["ukey"]->value = $_smarty_tpl->tpl_vars['subsection']->key;
            ?>
            <div id="content_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['ukey']->value, ENT_QUOTES, 'UTF-8');
            ?>
" <?php 
            if ($_smarty_tpl->tpl_vars['subsections']->value[$_smarty_tpl->tpl_vars['section']->value]['type'] == "SEPARATE_TAB") {
                ?>
class="cm-hide-save-button"<?php 
            }
            ?>
>
                <?php 
            $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['item']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['subsection']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['item']->total = $_smarty_tpl->_count($_from);
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']["section"]['total'] = $_smarty_tpl->tpl_vars['item']->total;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']["section"]['iteration'] = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) {
                $_smarty_tpl->tpl_vars['item']->_loop = true;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']["section"]['iteration']++;
                ?>
                    <?php 
                echo $_smarty_tpl->getSubTemplate("common/settings_fields.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('item' => $_smarty_tpl->tpl_vars['item']->value, 'section' => $_smarty_tpl->tpl_vars['section_id']->value, 'html_id' => "field_" . (string) $_smarty_tpl->tpl_vars['section']->value . "_" . (string) $_smarty_tpl->tpl_vars['item']->value['name'] . "_" . (string) $_smarty_tpl->tpl_vars['item']->value['object_id'], 'html_name' => "update[" . (string) $_smarty_tpl->tpl_vars['item']->value['object_id'] . "]", 'index' => $_smarty_tpl->getVariable('smarty')->value['foreach']['section']['iteration'], 'total' => $_smarty_tpl->getVariable('smarty')->value['foreach']['section']['total']), 0);
                ?>

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

        <?php 
        $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null);
        ob_start();
        ?>
            <?php 
        echo $_smarty_tpl->getSubTemplate("buttons/save.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[settings.update]", 'but_role' => "submit-link", 'but_target_form' => "settings_form"), 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 
        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/tabsbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('content' => Smarty::$_smarty_vars['capture']['tabsbox'], 'track' => true), 0);
        ?>


    </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 
        ob_start();
        echo $_smarty_tpl->__("settings");
        $_tmp1 = ob_get_clean();
        echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_tmp1 . ": " . (string) $_smarty_tpl->tpl_vars['settings_title']->value, 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'sidebar_position' => "left"), 0);
        ?>


<?php 
    }
    function content_55ccec9f4e58e2_89409211($_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_block_hook')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php';
        }
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        fn_preload_lang_vars(array('no_image', 'no_image'));
        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->tpl_vars["th_size"] = new Smarty_variable("35", null, 0);
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['product']->value['main_pair']['icon'] || $_smarty_tpl->tpl_vars['product']->value['main_pair']['detailed']) {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["image_pair_var"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['main_pair'], null, 0);
            } elseif ($_smarty_tpl->tpl_vars['product']->value['option_image_pairs']) {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["image_pair_var"] = new Smarty_variable(reset($_smarty_tpl->tpl_vars['product']->value['option_image_pairs']), null, 0);
            }
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['image_pair_var']->value['image_id']) {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["image_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair_var']->value['image_id'], null, 0);
            } else {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["image_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair_var']->value['detailed_id'], null, 0);
            }
            ?>

<?php 
            if (!$_smarty_tpl->tpl_vars['preview_id']->value) {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["preview_id"] = new Smarty_variable(uniqid($_smarty_tpl->tpl_vars['product']->value['product_id']), null, 0);
            }
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['product']->value['image_pairs']) {
                ?>
    <?php 
                if ($_smarty_tpl->tpl_vars['show_image_featured_tpl']->value) {
                    ?>
        <div class="ty-product-img cm-preview-wrapper">
            <div class="ty-thumbs-wrapper1 cm-image-gallery1" data-ca-items-responsive="true" id="images_special_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                    ?>
" style="width:680px">
                <div class="cm-gallery-item1" style="width:680px">
                    <?php 
                    echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['image_id']->value, 'images' => $_smarty_tpl->tpl_vars['image_pair_var']->value, 'main_image' => true, 'image_width' => $_smarty_tpl->tpl_vars['image_width']->value, 'image_height' => $_smarty_tpl->tpl_vars['image_height']->value, 'image_id' => "preview[product_images_" . (string) $_smarty_tpl->tpl_vars['preview_id']->value . "]", 'test_hide_modal_image' => $_smarty_tpl->tpl_vars['hide_modal_image']->value, 'show_detailed_link' => false), 0);
                    ?>

                </div>

                <?php 
                    $_smarty_tpl->tpl_vars["image_pair"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["image_pair"]->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['product']->value['image_pairs'];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars["image_pair"]->key => $_smarty_tpl->tpl_vars["image_pair"]->value) {
                        $_smarty_tpl->tpl_vars["image_pair"]->_loop = true;
                        ?>
                    <?php 
                        if ($_smarty_tpl->tpl_vars['image_pair']->value) {
                            ?>
                        <?php 
                            if ($_smarty_tpl->tpl_vars['image_pair']->value['image_id']) {
                                ?>
                            <?php 
                                $_smarty_tpl->tpl_vars["img_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair']->value['image_id'], null, 0);
                                ?>
                        <?php 
                            } else {
                                ?>
                            <?php 
                                $_smarty_tpl->tpl_vars["img_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair']->value['detailed_id'], null, 0);
                                ?>
                        <?php 
                            }
                            ?>
                        <div class="cm-gallery-item1" style="width:680px">
                            <?php 
                            echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('images' => $_smarty_tpl->tpl_vars['image_pair']->value, 'main_image' => true, 'obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['img_id']->value, 'image_width' => $_smarty_tpl->tpl_vars['image_width']->value, 'image_height' => $_smarty_tpl->tpl_vars['image_height']->value, 'image_id' => "preview[product_images_" . (string) $_smarty_tpl->tpl_vars['preview_id']->value . "]", 'test_hide_modal_image' => $_smarty_tpl->tpl_vars['hide_modal_image']->value, 'show_detailed_link' => false), 0);
                            ?>

                        </div>
                    <?php 
                        }
                        ?>
                <?php 
                    }
                    ?>
            </div>
            <?php 
                    $_smarty_tpl->tpl_vars["product_selected_options"] = new Smarty_variable('', null, 0);
                    ?>
            <?php 
                    $_smarty_tpl->tpl_vars["selected_product_options"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["selected_product_options"]->_loop = false;
                    $_smarty_tpl->tpl_vars["key_selected_product_options"] = new Smarty_Variable();
                    $_from = $_smarty_tpl->tpl_vars['product']->value['selected_options'];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars["selected_product_options"]->key => $_smarty_tpl->tpl_vars["selected_product_options"]->value) {
                        $_smarty_tpl->tpl_vars["selected_product_options"]->_loop = true;
                        $_smarty_tpl->tpl_vars["key_selected_product_options"]->value = $_smarty_tpl->tpl_vars["selected_product_options"]->key;
                        ?>
                 <?php 
                        $_smarty_tpl->tpl_vars['product_selected_options'] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['product_selected_options']->value . "&selected_product_options[" . (string) $_smarty_tpl->tpl_vars['key_selected_product_options']->value . "]=" . (string) $_smarty_tpl->tpl_vars['selected_product_options']->value, null, 0);
                        ?>
            <?php 
                    }
                    ?>
            <div class="show_all_product_images">
                <a data-ca-view-id="<?php 
                    if ($_smarty_tpl->tpl_vars['wishlist_id']->value) {
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['item_id']->value, ENT_QUOTES, 'UTF-8');
                    } else {
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                    }
                    ?>
" data-ca-target-id="product_image_preview" href="" onclick="quick_view_dialog_test('<?php 
                    echo htmlspecialchars(fn_url("products.view_product_images?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . (string) $_smarty_tpl->tpl_vars['product_selected_options']->value . "&is_ajax=1"), ENT_QUOTES, 'UTF-8');
                    ?>
');return false;">show img</a>
            </div>
        </div>
    <?php 
                } else {
                    ?>
        <div class="ty-product-img cm-preview-wrapper">
            <?php 
                    echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['image_id']->value, 'images' => $_smarty_tpl->tpl_vars['image_pair_var']->value, 'main_image' => true, 'link_class' => "cm-image-previewer", 'image_width' => $_smarty_tpl->tpl_vars['image_width']->value, 'image_height' => $_smarty_tpl->tpl_vars['image_height']->value, 'image_id' => "preview[product_images_" . (string) $_smarty_tpl->tpl_vars['preview_id']->value . "]", 'test_hide_modal_image' => $_smarty_tpl->tpl_vars['hide_modal_image']->value), 0);
                    ?>

            <?php 
                    $_smarty_tpl->tpl_vars["image_pair"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["image_pair"]->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['product']->value['image_pairs'];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars["image_pair"]->key => $_smarty_tpl->tpl_vars["image_pair"]->value) {
                        $_smarty_tpl->tpl_vars["image_pair"]->_loop = true;
                        ?>
                <?php 
                        if ($_smarty_tpl->tpl_vars['image_pair']->value) {
                            ?>
                    <?php 
                            if ($_smarty_tpl->tpl_vars['image_pair']->value['image_id']) {
                                ?>
                        <?php 
                                $_smarty_tpl->tpl_vars["img_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair']->value['image_id'], null, 0);
                                ?>
                    <?php 
                            } else {
                                ?>
                        <?php 
                                $_smarty_tpl->tpl_vars["img_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair']->value['detailed_id'], null, 0);
                                ?>
                    <?php 
                            }
                            ?>
                    <?php 
                            echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('images' => $_smarty_tpl->tpl_vars['image_pair']->value, 'main_image' => true, 'link_class' => "cm-image-previewer hidden", 'obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['img_id']->value, 'image_width' => $_smarty_tpl->tpl_vars['image_width']->value, 'image_height' => $_smarty_tpl->tpl_vars['image_height']->value, 'image_id' => "preview[product_images_" . (string) $_smarty_tpl->tpl_vars['preview_id']->value . "]", 'test_hide_modal_image' => $_smarty_tpl->tpl_vars['hide_modal_image']->value), 0);
                            ?>

                <?php 
                        }
                        ?>
            <?php 
                    }
                    ?>
        </div>
        <?php 
                    if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['thumbnails_gallery'] == "Y") {
                        ?>
            <input type="hidden" name="no_cache" value="1" />
            <div class="ty-center"><div class="cm-image-gallery-wrapper ty-inline-block"><div class="ty-product-thumbnails <?php 
                        if (!$_smarty_tpl->tpl_vars['hide_modal_image']->value) {
                            ?>
owl-carousel<?php 
                        } else {
                            ?>
no-carousel<?php 
                        }
                        ?>
 cm-image-gallery" id="images_preview_<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                        ?>
"><?php 
                        if ($_smarty_tpl->tpl_vars['image_pair_var']->value) {
                            ?>
<div class="cm-item-gallery ty-float-left"><a data-ca-gallery-large-id="det_img_link_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                            ?>
_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['image_id']->value, ENT_QUOTES, 'UTF-8');
                            ?>
"  class="cm-gallery-item cm-thumbnails-mini active ty-product-thumbnails__item"><?php 
                            echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('images' => $_smarty_tpl->tpl_vars['image_pair_var']->value, 'image_width' => $_smarty_tpl->tpl_vars['th_size']->value, 'image_height' => $_smarty_tpl->tpl_vars['th_size']->value, 'show_detailed_link' => false, 'obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['image_id']->value . "_mini"), 0);
                            ?>
</a></div><?php 
                        }
                        if ($_smarty_tpl->tpl_vars['product']->value['image_pairs']) {
                            $_smarty_tpl->tpl_vars["image_pair"] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars["image_pair"]->_loop = false;
                            $_from = $_smarty_tpl->tpl_vars['product']->value['image_pairs'];
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            foreach ($_from as $_smarty_tpl->tpl_vars["image_pair"]->key => $_smarty_tpl->tpl_vars["image_pair"]->value) {
                                $_smarty_tpl->tpl_vars["image_pair"]->_loop = true;
                                if ($_smarty_tpl->tpl_vars['image_pair']->value) {
                                    ?>
<div class="cm-item-gallery ty-float-left"><?php 
                                    if ($_smarty_tpl->tpl_vars['image_pair']->value['image_id']) {
                                        $_smarty_tpl->tpl_vars["img_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair']->value['image_id'], null, 0);
                                    } else {
                                        $_smarty_tpl->tpl_vars["img_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair']->value['detailed_id'], null, 0);
                                    }
                                    ?>
<a data-ca-gallery-large-id="det_img_link_<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
_<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['img_id']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
" class="cm-gallery-item cm-thumbnails-mini ty-product-thumbnails__item"><?php 
                                    echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('images' => $_smarty_tpl->tpl_vars['image_pair']->value, 'image_width' => $_smarty_tpl->tpl_vars['th_size']->value, 'image_height' => $_smarty_tpl->tpl_vars['th_size']->value, 'show_detailed_link' => false, 'obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['img_id']->value . "_mini"), 0);
                                    ?>
</a></div><?php 
                                }
                            }
                        }
                        ?>
</div>
                </div>
            </div>
            
        <?php 
                    } else {
                        ?>
            <div class="ty-product-thumbnails ty-center cm-image-gallery" id="images_preview_<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                        ?>
" style="width: <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['image_width']->value, ENT_QUOTES, 'UTF-8');
                        ?>
px;">
                <?php 
                        if ($_smarty_tpl->tpl_vars['image_pair_var']->value) {
                            ?>
<a data-ca-gallery-large-id="det_img_link_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                            ?>
_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['image_id']->value, ENT_QUOTES, 'UTF-8');
                            ?>
" class="cm-thumbnails-mini active ty-product-thumbnails__item"><?php 
                            echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('images' => $_smarty_tpl->tpl_vars['image_pair_var']->value, 'image_width' => $_smarty_tpl->tpl_vars['th_size']->value, 'image_height' => $_smarty_tpl->tpl_vars['th_size']->value, 'show_detailed_link' => false, 'obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['image_id']->value . "_mini"), 0);
                            ?>
</a><?php 
                        }
                        if ($_smarty_tpl->tpl_vars['product']->value['image_pairs']) {
                            $_smarty_tpl->tpl_vars["image_pair"] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars["image_pair"]->_loop = false;
                            $_from = $_smarty_tpl->tpl_vars['product']->value['image_pairs'];
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            foreach ($_from as $_smarty_tpl->tpl_vars["image_pair"]->key => $_smarty_tpl->tpl_vars["image_pair"]->value) {
                                $_smarty_tpl->tpl_vars["image_pair"]->_loop = true;
                                if ($_smarty_tpl->tpl_vars['image_pair']->value) {
                                    if ($_smarty_tpl->tpl_vars['image_pair']->value['image_id'] == 0) {
                                        $_smarty_tpl->tpl_vars["img_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair']->value['detailed_id'], null, 0);
                                    } else {
                                        $_smarty_tpl->tpl_vars["img_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair']->value['image_id'], null, 0);
                                    }
                                    ?>
<a data-ca-gallery-large-id="det_img_link_<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
_<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['img_id']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
" class="cm-thumbnails-mini ty-product-thumbnails__item"><?php 
                                    echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('images' => $_smarty_tpl->tpl_vars['image_pair']->value, 'image_width' => $_smarty_tpl->tpl_vars['th_size']->value, 'image_height' => $_smarty_tpl->tpl_vars['th_size']->value, 'show_detailed_link' => false, 'obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['img_id']->value . "_mini"), 0);
                                    ?>
</a><?php 
                                }
                            }
                        }
                        ?>
            </div>
        <?php 
                    }
                    ?>
    <?php 
                }
            } else {
                ?>
    <span class="ty-no-image" style="min-width: <?php 
                echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['image_width']->value) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['image_width']->value : $tmp, ENT_QUOTES, 'UTF-8');
                ?>
px; min-height: <?php 
                echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['image_height']->value) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['image_width']->value : $tmp, ENT_QUOTES, 'UTF-8');
                ?>
px;"><i class="ty-no-image__icon ty-icon-image" title="<?php 
                echo $_smarty_tpl->__("no_image");
                ?>
"></i></span>
<?php 
            }
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['show_image_featured_tpl']->value) {
                ?>
    
        <script type="text/javascript">
            $(document).ready(function(){
                var productImagesOwl = $("#images_special_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                ?>
");
                var productImagesOwlItemsNr = productImagesOwl.find('div.cm-gallery-item1').length;
                var productImagesOwlElements = productImagesOwl.find('div.cm-gallery-item1');
                
                var initOwlWrapperWidth = 0;
                
                $.each(productImagesOwlElements, function(key1, element1){
                    initOwlWrapperWidth += parseInt($(element1).width());
                });
                
                var finalOwlWrapperWidth = 0;
                        
                if(parseInt(productImagesOwlItemsNr) > 1){
                    var oneElementWidth = parseInt(initOwlWrapperWidth) / parseInt(productImagesOwlItemsNr);
                    finalOwlWrapperWidth = parseInt(oneElementWidth);
                }else{
                    finalOwlWrapperWidth = initOwlWrapperWidth;
                }
                
                productImagesOwl.owlCarousel({
                    items : 1,
                    itemsDesktop : false,
                    itemsDesktopSmall : false,
                    itemsTablet: false,
                    itemsMobile : false,
                    pagination: true,
                    navigation: true,
                    navigationText: parseInt(productImagesOwlItemsNr) > 1 ? ['<i class="icon-left-circle ty-icon-left-circle"></i>', '<i class="icon-right-circle ty-icon-right-circle"></i>'] : ['<i class="icon-left-open-thin ty-icon-left-open-thin"></i>', '<i class="icon-right-open-thin ty-icon-right-open-thin"></i>'],
                    theme: parseInt(productImagesOwlItemsNr) == 1 ? 'owl-one-theme' : 'owl-more-theme',
                    beforeUpdate  : function(item) {
                        
                        $(item).find('div.owl-item').width(finalOwlWrapperWidth);
                        
                        $(item).find('div.owl-wrapper-outer').width(finalOwlWrapperWidth);
                        $(item).find('div.owl-wrapper').width(initOwlWrapperWidth).css('float','left').css('display','inline');
                    }
                });
            });
        </script>
    
<?php 
            } else {
                ?>
    <?php 
                echo $_smarty_tpl->getSubTemplate("common/previewer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                ?>

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

<?php 
            }
            ?>

<?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:product_images"));
            $_block_repeat = true;
            echo smarty_block_hook(array('name' => "products:product_images"), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_hook(array('name' => "products:product_images"), $_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="views/products/components/product_images.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "views/products/components/product_images.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->tpl_vars["th_size"] = new Smarty_variable("35", null, 0);
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['product']->value['main_pair']['icon'] || $_smarty_tpl->tpl_vars['product']->value['main_pair']['detailed']) {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["image_pair_var"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['main_pair'], null, 0);
            } elseif ($_smarty_tpl->tpl_vars['product']->value['option_image_pairs']) {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["image_pair_var"] = new Smarty_variable(reset($_smarty_tpl->tpl_vars['product']->value['option_image_pairs']), null, 0);
            }
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['image_pair_var']->value['image_id']) {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["image_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair_var']->value['image_id'], null, 0);
            } else {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["image_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair_var']->value['detailed_id'], null, 0);
            }
            ?>

<?php 
            if (!$_smarty_tpl->tpl_vars['preview_id']->value) {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["preview_id"] = new Smarty_variable(uniqid($_smarty_tpl->tpl_vars['product']->value['product_id']), null, 0);
            }
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['product']->value['image_pairs']) {
                ?>
    <?php 
                if ($_smarty_tpl->tpl_vars['show_image_featured_tpl']->value) {
                    ?>
        <div class="ty-product-img cm-preview-wrapper">
            <div class="ty-thumbs-wrapper1 cm-image-gallery1" data-ca-items-responsive="true" id="images_special_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                    ?>
" style="width:680px">
                <div class="cm-gallery-item1" style="width:680px">
                    <?php 
                    echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['image_id']->value, 'images' => $_smarty_tpl->tpl_vars['image_pair_var']->value, 'main_image' => true, 'image_width' => $_smarty_tpl->tpl_vars['image_width']->value, 'image_height' => $_smarty_tpl->tpl_vars['image_height']->value, 'image_id' => "preview[product_images_" . (string) $_smarty_tpl->tpl_vars['preview_id']->value . "]", 'test_hide_modal_image' => $_smarty_tpl->tpl_vars['hide_modal_image']->value, 'show_detailed_link' => false), 0);
                    ?>

                </div>

                <?php 
                    $_smarty_tpl->tpl_vars["image_pair"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["image_pair"]->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['product']->value['image_pairs'];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars["image_pair"]->key => $_smarty_tpl->tpl_vars["image_pair"]->value) {
                        $_smarty_tpl->tpl_vars["image_pair"]->_loop = true;
                        ?>
                    <?php 
                        if ($_smarty_tpl->tpl_vars['image_pair']->value) {
                            ?>
                        <?php 
                            if ($_smarty_tpl->tpl_vars['image_pair']->value['image_id']) {
                                ?>
                            <?php 
                                $_smarty_tpl->tpl_vars["img_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair']->value['image_id'], null, 0);
                                ?>
                        <?php 
                            } else {
                                ?>
                            <?php 
                                $_smarty_tpl->tpl_vars["img_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair']->value['detailed_id'], null, 0);
                                ?>
                        <?php 
                            }
                            ?>
                        <div class="cm-gallery-item1" style="width:680px">
                            <?php 
                            echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('images' => $_smarty_tpl->tpl_vars['image_pair']->value, 'main_image' => true, 'obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['img_id']->value, 'image_width' => $_smarty_tpl->tpl_vars['image_width']->value, 'image_height' => $_smarty_tpl->tpl_vars['image_height']->value, 'image_id' => "preview[product_images_" . (string) $_smarty_tpl->tpl_vars['preview_id']->value . "]", 'test_hide_modal_image' => $_smarty_tpl->tpl_vars['hide_modal_image']->value, 'show_detailed_link' => false), 0);
                            ?>

                        </div>
                    <?php 
                        }
                        ?>
                <?php 
                    }
                    ?>
            </div>
            <?php 
                    $_smarty_tpl->tpl_vars["product_selected_options"] = new Smarty_variable('', null, 0);
                    ?>
            <?php 
                    $_smarty_tpl->tpl_vars["selected_product_options"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["selected_product_options"]->_loop = false;
                    $_smarty_tpl->tpl_vars["key_selected_product_options"] = new Smarty_Variable();
                    $_from = $_smarty_tpl->tpl_vars['product']->value['selected_options'];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars["selected_product_options"]->key => $_smarty_tpl->tpl_vars["selected_product_options"]->value) {
                        $_smarty_tpl->tpl_vars["selected_product_options"]->_loop = true;
                        $_smarty_tpl->tpl_vars["key_selected_product_options"]->value = $_smarty_tpl->tpl_vars["selected_product_options"]->key;
                        ?>
                 <?php 
                        $_smarty_tpl->tpl_vars['product_selected_options'] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['product_selected_options']->value . "&selected_product_options[" . (string) $_smarty_tpl->tpl_vars['key_selected_product_options']->value . "]=" . (string) $_smarty_tpl->tpl_vars['selected_product_options']->value, null, 0);
                        ?>
            <?php 
                    }
                    ?>
            <div class="show_all_product_images">
                <a data-ca-view-id="<?php 
                    if ($_smarty_tpl->tpl_vars['wishlist_id']->value) {
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['item_id']->value, ENT_QUOTES, 'UTF-8');
                    } else {
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                    }
                    ?>
" data-ca-target-id="product_image_preview" href="" onclick="quick_view_dialog_test('<?php 
                    echo htmlspecialchars(fn_url("products.view_product_images?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . (string) $_smarty_tpl->tpl_vars['product_selected_options']->value . "&is_ajax=1"), ENT_QUOTES, 'UTF-8');
                    ?>
');return false;">show img</a>
            </div>
        </div>
    <?php 
                } else {
                    ?>
        <div class="ty-product-img cm-preview-wrapper">
            <?php 
                    echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['image_id']->value, 'images' => $_smarty_tpl->tpl_vars['image_pair_var']->value, 'main_image' => true, 'link_class' => "cm-image-previewer", 'image_width' => $_smarty_tpl->tpl_vars['image_width']->value, 'image_height' => $_smarty_tpl->tpl_vars['image_height']->value, 'image_id' => "preview[product_images_" . (string) $_smarty_tpl->tpl_vars['preview_id']->value . "]", 'test_hide_modal_image' => $_smarty_tpl->tpl_vars['hide_modal_image']->value), 0);
                    ?>

            <?php 
                    $_smarty_tpl->tpl_vars["image_pair"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["image_pair"]->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['product']->value['image_pairs'];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars["image_pair"]->key => $_smarty_tpl->tpl_vars["image_pair"]->value) {
                        $_smarty_tpl->tpl_vars["image_pair"]->_loop = true;
                        ?>
                <?php 
                        if ($_smarty_tpl->tpl_vars['image_pair']->value) {
                            ?>
                    <?php 
                            if ($_smarty_tpl->tpl_vars['image_pair']->value['image_id']) {
                                ?>
                        <?php 
                                $_smarty_tpl->tpl_vars["img_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair']->value['image_id'], null, 0);
                                ?>
                    <?php 
                            } else {
                                ?>
                        <?php 
                                $_smarty_tpl->tpl_vars["img_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair']->value['detailed_id'], null, 0);
                                ?>
                    <?php 
                            }
                            ?>
                    <?php 
                            echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('images' => $_smarty_tpl->tpl_vars['image_pair']->value, 'main_image' => true, 'link_class' => "cm-image-previewer hidden", 'obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['img_id']->value, 'image_width' => $_smarty_tpl->tpl_vars['image_width']->value, 'image_height' => $_smarty_tpl->tpl_vars['image_height']->value, 'image_id' => "preview[product_images_" . (string) $_smarty_tpl->tpl_vars['preview_id']->value . "]", 'test_hide_modal_image' => $_smarty_tpl->tpl_vars['hide_modal_image']->value), 0);
                            ?>

                <?php 
                        }
                        ?>
            <?php 
                    }
                    ?>
        </div>
        <?php 
                    if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['thumbnails_gallery'] == "Y") {
                        ?>
            <input type="hidden" name="no_cache" value="1" />
            <div class="ty-center"><div class="cm-image-gallery-wrapper ty-inline-block"><div class="ty-product-thumbnails <?php 
                        if (!$_smarty_tpl->tpl_vars['hide_modal_image']->value) {
                            ?>
owl-carousel<?php 
                        } else {
                            ?>
no-carousel<?php 
                        }
                        ?>
 cm-image-gallery" id="images_preview_<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                        ?>
"><?php 
                        if ($_smarty_tpl->tpl_vars['image_pair_var']->value) {
                            ?>
<div class="cm-item-gallery ty-float-left"><a data-ca-gallery-large-id="det_img_link_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                            ?>
_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['image_id']->value, ENT_QUOTES, 'UTF-8');
                            ?>
"  class="cm-gallery-item cm-thumbnails-mini active ty-product-thumbnails__item"><?php 
                            echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('images' => $_smarty_tpl->tpl_vars['image_pair_var']->value, 'image_width' => $_smarty_tpl->tpl_vars['th_size']->value, 'image_height' => $_smarty_tpl->tpl_vars['th_size']->value, 'show_detailed_link' => false, 'obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['image_id']->value . "_mini"), 0);
                            ?>
</a></div><?php 
                        }
                        if ($_smarty_tpl->tpl_vars['product']->value['image_pairs']) {
                            $_smarty_tpl->tpl_vars["image_pair"] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars["image_pair"]->_loop = false;
                            $_from = $_smarty_tpl->tpl_vars['product']->value['image_pairs'];
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            foreach ($_from as $_smarty_tpl->tpl_vars["image_pair"]->key => $_smarty_tpl->tpl_vars["image_pair"]->value) {
                                $_smarty_tpl->tpl_vars["image_pair"]->_loop = true;
                                if ($_smarty_tpl->tpl_vars['image_pair']->value) {
                                    ?>
<div class="cm-item-gallery ty-float-left"><?php 
                                    if ($_smarty_tpl->tpl_vars['image_pair']->value['image_id']) {
                                        $_smarty_tpl->tpl_vars["img_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair']->value['image_id'], null, 0);
                                    } else {
                                        $_smarty_tpl->tpl_vars["img_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair']->value['detailed_id'], null, 0);
                                    }
                                    ?>
<a data-ca-gallery-large-id="det_img_link_<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
_<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['img_id']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
" class="cm-gallery-item cm-thumbnails-mini ty-product-thumbnails__item"><?php 
                                    echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('images' => $_smarty_tpl->tpl_vars['image_pair']->value, 'image_width' => $_smarty_tpl->tpl_vars['th_size']->value, 'image_height' => $_smarty_tpl->tpl_vars['th_size']->value, 'show_detailed_link' => false, 'obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['img_id']->value . "_mini"), 0);
                                    ?>
</a></div><?php 
                                }
                            }
                        }
                        ?>
</div>
                </div>
            </div>
            
        <?php 
                    } else {
                        ?>
            <div class="ty-product-thumbnails ty-center cm-image-gallery" id="images_preview_<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                        ?>
" style="width: <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['image_width']->value, ENT_QUOTES, 'UTF-8');
                        ?>
px;">
                <?php 
                        if ($_smarty_tpl->tpl_vars['image_pair_var']->value) {
                            ?>
<a data-ca-gallery-large-id="det_img_link_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                            ?>
_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['image_id']->value, ENT_QUOTES, 'UTF-8');
                            ?>
" class="cm-thumbnails-mini active ty-product-thumbnails__item"><?php 
                            echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('images' => $_smarty_tpl->tpl_vars['image_pair_var']->value, 'image_width' => $_smarty_tpl->tpl_vars['th_size']->value, 'image_height' => $_smarty_tpl->tpl_vars['th_size']->value, 'show_detailed_link' => false, 'obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['image_id']->value . "_mini"), 0);
                            ?>
</a><?php 
                        }
                        if ($_smarty_tpl->tpl_vars['product']->value['image_pairs']) {
                            $_smarty_tpl->tpl_vars["image_pair"] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars["image_pair"]->_loop = false;
                            $_from = $_smarty_tpl->tpl_vars['product']->value['image_pairs'];
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            foreach ($_from as $_smarty_tpl->tpl_vars["image_pair"]->key => $_smarty_tpl->tpl_vars["image_pair"]->value) {
                                $_smarty_tpl->tpl_vars["image_pair"]->_loop = true;
                                if ($_smarty_tpl->tpl_vars['image_pair']->value) {
                                    if ($_smarty_tpl->tpl_vars['image_pair']->value['image_id'] == 0) {
                                        $_smarty_tpl->tpl_vars["img_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair']->value['detailed_id'], null, 0);
                                    } else {
                                        $_smarty_tpl->tpl_vars["img_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['image_pair']->value['image_id'], null, 0);
                                    }
                                    ?>
<a data-ca-gallery-large-id="det_img_link_<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['preview_id']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
_<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['img_id']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
" class="cm-thumbnails-mini ty-product-thumbnails__item"><?php 
                                    echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('images' => $_smarty_tpl->tpl_vars['image_pair']->value, 'image_width' => $_smarty_tpl->tpl_vars['th_size']->value, 'image_height' => $_smarty_tpl->tpl_vars['th_size']->value, 'show_detailed_link' => false, 'obj_id' => (string) $_smarty_tpl->tpl_vars['preview_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['img_id']->value . "_mini"), 0);
                                    ?>
</a><?php 
                                }
                            }
                        }
                        ?>
            </div>
        <?php 
                    }
                    ?>
    <?php 
                }
            } else {
                ?>
    <span class="ty-no-image" style="min-width: <?php 
                echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['image_width']->value) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['image_width']->value : $tmp, ENT_QUOTES, 'UTF-8');
                ?>
px; min-height: <?php 
                echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['image_height']->value) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['image_width']->value : $tmp, ENT_QUOTES, 'UTF-8');
                ?>
px;"><i class="ty-no-image__icon ty-icon-image" title="<?php 
                echo $_smarty_tpl->__("no_image");
                ?>
"></i></span>
<?php 
            }
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['show_image_featured_tpl']->value) {
                ?>
    
        <script type="text/javascript">
            $(document).ready(function(){
                var productImagesOwl = $("#images_special_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8');
                ?>
");
                var productImagesOwlItemsNr = productImagesOwl.find('div.cm-gallery-item1').length;
                var productImagesOwlElements = productImagesOwl.find('div.cm-gallery-item1');
                
                var initOwlWrapperWidth = 0;
                
                $.each(productImagesOwlElements, function(key1, element1){
                    initOwlWrapperWidth += parseInt($(element1).width());
                });
                
                var finalOwlWrapperWidth = 0;
                        
                if(parseInt(productImagesOwlItemsNr) > 1){
                    var oneElementWidth = parseInt(initOwlWrapperWidth) / parseInt(productImagesOwlItemsNr);
                    finalOwlWrapperWidth = parseInt(oneElementWidth);
                }else{
                    finalOwlWrapperWidth = initOwlWrapperWidth;
                }
                
                productImagesOwl.owlCarousel({
                    items : 1,
                    itemsDesktop : false,
                    itemsDesktopSmall : false,
                    itemsTablet: false,
                    itemsMobile : false,
                    pagination: true,
                    navigation: true,
                    navigationText: parseInt(productImagesOwlItemsNr) > 1 ? ['<i class="icon-left-circle ty-icon-left-circle"></i>', '<i class="icon-right-circle ty-icon-right-circle"></i>'] : ['<i class="icon-left-open-thin ty-icon-left-open-thin"></i>', '<i class="icon-right-open-thin ty-icon-right-open-thin"></i>'],
                    theme: parseInt(productImagesOwlItemsNr) == 1 ? 'owl-one-theme' : 'owl-more-theme',
                    beforeUpdate  : function(item) {
                        
                        $(item).find('div.owl-item').width(finalOwlWrapperWidth);
                        
                        $(item).find('div.owl-wrapper-outer').width(finalOwlWrapperWidth);
                        $(item).find('div.owl-wrapper').width(initOwlWrapperWidth).css('float','left').css('display','inline');
                    }
                });
            });
        </script>
    
<?php 
            } else {
                ?>
    <?php 
                echo $_smarty_tpl->getSubTemplate("common/previewer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                ?>

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

<?php 
            }
            ?>

<?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:product_images"));
            $_block_repeat = true;
            echo smarty_block_hook(array('name' => "products:product_images"), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_hook(array('name' => "products:product_images"), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
        }
    }
    function content_55d42e47dff943_86175395($_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_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        fn_preload_lang_vars(array('no_items', 'name', 'quantity', 'options', 'any_option_combinations', 'deleted_product', 'add_products', 'add_products', 'no_items', 'name', 'quantity', 'options', 'any_option_combinations', 'deleted_product', 'add_products', 'add_products'));
        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->tpl_vars["view_mode"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['view_mode']->value) === null || $tmp === '' ? "mixed" : $tmp, null, 0);
            if (!$_smarty_tpl->tpl_vars['display']->value) {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["display"] = new Smarty_variable("options", null, 0);
            }
            ?>

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


<?php 
            if ($_smarty_tpl->tpl_vars['view_mode']->value != "button") {
                if ($_smarty_tpl->tpl_vars['type']->value == "table") {
                    ?>
    <p id="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
_no_item" class="ty-no-items<?php 
                    if ($_smarty_tpl->tpl_vars['item_ids']->value) {
                        ?>
 hidden<?php 
                    }
                    ?>
"><?php 
                    echo ($tmp = @$_smarty_tpl->tpl_vars['no_item_text']->value) === null || $tmp === '' ? $_smarty_tpl->__("no_items") : $tmp;
                    ?>
</p>

    <table id="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
" class="ty-table<?php 
                    if (!$_smarty_tpl->tpl_vars['item_ids']->value) {
                        ?>
 hidden<?php 
                    }
                    ?>
 cm-picker-options">
    <thead>
        <tr>
            <th><?php 
                    echo $_smarty_tpl->__("name");
                    ?>
</th>
            <th><?php 
                    echo $_smarty_tpl->__("quantity");
                    ?>
</th>
        </tr>
    </thead>
    <?php 
                    echo $_smarty_tpl->getSubTemplate("pickers/products/js.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('clone' => true, 'options' => (string) $_smarty_tpl->tpl_vars['ldelim']->value . "options" . (string) $_smarty_tpl->tpl_vars['rdelim']->value, 'root_id' => $_smarty_tpl->tpl_vars['data_id']->value, 'product' => (string) $_smarty_tpl->tpl_vars['ldelim']->value . "product" . (string) $_smarty_tpl->tpl_vars['rdelim']->value, 'delete_id' => (string) $_smarty_tpl->tpl_vars['ldelim']->value . "delete_id" . (string) $_smarty_tpl->tpl_vars['rdelim']->value, 'amount' => 1, 'amount_input' => "text", 'input_name' => (string) $_smarty_tpl->tpl_vars['input_name']->value . "[" . (string) $_smarty_tpl->tpl_vars['ldelim']->value . "product_id" . (string) $_smarty_tpl->tpl_vars['rdelim']->value . "]"), 0);
                    ?>

    <?php 
                    if ($_smarty_tpl->tpl_vars['item_ids']->value) {
                        ?>
        <?php 
                        $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars["product"]->_loop = false;
                        $_smarty_tpl->tpl_vars["product_id"] = new Smarty_Variable();
                        $_from = $_smarty_tpl->tpl_vars['item_ids']->value;
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars["product"]->key => $_smarty_tpl->tpl_vars["product"]->value) {
                            $_smarty_tpl->tpl_vars["product"]->_loop = true;
                            $_smarty_tpl->tpl_vars["product_id"]->value = $_smarty_tpl->tpl_vars["product"]->key;
                            ?>
            <?php 
                            $_smarty_tpl->_capture_stack[0][] = array("product_options", null, null);
                            ob_start();
                            ?>
                <?php 
                            $_smarty_tpl->tpl_vars["prod_opts"] = new Smarty_variable(fn_get_product_options($_smarty_tpl->tpl_vars['product']->value['product_id']), null, 0);
                            ?>
                <?php 
                            if ($_smarty_tpl->tpl_vars['prod_opts']->value && !$_smarty_tpl->tpl_vars['product']->value['product_options']) {
                                ?>
                    <strong><?php 
                                echo $_smarty_tpl->__("options");
                                ?>
: </strong>&nbsp;<?php 
                                echo $_smarty_tpl->__("any_option_combinations");
                                ?>

                <?php 
                            } else {
                                ?>
                    <?php 
                                if ($_smarty_tpl->tpl_vars['product']->value['product_options_value']) {
                                    ?>
                        <?php 
                                    echo $_smarty_tpl->getSubTemplate("common/options_info.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_options' => $_smarty_tpl->tpl_vars['product']->value['product_options_value']), 0);
                                    ?>

                    <?php 
                                } else {
                                    ?>
                        <?php 
                                    echo $_smarty_tpl->getSubTemplate("common/options_info.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_options' => fn_get_selected_product_options_info($_smarty_tpl->tpl_vars['product']->value['product_options'])), 0);
                                    ?>

                    <?php 
                                }
                                ?>
                <?php 
                            }
                            ?>
            <?php 
                            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                            if (!empty($_capture_buffer)) {
                                if (isset($_capture_assign)) {
                                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                                }
                                if (isset($_capture_append)) {
                                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                                }
                                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                            } else {
                                $_smarty_tpl->capture_error();
                            }
                            ?>
            <?php 
                            if ($_smarty_tpl->tpl_vars['product']->value['product']) {
                                ?>
                <?php 
                                $_smarty_tpl->tpl_vars["product_name"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product'], null, 0);
                                ?>
            <?php 
                            } else {
                                ?>
                <?php 
                                $_smarty_tpl->tpl_vars["product_name"] = new Smarty_variable(($tmp = @htmlspecialchars(fn_get_product_name($_smarty_tpl->tpl_vars['product']->value['product_id']), ENT_QUOTES, 'UTF-8', true)) === null || $tmp === '' ? $_smarty_tpl->__("deleted_product") : $tmp, null, 0);
                                ?>
            <?php 
                            }
                            ?>
            <?php 
                            echo $_smarty_tpl->getSubTemplate("pickers/products/js.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('options' => Smarty::$_smarty_vars['capture']['product_options'], 'root_id' => $_smarty_tpl->tpl_vars['data_id']->value, 'product' => $_smarty_tpl->tpl_vars['product_name']->value, 'delete_id' => $_smarty_tpl->tpl_vars['product_id']->value, 'product_id' => $_smarty_tpl->tpl_vars['product']->value['product_id'], 'amount' => $_smarty_tpl->tpl_vars['product']->value['amount'], 'amount_input' => "text", 'input_name' => (string) $_smarty_tpl->tpl_vars['input_name']->value . "[" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "]", 'options_array' => $_smarty_tpl->tpl_vars['product']->value['product_options']), 0);
                            ?>

        <?php 
                        }
                        ?>
    <?php 
                    }
                    ?>
    </table>
<?php 
                }
            }
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['view_mode']->value != "list") {
                ?>

    <?php 
                if ($_smarty_tpl->tpl_vars['extra_var']->value) {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars["extra_var"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['extra_var']->value), null, 0);
                    ?>
    <?php 
                }
                ?>

    <?php 
                if (!$_smarty_tpl->tpl_vars['no_container']->value) {
                    ?>
<div class="buttons-container picker"><?php 
                }
                if ($_smarty_tpl->tpl_vars['picker_view']->value) {
                    ?>
[<?php 
                }
                ?>
        <div class="ty-mt-m">
            <?php 
                echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_id' => "opener_picker_" . (string) $_smarty_tpl->tpl_vars['data_id']->value, 'but_href' => "products.picker?display=" . (string) $_smarty_tpl->tpl_vars['display']->value . "&picker_for=" . (string) $_smarty_tpl->tpl_vars['picker_for']->value . "&extra=" . (string) $_smarty_tpl->tpl_vars['extra_var']->value . "&checkbox_name=" . (string) $_smarty_tpl->tpl_vars['checkbox_name']->value . "&aoc=" . (string) $_smarty_tpl->tpl_vars['aoc']->value . "&data_id=" . (string) $_smarty_tpl->tpl_vars['data_id']->value, 'but_text' => ($tmp = @$_smarty_tpl->tpl_vars['but_text']->value) === null || $tmp === '' ? $_smarty_tpl->__("add_products") : $tmp, 'but_role' => ($tmp = @$_smarty_tpl->tpl_vars['but_role']->value) === null || $tmp === '' ? "add" : $tmp, 'but_target_id' => "content_" . (string) $_smarty_tpl->tpl_vars['data_id']->value, 'but_meta' => "ty-btn__secondary cm-dialog-opener", 'but_rel' => "nofollow", 'but_icon' => "product-picker-icon ty-icon-plus"), 0);
                ?>

    <?php 
                if ($_smarty_tpl->tpl_vars['picker_view']->value) {
                    ?>
]<?php 
                }
                if (!$_smarty_tpl->tpl_vars['no_container']->value) {
                    ?>
</div><?php 
                }
                ?>
    </div>

    <div class="hidden" id="content_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->value, ENT_QUOTES, 'UTF-8');
                ?>
" title="<?php 
                echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['but_text']->value) === null || $tmp === '' ? $_smarty_tpl->__("add_products") : $tmp, ENT_QUOTES, 'UTF-8');
                ?>
">
    </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();
            }
            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="pickers/products/picker.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "pickers/products/picker.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->tpl_vars["view_mode"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['view_mode']->value) === null || $tmp === '' ? "mixed" : $tmp, null, 0);
            if (!$_smarty_tpl->tpl_vars['display']->value) {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["display"] = new Smarty_variable("options", null, 0);
            }
            ?>

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


<?php 
            if ($_smarty_tpl->tpl_vars['view_mode']->value != "button") {
                if ($_smarty_tpl->tpl_vars['type']->value == "table") {
                    ?>
    <p id="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
_no_item" class="ty-no-items<?php 
                    if ($_smarty_tpl->tpl_vars['item_ids']->value) {
                        ?>
 hidden<?php 
                    }
                    ?>
"><?php 
                    echo ($tmp = @$_smarty_tpl->tpl_vars['no_item_text']->value) === null || $tmp === '' ? $_smarty_tpl->__("no_items") : $tmp;
                    ?>
</p>

    <table id="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
" class="ty-table<?php 
                    if (!$_smarty_tpl->tpl_vars['item_ids']->value) {
                        ?>
 hidden<?php 
                    }
                    ?>
 cm-picker-options">
    <thead>
        <tr>
            <th><?php 
                    echo $_smarty_tpl->__("name");
                    ?>
</th>
            <th><?php 
                    echo $_smarty_tpl->__("quantity");
                    ?>
</th>
        </tr>
    </thead>
    <?php 
                    echo $_smarty_tpl->getSubTemplate("pickers/products/js.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('clone' => true, 'options' => (string) $_smarty_tpl->tpl_vars['ldelim']->value . "options" . (string) $_smarty_tpl->tpl_vars['rdelim']->value, 'root_id' => $_smarty_tpl->tpl_vars['data_id']->value, 'product' => (string) $_smarty_tpl->tpl_vars['ldelim']->value . "product" . (string) $_smarty_tpl->tpl_vars['rdelim']->value, 'delete_id' => (string) $_smarty_tpl->tpl_vars['ldelim']->value . "delete_id" . (string) $_smarty_tpl->tpl_vars['rdelim']->value, 'amount' => 1, 'amount_input' => "text", 'input_name' => (string) $_smarty_tpl->tpl_vars['input_name']->value . "[" . (string) $_smarty_tpl->tpl_vars['ldelim']->value . "product_id" . (string) $_smarty_tpl->tpl_vars['rdelim']->value . "]"), 0);
                    ?>

    <?php 
                    if ($_smarty_tpl->tpl_vars['item_ids']->value) {
                        ?>
        <?php 
                        $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars["product"]->_loop = false;
                        $_smarty_tpl->tpl_vars["product_id"] = new Smarty_Variable();
                        $_from = $_smarty_tpl->tpl_vars['item_ids']->value;
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars["product"]->key => $_smarty_tpl->tpl_vars["product"]->value) {
                            $_smarty_tpl->tpl_vars["product"]->_loop = true;
                            $_smarty_tpl->tpl_vars["product_id"]->value = $_smarty_tpl->tpl_vars["product"]->key;
                            ?>
            <?php 
                            $_smarty_tpl->_capture_stack[0][] = array("product_options", null, null);
                            ob_start();
                            ?>
                <?php 
                            $_smarty_tpl->tpl_vars["prod_opts"] = new Smarty_variable(fn_get_product_options($_smarty_tpl->tpl_vars['product']->value['product_id']), null, 0);
                            ?>
                <?php 
                            if ($_smarty_tpl->tpl_vars['prod_opts']->value && !$_smarty_tpl->tpl_vars['product']->value['product_options']) {
                                ?>
                    <strong><?php 
                                echo $_smarty_tpl->__("options");
                                ?>
: </strong>&nbsp;<?php 
                                echo $_smarty_tpl->__("any_option_combinations");
                                ?>

                <?php 
                            } else {
                                ?>
                    <?php 
                                if ($_smarty_tpl->tpl_vars['product']->value['product_options_value']) {
                                    ?>
                        <?php 
                                    echo $_smarty_tpl->getSubTemplate("common/options_info.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_options' => $_smarty_tpl->tpl_vars['product']->value['product_options_value']), 0);
                                    ?>

                    <?php 
                                } else {
                                    ?>
                        <?php 
                                    echo $_smarty_tpl->getSubTemplate("common/options_info.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_options' => fn_get_selected_product_options_info($_smarty_tpl->tpl_vars['product']->value['product_options'])), 0);
                                    ?>

                    <?php 
                                }
                                ?>
                <?php 
                            }
                            ?>
            <?php 
                            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                            if (!empty($_capture_buffer)) {
                                if (isset($_capture_assign)) {
                                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                                }
                                if (isset($_capture_append)) {
                                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                                }
                                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                            } else {
                                $_smarty_tpl->capture_error();
                            }
                            ?>
            <?php 
                            if ($_smarty_tpl->tpl_vars['product']->value['product']) {
                                ?>
                <?php 
                                $_smarty_tpl->tpl_vars["product_name"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product'], null, 0);
                                ?>
            <?php 
                            } else {
                                ?>
                <?php 
                                $_smarty_tpl->tpl_vars["product_name"] = new Smarty_variable(($tmp = @htmlspecialchars(fn_get_product_name($_smarty_tpl->tpl_vars['product']->value['product_id']), ENT_QUOTES, 'UTF-8', true)) === null || $tmp === '' ? $_smarty_tpl->__("deleted_product") : $tmp, null, 0);
                                ?>
            <?php 
                            }
                            ?>
            <?php 
                            echo $_smarty_tpl->getSubTemplate("pickers/products/js.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('options' => Smarty::$_smarty_vars['capture']['product_options'], 'root_id' => $_smarty_tpl->tpl_vars['data_id']->value, 'product' => $_smarty_tpl->tpl_vars['product_name']->value, 'delete_id' => $_smarty_tpl->tpl_vars['product_id']->value, 'product_id' => $_smarty_tpl->tpl_vars['product']->value['product_id'], 'amount' => $_smarty_tpl->tpl_vars['product']->value['amount'], 'amount_input' => "text", 'input_name' => (string) $_smarty_tpl->tpl_vars['input_name']->value . "[" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "]", 'options_array' => $_smarty_tpl->tpl_vars['product']->value['product_options']), 0);
                            ?>

        <?php 
                        }
                        ?>
    <?php 
                    }
                    ?>
    </table>
<?php 
                }
            }
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['view_mode']->value != "list") {
                ?>

    <?php 
                if ($_smarty_tpl->tpl_vars['extra_var']->value) {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars["extra_var"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['extra_var']->value), null, 0);
                    ?>
    <?php 
                }
                ?>

    <?php 
                if (!$_smarty_tpl->tpl_vars['no_container']->value) {
                    ?>
<div class="buttons-container picker"><?php 
                }
                if ($_smarty_tpl->tpl_vars['picker_view']->value) {
                    ?>
[<?php 
                }
                ?>
        <div class="ty-mt-m">
            <?php 
                echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_id' => "opener_picker_" . (string) $_smarty_tpl->tpl_vars['data_id']->value, 'but_href' => "products.picker?display=" . (string) $_smarty_tpl->tpl_vars['display']->value . "&picker_for=" . (string) $_smarty_tpl->tpl_vars['picker_for']->value . "&extra=" . (string) $_smarty_tpl->tpl_vars['extra_var']->value . "&checkbox_name=" . (string) $_smarty_tpl->tpl_vars['checkbox_name']->value . "&aoc=" . (string) $_smarty_tpl->tpl_vars['aoc']->value . "&data_id=" . (string) $_smarty_tpl->tpl_vars['data_id']->value, 'but_text' => ($tmp = @$_smarty_tpl->tpl_vars['but_text']->value) === null || $tmp === '' ? $_smarty_tpl->__("add_products") : $tmp, 'but_role' => ($tmp = @$_smarty_tpl->tpl_vars['but_role']->value) === null || $tmp === '' ? "add" : $tmp, 'but_target_id' => "content_" . (string) $_smarty_tpl->tpl_vars['data_id']->value, 'but_meta' => "ty-btn__secondary cm-dialog-opener", 'but_rel' => "nofollow", 'but_icon' => "product-picker-icon ty-icon-plus"), 0);
                ?>

    <?php 
                if ($_smarty_tpl->tpl_vars['picker_view']->value) {
                    ?>
]<?php 
                }
                if (!$_smarty_tpl->tpl_vars['no_container']->value) {
                    ?>
</div><?php 
                }
                ?>
    </div>

    <div class="hidden" id="content_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->value, ENT_QUOTES, 'UTF-8');
                ?>
" title="<?php 
                echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['but_text']->value) === null || $tmp === '' ? $_smarty_tpl->__("add_products") : $tmp, ENT_QUOTES, 'UTF-8');
                ?>
">
    </div>

<?php 
            }
        }
    }
    function content_55d2f43da6ddb1_99129473($_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_block_hook')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php';
        }
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        fn_preload_lang_vars(array('placing_order', 'repay_order', 'skip_payment', 'checkout_terms_n_conditions_alert', 'submit_my_order', 'placing_order', 'repay_order', 'skip_payment', 'checkout_terms_n_conditions_alert', 'submit_my_order'));
        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_script(array('src' => "js/tygh/tabs.js"), $_smarty_tpl);
            ?>


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

    <?php 
                if ($_smarty_tpl->tpl_vars['order_id']->value) {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars['url'] = new Smarty_variable("orders.details?order_id=" . (string) $_smarty_tpl->tpl_vars['order_id']->value, null, 0);
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars['result_ids'] = new Smarty_variable("elm_payments_list", null, 0);
                    ?>
    <?php 
                } else {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars['url'] = new Smarty_variable("checkout.checkout", null, 0);
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars['result_ids'] = new Smarty_variable("checkout*,step_four", null, 0);
                    ?>
    <?php 
                }
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_hook(array('name' => "checkout:payment_method_check"), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>


<script type="text/javascript">
(function(_, $) {
    $(_.doc).on('click', '.cm-select-payment', function() {
        var self = $(this);

        $.ceAjax('request', fn_url('<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['url']->value, ENT_QUOTES, 'UTF-8');
            ?>
&payment_id=' + self.val()), {
            result_ids: '<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['result_ids']->value, ENT_QUOTES, 'UTF-8');
            ?>
',
            full_render: true
        });
    });

    $(_.doc).ready(function() {
        $('.payments-form').each(function(index, form) {
            $.ceEvent('on', 'ce.formpost_' + $(form).attr('name'), function() {
                $('#ajax_overlay').show();
                $('#ajax_loading_box').html('<span class="ty-ajax-loading-box-with__text-wrapper"><?php 
            echo $_smarty_tpl->__("placing_order");
            ?>
</span>').addClass('ty-ajax-loading-box_text_block');
                $.toggleStatusBox('show');
            });
        });
    });
}(Tygh, Tygh.$));
</script>


<?php 
            if (count($_smarty_tpl->tpl_vars['payment_methods']->value) > 1) {
                ?>
<div class="ty-tabs cm-j-tabs cm-track cm-j-tabs-disable-convertation clearfix">
    <ul class="ty-tabs__list" id="payment_tabs">
        <?php 
                $_smarty_tpl->tpl_vars["payments"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["payments"]->_loop = false;
                $_smarty_tpl->tpl_vars["tab_id"] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['payment_methods']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars["payments"]->key => $_smarty_tpl->tpl_vars["payments"]->value) {
                    $_smarty_tpl->tpl_vars["payments"]->_loop = true;
                    $_smarty_tpl->tpl_vars["tab_id"]->value = $_smarty_tpl->tpl_vars["payments"]->key;
                    ?>
            <?php 
                    $_smarty_tpl->tpl_vars["tab_name"] = new Smarty_variable("payments_" . (string) $_smarty_tpl->tpl_vars['tab_id']->value, null, 0);
                    ?>
            <?php 
                    if ($_smarty_tpl->tpl_vars['tab_id']->value == $_smarty_tpl->tpl_vars['active_tab']->value || !$_smarty_tpl->tpl_vars['active_tab']->value && $_smarty_tpl->tpl_vars['payments']->value[$_smarty_tpl->tpl_vars['payment_id']->value]) {
                        ?>
                <?php 
                        $_smarty_tpl->tpl_vars['active'] = new Smarty_variable($_smarty_tpl->tpl_vars['tab_id']->value, null, 0);
                        ?>
            <?php 
                    }
                    ?>
            <?php 
                    $_smarty_tpl->tpl_vars['first_payment'] = new Smarty_variable(reset($_smarty_tpl->tpl_vars['payments']->value), null, 0);
                    ?>

            <li id="payments_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['tab_id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
" class="ty-tabs__item<?php 
                    if ($_smarty_tpl->tpl_vars['tab_id']->value == $_smarty_tpl->tpl_vars['active_tab']->value || !$_smarty_tpl->tpl_vars['active_tab']->value && $_smarty_tpl->tpl_vars['payments']->value[$_smarty_tpl->tpl_vars['payment_id']->value]) {
                        ?>
 active<?php 
                    }
                    ?>
">
                <a class="ty-tabs__a cm-ajax cm-ajax-full-render" data-ca-target-id="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['result_ids']->value, ENT_QUOTES, 'UTF-8');
                    ?>
" href="<?php 
                    echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['url']->value . "?active_tab=" . (string) $_smarty_tpl->tpl_vars['tab_id']->value . "&payment_id=" . (string) $_smarty_tpl->tpl_vars['first_payment']->value['payment_id']), ENT_QUOTES, 'UTF-8');
                    ?>
"><?php 
                    echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['tab_name']->value);
                    ?>
</a>
            </li>
        <?php 
                }
                ?>
    </ul>
</div>
<?php 
            }
            ?>

<div class="cm-tabs-content tabs-content clearfix">
    <?php 
            $_smarty_tpl->tpl_vars["payments"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["payments"]->_loop = false;
            $_smarty_tpl->tpl_vars["tab_id"] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['payment_methods']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars["payments"]->key => $_smarty_tpl->tpl_vars["payments"]->value) {
                $_smarty_tpl->tpl_vars["payments"]->_loop = true;
                $_smarty_tpl->tpl_vars["tab_id"]->value = $_smarty_tpl->tpl_vars["payments"]->key;
                ?>
        <div class="<?php 
                if ($_smarty_tpl->tpl_vars['active']->value != $_smarty_tpl->tpl_vars['tab_id']->value && count($_smarty_tpl->tpl_vars['payment_methods']->value) > 1) {
                    ?>
hidden<?php 
                }
                ?>
" id="content_payments_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['tab_id']->value, ENT_QUOTES, 'UTF-8');
                ?>
">
            <form name="payments_form_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['tab_id']->value, ENT_QUOTES, 'UTF-8');
                ?>
" action="<?php 
                echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');
                ?>
" method="post" class="payments-form">
            <input type="hidden" name="payment_id" value="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['payment_id']->value, ENT_QUOTES, 'UTF-8');
                ?>
" />
            <input type="hidden" name="result_ids" value="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['result_ids']->value, ENT_QUOTES, 'UTF-8');
                ?>
" />

            <?php 
                if ($_smarty_tpl->tpl_vars['order_id']->value) {
                    ?>
                <input type="hidden" name="order_id" value="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['order_id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
" />
            <?php 
                } else {
                    ?>
                <div class="ty-checkout__billing-options <?php 
                    if (count($_smarty_tpl->tpl_vars['payment_methods']->value) == 1) {
                        ?>
ty-notab<?php 
                    }
                    ?>
">
            <?php 
                }
                ?>
                <?php 
                if (count($_smarty_tpl->tpl_vars['payments']->value) == 1) {
                    ?>
                    <?php 
                    $_smarty_tpl->tpl_vars["payment"] = new Smarty_variable(reset($_smarty_tpl->tpl_vars['payments']->value), null, 0);
                    ?>
                    
                    <?php 
                    if ($_smarty_tpl->tpl_vars['payment']->value['template']) {
                        ?>
                        <?php 
                        $_smarty_tpl->_capture_stack[0][] = array("payment_template", null, null);
                        ob_start();
                        ?>
                            <?php 
                        if ($_smarty_tpl->tpl_vars['payment']->value['image']) {
                            ?>
                                <div class="clearfix">
                                    <?php 
                            echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('obj_id' => $_smarty_tpl->tpl_vars['payment']->value['payment_id'], 'images' => $_smarty_tpl->tpl_vars['payment']->value['image'], 'image_width' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_cart_thumbnail_width'], 'image_height' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_cart_thumbnail_height']), 0);
                            ?>

                                </div>
                            <?php 
                        }
                        ?>
                            
                            <?php 
                        if ($_smarty_tpl->tpl_vars['payment']->value['description']) {
                            ?>
                                <div class="ty-payments-list__description">
                                    <?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['payment']->value['description'], ENT_QUOTES, 'UTF-8');
                            ?>

                                </div>
                            <?php 
                        }
                        ?>

                            <?php 
                        echo $_smarty_tpl->getSubTemplate($_smarty_tpl->tpl_vars['payment']->value['template'], $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('card_id' => $_smarty_tpl->tpl_vars['payment']->value['payment_id']), 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 
                    }
                    ?>

                    <?php 
                    if ($_smarty_tpl->tpl_vars['payment']->value['template'] && trim(Smarty::$_smarty_vars['capture']['payment_template']) != '') {
                        ?>
                        <div class="clearfix">
                            <div class="ty-payments-list__instruction other-text"><?php 
                        echo $_smarty_tpl->tpl_vars['payment']->value['instructions'];
                        ?>
</div>
                            <?php 
                        echo Smarty::$_smarty_vars['capture']['payment_template'];
                        ?>

                        </div>
                    <?php 
                    } else {
                        ?>
                        <?php 
                        echo $_smarty_tpl->getSubTemplate("views/checkout/components/payments/payments_list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('payments' => array($_smarty_tpl->tpl_vars['payment']->value)), 0);
                        ?>

                    <?php 
                    }
                    ?>

                <?php 
                } else {
                    ?>
                    <?php 
                    echo $_smarty_tpl->getSubTemplate("views/checkout/components/payments/payments_list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

                <?php 
                }
                ?>
                
                <?php 
                if ($_smarty_tpl->tpl_vars['order_id']->value) {
                    ?>
                    <?php 
                    echo $_smarty_tpl->getSubTemplate("views/checkout/components/customer_notes.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>


                    <div class="ty-checkout-buttons">
                        <?php 
                    if ($_smarty_tpl->tpl_vars['payment_method']->value['params']['button']) {
                        ?>
                            <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['payment_method']->value['params']['button'], ENT_QUOTES, 'UTF-8');
                        ?>

                        <?php 
                    } else {
                        ?>
                            <div class="ty-repay-button">
                                    <?php 
                        echo $_smarty_tpl->getSubTemplate("buttons/place_order.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("repay_order"), 'but_name' => "dispatch[orders.repay]", 'but_role' => "big"), 0);
                        ?>

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

                <?php 
                } else {
                    ?>
                    <?php 
                    echo $_smarty_tpl->getSubTemplate("views/checkout/components/terms_and_conditions.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('suffix' => $_smarty_tpl->tpl_vars['tab_id']->value), 0);
                    ?>


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

                    <?php 
                    if ($_smarty_tpl->tpl_vars['auth']->value['act_as_user']) {
                        ?>
                        <div class="ty-control-group">
                            <label>
                                <input type="checkbox" id="skip_payment" name="skip_payment" value="Y" class="checkbox" />
                            <?php 
                        echo $_smarty_tpl->__("skip_payment");
                        ?>

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

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

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

                    </div>

                    <?php 
                    if ($_smarty_tpl->tpl_vars['iframe_mode']->value) {
                        ?>
                        <div class="ty-payment-method-iframe__box">
                            <iframe width="100%" height="700" id="order_iframe_<?php 
                        echo htmlspecialchars(@constant('TIME'), ENT_QUOTES, 'UTF-8');
                        ?>
" src="<?php 
                        echo htmlspecialchars(fn_checkout_url("checkout.process_payment", @constant('AREA')), ENT_QUOTES, 'UTF-8');
                        ?>
" style="border: 0px" frameBorder="0" ></iframe>
                            <?php 
                        if ($_smarty_tpl->tpl_vars['cart_agreements']->value || $_smarty_tpl->tpl_vars['settings']->value['General']['agree_terms_conditions'] == "Y") {
                            ?>
                            <div id="payment_method_iframe<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['tab_id']->value, ENT_QUOTES, 'UTF-8');
                            ?>
" class="ty-payment-method-iframe">
                                <div class="ty-payment-method-iframe__label">
                                    <div class="ty-payment-method-iframe__text"><?php 
                            echo $_smarty_tpl->__("checkout_terms_n_conditions_alert");
                            ?>
</div>
                                </div>
                            </div>
                            <?php 
                        }
                        ?>
                        </div>
                    <?php 
                    } else {
                        ?>
                        <div class="ty-checkout-buttons ty-checkout-buttons__submit-order">
                            <?php 
                        if (!$_smarty_tpl->tpl_vars['show_checkout_button']->value) {
                            ?>
                                
                                <?php 
                            echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_meta' => "ty-btn__big ty-btn__primary ty-btn", 'but_onclick' => "ls_checkout_estimation_cart_continue('place_order_" . (string) $_smarty_tpl->tpl_vars['tab_id']->value . "','dispatch[checkout.place_order]');", 'but_id' => "place_order_" . (string) $_smarty_tpl->tpl_vars['tab_id']->value, 'but_role' => "text", 'but_text' => __("submit_my_order")), 0);
                            ?>

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

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

                <div class="processor-buttons hidden"></div>
            </form>

        <!--content_payments_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['tab_id']->value, ENT_QUOTES, 'UTF-8');
                ?>
--></div>
    <?php 
            }
            ?>
</div>
<?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            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="views/checkout/components/payments/payment_methods.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "views/checkout/components/payments/payment_methods.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_script(array('src' => "js/tygh/tabs.js"), $_smarty_tpl);
            ?>


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

    <?php 
                if ($_smarty_tpl->tpl_vars['order_id']->value) {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars['url'] = new Smarty_variable("orders.details?order_id=" . (string) $_smarty_tpl->tpl_vars['order_id']->value, null, 0);
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars['result_ids'] = new Smarty_variable("elm_payments_list", null, 0);
                    ?>
    <?php 
                } else {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars['url'] = new Smarty_variable("checkout.checkout", null, 0);
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars['result_ids'] = new Smarty_variable("checkout*,step_four", null, 0);
                    ?>
    <?php 
                }
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_hook(array('name' => "checkout:payment_method_check"), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>


<script type="text/javascript">
(function(_, $) {
    $(_.doc).on('click', '.cm-select-payment', function() {
        var self = $(this);

        $.ceAjax('request', fn_url('<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['url']->value, ENT_QUOTES, 'UTF-8');
            ?>
&payment_id=' + self.val()), {
            result_ids: '<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['result_ids']->value, ENT_QUOTES, 'UTF-8');
            ?>
',
            full_render: true
        });
    });

    $(_.doc).ready(function() {
        $('.payments-form').each(function(index, form) {
            $.ceEvent('on', 'ce.formpost_' + $(form).attr('name'), function() {
                $('#ajax_overlay').show();
                $('#ajax_loading_box').html('<span class="ty-ajax-loading-box-with__text-wrapper"><?php 
            echo $_smarty_tpl->__("placing_order");
            ?>
</span>').addClass('ty-ajax-loading-box_text_block');
                $.toggleStatusBox('show');
            });
        });
    });
}(Tygh, Tygh.$));
</script>


<?php 
            if (count($_smarty_tpl->tpl_vars['payment_methods']->value) > 1) {
                ?>
<div class="ty-tabs cm-j-tabs cm-track cm-j-tabs-disable-convertation clearfix">
    <ul class="ty-tabs__list" id="payment_tabs">
        <?php 
                $_smarty_tpl->tpl_vars["payments"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["payments"]->_loop = false;
                $_smarty_tpl->tpl_vars["tab_id"] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['payment_methods']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars["payments"]->key => $_smarty_tpl->tpl_vars["payments"]->value) {
                    $_smarty_tpl->tpl_vars["payments"]->_loop = true;
                    $_smarty_tpl->tpl_vars["tab_id"]->value = $_smarty_tpl->tpl_vars["payments"]->key;
                    ?>
            <?php 
                    $_smarty_tpl->tpl_vars["tab_name"] = new Smarty_variable("payments_" . (string) $_smarty_tpl->tpl_vars['tab_id']->value, null, 0);
                    ?>
            <?php 
                    if ($_smarty_tpl->tpl_vars['tab_id']->value == $_smarty_tpl->tpl_vars['active_tab']->value || !$_smarty_tpl->tpl_vars['active_tab']->value && $_smarty_tpl->tpl_vars['payments']->value[$_smarty_tpl->tpl_vars['payment_id']->value]) {
                        ?>
                <?php 
                        $_smarty_tpl->tpl_vars['active'] = new Smarty_variable($_smarty_tpl->tpl_vars['tab_id']->value, null, 0);
                        ?>
            <?php 
                    }
                    ?>
            <?php 
                    $_smarty_tpl->tpl_vars['first_payment'] = new Smarty_variable(reset($_smarty_tpl->tpl_vars['payments']->value), null, 0);
                    ?>

            <li id="payments_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['tab_id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
" class="ty-tabs__item<?php 
                    if ($_smarty_tpl->tpl_vars['tab_id']->value == $_smarty_tpl->tpl_vars['active_tab']->value || !$_smarty_tpl->tpl_vars['active_tab']->value && $_smarty_tpl->tpl_vars['payments']->value[$_smarty_tpl->tpl_vars['payment_id']->value]) {
                        ?>
 active<?php 
                    }
                    ?>
">
                <a class="ty-tabs__a cm-ajax cm-ajax-full-render" data-ca-target-id="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['result_ids']->value, ENT_QUOTES, 'UTF-8');
                    ?>
" href="<?php 
                    echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['url']->value . "?active_tab=" . (string) $_smarty_tpl->tpl_vars['tab_id']->value . "&payment_id=" . (string) $_smarty_tpl->tpl_vars['first_payment']->value['payment_id']), ENT_QUOTES, 'UTF-8');
                    ?>
"><?php 
                    echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['tab_name']->value);
                    ?>
</a>
            </li>
        <?php 
                }
                ?>
    </ul>
</div>
<?php 
            }
            ?>

<div class="cm-tabs-content tabs-content clearfix">
    <?php 
            $_smarty_tpl->tpl_vars["payments"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["payments"]->_loop = false;
            $_smarty_tpl->tpl_vars["tab_id"] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['payment_methods']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars["payments"]->key => $_smarty_tpl->tpl_vars["payments"]->value) {
                $_smarty_tpl->tpl_vars["payments"]->_loop = true;
                $_smarty_tpl->tpl_vars["tab_id"]->value = $_smarty_tpl->tpl_vars["payments"]->key;
                ?>
        <div class="<?php 
                if ($_smarty_tpl->tpl_vars['active']->value != $_smarty_tpl->tpl_vars['tab_id']->value && count($_smarty_tpl->tpl_vars['payment_methods']->value) > 1) {
                    ?>
hidden<?php 
                }
                ?>
" id="content_payments_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['tab_id']->value, ENT_QUOTES, 'UTF-8');
                ?>
">
            <form name="payments_form_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['tab_id']->value, ENT_QUOTES, 'UTF-8');
                ?>
" action="<?php 
                echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');
                ?>
" method="post" class="payments-form">
            <input type="hidden" name="payment_id" value="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['payment_id']->value, ENT_QUOTES, 'UTF-8');
                ?>
" />
            <input type="hidden" name="result_ids" value="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['result_ids']->value, ENT_QUOTES, 'UTF-8');
                ?>
" />

            <?php 
                if ($_smarty_tpl->tpl_vars['order_id']->value) {
                    ?>
                <input type="hidden" name="order_id" value="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['order_id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
" />
            <?php 
                } else {
                    ?>
                <div class="ty-checkout__billing-options <?php 
                    if (count($_smarty_tpl->tpl_vars['payment_methods']->value) == 1) {
                        ?>
ty-notab<?php 
                    }
                    ?>
">
            <?php 
                }
                ?>
                <?php 
                if (count($_smarty_tpl->tpl_vars['payments']->value) == 1) {
                    ?>
                    <?php 
                    $_smarty_tpl->tpl_vars["payment"] = new Smarty_variable(reset($_smarty_tpl->tpl_vars['payments']->value), null, 0);
                    ?>
                    
                    <?php 
                    if ($_smarty_tpl->tpl_vars['payment']->value['template']) {
                        ?>
                        <?php 
                        $_smarty_tpl->_capture_stack[0][] = array("payment_template", null, null);
                        ob_start();
                        ?>
                            <?php 
                        if ($_smarty_tpl->tpl_vars['payment']->value['image']) {
                            ?>
                                <div class="clearfix">
                                    <?php 
                            echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('obj_id' => $_smarty_tpl->tpl_vars['payment']->value['payment_id'], 'images' => $_smarty_tpl->tpl_vars['payment']->value['image'], 'image_width' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_cart_thumbnail_width'], 'image_height' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_cart_thumbnail_height']), 0);
                            ?>

                                </div>
                            <?php 
                        }
                        ?>
                            
                            <?php 
                        if ($_smarty_tpl->tpl_vars['payment']->value['description']) {
                            ?>
                                <div class="ty-payments-list__description">
                                    <?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['payment']->value['description'], ENT_QUOTES, 'UTF-8');
                            ?>

                                </div>
                            <?php 
                        }
                        ?>

                            <?php 
                        echo $_smarty_tpl->getSubTemplate($_smarty_tpl->tpl_vars['payment']->value['template'], $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('card_id' => $_smarty_tpl->tpl_vars['payment']->value['payment_id']), 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 
                    }
                    ?>

                    <?php 
                    if ($_smarty_tpl->tpl_vars['payment']->value['template'] && trim(Smarty::$_smarty_vars['capture']['payment_template']) != '') {
                        ?>
                        <div class="clearfix">
                            <div class="ty-payments-list__instruction other-text"><?php 
                        echo $_smarty_tpl->tpl_vars['payment']->value['instructions'];
                        ?>
</div>
                            <?php 
                        echo Smarty::$_smarty_vars['capture']['payment_template'];
                        ?>

                        </div>
                    <?php 
                    } else {
                        ?>
                        <?php 
                        echo $_smarty_tpl->getSubTemplate("views/checkout/components/payments/payments_list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('payments' => array($_smarty_tpl->tpl_vars['payment']->value)), 0);
                        ?>

                    <?php 
                    }
                    ?>

                <?php 
                } else {
                    ?>
                    <?php 
                    echo $_smarty_tpl->getSubTemplate("views/checkout/components/payments/payments_list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

                <?php 
                }
                ?>
                
                <?php 
                if ($_smarty_tpl->tpl_vars['order_id']->value) {
                    ?>
                    <?php 
                    echo $_smarty_tpl->getSubTemplate("views/checkout/components/customer_notes.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>


                    <div class="ty-checkout-buttons">
                        <?php 
                    if ($_smarty_tpl->tpl_vars['payment_method']->value['params']['button']) {
                        ?>
                            <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['payment_method']->value['params']['button'], ENT_QUOTES, 'UTF-8');
                        ?>

                        <?php 
                    } else {
                        ?>
                            <div class="ty-repay-button">
                                    <?php 
                        echo $_smarty_tpl->getSubTemplate("buttons/place_order.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("repay_order"), 'but_name' => "dispatch[orders.repay]", 'but_role' => "big"), 0);
                        ?>

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

                <?php 
                } else {
                    ?>
                    <?php 
                    echo $_smarty_tpl->getSubTemplate("views/checkout/components/terms_and_conditions.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('suffix' => $_smarty_tpl->tpl_vars['tab_id']->value), 0);
                    ?>


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

                    <?php 
                    if ($_smarty_tpl->tpl_vars['auth']->value['act_as_user']) {
                        ?>
                        <div class="ty-control-group">
                            <label>
                                <input type="checkbox" id="skip_payment" name="skip_payment" value="Y" class="checkbox" />
                            <?php 
                        echo $_smarty_tpl->__("skip_payment");
                        ?>

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

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

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

                    </div>

                    <?php 
                    if ($_smarty_tpl->tpl_vars['iframe_mode']->value) {
                        ?>
                        <div class="ty-payment-method-iframe__box">
                            <iframe width="100%" height="700" id="order_iframe_<?php 
                        echo htmlspecialchars(@constant('TIME'), ENT_QUOTES, 'UTF-8');
                        ?>
" src="<?php 
                        echo htmlspecialchars(fn_checkout_url("checkout.process_payment", @constant('AREA')), ENT_QUOTES, 'UTF-8');
                        ?>
" style="border: 0px" frameBorder="0" ></iframe>
                            <?php 
                        if ($_smarty_tpl->tpl_vars['cart_agreements']->value || $_smarty_tpl->tpl_vars['settings']->value['General']['agree_terms_conditions'] == "Y") {
                            ?>
                            <div id="payment_method_iframe<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['tab_id']->value, ENT_QUOTES, 'UTF-8');
                            ?>
" class="ty-payment-method-iframe">
                                <div class="ty-payment-method-iframe__label">
                                    <div class="ty-payment-method-iframe__text"><?php 
                            echo $_smarty_tpl->__("checkout_terms_n_conditions_alert");
                            ?>
</div>
                                </div>
                            </div>
                            <?php 
                        }
                        ?>
                        </div>
                    <?php 
                    } else {
                        ?>
                        <div class="ty-checkout-buttons ty-checkout-buttons__submit-order">
                            <?php 
                        if (!$_smarty_tpl->tpl_vars['show_checkout_button']->value) {
                            ?>
                                
                                <?php 
                            echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_meta' => "ty-btn__big ty-btn__primary ty-btn", 'but_onclick' => "ls_checkout_estimation_cart_continue('place_order_" . (string) $_smarty_tpl->tpl_vars['tab_id']->value . "','dispatch[checkout.place_order]');", 'but_id' => "place_order_" . (string) $_smarty_tpl->tpl_vars['tab_id']->value, 'but_role' => "text", 'but_text' => __("submit_my_order")), 0);
                            ?>

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

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

                <div class="processor-buttons hidden"></div>
            </form>

        <!--content_payments_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['tab_id']->value, ENT_QUOTES, 'UTF-8');
                ?>
--></div>
    <?php 
            }
            ?>
</div>
<?php 
        }
    }
    function content_55deaa21624ff6_83896300($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php';
        }
        fn_preload_lang_vars(array('editing_filter', 'edit', 'viewing_filter', 'view', 'no_data', 'new_filter', 'add_filter', 'filters'));
        echo smarty_function_script(array('src' => "js/tygh/tabs.js"), $_smarty_tpl);
        ?>


<script type="text/javascript">
    var filter_fields = {};
    <?php 
        $_smarty_tpl->tpl_vars['filter_field'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['filter_field']->_loop = false;
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['filter_fields']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['filter_field']->key => $_smarty_tpl->tpl_vars['filter_field']->value) {
            $_smarty_tpl->tpl_vars['filter_field']->_loop = true;
            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['filter_field']->key;
            ?>
    filter_fields['<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8');
            ?>
'] = '<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_field']->value['slider'], ENT_QUOTES, 'UTF-8');
            ?>
';
    <?php 
        }
        ?>


function fn_check_product_filter_type(value, tab_id, id)
{
    var $ = Tygh.$;
    $('#' + tab_id).toggleBy(!(value.indexOf('R') == 0) && !(value.indexOf('D') == 0));
    $('[id^=inputs_ranges' + id + ']').toggleBy((value.indexOf('D') == 0));
    $('[id^=dates_ranges' + id + ']').toggleBy(!(value.indexOf('D') == 0));
    $('#round_to_' + id + '_container').toggleBy(!filter_fields[value.replace(/\w+-/, '')]);
    $('#display_count_' + id + '_container').toggleBy(!(value.indexOf('R') == 0) && !(value.indexOf('F') == 0) && !(value.indexOf('S') > 0));
    $('#display_more_count_' + id + '_container').toggleBy(!(value.indexOf('R') == 0) && !(value.indexOf('F') == 0) && !(value.indexOf('S') > 0));
}
</script>


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

<?php 
        echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('object_type' => "filters"), 0);
        ?>


<?php 
        $_smarty_tpl->tpl_vars["r_url"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0);
        ?>

<div class="items-container<?php 
        if (fn_check_form_permissions('')) {
            ?>
 cm-hide-inputs<?php 
        }
        ?>
" id="manage_filters_list">
<table width="100%" class="table table-middle table-objects">
<tbody>

<?php 
        $_smarty_tpl->tpl_vars["filter"] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars["filter"]->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['filters']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars["filter"]->key => $_smarty_tpl->tpl_vars["filter"]->value) {
            $_smarty_tpl->tpl_vars["filter"]->_loop = true;
            ?>
    
    <?php 
            if (fn_allow_save_object($_smarty_tpl->tpl_vars['filter']->value, "product_filters")) {
                ?>
        <?php 
                ob_start();
                echo $_smarty_tpl->__("editing_filter");
                $_tmp1 = ob_get_clean();
                echo $_smarty_tpl->getSubTemplate("common/object_group.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['filter']->value['filter_id'], 'show_id' => true, 'details' => $_smarty_tpl->tpl_vars['filter']->value['filter_description'], 'text' => $_smarty_tpl->tpl_vars['filter']->value['filter'], 'status' => $_smarty_tpl->tpl_vars['filter']->value['status'], 'href' => "product_filters.update?filter_id=" . (string) $_smarty_tpl->tpl_vars['filter']->value['filter_id'] . "&return_url=" . (string) $_smarty_tpl->tpl_vars['r_url']->value, 'object_id_name' => "filter_id", 'href_delete' => "product_filters.delete?filter_id=" . (string) $_smarty_tpl->tpl_vars['filter']->value['filter_id'], 'delete_target_id' => "pagination_contents", 'table' => "product_filters", 'no_table' => true, 'additional_class' => "cm-no-hide-input", 'header_text' => $_tmp1 . ": " . (string) $_smarty_tpl->tpl_vars['filter']->value['filter'], 'link_text' => __("edit"), 'company_object' => $_smarty_tpl->tpl_vars['filter']->value), 0);
                ?>

    <?php 
            } else {
                ?>
        <?php 
                ob_start();
                echo $_smarty_tpl->__("viewing_filter");
                $_tmp2 = ob_get_clean();
                echo $_smarty_tpl->getSubTemplate("common/object_group.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['filter']->value['filter_id'], 'show_id' => true, 'details' => $_smarty_tpl->tpl_vars['filter']->value['filter_description'], 'text' => $_smarty_tpl->tpl_vars['filter']->value['filter'], 'status' => $_smarty_tpl->tpl_vars['filter']->value['status'], 'href' => "product_filters.update?filter_id=" . (string) $_smarty_tpl->tpl_vars['filter']->value['filter_id'] . "&return_url=" . (string) $_smarty_tpl->tpl_vars['r_url']->value, 'object_id_name' => "filter_id", 'table' => "product_filters", 'no_table' => true, 'additional_class' => '', 'header_text' => $_tmp2 . ":&nbsp;" . (string) $_smarty_tpl->tpl_vars['filter']->value['filter'], 'link_text' => __("view"), 'non_editable' => true, 'is_view_link' => true, 'company_object' => $_smarty_tpl->tpl_vars['filter']->value), 0);
                ?>

    <?php 
            }
            ?>

<?php 
        }
        if (!$_smarty_tpl->tpl_vars["filter"]->_loop) {
            ?>

    <p class="no-items"><?php 
            echo $_smarty_tpl->__("no_data");
            ?>
</p>

<?php 
        }
        ?>
</tbody>
</table>
<!--manage_filters_list--></div>

<?php 
        echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('object_type' => "filters"), 0);
        ?>


<?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/product_filters/update.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('filter' => 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 
        if (!fn_allowed_for("MULTIVENDOR") || !$_smarty_tpl->tpl_vars['runtime']->value['company_id'] && fn_allowed_for("MULTIVENDOR")) {
            ?>
    <?php 
            echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_product_filter", 'text' => __("new_filter"), 'content' => Smarty::$_smarty_vars['capture']['add_new_picker'], 'title' => __("add_filter"), 'act' => "general", 'icon' => "icon-plus"), 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 
        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();
        echo $_smarty_tpl->getSubTemplate("common/saved_search.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "product_filters.manage", 'view_type' => "product_filters"), 0);
        ?>

<?php 
        echo $_smarty_tpl->getSubTemplate("views/product_filters/components/product_filters_search_form.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "product_filters.manage"), 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/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("filters"), 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar'], 'select_languages' => true), 0);
    }
    function content_55dc75a3ca5cf5_10473128($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.script.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_script(array('src' => "js/lib/maskedinput/jquery.maskedinput.min.js"), $_smarty_tpl);
            ?>


<?php 
            echo smarty_function_script(array('src' => "js/lib/inputmask/jquery.inputmask.min.js"), $_smarty_tpl);
            ?>

<?php 
            echo smarty_function_script(array('src' => "js/lib/jquery-bind-first/jquery.bind-first-0.2.3.js"), $_smarty_tpl);
            ?>

<?php 
            echo smarty_function_script(array('src' => "js/lib/inputmask-multi/jquery.inputmask-multi.js"), $_smarty_tpl);
            ?>


<?php 
            echo '<script';
            ?>
 type="text/javascript">
    (function(_, $) {
        _.call_requests_phone_masks_list = <?php 
            echo $_smarty_tpl->tpl_vars['call_requests_phone_mask_codes']->value;
            ?>
;
        <?php 
            if ($_smarty_tpl->tpl_vars['addons']->value['call_requests']['phone_mask']) {
                ?>
            _.call_phone_mask = '<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['addons']->value['call_requests']['phone_mask'], ENT_QUOTES, 'UTF-8');
                ?>
'
        <?php 
            }
            ?>
    }(Tygh, Tygh.$));
<?php 
            echo '</script';
            ?>
>

<?php 
            echo smarty_function_script(array('src' => "js/addons/call_requests/call_requests.js"), $_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/call_requests/hooks/index/scripts.post.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "addons/call_requests/hooks/index/scripts.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_script(array('src' => "js/lib/maskedinput/jquery.maskedinput.min.js"), $_smarty_tpl);
            ?>


<?php 
            echo smarty_function_script(array('src' => "js/lib/inputmask/jquery.inputmask.min.js"), $_smarty_tpl);
            ?>

<?php 
            echo smarty_function_script(array('src' => "js/lib/jquery-bind-first/jquery.bind-first-0.2.3.js"), $_smarty_tpl);
            ?>

<?php 
            echo smarty_function_script(array('src' => "js/lib/inputmask-multi/jquery.inputmask-multi.js"), $_smarty_tpl);
            ?>


<?php 
            echo '<script';
            ?>
 type="text/javascript">
    (function(_, $) {
        _.call_requests_phone_masks_list = <?php 
            echo $_smarty_tpl->tpl_vars['call_requests_phone_mask_codes']->value;
            ?>
;
        <?php 
            if ($_smarty_tpl->tpl_vars['addons']->value['call_requests']['phone_mask']) {
                ?>
            _.call_phone_mask = '<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['addons']->value['call_requests']['phone_mask'], ENT_QUOTES, 'UTF-8');
                ?>
'
        <?php 
            }
            ?>
    }(Tygh, Tygh.$));
<?php 
            echo '</script';
            ?>
>

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