function content_55ccf2ea85b705_19170918($_smarty_tpl)
    {
        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();
            ?>
<li class="ty-product-filters__group">
    <?php 
            if (!$_smarty_tpl->tpl_vars['range']->value['checked']) {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["filter_query_elm"] = new Smarty_variable(fn_add_range_to_url_hash($_REQUEST['features_hash'], $_smarty_tpl->tpl_vars['range']->value, $_smarty_tpl->tpl_vars['filter']->value['field_type']), null, 0);
                ?>
    <?php 
            } else {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["filter_query_elm"] = new Smarty_variable(fn_delete_range_from_url($_REQUEST['features_hash'], $_smarty_tpl->tpl_vars['range']->value, $_smarty_tpl->tpl_vars['filter']->value['field_type']), null, 0);
                ?>
    <?php 
            }
            ?>
    <?php 
            if ($_REQUEST['features_hash']) {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["cur_features_hash"] = new Smarty_variable("&features_hash=" . (string) $_REQUEST['features_hash'], null, 0);
                ?>
    <?php 
            }
            ?>
    <?php 
            if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "E" && (!$_smarty_tpl->tpl_vars['filter']->value['simple_link'] || $_smarty_tpl->tpl_vars['filter']->value['selected_ranges'] && $_smarty_tpl->tpl_vars['controller']->value == "product_features")) {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["href"] = new Smarty_variable(fn_url("product_features.view?variant_id=" . (string) $_smarty_tpl->tpl_vars['range']->value['range_id'] . (string) $_smarty_tpl->tpl_vars['cur_features_hash']->value), null, 0);
                ?>
    <?php 
            } else {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["href"] = new Smarty_variable(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['filter_qstring']->value, "features_hash=" . (string) $_smarty_tpl->tpl_vars['filter_query_elm']->value)), null, 0);
                ?>
    <?php 
            }
            ?>
    <?php 
            $_smarty_tpl->tpl_vars["use_ajax"] = new Smarty_variable(fn_compare_dispatch($_smarty_tpl->tpl_vars['href']->value, $_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0);
            ?>
    <a <?php 
            if (!$_smarty_tpl->tpl_vars['range']->value['disabled'] || $_smarty_tpl->tpl_vars['range']->value['checked']) {
                ?>
href="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['href']->value, ENT_QUOTES, 'UTF-8');
                ?>
"<?php 
            }
            ?>
 <?php 
            if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] != "E") {
                ?>
rel="nofollow"<?php 
            }
            ?>
 class="ty-product-filters__item<?php 
            if ($_smarty_tpl->tpl_vars['range']->value['checked']) {
                ?>
 checked<?php 
            }
            if ($_smarty_tpl->tpl_vars['range']->value['disabled']) {
                ?>
 disabled<?php 
            } elseif ($_smarty_tpl->tpl_vars['allow_ajax']->value && $_smarty_tpl->tpl_vars['use_ajax']->value) {
                ?>
 cm-history<?php 
            }
            ?>
" data-ca-scroll=".cm-pagination-container" data-ca-target-id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_div_ids']->value, ENT_QUOTES, 'UTF-8');
            ?>
"><span class="ty-filter-icon"><i class="ty-icon-ok ty-filter-icon__check"></i><i class="ty-icon-cancel ty-filter-icon__delete"></i></span><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['prefix'], ENT_QUOTES, 'UTF-8');
            echo htmlspecialchars(fn_text_placeholders($_smarty_tpl->tpl_vars['range']->value['range_name']), ENT_QUOTES, 'UTF-8');
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['suffix'], ENT_QUOTES, 'UTF-8');
            ?>
&nbsp;<?php 
            if (!$_smarty_tpl->tpl_vars['range']->value['disabled']) {
                ?>
<span class="ty-product-filters__count">&nbsp;(<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['products'], ENT_QUOTES, 'UTF-8');
                ?>
)</span><?php 
            }
            ?>
</a>
    
</li>
<?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            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/product_filters/components/variant_item.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "blocks/product_filters/components/variant_item.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 {
            ?>
<li class="ty-product-filters__group">
    <?php 
            if (!$_smarty_tpl->tpl_vars['range']->value['checked']) {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["filter_query_elm"] = new Smarty_variable(fn_add_range_to_url_hash($_REQUEST['features_hash'], $_smarty_tpl->tpl_vars['range']->value, $_smarty_tpl->tpl_vars['filter']->value['field_type']), null, 0);
                ?>
    <?php 
            } else {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["filter_query_elm"] = new Smarty_variable(fn_delete_range_from_url($_REQUEST['features_hash'], $_smarty_tpl->tpl_vars['range']->value, $_smarty_tpl->tpl_vars['filter']->value['field_type']), null, 0);
                ?>
    <?php 
            }
            ?>
    <?php 
            if ($_REQUEST['features_hash']) {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["cur_features_hash"] = new Smarty_variable("&features_hash=" . (string) $_REQUEST['features_hash'], null, 0);
                ?>
    <?php 
            }
            ?>
    <?php 
            if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "E" && (!$_smarty_tpl->tpl_vars['filter']->value['simple_link'] || $_smarty_tpl->tpl_vars['filter']->value['selected_ranges'] && $_smarty_tpl->tpl_vars['controller']->value == "product_features")) {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["href"] = new Smarty_variable(fn_url("product_features.view?variant_id=" . (string) $_smarty_tpl->tpl_vars['range']->value['range_id'] . (string) $_smarty_tpl->tpl_vars['cur_features_hash']->value), null, 0);
                ?>
    <?php 
            } else {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["href"] = new Smarty_variable(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['filter_qstring']->value, "features_hash=" . (string) $_smarty_tpl->tpl_vars['filter_query_elm']->value)), null, 0);
                ?>
    <?php 
            }
            ?>
    <?php 
            $_smarty_tpl->tpl_vars["use_ajax"] = new Smarty_variable(fn_compare_dispatch($_smarty_tpl->tpl_vars['href']->value, $_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0);
            ?>
    <a <?php 
            if (!$_smarty_tpl->tpl_vars['range']->value['disabled'] || $_smarty_tpl->tpl_vars['range']->value['checked']) {
                ?>
href="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['href']->value, ENT_QUOTES, 'UTF-8');
                ?>
"<?php 
            }
            ?>
 <?php 
            if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] != "E") {
                ?>
rel="nofollow"<?php 
            }
            ?>
 class="ty-product-filters__item<?php 
            if ($_smarty_tpl->tpl_vars['range']->value['checked']) {
                ?>
 checked<?php 
            }
            if ($_smarty_tpl->tpl_vars['range']->value['disabled']) {
                ?>
 disabled<?php 
            } elseif ($_smarty_tpl->tpl_vars['allow_ajax']->value && $_smarty_tpl->tpl_vars['use_ajax']->value) {
                ?>
 cm-history<?php 
            }
            ?>
" data-ca-scroll=".cm-pagination-container" data-ca-target-id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_div_ids']->value, ENT_QUOTES, 'UTF-8');
            ?>
"><span class="ty-filter-icon"><i class="ty-icon-ok ty-filter-icon__check"></i><i class="ty-icon-cancel ty-filter-icon__delete"></i></span><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['prefix'], ENT_QUOTES, 'UTF-8');
            echo htmlspecialchars(fn_text_placeholders($_smarty_tpl->tpl_vars['range']->value['range_name']), ENT_QUOTES, 'UTF-8');
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['suffix'], ENT_QUOTES, 'UTF-8');
            ?>
&nbsp;<?php 
            if (!$_smarty_tpl->tpl_vars['range']->value['disabled']) {
                ?>
<span class="ty-product-filters__count">&nbsp;(<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['products'], ENT_QUOTES, 'UTF-8');
                ?>
)</span><?php 
            }
            ?>
</a>
    
</li>
<?php 
        }
    }
    function content_55ccf2ea705e17_82557313($_smarty_tpl)
    {
        if (!is_callable('smarty_function_math')) {
            include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/function.math.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();
            $_smarty_tpl->tpl_vars["min"] = new Smarty_variable($_smarty_tpl->tpl_vars['filter']->value['range_values']['min'], null, 0);
            $_smarty_tpl->tpl_vars["max"] = new Smarty_variable($_smarty_tpl->tpl_vars['filter']->value['range_values']['max'], null, 0);
            $_smarty_tpl->tpl_vars["left"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['range_values']['left']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['min']->value : $tmp, null, 0);
            $_smarty_tpl->tpl_vars["right"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['range_values']['right']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['max']->value : $tmp, null, 0);
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['max']->value - $_smarty_tpl->tpl_vars['min']->value <= $_smarty_tpl->tpl_vars['filter']->value['round_to']) {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["disable_slider"] = new Smarty_variable(true, null, 0);
            } elseif ($_smarty_tpl->tpl_vars['max']->value - $_smarty_tpl->tpl_vars['min']->value >= 4 * $_smarty_tpl->tpl_vars['filter']->value['round_to']) {
                ?>
    <?php 
                echo smarty_function_math(array('equation' => "min + round((max - min) * 0.25 / rto) * rto", 'max' => $_smarty_tpl->tpl_vars['max']->value, 'min' => $_smarty_tpl->tpl_vars['min']->value, 'rto' => $_smarty_tpl->tpl_vars['filter']->value['round_to'], 'assign' => "num_25"), $_smarty_tpl);
                ?>

    <?php 
                echo smarty_function_math(array('equation' => "min + round((max - min) * 0.50 / rto) * rto", 'max' => $_smarty_tpl->tpl_vars['max']->value, 'min' => $_smarty_tpl->tpl_vars['min']->value, 'rto' => $_smarty_tpl->tpl_vars['filter']->value['round_to'], 'assign' => "num_50"), $_smarty_tpl);
                ?>

    <?php 
                echo smarty_function_math(array('equation' => "min + round((max - min) * 0.75 / rto) * rto", 'max' => $_smarty_tpl->tpl_vars['max']->value, 'min' => $_smarty_tpl->tpl_vars['min']->value, 'rto' => $_smarty_tpl->tpl_vars['filter']->value['round_to'], 'assign' => "num_75"), $_smarty_tpl);
                ?>

<?php 
            }
            ?>

<?php 
            if (fn_string_not_empty($_smarty_tpl->tpl_vars['filter']->value['range_values']['left']) || fn_string_not_empty($_smarty_tpl->tpl_vars['filter']->value['range_values']['right'])) {
                ?>
    <?php 
                $_smarty_tpl->_capture_stack[0][] = array("has_selected", null, null);
                ob_start();
                ?>
Y<?php 
                list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                if (!empty($_capture_buffer)) {
                    if (isset($_capture_assign)) {
                        $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                    }
                    if (isset($_capture_append)) {
                        $_smarty_tpl->append($_capture_append, ob_get_contents());
                    }
                    Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                } else {
                    $_smarty_tpl->capture_error();
                }
            }
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['dynamic']->value) {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["filter_slider_hash"] = new Smarty_variable(fn_add_range_to_url_hash($_REQUEST['features_hash'], '###-###', $_smarty_tpl->tpl_vars['filter']->value['field_type']), null, 0);
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["filter_slider_url"] = new Smarty_variable(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['filter_qstring']->value, "features_hash=" . (string) $_smarty_tpl->tpl_vars['filter_slider_hash']->value)), null, 0);
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["use_ajax"] = new Smarty_variable(fn_compare_dispatch($_smarty_tpl->tpl_vars['filter_slider_url']->value, $_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0);
            } else {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["filter_slider_hash"] = new Smarty_variable(fn_add_range_to_url_hash('', '###-###', $_smarty_tpl->tpl_vars['filter']->value['field_type']), null, 0);
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["filter_slider_url"] = new Smarty_variable(fn_url("products.search?features_hash=" . (string) $_smarty_tpl->tpl_vars['filter_slider_hash']->value), null, 0);
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["use_ajax"] = new Smarty_variable(false, null, 0);
            }
            ?>

<div id="content_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8');
            ?>
" class="ty-price-slider hidden <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['extra_class']->value, ENT_QUOTES, 'UTF-8');
            ?>
 cm-popup-box ty-dropdown-box__content">
    <input type="text" class="ty-price-slider__input-text" id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
_left" name="left_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['left']->value, ENT_QUOTES, 'UTF-8');
            ?>
"<?php 
            if ($_smarty_tpl->tpl_vars['disable_slider']->value) {
                ?>
 disabled="disabled"<?php 
            }
            ?>
 />
    &nbsp;–&nbsp;
    <input type="text" class="ty-price-slider__input-text" id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
_right" name="right_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['right']->value, ENT_QUOTES, 'UTF-8');
            ?>
"<?php 
            if ($_smarty_tpl->tpl_vars['disable_slider']->value) {
                ?>
 disabled="disabled"<?php 
            }
            ?>
 />
    <?php 
            if ($_smarty_tpl->tpl_vars['filter']->value['field_type'] == 'P') {
                ?>
        &nbsp;<?php 
                echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['secondary_currency']->value]['symbol'];
                ?>

    <?php 
            }
            ?>

    <div id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
" class="ty-range-slider cm-range-slider">
        <ul class="ty-range-slider__wrapper">
            <li class="ty-range-slider__item" style="left: 0%;"><span class="ty-range-slider__num"><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['min']->value, ENT_QUOTES, 'UTF-8');
            ?>
</span></li>
            <?php 
            if ($_smarty_tpl->tpl_vars['num_25']->value) {
                ?>
                <li class="ty-range-slider__item" style="left: 25%;"><span class="ty-range-slider__num"><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['num_25']->value, ENT_QUOTES, 'UTF-8');
                ?>
</span></li>
                <li class="ty-range-slider__item" style="left: 50%;"><span class="ty-range-slider__num"><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['num_50']->value, ENT_QUOTES, 'UTF-8');
                ?>
</span></li>
                <li class="ty-range-slider__item" style="left: 75%;"><span class="ty-range-slider__num"><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['num_75']->value, ENT_QUOTES, 'UTF-8');
                ?>
</span></li>
            <?php 
            }
            ?>
            <li class="ty-range-slider__item" style="left: 100%;"><span class="ty-range-slider__num"><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['max']->value, ENT_QUOTES, 'UTF-8');
            ?>
</span></li>
        </ul>
    </div>

    <?php 
            if ($_smarty_tpl->tpl_vars['right']->value == $_smarty_tpl->tpl_vars['left']->value) {
                ?>
        <?php 
                echo smarty_function_math(array('equation' => "left + rto", 'left' => $_smarty_tpl->tpl_vars['left']->value, 'rto' => $_smarty_tpl->tpl_vars['filter']->value['round_to'], 'assign' => "_right"), $_smarty_tpl);
                ?>

    <?php 
            } else {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["_right"] = new Smarty_variable($_smarty_tpl->tpl_vars['right']->value, null, 0);
                ?>
    <?php 
            }
            ?>
    
    <input type="hidden" id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
_json" value='{
        "disabled": <?php 
            echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['disable_slider']->value) === null || $tmp === '' ? "false" : $tmp, ENT_QUOTES, 'UTF-8');
            ?>
,
        "min": <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['min']->value, ENT_QUOTES, 'UTF-8');
            ?>
,
        "max": <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['max']->value, ENT_QUOTES, 'UTF-8');
            ?>
,
        "left": <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['left']->value, ENT_QUOTES, 'UTF-8');
            ?>
,
        "right": <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['_right']->value, ENT_QUOTES, 'UTF-8');
            ?>
,
        "step": <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['round_to'], ENT_QUOTES, 'UTF-8');
            ?>
,
        "url": "<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_slider_url']->value, ENT_QUOTES, 'UTF-8');
            ?>
",
        "type": "<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8');
            ?>
",
        "currency": "<?php 
            echo htmlspecialchars(@constant('CART_SECONDARY_CURRENCY'), ENT_QUOTES, 'UTF-8');
            ?>
",
        
        "ajax": false,
        "result_ids": "<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_div_ids']->value, ENT_QUOTES, 'UTF-8');
            ?>
",
        "scroll": ".cm-pagination-container"
    }' />
    
</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="blocks/product_filters/components/product_filter_slider.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "blocks/product_filters/components/product_filter_slider.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["min"] = new Smarty_variable($_smarty_tpl->tpl_vars['filter']->value['range_values']['min'], null, 0);
            $_smarty_tpl->tpl_vars["max"] = new Smarty_variable($_smarty_tpl->tpl_vars['filter']->value['range_values']['max'], null, 0);
            $_smarty_tpl->tpl_vars["left"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['range_values']['left']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['min']->value : $tmp, null, 0);
            $_smarty_tpl->tpl_vars["right"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['range_values']['right']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['max']->value : $tmp, null, 0);
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['max']->value - $_smarty_tpl->tpl_vars['min']->value <= $_smarty_tpl->tpl_vars['filter']->value['round_to']) {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["disable_slider"] = new Smarty_variable(true, null, 0);
            } elseif ($_smarty_tpl->tpl_vars['max']->value - $_smarty_tpl->tpl_vars['min']->value >= 4 * $_smarty_tpl->tpl_vars['filter']->value['round_to']) {
                ?>
    <?php 
                echo smarty_function_math(array('equation' => "min + round((max - min) * 0.25 / rto) * rto", 'max' => $_smarty_tpl->tpl_vars['max']->value, 'min' => $_smarty_tpl->tpl_vars['min']->value, 'rto' => $_smarty_tpl->tpl_vars['filter']->value['round_to'], 'assign' => "num_25"), $_smarty_tpl);
                ?>

    <?php 
                echo smarty_function_math(array('equation' => "min + round((max - min) * 0.50 / rto) * rto", 'max' => $_smarty_tpl->tpl_vars['max']->value, 'min' => $_smarty_tpl->tpl_vars['min']->value, 'rto' => $_smarty_tpl->tpl_vars['filter']->value['round_to'], 'assign' => "num_50"), $_smarty_tpl);
                ?>

    <?php 
                echo smarty_function_math(array('equation' => "min + round((max - min) * 0.75 / rto) * rto", 'max' => $_smarty_tpl->tpl_vars['max']->value, 'min' => $_smarty_tpl->tpl_vars['min']->value, 'rto' => $_smarty_tpl->tpl_vars['filter']->value['round_to'], 'assign' => "num_75"), $_smarty_tpl);
                ?>

<?php 
            }
            ?>

<?php 
            if (fn_string_not_empty($_smarty_tpl->tpl_vars['filter']->value['range_values']['left']) || fn_string_not_empty($_smarty_tpl->tpl_vars['filter']->value['range_values']['right'])) {
                ?>
    <?php 
                $_smarty_tpl->_capture_stack[0][] = array("has_selected", null, null);
                ob_start();
                ?>
Y<?php 
                list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                if (!empty($_capture_buffer)) {
                    if (isset($_capture_assign)) {
                        $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                    }
                    if (isset($_capture_append)) {
                        $_smarty_tpl->append($_capture_append, ob_get_contents());
                    }
                    Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                } else {
                    $_smarty_tpl->capture_error();
                }
            }
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['dynamic']->value) {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["filter_slider_hash"] = new Smarty_variable(fn_add_range_to_url_hash($_REQUEST['features_hash'], '###-###', $_smarty_tpl->tpl_vars['filter']->value['field_type']), null, 0);
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["filter_slider_url"] = new Smarty_variable(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['filter_qstring']->value, "features_hash=" . (string) $_smarty_tpl->tpl_vars['filter_slider_hash']->value)), null, 0);
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["use_ajax"] = new Smarty_variable(fn_compare_dispatch($_smarty_tpl->tpl_vars['filter_slider_url']->value, $_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0);
            } else {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["filter_slider_hash"] = new Smarty_variable(fn_add_range_to_url_hash('', '###-###', $_smarty_tpl->tpl_vars['filter']->value['field_type']), null, 0);
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["filter_slider_url"] = new Smarty_variable(fn_url("products.search?features_hash=" . (string) $_smarty_tpl->tpl_vars['filter_slider_hash']->value), null, 0);
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["use_ajax"] = new Smarty_variable(false, null, 0);
            }
            ?>

<div id="content_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8');
            ?>
" class="ty-price-slider hidden <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['extra_class']->value, ENT_QUOTES, 'UTF-8');
            ?>
 cm-popup-box ty-dropdown-box__content">
    <input type="text" class="ty-price-slider__input-text" id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
_left" name="left_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['left']->value, ENT_QUOTES, 'UTF-8');
            ?>
"<?php 
            if ($_smarty_tpl->tpl_vars['disable_slider']->value) {
                ?>
 disabled="disabled"<?php 
            }
            ?>
 />
    &nbsp;–&nbsp;
    <input type="text" class="ty-price-slider__input-text" id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
_right" name="right_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['right']->value, ENT_QUOTES, 'UTF-8');
            ?>
"<?php 
            if ($_smarty_tpl->tpl_vars['disable_slider']->value) {
                ?>
 disabled="disabled"<?php 
            }
            ?>
 />
    <?php 
            if ($_smarty_tpl->tpl_vars['filter']->value['field_type'] == 'P') {
                ?>
        &nbsp;<?php 
                echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['secondary_currency']->value]['symbol'];
                ?>

    <?php 
            }
            ?>

    <div id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
" class="ty-range-slider cm-range-slider">
        <ul class="ty-range-slider__wrapper">
            <li class="ty-range-slider__item" style="left: 0%;"><span class="ty-range-slider__num"><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['min']->value, ENT_QUOTES, 'UTF-8');
            ?>
</span></li>
            <?php 
            if ($_smarty_tpl->tpl_vars['num_25']->value) {
                ?>
                <li class="ty-range-slider__item" style="left: 25%;"><span class="ty-range-slider__num"><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['num_25']->value, ENT_QUOTES, 'UTF-8');
                ?>
</span></li>
                <li class="ty-range-slider__item" style="left: 50%;"><span class="ty-range-slider__num"><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['num_50']->value, ENT_QUOTES, 'UTF-8');
                ?>
</span></li>
                <li class="ty-range-slider__item" style="left: 75%;"><span class="ty-range-slider__num"><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['num_75']->value, ENT_QUOTES, 'UTF-8');
                ?>
</span></li>
            <?php 
            }
            ?>
            <li class="ty-range-slider__item" style="left: 100%;"><span class="ty-range-slider__num"><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['max']->value, ENT_QUOTES, 'UTF-8');
            ?>
</span></li>
        </ul>
    </div>

    <?php 
            if ($_smarty_tpl->tpl_vars['right']->value == $_smarty_tpl->tpl_vars['left']->value) {
                ?>
        <?php 
                echo smarty_function_math(array('equation' => "left + rto", 'left' => $_smarty_tpl->tpl_vars['left']->value, 'rto' => $_smarty_tpl->tpl_vars['filter']->value['round_to'], 'assign' => "_right"), $_smarty_tpl);
                ?>

    <?php 
            } else {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["_right"] = new Smarty_variable($_smarty_tpl->tpl_vars['right']->value, null, 0);
                ?>
    <?php 
            }
            ?>
    
    <input type="hidden" id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
_json" value='{
        "disabled": <?php 
            echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['disable_slider']->value) === null || $tmp === '' ? "false" : $tmp, ENT_QUOTES, 'UTF-8');
            ?>
,
        "min": <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['min']->value, ENT_QUOTES, 'UTF-8');
            ?>
,
        "max": <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['max']->value, ENT_QUOTES, 'UTF-8');
            ?>
,
        "left": <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['left']->value, ENT_QUOTES, 'UTF-8');
            ?>
,
        "right": <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['_right']->value, ENT_QUOTES, 'UTF-8');
            ?>
,
        "step": <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['round_to'], ENT_QUOTES, 'UTF-8');
            ?>
,
        "url": "<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_slider_url']->value, ENT_QUOTES, 'UTF-8');
            ?>
",
        "type": "<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8');
            ?>
",
        "currency": "<?php 
            echo htmlspecialchars(@constant('CART_SECONDARY_CURRENCY'), ENT_QUOTES, 'UTF-8');
            ?>
",
        
        "ajax": false,
        "result_ids": "<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_div_ids']->value, ENT_QUOTES, 'UTF-8');
            ?>
",
        "scroll": ".cm-pagination-container"
    }' />
    
</div>
<?php 
        }
    }
예제 #3
0
/**
 * Adds selected filter ranges to the breadcrumbs
 *
 * @param array $request Request data
 * @param string $url Breadcrumb url
 * @return boolean Always true
 */
function fn_add_filter_ranges_breadcrumbs($request, $url = '')
{
    /**
     * Adds additional actions before adding filter ranges breadcrumbs
     *
     * @param array  $request Request data
     * @param string $url     Breadcrumb url
     */
    fn_set_hook('add_filter_ranges_breadcrumbs_pre', $request, $url);
    if (empty($request['features_hash'])) {
        return false;
    }
    $parsed_ranges = fn_parse_features_hash($request['features_hash'], false);
    if (!empty($parsed_ranges[1])) {
        $features_hash = '';
        $last_type = array_pop($parsed_ranges[1]);
        $last_range_id = array_pop($parsed_ranges[2]);
        if (!empty($parsed_ranges)) {
            foreach ($parsed_ranges[1] as $k => $v) {
                $range = fn_get_filter_range_name($v, $parsed_ranges[2][$k]);
                $features_hash = fn_add_range_to_url_hash($features_hash, array('range_id' => $parsed_ranges[2][$k]), $v);
                fn_add_breadcrumb(html_entity_decode($range, ENT_COMPAT, 'UTF-8'), "{$url}&features_hash=" . $features_hash . (!empty($request['subcats']) ? '&subcats=Y' : ''), true, true);
            }
        }
        $range = fn_get_filter_range_name($last_type, $last_range_id);
        fn_add_breadcrumb(html_entity_decode($range, ENT_COMPAT, 'UTF-8'), '', false, true);
    }
    /**
     * Adds additional actions after adding filter ranges breadcrumbs
     *
     * @param array  $request Request data
     * @param string $url     Breadcrumb url
     */
    fn_set_hook('add_filter_ranges_breadcrumbs_post', $request, $url);
    return true;
}
예제 #4
0
function fn_add_filter_ranges_breadcrumbs($request, $url = '')
{
    if (empty($request['features_hash'])) {
        return false;
    }
    $parsed_ranges = fn_parse_features_hash($request['features_hash'], false);
    if (!empty($parsed_ranges[1])) {
        $features_hash = '';
        $last_type = array_pop($parsed_ranges[1]);
        $last_range_id = array_pop($parsed_ranges[2]);
        if (!empty($parsed_ranges)) {
            foreach ($parsed_ranges[1] as $k => $v) {
                $range = fn_get_filter_range_name($v, $parsed_ranges[2][$k]);
                $features_hash = fn_add_range_to_url_hash($features_hash, array('range_id' => $parsed_ranges[2][$k]), $v);
                fn_add_breadcrumb(html_entity_decode($range), "{$url}&features_hash=" . $features_hash . (!empty($request['subcats']) ? '&subcats=Y' : ''));
            }
        }
        $range = fn_get_filter_range_name($last_type, $last_range_id);
        fn_add_breadcrumb(html_entity_decode($range));
    }
    return true;
}