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'); ?> . </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'); ?> . </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_55d73f8b706b29_35925749($_smarty_tpl) { if (!is_callable('smarty_function_split')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.split.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('user_account_info', 'username', 'email', 'password', 'login', 'url', 'usergroups', 'pending', 'active', 'profile_name', 'tax_exempt', 'yes', 'contact_information', 'billing_address', 'shipping_address', 'user_account_info', 'username', 'email', 'password', 'login', 'url', 'usergroups', 'pending', 'active', 'profile_name', 'tax_exempt', 'yes', 'contact_information', 'billing_address', 'shipping_address')); 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(); ?> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td valign="top"> <table cellpadding="1" cellspacing="1" border="0" width="100%"> <tr> <td colspan="2" class="form-title"><?php echo $_smarty_tpl->__("user_account_info"); ?> <hr size="1" noshade></td> </tr> <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['use_email_as_login'] != 'Y' && $_smarty_tpl->tpl_vars['user_data']->value['user_type'] != 'S') { ?> <tr> <td class="form-field-caption" nowrap><?php echo $_smarty_tpl->__("username"); ?> : </td> <td ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['user_login'], ENT_QUOTES, 'UTF-8'); ?> </td> </tr> <?php } else { ?> <tr> <td class="form-field-caption" nowrap><?php echo $_smarty_tpl->__("email"); ?> : </td> <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['email'], ENT_QUOTES, 'UTF-8'); ?> </td> </tr> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['send_password']->value || $_smarty_tpl->tpl_vars['settings']->value['General']['quick_registration'] == "Y") { ?> <?php if ($_smarty_tpl->tpl_vars['password']->value) { ?> <tr> <td class="form-field-caption" nowrap><?php echo $_smarty_tpl->__("password"); ?> : </td> <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['password']->value, ENT_QUOTES, 'UTF-8'); ?> </td> </tr> <?php } ?> <tr> <td class="form-field-caption" nowrap><?php echo $_smarty_tpl->__("login"); ?> <?php echo $_smarty_tpl->__("url"); ?> : </td> <?php $_smarty_tpl->tpl_vars['login_url'] = new Smarty_variable('', null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['user_data']->value['user_type'] == "C" && $_smarty_tpl->tpl_vars['user_data']->value['company_id']) { ?> <?php $_smarty_tpl->tpl_vars['login_url'] = new Smarty_variable("?company_id=" . (string) $_smarty_tpl->tpl_vars['user_data']->value['company_id'], null, 0); ?> <?php } ?> <td><?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['login_url']->value, $_smarty_tpl->tpl_vars['user_data']->value['user_type']), ENT_QUOTES, 'UTF-8'); ?> </td> </tr> <?php } ?> <?php if (!fn_allowed_for("ULTIMATE:FREE")) { ?> <?php if ($_smarty_tpl->tpl_vars['user_data']->value['usergroups']) { ?> <tr> <td colspan="3"> </td> </tr> <tr> <td colspan="2" class="form-title"><?php echo $_smarty_tpl->__("usergroups"); ?> <hr size="1" noshade></td> </tr> <?php $_smarty_tpl->tpl_vars["user_usergroup"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["user_usergroup"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['user_data']->value['usergroups']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["user_usergroup"]->key => $_smarty_tpl->tpl_vars["user_usergroup"]->value) { $_smarty_tpl->tpl_vars["user_usergroup"]->_loop = true; ?> <tr> <td class="form-field-caption" nowrap><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_usergroup']->value['usergroup'], ENT_QUOTES, 'UTF-8'); ?> : </td> <td><?php if ($_smarty_tpl->tpl_vars['user_usergroup']->value['status'] == 'P') { echo $_smarty_tpl->__("pending"); } else { echo $_smarty_tpl->__("active"); } ?> </td> </tr> <?php } ?> <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['user_multiple_profiles'] == 'Y') { ?> <tr> <td class="form-title"><?php echo $_smarty_tpl->__("profile_name"); ?> : </td> <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['profile_name'], ENT_QUOTES, 'UTF-8'); ?> </td> </tr> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['user_data']->value['tax_exempt'] == 'Y') { ?> <tr> <td class="form-title"><?php echo $_smarty_tpl->__("tax_exempt"); ?> : </td> <td><?php echo $_smarty_tpl->__("yes"); ?> </td> </tr> <?php } ?> </table> </td> <td colspan="2"> </td> </tr> <tr> <td colspan="3"> </td> </tr> </table> <?php if (!$_smarty_tpl->tpl_vars['send_password']->value) { ?> <?php $_smarty_tpl->tpl_vars["profile_fields"] = new Smarty_variable(fn_get_profile_fields($_smarty_tpl->tpl_vars['user_data']->value['user_type']), null, 0); ?> <?php echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['profile_fields']->value['C'], 'size' => 2, 'assign' => "contact_fields", 'simple' => true, 'size_is_horizontal' => true), $_smarty_tpl); ?> <table cellpadding="4" cellspacing="0" border="0" width="100%"> <?php if ($_smarty_tpl->tpl_vars['profile_fields']->value['C']) { ?> <tr> <td valign="top" width="50%"> <table> <?php echo $_smarty_tpl->getSubTemplate("profiles/profile_fields_info.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('fields' => $_smarty_tpl->tpl_vars['contact_fields']->value[0], 'title' => __("contact_information")), 0); ?> </table> </td> <td width="1%"> </td> <td valign="top" width="49%"> <?php if ($_smarty_tpl->tpl_vars['contact_fields']->value[1]) { ?> <table> <?php echo $_smarty_tpl->getSubTemplate("profiles/profile_fields_info.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('fields' => $_smarty_tpl->tpl_vars['contact_fields']->value[1]), 0); ?> </table> <?php } ?> </td> </tr> <?php } ?> <?php if (($_smarty_tpl->tpl_vars['profile_fields']->value['B'] || $_smarty_tpl->tpl_vars['profile_fields']->value['S']) && $_smarty_tpl->tpl_vars['user_data']->value['register_at_checkout'] != "Y" && !($_smarty_tpl->tpl_vars['created']->value && $_smarty_tpl->tpl_vars['settings']->value['General']['quick_registration'] == "Y")) { ?> <tr> <td valign="top"> <?php if ($_smarty_tpl->tpl_vars['profile_fields']->value['B']) { ?> <p></p> <table> <?php echo $_smarty_tpl->getSubTemplate("profiles/profile_fields_info.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('fields' => $_smarty_tpl->tpl_vars['profile_fields']->value['B'], 'title' => __("billing_address")), 0); ?> </table> <?php } else { ?> <?php } ?> </td> <td> </td> <td valign="top"> <?php if ($_smarty_tpl->tpl_vars['profile_fields']->value['S']) { ?> <p></p> <table> <?php echo $_smarty_tpl->getSubTemplate("profiles/profile_fields_info.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('fields' => $_smarty_tpl->tpl_vars['profile_fields']->value['S'], 'title' => __("shipping_address")), 0); ?> </table> <?php } else { ?> <?php } ?> </td> </tr> <?php } ?> </table> <?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="profiles/profiles_info.tpl" id="<?php echo smarty_function_set_id(array('name' => "profiles/profiles_info.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 { ?> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td valign="top"> <table cellpadding="1" cellspacing="1" border="0" width="100%"> <tr> <td colspan="2" class="form-title"><?php echo $_smarty_tpl->__("user_account_info"); ?> <hr size="1" noshade></td> </tr> <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['use_email_as_login'] != 'Y' && $_smarty_tpl->tpl_vars['user_data']->value['user_type'] != 'S') { ?> <tr> <td class="form-field-caption" nowrap><?php echo $_smarty_tpl->__("username"); ?> : </td> <td ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['user_login'], ENT_QUOTES, 'UTF-8'); ?> </td> </tr> <?php } else { ?> <tr> <td class="form-field-caption" nowrap><?php echo $_smarty_tpl->__("email"); ?> : </td> <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['email'], ENT_QUOTES, 'UTF-8'); ?> </td> </tr> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['send_password']->value || $_smarty_tpl->tpl_vars['settings']->value['General']['quick_registration'] == "Y") { ?> <?php if ($_smarty_tpl->tpl_vars['password']->value) { ?> <tr> <td class="form-field-caption" nowrap><?php echo $_smarty_tpl->__("password"); ?> : </td> <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['password']->value, ENT_QUOTES, 'UTF-8'); ?> </td> </tr> <?php } ?> <tr> <td class="form-field-caption" nowrap><?php echo $_smarty_tpl->__("login"); ?> <?php echo $_smarty_tpl->__("url"); ?> : </td> <?php $_smarty_tpl->tpl_vars['login_url'] = new Smarty_variable('', null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['user_data']->value['user_type'] == "C" && $_smarty_tpl->tpl_vars['user_data']->value['company_id']) { ?> <?php $_smarty_tpl->tpl_vars['login_url'] = new Smarty_variable("?company_id=" . (string) $_smarty_tpl->tpl_vars['user_data']->value['company_id'], null, 0); ?> <?php } ?> <td><?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['login_url']->value, $_smarty_tpl->tpl_vars['user_data']->value['user_type']), ENT_QUOTES, 'UTF-8'); ?> </td> </tr> <?php } ?> <?php if (!fn_allowed_for("ULTIMATE:FREE")) { ?> <?php if ($_smarty_tpl->tpl_vars['user_data']->value['usergroups']) { ?> <tr> <td colspan="3"> </td> </tr> <tr> <td colspan="2" class="form-title"><?php echo $_smarty_tpl->__("usergroups"); ?> <hr size="1" noshade></td> </tr> <?php $_smarty_tpl->tpl_vars["user_usergroup"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["user_usergroup"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['user_data']->value['usergroups']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["user_usergroup"]->key => $_smarty_tpl->tpl_vars["user_usergroup"]->value) { $_smarty_tpl->tpl_vars["user_usergroup"]->_loop = true; ?> <tr> <td class="form-field-caption" nowrap><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_usergroup']->value['usergroup'], ENT_QUOTES, 'UTF-8'); ?> : </td> <td><?php if ($_smarty_tpl->tpl_vars['user_usergroup']->value['status'] == 'P') { echo $_smarty_tpl->__("pending"); } else { echo $_smarty_tpl->__("active"); } ?> </td> </tr> <?php } ?> <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['user_multiple_profiles'] == 'Y') { ?> <tr> <td class="form-title"><?php echo $_smarty_tpl->__("profile_name"); ?> : </td> <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['profile_name'], ENT_QUOTES, 'UTF-8'); ?> </td> </tr> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['user_data']->value['tax_exempt'] == 'Y') { ?> <tr> <td class="form-title"><?php echo $_smarty_tpl->__("tax_exempt"); ?> : </td> <td><?php echo $_smarty_tpl->__("yes"); ?> </td> </tr> <?php } ?> </table> </td> <td colspan="2"> </td> </tr> <tr> <td colspan="3"> </td> </tr> </table> <?php if (!$_smarty_tpl->tpl_vars['send_password']->value) { ?> <?php $_smarty_tpl->tpl_vars["profile_fields"] = new Smarty_variable(fn_get_profile_fields($_smarty_tpl->tpl_vars['user_data']->value['user_type']), null, 0); ?> <?php echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['profile_fields']->value['C'], 'size' => 2, 'assign' => "contact_fields", 'simple' => true, 'size_is_horizontal' => true), $_smarty_tpl); ?> <table cellpadding="4" cellspacing="0" border="0" width="100%"> <?php if ($_smarty_tpl->tpl_vars['profile_fields']->value['C']) { ?> <tr> <td valign="top" width="50%"> <table> <?php echo $_smarty_tpl->getSubTemplate("profiles/profile_fields_info.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('fields' => $_smarty_tpl->tpl_vars['contact_fields']->value[0], 'title' => __("contact_information")), 0); ?> </table> </td> <td width="1%"> </td> <td valign="top" width="49%"> <?php if ($_smarty_tpl->tpl_vars['contact_fields']->value[1]) { ?> <table> <?php echo $_smarty_tpl->getSubTemplate("profiles/profile_fields_info.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('fields' => $_smarty_tpl->tpl_vars['contact_fields']->value[1]), 0); ?> </table> <?php } ?> </td> </tr> <?php } ?> <?php if (($_smarty_tpl->tpl_vars['profile_fields']->value['B'] || $_smarty_tpl->tpl_vars['profile_fields']->value['S']) && $_smarty_tpl->tpl_vars['user_data']->value['register_at_checkout'] != "Y" && !($_smarty_tpl->tpl_vars['created']->value && $_smarty_tpl->tpl_vars['settings']->value['General']['quick_registration'] == "Y")) { ?> <tr> <td valign="top"> <?php if ($_smarty_tpl->tpl_vars['profile_fields']->value['B']) { ?> <p></p> <table> <?php echo $_smarty_tpl->getSubTemplate("profiles/profile_fields_info.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('fields' => $_smarty_tpl->tpl_vars['profile_fields']->value['B'], 'title' => __("billing_address")), 0); ?> </table> <?php } else { ?> <?php } ?> </td> <td> </td> <td valign="top"> <?php if ($_smarty_tpl->tpl_vars['profile_fields']->value['S']) { ?> <p></p> <table> <?php echo $_smarty_tpl->getSubTemplate("profiles/profile_fields_info.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('fields' => $_smarty_tpl->tpl_vars['profile_fields']->value['S'], 'title' => __("shipping_address")), 0); ?> </table> <?php } else { ?> <?php } ?> </td> </tr> <?php } ?> </table> <?php } } }
function content_55db8f580f6c51_30178038($_smarty_tpl) { 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_modifier_sort_by')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.sort_by.php'; } if (!is_callable('smarty_function_split')) { include '/var/www/html/market/app/functions/smarty_plugins/function.split.php'; } ?> <input type="hidden" name="selected_fields[object]" value="product" /> <?php echo smarty_function_math(array('equation' => "ceil(n/c)", 'assign' => "rows", 'n' => count($_smarty_tpl->tpl_vars['selected_fields']->value), 'c' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "5" : $tmp), $_smarty_tpl); ?> <?php echo smarty_function_split(array('data' => smarty_modifier_sort_by($_smarty_tpl->tpl_vars['selected_fields']->value, "text"), 'size' => $_smarty_tpl->tpl_vars['rows']->value, 'assign' => "splitted_selected_fields", 'vertical_delimition' => false, 'size_is_horizontal' => true), $_smarty_tpl); ?> <table cellpadding="10" width="100%"> <tr valign="top"> <?php $_smarty_tpl->tpl_vars["sfs"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["sfs"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['splitted_selected_fields']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["sfs"]->key => $_smarty_tpl->tpl_vars["sfs"]->value) { $_smarty_tpl->tpl_vars["sfs"]->_loop = true; ?> <td> <ul class="unstyled"> <?php $_smarty_tpl->tpl_vars["sf"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["sf"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['sfs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["sf"]->key => $_smarty_tpl->tpl_vars["sf"]->value) { $_smarty_tpl->tpl_vars["sf"]->_loop = true; ?> <li> <?php if ($_smarty_tpl->tpl_vars['sf']->value) { ?> <?php if ($_smarty_tpl->tpl_vars['sf']->value['disabled'] == "Y") { ?> <input type="hidden" value="Y" name="selected_fields<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sf']->value['name'], ENT_QUOTES, 'UTF-8'); ?> " /><?php } ?> <label class="checkbox" for="elm_<?php echo htmlspecialchars(md5($_smarty_tpl->tpl_vars['sf']->value['name']), ENT_QUOTES, 'UTF-8'); ?> "><input type="checkbox" value="Y" name="selected_fields<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sf']->value['name'], ENT_QUOTES, 'UTF-8'); ?> " id="elm_<?php echo htmlspecialchars(md5($_smarty_tpl->tpl_vars['sf']->value['name']), ENT_QUOTES, 'UTF-8'); ?> " checked="checked" <?php if ($_smarty_tpl->tpl_vars['sf']->value['disabled'] == "Y") { ?> disabled="disabled"<?php } ?> class="cm-item-s" /> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sf']->value['text'], ENT_QUOTES, 'UTF-8'); ?> </label> <?php } ?> </li> <?php } ?> </ul> </td> <?php } ?> </tr></table> <p> <?php echo $_smarty_tpl->getSubTemplate("common/check_items.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('check_target' => "s", 'style' => "links"), 0); ?> </p><?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'); ?> . </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> <?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'); ?> . </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> <?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_55d3121df1ce65_07880209($_smarty_tpl) { if (!is_callable('smarty_function_split')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.split.php'; } if (!is_callable('smarty_modifier_in_array')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.in_array.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('none', 'your_range', 'none', 'yes', 'no', 'any', 'submit', 'or', 'reset_filter', 'advanced_filter', 'advanced_filter', 'none', 'your_range', 'none', 'yes', 'no', 'any', 'submit', 'or', 'reset_filter', 'advanced_filter', 'advanced_filter')); 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['filter_features']->value) { ?> <?php echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['filter_features']->value, 'size' => "3", 'assign' => "splitted_filter", 'preverse_keys' => true), $_smarty_tpl); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("filtering", null, null); ob_start(); ?> <input type="hidden" name="advanced_filter" value="Y" /> <?php if ($_REQUEST['category_id']) { ?> <input type="hidden" name="category_id" value="<?php echo htmlspecialchars($_REQUEST['category_id'], ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" name="subcats" value="Y" /> <?php } ?> <?php if ($_REQUEST['variant_id']) { ?> <input type="hidden" name="variant_id" value="<?php echo htmlspecialchars($_REQUEST['variant_id'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php } ?> <div class="ty-filters-search"> <?php $_smarty_tpl->tpl_vars["filters_row"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["filters_row"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['splitted_filter']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["filters_row"]->key => $_smarty_tpl->tpl_vars["filters_row"]->value) { $_smarty_tpl->tpl_vars["filters_row"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["filter"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["filter"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['filters_row']->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 (!isset($_smarty_tpl->tpl_vars['filter']->value['feature_type']) && !isset($_smarty_tpl->tpl_vars['filter']->value['condition_type'])) { ?> <?php continue 1; ?> <?php } ?> <span style="display: none"><?php echo htmlspecialchars(var_dump($_smarty_tpl->tpl_vars['filter']->value), ENT_QUOTES, 'UTF-8'); ?> </span> <div class="ty-column12"> <div class="ty-filters-search__item"> <div class="ty-filters-search__title"><?php echo htmlspecialchars(($tmp = @(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['filter']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['filter']->value['description'] : $tmp)) === null || $tmp === '' ? '' : $tmp, ENT_QUOTES, 'UTF-8'); ?> </div> <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "S" || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "E" || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "M") { ?> <div class="ty-filters-search__scroll"> <?php $_smarty_tpl->tpl_vars["range"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["range"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['filter']->value['ranges']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["range"]->key => $_smarty_tpl->tpl_vars["range"]->value) { $_smarty_tpl->tpl_vars["range"]->_loop = true; ?> <div class="ty-select-field"><input type="checkbox" class="ty-select-field__checkbox" name="<?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "M") { ?> multiple_<?php } ?> variants[]" id="variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); ?> " value="<?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "M") { echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); } else { ?> [V<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } ?> " <?php if (smarty_modifier_in_array("[V" . (string) $_smarty_tpl->tpl_vars['range']->value['range_id'] . "]", $_smarty_tpl->tpl_vars['search']->value['variants']) || smarty_modifier_in_array($_smarty_tpl->tpl_vars['range']->value['range_id'], $_smarty_tpl->tpl_vars['search']->value['multiple_variants'])) { ?> checked="checked"<?php } ?> /><label class="ty-select-field__title" for="variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['prefix'], ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_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'); ?> </label></div> <?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "O" || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "N" || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "D" || $_smarty_tpl->tpl_vars['filter']->value['condition_type'] == "D" || $_smarty_tpl->tpl_vars['filter']->value['condition_type'] == "F") { ?> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> <div class="ty-filters-search__scroll"> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['condition_type']) { ?> <?php $_smarty_tpl->tpl_vars["el_id"] = new Smarty_variable("field_" . (string) $_smarty_tpl->tpl_vars['filter']->value['filter_id'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["el_id"] = new Smarty_variable("feature_" . (string) $_smarty_tpl->tpl_vars['filter']->value['feature_id'], null, 0); ?> <?php } ?> <p<?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> class="ty-select-field"<?php } ?> ><input type="radio" name="variants[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="no_ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="" checked="checked" class="radio ty-select-field__checkbox" /><label class="ty-select-field__title" for="no_ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("none"); ?> </label></p> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> <?php $_smarty_tpl->tpl_vars["range"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["range"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['filter']->value['ranges']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["range"]->key => $_smarty_tpl->tpl_vars["range"]->value) { $_smarty_tpl->tpl_vars["range"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["_type"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['field_type']) === null || $tmp === '' ? "R" : $tmp, null, 0); ?> <div class="ty-select-field"><input type="radio" class="ty-select-field__checkbox" name="variants[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['_type']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] == (string) $_smarty_tpl->tpl_vars['_type']->value . (string) $_smarty_tpl->tpl_vars['range']->value['range_id']) { ?> checked="checked"<?php } ?> /><label class="ty-select-field__title" for="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars(fn_text_placeholders($_smarty_tpl->tpl_vars['range']->value['range_name']), ENT_QUOTES, 'UTF-8'); ?> </label></div> <?php } ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['condition_type'] != "F") { ?> <p><input type="radio" name="variants[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="select_custom_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="O" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] == "O") { ?> checked="checked"<?php } ?> class="radio" /><label for="select_custom_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("your_range"); ?> </label></p> <div class="ty-select-field"> <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "D") { ?> <?php if ($_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['from'] || $_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['to']) { ?> <?php $_smarty_tpl->tpl_vars["date_extra"] = new Smarty_variable('', null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["date_extra"] = new Smarty_variable("disabled=\"disabled\"", null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "range_" . (string) $_smarty_tpl->tpl_vars['el_id']->value . "_from", 'date_name' => "custom_range[" . (string) $_smarty_tpl->tpl_vars['filter']->value['feature_id'] . "][from]", 'date_val' => $_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['from'], 'extra' => $_smarty_tpl->tpl_vars['date_extra']->value, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "range_" . (string) $_smarty_tpl->tpl_vars['el_id']->value . "_to", 'date_name' => "custom_range[" . (string) $_smarty_tpl->tpl_vars['filter']->value['feature_id'] . "][to]", 'date_val' => $_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['to'], 'extra' => $_smarty_tpl->tpl_vars['date_extra']->value, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> <input type="hidden" name="custom_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ][type]" value="D" /> <?php } else { ?> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> <?php $_smarty_tpl->tpl_vars["from_value"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['from']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['from'] : $tmp, null, 0); ?> <?php $_smarty_tpl->tpl_vars["to_value"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['to']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['to'] : $tmp, null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["from_value"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['from']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['filter']->value['range_values']['min'] : $tmp, null, 0); ?> <?php $_smarty_tpl->tpl_vars["to_value"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['to']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['filter']->value['range_values']['max'] : $tmp, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type'] == 'P') { ?> <?php $_smarty_tpl->tpl_vars["cur"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['cur']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['secondary_currency']->value : $tmp, null, 0); ?> <?php $_smarty_tpl->tpl_vars["orig_from"] = new Smarty_variable($_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['orig_from'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["orig_to"] = new Smarty_variable($_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['orig_to'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["orig_cur"] = new Smarty_variable($_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['orig_cur'], null, 0); ?> <?php } ?> <?php } ?> <input type="text" name="<?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type']) { ?> field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } else { ?> custom_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } ?> [from]" id="range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _from" size="3" class="ty-input-text-short<?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled<?php } ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['from_value']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> - <input type="text" name="<?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type']) { ?> field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } else { ?> custom_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } ?> [to]" size="3" class="ty-input-text-short<?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled<?php } ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['to_value']->value, ENT_QUOTES, 'UTF-8'); ?> " id="range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _to" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> <?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type'] == 'P') { ?> <input type="hidden" name="field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ][cur]" size="3" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cur']->value, ENT_QUOTES, 'UTF-8'); ?> " id="range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _cur" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> <input type="hidden" name="field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ][orig_from]" size="3" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['orig_from']->value, ENT_QUOTES, 'UTF-8'); ?> " id="range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _orig_from" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> <input type="hidden" name="field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ][orig_to]" size="3" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['orig_to']->value, ENT_QUOTES, 'UTF-8'); ?> " id="range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _orig_to" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> <input type="hidden" name="field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ][orig_cur]" size="3" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['orig_cur']->value, ENT_QUOTES, 'UTF-8'); ?> " id="range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _orig_cur" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> <?php } ?> <?php } ?> </div> <?php } ?> <script type="text/javascript"> Tygh.$(document).ready(function()<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ldelim']->value, ENT_QUOTES, 'UTF-8'); ?> var $ = Tygh.$; $('input[type=radio][name="variants[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]"]').change(function() { var el_id = '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> '; var flag = (this.value !== 'O'); $('#range_' + el_id + '_from').prop('disabled', flag).toggleClass('disabled', flag); $('#range_' + el_id + '_to').prop('disabled', flag).toggleClass('disabled', flag); <?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type'] == 'P') { ?> $('#range_' + el_id + '_cur').prop('disabled', flag); $('#range_' + el_id + '_orig_from').prop('disabled', flag); $('#range_' + el_id + '_orig_to').prop('disabled', flag); $('#range_' + el_id + '_orig_cur').prop('disabled', flag); <?php } ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "D") { ?> $('#range_' + el_id + '_from_but').prop('disabled', flag); $('#range_' + el_id + '_to_but').prop('disabled', flag); <?php } ?> }); <?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type'] == 'P') { ?> $('#range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _to').change(function() { $('#range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _orig_cur').val(''); }); $('#range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _from').change(function() { $('#range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _orig_cur').val(''); }); <?php } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rdelim']->value, ENT_QUOTES, 'UTF-8'); ?> ); </script> <?php } elseif ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "C" || $_smarty_tpl->tpl_vars['filter']->value['condition_type'] == "C") { ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['condition_type']) { ?> <?php $_smarty_tpl->tpl_vars["el_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['filter']->value['field_type'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["el_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['filter']->value['feature_id'], null, 0); ?> <?php } ?> <div class="ty-select-field"> <input type="radio ty-select-field__checkbox" class="radio" name="ch_filters[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _none" value="" <?php if (!$_smarty_tpl->tpl_vars['search']->value['ch_filters'][$_smarty_tpl->tpl_vars['el_id']->value]) { ?> checked="checked"<?php } ?> /> <label class="ty-select-field__title" for="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _none"><?php echo $_smarty_tpl->__("none"); ?> </label> </div> <div class="ty-select-field"> <input type="radio ty-select-field__checkbox" class="radio" name="ch_filters[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _yes" value="Y" <?php if ($_smarty_tpl->tpl_vars['search']->value['ch_filters'][$_smarty_tpl->tpl_vars['el_id']->value] == "Y") { ?> checked="checked"<?php } ?> /> <label class="ty-select-field__title" for="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _yes"><?php echo $_smarty_tpl->__("yes"); ?> </label> </div> <div class="ty-select-field"> <input type="radio ty-select-field__checkbox" class="radio" name="ch_filters[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _no" value="N" <?php if ($_smarty_tpl->tpl_vars['search']->value['ch_filters'][$_smarty_tpl->tpl_vars['el_id']->value] == "N") { ?> checked="checked"<?php } ?> /> <label class="ty-select-field__title" for="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _no"><?php echo $_smarty_tpl->__("no"); ?> </label> </div> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['condition_type']) { ?> <div class="ty-select-field"> <input type="radio" class="radio ty-select-field__checkbox" name="ch_filters[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _any" value="A" <?php if ($_smarty_tpl->tpl_vars['search']->value['ch_filters'][$_smarty_tpl->tpl_vars['el_id']->value] == "A") { ?> checked="checked"<?php } ?> /> <label class="ty-select-field__title" for="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _any"><?php echo $_smarty_tpl->__("any"); ?> </label> </div> <?php } ?> <?php } elseif ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "T") { ?> <div class="ty-select-field ty-nowrap"> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['prefix'], ENT_QUOTES, 'UTF-8'); ?> <input type="text" name="tx_features[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ]" class="ty-filters-search__input-text<?php if ($_smarty_tpl->tpl_vars['filter']->value['prefix'] || $_smarty_tpl->tpl_vars['filter']->value['suffix']) { ?> -medium<?php } ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['tx_features'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']], ENT_QUOTES, 'UTF-8'); ?> " /><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['suffix'], ENT_QUOTES, 'UTF-8'); ?> </div> <?php } ?> </div> </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(); } ?> <?php if ($_smarty_tpl->tpl_vars['separate_form']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("section", null, null); ob_start(); ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="get" name="advanced_filter_form"> <?php echo Smarty::$_smarty_vars['capture']['filtering']; ?> <div class="buttons-container"> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[" . (string) $_REQUEST['dispatch'] . "]", 'but_text' => __("submit")), 0); ?> <?php echo $_smarty_tpl->__("or"); ?> <a class="cm-reset-link"><?php echo $_smarty_tpl->__("reset_filter"); ?> </a> </div> </form> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php if ($_smarty_tpl->tpl_vars['search']->value['variants']) { ?> <?php $_smarty_tpl->tpl_vars["_collapse"] = new Smarty_variable(true, null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["_collapse"] = new Smarty_variable(false, null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/section.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('section_title' => __("advanced_filter"), 'section_content' => Smarty::$_smarty_vars['capture']['section'], 'collapse' => $_smarty_tpl->tpl_vars['_collapse']->value), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("advanced_filter")), 0); ?> <?php echo Smarty::$_smarty_vars['capture']['filtering']; ?> <?php } ?> <?php } elseif ($_smarty_tpl->tpl_vars['search']->value['features_hash']) { ?> <input type="hidden" name="features_hash" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['features_hash'], ENT_QUOTES, 'UTF-8'); ?> " /> <?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/components/product_filters_advanced_form.tpl" id="<?php echo smarty_function_set_id(array('name' => "views/products/components/product_filters_advanced_form.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['filter_features']->value) { ?> <?php echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['filter_features']->value, 'size' => "3", 'assign' => "splitted_filter", 'preverse_keys' => true), $_smarty_tpl); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("filtering", null, null); ob_start(); ?> <input type="hidden" name="advanced_filter" value="Y" /> <?php if ($_REQUEST['category_id']) { ?> <input type="hidden" name="category_id" value="<?php echo htmlspecialchars($_REQUEST['category_id'], ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" name="subcats" value="Y" /> <?php } ?> <?php if ($_REQUEST['variant_id']) { ?> <input type="hidden" name="variant_id" value="<?php echo htmlspecialchars($_REQUEST['variant_id'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php } ?> <div class="ty-filters-search"> <?php $_smarty_tpl->tpl_vars["filters_row"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["filters_row"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['splitted_filter']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["filters_row"]->key => $_smarty_tpl->tpl_vars["filters_row"]->value) { $_smarty_tpl->tpl_vars["filters_row"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["filter"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["filter"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['filters_row']->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 (!isset($_smarty_tpl->tpl_vars['filter']->value['feature_type']) && !isset($_smarty_tpl->tpl_vars['filter']->value['condition_type'])) { ?> <?php continue 1; ?> <?php } ?> <span style="display: none"><?php echo htmlspecialchars(var_dump($_smarty_tpl->tpl_vars['filter']->value), ENT_QUOTES, 'UTF-8'); ?> </span> <div class="ty-column12"> <div class="ty-filters-search__item"> <div class="ty-filters-search__title"><?php echo htmlspecialchars(($tmp = @(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['filter']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['filter']->value['description'] : $tmp)) === null || $tmp === '' ? '' : $tmp, ENT_QUOTES, 'UTF-8'); ?> </div> <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "S" || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "E" || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "M") { ?> <div class="ty-filters-search__scroll"> <?php $_smarty_tpl->tpl_vars["range"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["range"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['filter']->value['ranges']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["range"]->key => $_smarty_tpl->tpl_vars["range"]->value) { $_smarty_tpl->tpl_vars["range"]->_loop = true; ?> <div class="ty-select-field"><input type="checkbox" class="ty-select-field__checkbox" name="<?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "M") { ?> multiple_<?php } ?> variants[]" id="variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); ?> " value="<?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "M") { echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); } else { ?> [V<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } ?> " <?php if (smarty_modifier_in_array("[V" . (string) $_smarty_tpl->tpl_vars['range']->value['range_id'] . "]", $_smarty_tpl->tpl_vars['search']->value['variants']) || smarty_modifier_in_array($_smarty_tpl->tpl_vars['range']->value['range_id'], $_smarty_tpl->tpl_vars['search']->value['multiple_variants'])) { ?> checked="checked"<?php } ?> /><label class="ty-select-field__title" for="variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['prefix'], ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_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'); ?> </label></div> <?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "O" || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "N" || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "D" || $_smarty_tpl->tpl_vars['filter']->value['condition_type'] == "D" || $_smarty_tpl->tpl_vars['filter']->value['condition_type'] == "F") { ?> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> <div class="ty-filters-search__scroll"> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['condition_type']) { ?> <?php $_smarty_tpl->tpl_vars["el_id"] = new Smarty_variable("field_" . (string) $_smarty_tpl->tpl_vars['filter']->value['filter_id'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["el_id"] = new Smarty_variable("feature_" . (string) $_smarty_tpl->tpl_vars['filter']->value['feature_id'], null, 0); ?> <?php } ?> <p<?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> class="ty-select-field"<?php } ?> ><input type="radio" name="variants[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="no_ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="" checked="checked" class="radio ty-select-field__checkbox" /><label class="ty-select-field__title" for="no_ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("none"); ?> </label></p> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> <?php $_smarty_tpl->tpl_vars["range"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["range"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['filter']->value['ranges']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["range"]->key => $_smarty_tpl->tpl_vars["range"]->value) { $_smarty_tpl->tpl_vars["range"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["_type"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['field_type']) === null || $tmp === '' ? "R" : $tmp, null, 0); ?> <div class="ty-select-field"><input type="radio" class="ty-select-field__checkbox" name="variants[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['_type']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] == (string) $_smarty_tpl->tpl_vars['_type']->value . (string) $_smarty_tpl->tpl_vars['range']->value['range_id']) { ?> checked="checked"<?php } ?> /><label class="ty-select-field__title" for="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars(fn_text_placeholders($_smarty_tpl->tpl_vars['range']->value['range_name']), ENT_QUOTES, 'UTF-8'); ?> </label></div> <?php } ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['condition_type'] != "F") { ?> <p><input type="radio" name="variants[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="select_custom_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="O" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] == "O") { ?> checked="checked"<?php } ?> class="radio" /><label for="select_custom_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("your_range"); ?> </label></p> <div class="ty-select-field"> <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "D") { ?> <?php if ($_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['from'] || $_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['to']) { ?> <?php $_smarty_tpl->tpl_vars["date_extra"] = new Smarty_variable('', null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["date_extra"] = new Smarty_variable("disabled=\"disabled\"", null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "range_" . (string) $_smarty_tpl->tpl_vars['el_id']->value . "_from", 'date_name' => "custom_range[" . (string) $_smarty_tpl->tpl_vars['filter']->value['feature_id'] . "][from]", 'date_val' => $_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['from'], 'extra' => $_smarty_tpl->tpl_vars['date_extra']->value, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "range_" . (string) $_smarty_tpl->tpl_vars['el_id']->value . "_to", 'date_name' => "custom_range[" . (string) $_smarty_tpl->tpl_vars['filter']->value['feature_id'] . "][to]", 'date_val' => $_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['to'], 'extra' => $_smarty_tpl->tpl_vars['date_extra']->value, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> <input type="hidden" name="custom_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ][type]" value="D" /> <?php } else { ?> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> <?php $_smarty_tpl->tpl_vars["from_value"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['from']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['from'] : $tmp, null, 0); ?> <?php $_smarty_tpl->tpl_vars["to_value"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['to']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['to'] : $tmp, null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["from_value"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['from']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['filter']->value['range_values']['min'] : $tmp, null, 0); ?> <?php $_smarty_tpl->tpl_vars["to_value"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['to']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['filter']->value['range_values']['max'] : $tmp, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type'] == 'P') { ?> <?php $_smarty_tpl->tpl_vars["cur"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['cur']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['secondary_currency']->value : $tmp, null, 0); ?> <?php $_smarty_tpl->tpl_vars["orig_from"] = new Smarty_variable($_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['orig_from'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["orig_to"] = new Smarty_variable($_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['orig_to'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["orig_cur"] = new Smarty_variable($_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['orig_cur'], null, 0); ?> <?php } ?> <?php } ?> <input type="text" name="<?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type']) { ?> field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } else { ?> custom_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } ?> [from]" id="range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _from" size="3" class="ty-input-text-short<?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled<?php } ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['from_value']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> - <input type="text" name="<?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type']) { ?> field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } else { ?> custom_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } ?> [to]" size="3" class="ty-input-text-short<?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled<?php } ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['to_value']->value, ENT_QUOTES, 'UTF-8'); ?> " id="range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _to" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> <?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type'] == 'P') { ?> <input type="hidden" name="field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ][cur]" size="3" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cur']->value, ENT_QUOTES, 'UTF-8'); ?> " id="range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _cur" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> <input type="hidden" name="field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ][orig_from]" size="3" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['orig_from']->value, ENT_QUOTES, 'UTF-8'); ?> " id="range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _orig_from" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> <input type="hidden" name="field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ][orig_to]" size="3" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['orig_to']->value, ENT_QUOTES, 'UTF-8'); ?> " id="range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _orig_to" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> <input type="hidden" name="field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ][orig_cur]" size="3" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['orig_cur']->value, ENT_QUOTES, 'UTF-8'); ?> " id="range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _orig_cur" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> <?php } ?> <?php } ?> </div> <?php } ?> <script type="text/javascript"> Tygh.$(document).ready(function()<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ldelim']->value, ENT_QUOTES, 'UTF-8'); ?> var $ = Tygh.$; $('input[type=radio][name="variants[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]"]').change(function() { var el_id = '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> '; var flag = (this.value !== 'O'); $('#range_' + el_id + '_from').prop('disabled', flag).toggleClass('disabled', flag); $('#range_' + el_id + '_to').prop('disabled', flag).toggleClass('disabled', flag); <?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type'] == 'P') { ?> $('#range_' + el_id + '_cur').prop('disabled', flag); $('#range_' + el_id + '_orig_from').prop('disabled', flag); $('#range_' + el_id + '_orig_to').prop('disabled', flag); $('#range_' + el_id + '_orig_cur').prop('disabled', flag); <?php } ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "D") { ?> $('#range_' + el_id + '_from_but').prop('disabled', flag); $('#range_' + el_id + '_to_but').prop('disabled', flag); <?php } ?> }); <?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type'] == 'P') { ?> $('#range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _to').change(function() { $('#range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _orig_cur').val(''); }); $('#range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _from').change(function() { $('#range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _orig_cur').val(''); }); <?php } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rdelim']->value, ENT_QUOTES, 'UTF-8'); ?> ); </script> <?php } elseif ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "C" || $_smarty_tpl->tpl_vars['filter']->value['condition_type'] == "C") { ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['condition_type']) { ?> <?php $_smarty_tpl->tpl_vars["el_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['filter']->value['field_type'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["el_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['filter']->value['feature_id'], null, 0); ?> <?php } ?> <div class="ty-select-field"> <input type="radio ty-select-field__checkbox" class="radio" name="ch_filters[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _none" value="" <?php if (!$_smarty_tpl->tpl_vars['search']->value['ch_filters'][$_smarty_tpl->tpl_vars['el_id']->value]) { ?> checked="checked"<?php } ?> /> <label class="ty-select-field__title" for="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _none"><?php echo $_smarty_tpl->__("none"); ?> </label> </div> <div class="ty-select-field"> <input type="radio ty-select-field__checkbox" class="radio" name="ch_filters[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _yes" value="Y" <?php if ($_smarty_tpl->tpl_vars['search']->value['ch_filters'][$_smarty_tpl->tpl_vars['el_id']->value] == "Y") { ?> checked="checked"<?php } ?> /> <label class="ty-select-field__title" for="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _yes"><?php echo $_smarty_tpl->__("yes"); ?> </label> </div> <div class="ty-select-field"> <input type="radio ty-select-field__checkbox" class="radio" name="ch_filters[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _no" value="N" <?php if ($_smarty_tpl->tpl_vars['search']->value['ch_filters'][$_smarty_tpl->tpl_vars['el_id']->value] == "N") { ?> checked="checked"<?php } ?> /> <label class="ty-select-field__title" for="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _no"><?php echo $_smarty_tpl->__("no"); ?> </label> </div> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['condition_type']) { ?> <div class="ty-select-field"> <input type="radio" class="radio ty-select-field__checkbox" name="ch_filters[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _any" value="A" <?php if ($_smarty_tpl->tpl_vars['search']->value['ch_filters'][$_smarty_tpl->tpl_vars['el_id']->value] == "A") { ?> checked="checked"<?php } ?> /> <label class="ty-select-field__title" for="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _any"><?php echo $_smarty_tpl->__("any"); ?> </label> </div> <?php } ?> <?php } elseif ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "T") { ?> <div class="ty-select-field ty-nowrap"> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['prefix'], ENT_QUOTES, 'UTF-8'); ?> <input type="text" name="tx_features[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ]" class="ty-filters-search__input-text<?php if ($_smarty_tpl->tpl_vars['filter']->value['prefix'] || $_smarty_tpl->tpl_vars['filter']->value['suffix']) { ?> -medium<?php } ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['tx_features'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']], ENT_QUOTES, 'UTF-8'); ?> " /><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['suffix'], ENT_QUOTES, 'UTF-8'); ?> </div> <?php } ?> </div> </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(); } ?> <?php if ($_smarty_tpl->tpl_vars['separate_form']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("section", null, null); ob_start(); ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="get" name="advanced_filter_form"> <?php echo Smarty::$_smarty_vars['capture']['filtering']; ?> <div class="buttons-container"> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[" . (string) $_REQUEST['dispatch'] . "]", 'but_text' => __("submit")), 0); ?> <?php echo $_smarty_tpl->__("or"); ?> <a class="cm-reset-link"><?php echo $_smarty_tpl->__("reset_filter"); ?> </a> </div> </form> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php if ($_smarty_tpl->tpl_vars['search']->value['variants']) { ?> <?php $_smarty_tpl->tpl_vars["_collapse"] = new Smarty_variable(true, null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["_collapse"] = new Smarty_variable(false, null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/section.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('section_title' => __("advanced_filter"), 'section_content' => Smarty::$_smarty_vars['capture']['section'], 'collapse' => $_smarty_tpl->tpl_vars['_collapse']->value), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("advanced_filter")), 0); ?> <?php echo Smarty::$_smarty_vars['capture']['filtering']; ?> <?php } ?> <?php } elseif ($_smarty_tpl->tpl_vars['search']->value['features_hash']) { ?> <input type="hidden" name="features_hash" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['features_hash'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php } } }
function content_55ccf16de31ed7_69152506($_smarty_tpl) { if (!is_callable('smarty_function_script')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php'; } if (!is_callable('smarty_function_style')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.style.php'; } if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_modifier_replace')) { include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/modifier.replace.php'; } if (!is_callable('smarty_function_split')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.split.php'; } fn_preload_lang_vars(array('current_theme', 'general', 'directory', 'name', 'description', 'theme_styles_and_layouts', 'layout', 'theme_editor.style', 'visual_editor', 'theme_no_styles_text', 'visual_editor', 'remove_theme', 'layouts', 'theme_editor.styles', 'active', 'activate', 'use_this_style', 'currently_in_use', 'activate', 'no_themes_available', 'install', 'preview', 'install', 'no_themes_available', 'clone_theme', 'rebuild_cache_automatically', 'rebuild_cache_automatically_tooltip', 'theme_information', 'name', 'directory', 'layouts', 'theme_editor.styles', 'developer', 'marketplace', 'marketplace_find_more', 'upload_theme', 'upload_theme', 'clone_theme', 'themes')); echo smarty_function_script(array('src' => "js/lib/bootstrap_switch/js/bootstrapSwitch.js"), $_smarty_tpl); ?> <?php echo smarty_function_style(array('src' => "lib/bootstrap_switch/stylesheets/bootstrapSwitch.css"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->getSubTemplate("common/previewer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("upload_theme", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("views/themes/components/upload_theme.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->tpl_vars['theme'] = new Smarty_variable($_smarty_tpl->tpl_vars['available_themes']->value['current'], null, 0); $_smarty_tpl->tpl_vars['theme_name'] = new Smarty_variable($_smarty_tpl->tpl_vars['available_themes']->value['current']['theme_name'], null, 0); ?> <div class="themes" id="themes_list"> <h4><?php echo $_smarty_tpl->__("current_theme"); ?> </h4> <div class="row"> <?php $_smarty_tpl->_capture_stack[0][] = array("add_new_picker", null, null); ob_start(); ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="clone_theme_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> _form" class="cm-ajax cm-comet cm-form-dialog-closer form-horizontal form-edit "> <input type="hidden" name="theme_data[theme_src]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> "> <input type="hidden" name="result_ids" value="themes_list,elm_sidebar"> <div class="add-new-object-group"> <div class="tabs cm-j-tabs"> <ul class="nav nav-tabs"> <li id="tab_clone_theme_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-js active"><a><?php echo $_smarty_tpl->__("general"); ?> </a></li> </ul> </div> <div class="cm-tabs-content" id="content_tab_clone_theme_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> "> <fieldset> <div class="control-group"> <label class="control-label cm-required" for="elm_theme_dir_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("directory"); ?> </label> <div class="controls"> <input type="text" id="elm_theme_dir_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> " name="theme_data[theme_dest]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> _clone" /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_theme_title_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("name"); ?> </label> <div class="controls"> <input type="text" id="elm_theme_title_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> " name="theme_data[title]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme']->value['title'], ENT_QUOTES, 'UTF-8'); ?> " /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_theme_desc_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("description"); ?> </label> <div class="controls"> <textarea name="theme_data[description]" id="elm_theme_desc_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> " cols="50" rows="4" class="span9"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme']->value['description'], ENT_QUOTES, 'UTF-8'); ?> </textarea> </div> </div> </fieldset> </div> </div> <div class="buttons-container"> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[themes.clone]", 'cancel_action' => "close", 'save' => true), 0); ?> </div> </form> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php if ($_smarty_tpl->tpl_vars['theme']->value['screenshot']) { ?> <div id="theme_image"> <?php if ($_smarty_tpl->tpl_vars['theme']->value['styles'][$_smarty_tpl->tpl_vars['layout']->value['style_id']]['image']) { ?> <img class="span4 screenshot" width="250" src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme']->value['styles'][$_smarty_tpl->tpl_vars['layout']->value['style_id']]['image'], ENT_QUOTES, 'UTF-8'); ?> "> <?php } else { ?> <div class="no-image span4"><i class="glyph-image" title="No image"></i></div> <?php } ?> <!--theme_image--></div> <?php } ?> <div class="span8 theme-description" id="theme_description_container"> <h4 class="lead"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme']->value['title'], ENT_QUOTES, 'UTF-8'); if ($_smarty_tpl->tpl_vars['layout']->value['style_name']) { ?> : <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['layout']->value['style_name'], ENT_QUOTES, 'UTF-8'); } ?> </h4> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "themes:current_theme_options")); $_block_repeat = true; echo smarty_block_hook(array('name' => "themes:current_theme_options"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['theme']->value['styles']) { ?> <span class="muted"><?php echo $_smarty_tpl->__("theme_styles_and_layouts"); ?> </span> <table class="table table-middle"> <thead> <tr> <th><?php echo $_smarty_tpl->__("layout"); ?> </th> <th><?php echo $_smarty_tpl->__("theme_editor.style"); ?> </th> <th> </th> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars['available_layout'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['available_layout']->_loop = false; $_from = $_smarty_tpl->tpl_vars['theme']->value['layouts']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['available_layout']->key => $_smarty_tpl->tpl_vars['available_layout']->value) { $_smarty_tpl->tpl_vars['available_layout']->_loop = true; ?> <tr> <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['available_layout']->value['name'], ENT_QUOTES, 'UTF-8'); ?> </td> <td> <?php $_smarty_tpl->tpl_vars['styles_descr'] = new Smarty_variable(array(), null, 0); ?> <?php $_smarty_tpl->tpl_vars['style'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['style']->_loop = false; $_from = $_smarty_tpl->tpl_vars['available_themes']->value['current']['styles']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['style']->key => $_smarty_tpl->tpl_vars['style']->value) { $_smarty_tpl->tpl_vars['style']->_loop = true; ?> <?php $_smarty_tpl->createLocalArrayVariable('styles_descr', null, 0); $_smarty_tpl->tpl_vars['styles_descr']->value[$_smarty_tpl->tpl_vars['style']->value['style_id']] = $_smarty_tpl->tpl_vars['style']->value['name']; ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_popup.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['available_layout']->value['layout_id'], 'status' => $_smarty_tpl->tpl_vars['available_layout']->value['style_id'], 'items_status' => $_smarty_tpl->tpl_vars['styles_descr']->value, 'update_controller' => "themes.styles", 'status_target_id' => "theme_description_container,themes_list", 'statuses' => $_smarty_tpl->tpl_vars['available_themes']->value['current']['styles'], 'btn_meta' => mb_strtolower("btn-text o-status-" . (string) $_smarty_tpl->tpl_vars['o']->value['status'], 'UTF-8'), 'default_status_text' => __('none')), 0); ?> </td> <td class="right"> <?php if ($_smarty_tpl->tpl_vars['available_layout']->value['is_default']) { ?> <?php $_smarty_tpl->tpl_vars['is_default'] = new Smarty_variable('btn-small btn-primary', null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['is_default'] = new Smarty_variable('btn-small', null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => "customization.update_mode?type=theme_editor&status=enable&s_layout=" . (string) $_smarty_tpl->tpl_vars['available_layout']->value['layout_id'], 'but_text' => __("visual_editor"), 'but_role' => "action", 'but_meta' => $_smarty_tpl->tpl_vars['is_default']->value, 'but_target' => "_blank"), 0); ?> </td> <tr> <?php } ?> </tbody> </table> <?php } else { ?> <div class="theme-no-styles"> <span class="muted"><?php echo $_smarty_tpl->__("theme_no_styles_text"); ?> </span> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => "customization.update_mode?type=theme_editor&status=enable", 'but_text' => __("visual_editor"), 'but_role' => "action", 'but_meta' => "btn-primary"), 0); ?> </div> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "themes:current_theme_options"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <!--theme_description_container--></div> </div> <?php $_smarty_tpl->_capture_stack[0][] = array("tabsbox", null, null); ob_start(); ?> <div id="content_installed_themes"> <div id="themes_manage" class="themes-current clearfix"> <div class="themes-available"> <?php if ($_smarty_tpl->tpl_vars['available_themes']->value['installed']) { ?> <?php $_smarty_tpl->tpl_vars['installed_theme'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['installed_theme']->_loop = false; $_smarty_tpl->tpl_vars['theme_name'] = new Smarty_Variable(); $_from = array_reverse($_smarty_tpl->tpl_vars['available_themes']->value['installed']); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['installed_theme']->key => $_smarty_tpl->tpl_vars['installed_theme']->value) { $_smarty_tpl->tpl_vars['installed_theme']->_loop = true; $_smarty_tpl->tpl_vars['theme_name']->value = $_smarty_tpl->tpl_vars['installed_theme']->key; ?> <div class="row"> <?php if ($_smarty_tpl->tpl_vars['installed_theme']->value) { ?> <div class="theme-subtitle"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "themes:remove_theme")); $_block_repeat = true; echo smarty_block_hook(array('name' => "themes:remove_theme"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <a class="cm-confirm cm-tooltip btn pull-right btn-small" data-ce-tooltip-position="top" href="<?php echo htmlspecialchars(fn_url("themes.delete?theme_name=" . (string) $_smarty_tpl->tpl_vars['theme_name']->value), ENT_QUOTES, 'UTF-8'); ?> " title="<?php echo $_smarty_tpl->__("remove_theme"); ?> "> <i class="icon-trash"></i> </a> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "themes:remove_theme"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <span class="label pull-right"><?php echo htmlspecialchars(count($_smarty_tpl->tpl_vars['installed_theme']->value['layouts']), ENT_QUOTES, 'UTF-8'); ?> <?php echo $_smarty_tpl->__("layouts"); ?> </span> <span class="label pull-right"><?php echo htmlspecialchars(count($_smarty_tpl->tpl_vars['installed_theme']->value['styles']), ENT_QUOTES, 'UTF-8'); ?> <?php echo $_smarty_tpl->__("theme_editor.styles"); ?> </span> <h4 id="anchor_<?php echo htmlspecialchars(smarty_modifier_replace($_smarty_tpl->tpl_vars['installed_theme']->value['title'], ' ', '_'), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['installed_theme']->value['title'], ENT_QUOTES, 'UTF-8'); if ($_smarty_tpl->tpl_vars['theme']->value['theme_name'] == $_smarty_tpl->tpl_vars['theme_name']->value) { ?> <span class="label label-success"><?php echo $_smarty_tpl->__("active"); ?> </span><?php } ?> </h4> </div> <?php if ($_smarty_tpl->tpl_vars['installed_theme']->value['styles']) { ?> <?php $_smarty_tpl->tpl_vars['style'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['style']->_loop = false; $_from = $_smarty_tpl->tpl_vars['installed_theme']->value['styles']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['style']->key => $_smarty_tpl->tpl_vars['style']->value) { $_smarty_tpl->tpl_vars['style']->_loop = true; ?> <div class="span4"> <div class="theme <?php if ($_smarty_tpl->tpl_vars['style']->value['style_id'] == $_smarty_tpl->tpl_vars['layout']->value['style_id'] && $_smarty_tpl->tpl_vars['layout']->value['theme_name'] == $_smarty_tpl->tpl_vars['theme_name']->value) { ?> theme-selected<?php } ?> "> <div class="theme-title"> <span title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['installed_theme']->value['title'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['installed_theme']->value['title'], ENT_QUOTES, 'UTF-8'); ?> : <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['style']->value['name'], ENT_QUOTES, 'UTF-8'); ?> </span> </div> <div class="theme-use"> <?php if ($_smarty_tpl->tpl_vars['theme_name']->value != $_smarty_tpl->tpl_vars['runtime']->value['layout']['theme_name']) { ?> <?php $_smarty_tpl->tpl_vars['but_text'] = new Smarty_variable($_smarty_tpl->__("activate"), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['but_text'] = new Smarty_variable($_smarty_tpl->__("use_this_style"), null, 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['style']->value['style_id'] == $_smarty_tpl->tpl_vars['layout']->value['style_id'] && $_smarty_tpl->tpl_vars['layout']->value['theme_name'] == $_smarty_tpl->tpl_vars['theme_name']->value) { ?> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['style']->value['image'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-image-id="img_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['style']->value['style_id'], ENT_QUOTES, 'UTF-8'); ?> " class="theme-in-use cm-previewer"><?php echo $_smarty_tpl->__("currently_in_use"); ?> </a> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => "themes.set?theme_name=" . (string) $_smarty_tpl->tpl_vars['theme_name']->value . "&style=" . (string) $_smarty_tpl->tpl_vars['style']->value['style_id'], 'but_text' => $_smarty_tpl->tpl_vars['but_text']->value, 'but_role' => "action", 'but_meta' => "btn-primary"), 0); ?> <?php } ?> </div> <?php if ($_smarty_tpl->tpl_vars['style']->value['image']) { ?> <a id="image_img_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['style']->value['style_id'], ENT_QUOTES, 'UTF-8'); ?> " href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['style']->value['image'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-image-id="img_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['style']->value['style_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-previewer"> <img class="screenshot" src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['style']->value['image'], ENT_QUOTES, 'UTF-8'); ?> " alt="" width="250"> </a> <?php } else { ?> <div class="no-image"><i class="glyph-image" title="No image"></i></div> <?php } ?> </div> </div> <?php } ?> <?php } else { ?> <div class="span4"> <div class="theme"> <div class="theme-title"> <span title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme']->value['title'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['installed_theme']->value['title'], ENT_QUOTES, 'UTF-8'); ?> </span> </div> <?php if ($_smarty_tpl->tpl_vars['theme_name']->value != $_smarty_tpl->tpl_vars['runtime']->value['layout']['theme_name']) { ?> <div class="theme-use"> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => "themes.set?theme_name=" . (string) $_smarty_tpl->tpl_vars['theme_name']->value . "&style=" . (string) $_smarty_tpl->tpl_vars['style']->value['style_id'], 'but_text' => __("activate"), 'but_role' => "action", 'but_meta' => "btn-primary"), 0); ?> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['installed_theme']->value['screenshot']) { ?> <a id="image_img_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> " href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['installed_theme']->value['screenshot'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-image-id="img_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-previewer"><img class="screenshot" src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['installed_theme']->value['screenshot'], ENT_QUOTES, 'UTF-8'); ?> " alt="" width="250"></a> <?php } ?> </div> </div> <?php } ?> <?php } ?> <!--/row--></div> <?php } ?> <?php } else { ?> <div class="no-items"> <?php echo $_smarty_tpl->__("no_themes_available"); ?> </div> <?php } ?> </div> </div> </div> <div id="content_browse_all_available_themes"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "themes:install_themes")); $_block_repeat = true; echo smarty_block_hook(array('name' => "themes:install_themes"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['available_themes']->value['repo'], 'size' => 3, 'assign' => "splitted_themes", 'simple' => true), $_smarty_tpl); ?> <div class="themes-available"> <?php if ($_smarty_tpl->tpl_vars['available_themes']->value['repo']) { ?> <?php $_smarty_tpl->tpl_vars["repo_themes"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["repo_themes"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['splitted_themes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["repo_themes"]->key => $_smarty_tpl->tpl_vars["repo_themes"]->value) { $_smarty_tpl->tpl_vars["repo_themes"]->_loop = true; ?> <div class="row"> <?php $_smarty_tpl->tpl_vars["repo_theme"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["repo_theme"]->_loop = false; $_smarty_tpl->tpl_vars["theme_name"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['repo_themes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["repo_theme"]->key => $_smarty_tpl->tpl_vars["repo_theme"]->value) { $_smarty_tpl->tpl_vars["repo_theme"]->_loop = true; $_smarty_tpl->tpl_vars["theme_name"]->value = $_smarty_tpl->tpl_vars["repo_theme"]->key; ?> <?php if ($_smarty_tpl->tpl_vars['repo_theme']->value) { ?> <div class="span4"> <div class="theme"> <div class="theme-title"> <span title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme']->value['title'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['repo_theme']->value['title'], ENT_QUOTES, 'UTF-8'); ?> </span> </div> <div class="theme-use"> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => "themes.install?theme_name=" . (string) $_smarty_tpl->tpl_vars['theme_name']->value, 'but_text' => __("install"), 'but_role' => "action", 'but_meta' => "btn-primary cm-comet cm-ajax", 'but_target_id' => "themes_list"), 0); ?> </div> <?php if ($_smarty_tpl->tpl_vars['repo_theme']->value['screenshot']) { ?> <a id="image_img_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> " href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['repo_theme']->value['screenshot'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-image-id="img_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-previewer"><img class="screenshot" src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['repo_theme']->value['screenshot'], ENT_QUOTES, 'UTF-8'); ?> " alt="" width="250"></a> <?php } ?> <div class="theme-actions"> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['repo_theme']->value['screenshot']) { ?> <li><a id="image_img_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> " href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['repo_theme']->value['screenshot'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-image-id="img_button_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-previewer"><?php echo $_smarty_tpl->__("preview"); ?> </a></li> <?php } ?> <li><a class="cm-comet cm-ajax" data-ca-target-id="themes_list" href="<?php echo htmlspecialchars(fn_url("themes.install?theme_name=" . (string) $_smarty_tpl->tpl_vars['theme_name']->value), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="themes_list"><?php echo $_smarty_tpl->__("install"); ?> </a></li> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'], 'placement' => "right")); ?> </div> </div> </div> <?php } ?> <?php } ?> </div> <?php } ?> <?php } else { ?> <div class="no-items"> <?php echo $_smarty_tpl->__("no_themes_available"); ?> </div> <?php } ?> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "themes:install_themes"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php $_smarty_tpl->tpl_vars['theme_name'] = new Smarty_variable($_smarty_tpl->tpl_vars['available_themes']->value['current']['theme_name'], null, 0); ?> <div class="hidden" id="content_elm_clone_theme_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> " title="<?php echo $_smarty_tpl->__("clone_theme"); ?> "> <?php echo Smarty::$_smarty_vars['capture']['add_new_picker']; ?> </div> </div> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } echo $_smarty_tpl->getSubTemplate("common/tabsbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('content' => Smarty::$_smarty_vars['capture']['tabsbox'], 'active_tab' => $_REQUEST['selected_section']), 0); ?> <!--themes_list--></div> <?php $_smarty_tpl->_capture_stack[0][] = array("sidebar", null, null); ob_start(); ?> <div class="container themes-side"> <div class="sidebar-row"> <ul class="unstyled list-with-btns"> <li> <div class="list-description"> <?php echo $_smarty_tpl->__("rebuild_cache_automatically"); ?> <i class="cm-tooltip icon-question-sign" title="<?php echo $_smarty_tpl->__("rebuild_cache_automatically_tooltip"); ?> "></i> </div> <div class="switch switch-mini cm-switch-change list-btns" id="rebuild_cache_automatically"> <input type="checkbox" name="compile_check" value="1" <?php if ($_smarty_tpl->tpl_vars['dev_modes']->value['compile_check']) { ?> checked="checked"<?php } ?> /> </div> </li> </ul> </div> <script type="text/javascript"> (function (_, $) { $(_.doc).on('switch-change', '.cm-switch-change', function (e, data) { var value = data.value; $.ceAjax('request', fn_url("themes.update_dev_mode"), { data: { dev_mode: data.el.prop('name'), state: value ? 1 : 0 } }); }); $.ceEvent('on', 'ce.ajaxdone', function(){ if ($('.switch .switch-mini').length == 0) { $('.switch')['bootstrapSwitch'](); } }); }(Tygh, Tygh.$)); </script> <hr> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "themes:options")); $_block_repeat = true; echo smarty_block_hook(array('name' => "themes:options"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="sidebar-row clearfix"> <h6><?php echo $_smarty_tpl->__("theme_information"); ?> </h6> <div class="row-fluid"> <div class="span7 muted"><?php echo $_smarty_tpl->__("name"); ?> </div> <div class="span5 right"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme']->value['title'], ENT_QUOTES, 'UTF-8'); ?> </div> </div> <div class="row-fluid"> <div class="span7 muted" title="/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['theme_name'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("directory"); ?> </div> <div class="span5 right"><a class="pull-right" href="<?php echo htmlspecialchars(fn_url("file_editor.manage?active_section=themes&selected_path=" . (string) $_smarty_tpl->tpl_vars['settings']->value['theme_name']), ENT_QUOTES, 'UTF-8'); ?> ">/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['theme_name'], ENT_QUOTES, 'UTF-8'); ?> </a></div> </div> <div class="row-fluid"> <div class="span7 muted"><?php echo $_smarty_tpl->__("layouts"); ?> </div> <div class="span5 right"><a href="<?php echo htmlspecialchars(fn_url("block_manager.manage"), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars(count($_smarty_tpl->tpl_vars['theme']->value['layouts']), ENT_QUOTES, 'UTF-8'); ?> </a></div> </div> <div class="row-fluid"> <div class="span7 muted"><?php echo $_smarty_tpl->__("theme_editor.styles"); ?> </div> <div class="span5 right"><a href="#anchor_<?php echo htmlspecialchars(smarty_modifier_replace($_smarty_tpl->tpl_vars['theme']->value['title'], ' ', '_'), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars(count($_smarty_tpl->tpl_vars['theme']->value['styles']), ENT_QUOTES, 'UTF-8'); ?> </a> </div> </div> <div class="row-fluid"> <div class="span7 muted" ><?php echo $_smarty_tpl->__("developer"); ?> </div> <div class="span5 right"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme']->value['developer'], ENT_QUOTES, 'UTF-8'); ?> </div> </div> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "themes:options"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <hr> <div class="sidebar-row marketplace"> <h6><?php echo $_smarty_tpl->__("marketplace"); ?> </h6> <p class="marketplace-link"><?php echo $_smarty_tpl->__("marketplace_find_more", array("[href]" => $_smarty_tpl->tpl_vars['config']->value['resources']['marketplace_url'])); ?> </p> </div> </div> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "themes:adv_buttons")); $_block_repeat = true; echo smarty_block_hook(array('name' => "themes:adv_buttons"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if (fn_allowed_for("ULTIMATE") && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] || fn_allowed_for("MULTIVENDOR") && !$_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "upload_theme", 'text' => __("upload_theme"), 'title' => __("upload_theme"), 'content' => Smarty::$_smarty_vars['capture']['upload_theme'], 'act' => "general", 'link_class' => "cm-dialog-auto-size", 'icon' => "icon-plus", 'link_text' => ''), 0); ?> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "themes:adv_buttons"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "themes:tools_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "themes:tools_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "dialog", 'text' => __("clone_theme"), 'target_id' => "content_elm_clone_theme_" . (string) $_smarty_tpl->tpl_vars['theme_name']->value)); ?> </li> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "themes:tools_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ob_start(); echo $_smarty_tpl->__("themes"); $_tmp1 = ob_get_clean(); echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_tmp1, 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons']), 0); ?> <?php }
function content_55ccf2ea2ffb55_97301021($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.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_function_split')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.split.php'; } $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "categories:view")); $_block_repeat = true; echo smarty_block_hook(array('name' => "categories:view"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div id="category_products_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['block_id'], ENT_QUOTES, 'UTF-8'); ?> " class="testblockview"> <?php if ($_smarty_tpl->tpl_vars['subcategories']->value || $_smarty_tpl->tpl_vars['category_data']->value['description'] || $_smarty_tpl->tpl_vars['category_data']->value['main_pair']) { ?> <?php echo smarty_function_math(array('equation' => "ceil(n/c)", 'assign' => "rows", 'n' => count($_smarty_tpl->tpl_vars['subcategories']->value), 'c' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp), $_smarty_tpl); ?> <?php echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['subcategories']->value, 'size' => $_smarty_tpl->tpl_vars['rows']->value, 'assign' => "splitted_subcategories"), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['category_data']->value['description'] && $_smarty_tpl->tpl_vars['category_data']->value['description'] != '') { ?> <div class="ty-wysiwyg-content ty-mb-s"> <div class="ls_category_page_image"> <img src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ls_category_image']->value, ENT_QUOTES, 'UTF-8'); ?> "> </div> <p class="category_name_title"><?php echo $_smarty_tpl->tpl_vars['category_data']->value['category']; ?> </p> <?php echo $_smarty_tpl->tpl_vars['category_data']->value['description']; ?> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['subcategories']->value) { ?> <ul class="subcategories clearfix"> <?php $_smarty_tpl->tpl_vars["ssubcateg"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["ssubcateg"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['splitted_subcategories']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["ssubcateg"]->key => $_smarty_tpl->tpl_vars["ssubcateg"]->value) { $_smarty_tpl->tpl_vars["ssubcateg"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars['category'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['category']->_loop = false; $_from = $_smarty_tpl->tpl_vars['ssubcateg']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['category']->key => $_smarty_tpl->tpl_vars['category']->value) { $_smarty_tpl->tpl_vars['category']->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['category']->value) { ?> <li class="ty-subcategories__item"> <a href="<?php echo htmlspecialchars(fn_url("categories.view?category_id=" . (string) $_smarty_tpl->tpl_vars['category']->value['category_id']), ENT_QUOTES, 'UTF-8'); ?> "> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category']->value['category'], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <?php } ?> <?php } ?> </ul> <?php } ?> <?php } ?> </div> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null); ob_start(); echo htmlspecialchars($_smarty_tpl->tpl_vars['category_data']->value['category'], 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 $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "categories:view"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php }
function content_55ccecb4e1aac1_97059005($_smarty_tpl) { if (!is_callable('smarty_function_split')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.split.php'; } if (!is_callable('smarty_modifier_in_array')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.in_array.php'; } fn_preload_lang_vars(array('none', 'your_range', 'none', 'yes', 'no', 'any')); echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['filter_features']->value, 'size' => "3", 'assign' => "splitted_filter", 'preverse_keys' => true), $_smarty_tpl); ?> <table cellpadding="8"> <?php $_smarty_tpl->tpl_vars["filters_row"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["filters_row"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['splitted_filter']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars["filters_row"]->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars["filters_row"]->key => $_smarty_tpl->tpl_vars["filters_row"]->value) { $_smarty_tpl->tpl_vars["filters_row"]->_loop = true; $_smarty_tpl->tpl_vars["filters_row"]->index++; $_smarty_tpl->tpl_vars["filters_row"]->first = $_smarty_tpl->tpl_vars["filters_row"]->index === 0; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["filters_row"]['first'] = $_smarty_tpl->tpl_vars["filters_row"]->first; ?> <thead> <tr> <?php $_smarty_tpl->tpl_vars["filter"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["filter"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['filters_row']->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 ($_smarty_tpl->tpl_vars['filter']->value && $_smarty_tpl->tpl_vars['filter']->value['field_type'] != "P") { ?> <td><strong><?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['filter']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['filter']->value['description'] : $tmp, ENT_QUOTES, 'UTF-8'); ?> </strong></td> <?php } ?> <?php } ?> </tr> </thead> <tr valign="top"<?php if (sizeof($_smarty_tpl->tpl_vars['splitted_filter']->value) > 1 && $_smarty_tpl->getVariable('smarty')->value['foreach']['filters_row']['first']) { ?> class="delim"<?php } ?> > <?php $_smarty_tpl->tpl_vars["filter"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["filter"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['filters_row']->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 ($_smarty_tpl->tpl_vars['filter']->value && $_smarty_tpl->tpl_vars['filter']->value['field_type'] != "P") { ?> <td width="33%"> <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "S" || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "E" || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "M" || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "N" && !$_smarty_tpl->tpl_vars['filter']->value['filter_id']) { ?> <div class="scroll-y"> <?php $_smarty_tpl->tpl_vars["filter_ranges"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['ranges']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['filter']->value['variants'] : $tmp, null, 0); ?> <?php $_smarty_tpl->tpl_vars["range"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["range"]->_loop = false; $_smarty_tpl->tpl_vars["range_id"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['filter_ranges']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["range"]->key => $_smarty_tpl->tpl_vars["range"]->value) { $_smarty_tpl->tpl_vars["range"]->_loop = true; $_smarty_tpl->tpl_vars["range_id"]->value = $_smarty_tpl->tpl_vars["range"]->key; ?> <label for="variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['range_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="checkbox"><input type="checkbox" name="<?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "M") { ?> multiple_<?php } ?> variants[]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['range_id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "M") { echo htmlspecialchars($_smarty_tpl->tpl_vars['range_id']->value, ENT_QUOTES, 'UTF-8'); } else { ?> [V<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['range_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]<?php } ?> " <?php if (smarty_modifier_in_array("[V" . (string) $_smarty_tpl->tpl_vars['range_id']->value . "]", $_smarty_tpl->tpl_vars['search']->value['variants']) || smarty_modifier_in_array($_smarty_tpl->tpl_vars['range_id']->value, $_smarty_tpl->tpl_vars['search']->value['multiple_variants'])) { ?> checked="checked"<?php } ?> /><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['prefix'], ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['variant'], ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['suffix'], ENT_QUOTES, 'UTF-8'); ?> </label> <?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "O" || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "N" && $_smarty_tpl->tpl_vars['filter']->value['filter_id'] || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "D" || $_smarty_tpl->tpl_vars['filter']->value['condition_type'] == "D" || $_smarty_tpl->tpl_vars['filter']->value['condition_type'] == "F") { ?> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> <div class="scroll-y"><?php } ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['condition_type']) { ?> <?php $_smarty_tpl->tpl_vars["el_id"] = new Smarty_variable("field_" . (string) $_smarty_tpl->tpl_vars['filter']->value['filter_id'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["el_id"] = new Smarty_variable("feature_" . (string) $_smarty_tpl->tpl_vars['filter']->value['feature_id'], null, 0); ?> <?php } ?> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> no_ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="radio"><input type="radio" name="variants[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> no_ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="" checked="checked" /><?php echo $_smarty_tpl->__("none"); ?> </label> <?php $_smarty_tpl->tpl_vars["filter_ranges"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['ranges']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['filter']->value['variants'] : $tmp, null, 0); ?> <?php $_smarty_tpl->tpl_vars["_type"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['field_type']) === null || $tmp === '' ? "R" : $tmp, null, 0); ?> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> <?php $_smarty_tpl->tpl_vars["range"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["range"]->_loop = false; $_smarty_tpl->tpl_vars["range_id"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['filter_ranges']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["range"]->key => $_smarty_tpl->tpl_vars["range"]->value) { $_smarty_tpl->tpl_vars["range"]->_loop = true; $_smarty_tpl->tpl_vars["range_id"]->value = $_smarty_tpl->tpl_vars["range"]->key; ?> <?php $_smarty_tpl->tpl_vars["range_name"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['range']->value['range_name']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['range']->value['variant'] : $tmp, null, 0); ?> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['range_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="radio"><input type="radio" name="variants[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['range_id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['_type']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['range_id']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] == (string) $_smarty_tpl->tpl_vars['_type']->value . (string) $_smarty_tpl->tpl_vars['range_id']->value) { ?> checked="checked"<?php } ?> /><?php echo htmlspecialchars(fn_text_placeholders($_smarty_tpl->tpl_vars['range_name']->value), ENT_QUOTES, 'UTF-8'); ?> </label> <?php } ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> </div><?php } ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['condition_type'] != "F") { ?> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> select_custom_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="radio"><input type="radio" name="variants[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> select_custom_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="O" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] == "O") { ?> checked="checked"<?php } ?> /><?php echo $_smarty_tpl->__("your_range"); ?> </label> <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "D") { ?> <?php if ($_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['from'] || $_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['to']) { ?> <?php $_smarty_tpl->tpl_vars["date_extra"] = new Smarty_variable('', null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["date_extra"] = new Smarty_variable("disabled=\"disabled\"", 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 . "range_" . (string) $_smarty_tpl->tpl_vars['el_id']->value . "_from", 'date_name' => "custom_range[" . (string) $_smarty_tpl->tpl_vars['filter']->value['feature_id'] . "][from]", 'date_val' => $_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['from'], 'extra' => $_smarty_tpl->tpl_vars['date_extra']->value, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> <?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 . "range_" . (string) $_smarty_tpl->tpl_vars['el_id']->value . "_to", 'date_name' => "custom_range[" . (string) $_smarty_tpl->tpl_vars['filter']->value['feature_id'] . "][to]", 'date_val' => $_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['to'], 'extra' => $_smarty_tpl->tpl_vars['date_extra']->value, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> <input type="hidden" name="custom_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ][type]" value="D" /> <?php } else { ?> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> <?php $_smarty_tpl->tpl_vars["from_value"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['from']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['from'] : $tmp, null, 0); ?> <?php $_smarty_tpl->tpl_vars["to_value"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['to']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['to'] : $tmp, null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["from_value"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['from']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['filter']->value['range_values']['min'] : $tmp, null, 0); ?> <?php $_smarty_tpl->tpl_vars["to_value"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['to']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['filter']->value['range_values']['max'] : $tmp, null, 0); ?> <?php } ?> <input type="text" name="<?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type']) { ?> field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } else { ?> custom_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } ?> [from]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _from" size="3" class="input-mini" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['from_value']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> - <input type="text" name="<?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type']) { ?> field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } else { ?> custom_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } ?> [to]" size="3" class="input-mini" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['to_value']->value, ENT_QUOTES, 'UTF-8'); ?> " id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _to" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> <?php } ?> <?php } ?> <script type="text/javascript"> Tygh.$(document).ready(function() { var $ = Tygh.$; $("input[type=radio][name='variants[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]']").change(function() { var el_id = '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> '; $('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> range_' + el_id + '_from').prop('disabled', this.value !== 'O'); $('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> range_' + el_id + '_to').prop('disabled', this.value !== 'O'); <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "D") { ?> $('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> range_' + el_id + '_from_but').prop('disabled', this.value !== 'O'); $('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> range_' + el_id + '_to_but').prop('disabled', this.value !== 'O'); <?php } ?> }); }); </script> <?php } elseif ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "C" || $_smarty_tpl->tpl_vars['filter']->value['condition_type'] == "C") { ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['condition_type']) { ?> <?php $_smarty_tpl->tpl_vars["el_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['filter']->value['field_type'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["el_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['filter']->value['feature_id'], null, 0); ?> <?php } ?> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _none" class="radio"> <input type="radio" name="ch_filters[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _none" value="" <?php if (!$_smarty_tpl->tpl_vars['search']->value['ch_filters'][$_smarty_tpl->tpl_vars['el_id']->value]) { ?> checked="checked"<?php } ?> /> <?php echo $_smarty_tpl->__("none"); ?> </label> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _yes" class="radio"> <input type="radio" name="ch_filters[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _yes" value="Y" <?php if ($_smarty_tpl->tpl_vars['search']->value['ch_filters'][$_smarty_tpl->tpl_vars['el_id']->value] == "Y") { ?> checked="checked"<?php } ?> /> <?php echo $_smarty_tpl->__("yes"); ?> </label> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _no" class="radio"> <input type="radio" name="ch_filters[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _no" value="N" <?php if ($_smarty_tpl->tpl_vars['search']->value['ch_filters'][$_smarty_tpl->tpl_vars['el_id']->value] == "N") { ?> checked="checked"<?php } ?> /> <?php echo $_smarty_tpl->__("no"); ?> </label> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['condition_type']) { ?> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _any" class="radio"> <input type="radio" name="ch_filters[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _any" value="A" <?php if ($_smarty_tpl->tpl_vars['search']->value['ch_filters'][$_smarty_tpl->tpl_vars['el_id']->value] == "A") { ?> checked="checked"<?php } ?> /> <?php echo $_smarty_tpl->__("any"); ?> </label> <?php } ?> <?php } elseif ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "T") { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['prefix'], ENT_QUOTES, 'UTF-8'); ?> <input type="text" name="tx_features[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ]" class="input-mini" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['tx_features'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']], ENT_QUOTES, 'UTF-8'); ?> " /><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['suffix'], ENT_QUOTES, 'UTF-8'); ?> <?php } ?> </td> <?php } } ?> </tr> <?php } ?> </table><?php }
function content_55db8f5833f7a1_27021682($_smarty_tpl) { if (!is_callable('smarty_function_split')) { include '/var/www/html/market/app/functions/smarty_plugins/function.split.php'; } if (!is_callable('smarty_modifier_enum')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.enum.php'; } if (!is_callable('smarty_modifier_in_array')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.in_array.php'; } fn_preload_lang_vars(array('none', 'your_range', 'none', 'yes', 'no')); echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['filter_features']->value, 'size' => "3", 'assign' => "splitted_filter", 'preverse_keys' => true), $_smarty_tpl); ?> <table cellpadding="8"> <?php $_smarty_tpl->tpl_vars["filters_row"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["filters_row"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['splitted_filter']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars["filters_row"]->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars["filters_row"]->key => $_smarty_tpl->tpl_vars["filters_row"]->value) { $_smarty_tpl->tpl_vars["filters_row"]->_loop = true; $_smarty_tpl->tpl_vars["filters_row"]->index++; $_smarty_tpl->tpl_vars["filters_row"]->first = $_smarty_tpl->tpl_vars["filters_row"]->index === 0; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["filters_row"]['first'] = $_smarty_tpl->tpl_vars["filters_row"]->first; ?> <thead> <tr> <?php $_smarty_tpl->tpl_vars["filter"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["filter"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['filters_row']->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 ($_smarty_tpl->tpl_vars['filter']->value && $_smarty_tpl->tpl_vars['filter']->value['field_type'] != "P") { ?> <td><strong><?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['filter']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['filter']->value['description'] : $tmp, ENT_QUOTES, 'UTF-8'); ?> </strong></td> <?php } ?> <?php } ?> </tr> </thead> <tr valign="top"<?php if (sizeof($_smarty_tpl->tpl_vars['splitted_filter']->value) > 1 && $_smarty_tpl->getVariable('smarty')->value['foreach']['filters_row']['first']) { ?> class="delim"<?php } ?> > <?php $_smarty_tpl->tpl_vars["filter"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["filter"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['filters_row']->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 ($_smarty_tpl->tpl_vars['filter']->value && $_smarty_tpl->tpl_vars['filter']->value['field_type'] != "P") { ?> <?php $_smarty_tpl->tpl_vars['id'] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['filter_id']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['filter']->value['feature_id'] : $tmp, null, 0); ?> <td width="33%"> <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::TEXT_SELECTBOX") || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::EXTENDED") || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::MULTIPLE_CHECKBOX") || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::NUMBER_SELECTBOX") && !$_smarty_tpl->tpl_vars['id']->value) { ?> <div class="scroll-y"> <?php $_smarty_tpl->tpl_vars["variant"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["variant"]->_loop = false; $_smarty_tpl->tpl_vars["variant_id"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['filter']->value['variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["variant"]->key => $_smarty_tpl->tpl_vars["variant"]->value) { $_smarty_tpl->tpl_vars["variant"]->_loop = true; $_smarty_tpl->tpl_vars["variant_id"]->value = $_smarty_tpl->tpl_vars["variant"]->key; ?> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['variant_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="checkbox"> <input type="checkbox" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ][]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['variant_id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['variant_id']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if (smarty_modifier_in_array($_smarty_tpl->tpl_vars['variant_id']->value, $_smarty_tpl->tpl_vars['search']->value[$_smarty_tpl->tpl_vars['data_name']->value][$_smarty_tpl->tpl_vars['id']->value])) { ?> checked="checked"<?php } ?> /><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['prefix'], ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['variant']->value['variant'], ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['suffix'], ENT_QUOTES, 'UTF-8'); ?> </label> <?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::NUMBER_FIELD") || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::NUMBER_SELECTBOX") && $_smarty_tpl->tpl_vars['id']->value || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::DATE") || $_smarty_tpl->tpl_vars['filter']->value['condition_type'] == "D") { ?> <div> <label class="radio"><input class="cm-switch-availability cm-switch-inverse" type="radio" name="range_selected[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="sw_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> select_custom_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _suffix_N" value="" checked="checked" /><?php echo $_smarty_tpl->__("none"); ?> </label> </div> <?php $_smarty_tpl->tpl_vars['disable'] = new Smarty_variable(true, null, 0); ?> <label class="radio"><input class="cm-switch-availability" type="radio" name="range_selected[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="sw_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> select_custom_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _suffix_Y" value="1" <?php if ($_smarty_tpl->tpl_vars['search']->value['range_selected'][$_smarty_tpl->tpl_vars['id']->value]) { $_smarty_tpl->tpl_vars['disable'] = new Smarty_variable(false, null, 0); ?> checked="checked"<?php } ?> /><?php echo $_smarty_tpl->__("your_range"); ?> </label> <div id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> select_custom_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::DATE")) { ?> <?php if ($_smarty_tpl->tpl_vars['disable']->value) { ?> <?php $_smarty_tpl->tpl_vars['date_extra'] = new Smarty_variable("disabled=\"disabled\"", null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['date_extra'] = new Smarty_variable('', 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 . "range_" . (string) $_smarty_tpl->tpl_vars['id']->value . "_from", 'date_name' => (string) $_smarty_tpl->tpl_vars['data_name']->value . "[" . (string) $_smarty_tpl->tpl_vars['id']->value . "][0]", 'date_val' => $_smarty_tpl->tpl_vars['search']->value[$_smarty_tpl->tpl_vars['data_name']->value][$_smarty_tpl->tpl_vars['id']->value][0], 'extra' => $_smarty_tpl->tpl_vars['date_extra']->value, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> <?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 . "range_" . (string) $_smarty_tpl->tpl_vars['id']->value . "_to", 'date_name' => (string) $_smarty_tpl->tpl_vars['data_name']->value . "[" . (string) $_smarty_tpl->tpl_vars['id']->value . "][1]", 'date_val' => $_smarty_tpl->tpl_vars['search']->value[$_smarty_tpl->tpl_vars['data_name']->value][$_smarty_tpl->tpl_vars['id']->value][1], 'extra' => $_smarty_tpl->tpl_vars['date_extra']->value, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['from_value'] = new Smarty_variable($_smarty_tpl->tpl_vars['search']->value[$_smarty_tpl->tpl_vars['data_name']->value][$_smarty_tpl->tpl_vars['id']->value][0], null, 0); ?> <?php $_smarty_tpl->tpl_vars['to_value'] = new Smarty_variable($_smarty_tpl->tpl_vars['search']->value[$_smarty_tpl->tpl_vars['data_name']->value][$_smarty_tpl->tpl_vars['id']->value][1], null, 0); ?> <input type="text" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ][0]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _from" size="3" class="input-mini" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['from_value']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['disable']->value) { ?> disabled="disabled"<?php } ?> />-<input type="text" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ][1]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _to" size="3" class="input-mini" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['to_value']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['disable']->value) { ?> disabled="disabled"<?php } ?> /> <?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::SINGLE_CHECKBOX") || $_smarty_tpl->tpl_vars['filter']->value['condition_type'] == "C") { ?> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _none" class="radio"> <input type="radio" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ][]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _none" value="" <?php if (!$_smarty_tpl->tpl_vars['search']->value[$_smarty_tpl->tpl_vars['data_name']->value][$_smarty_tpl->tpl_vars['id']->value][0]) { ?> checked="checked"<?php } ?> /> <?php echo $_smarty_tpl->__("none"); ?> </label> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _yes" class="radio"> <input type="radio" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ][]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _yes" value="Y" <?php if ($_smarty_tpl->tpl_vars['search']->value[$_smarty_tpl->tpl_vars['data_name']->value][$_smarty_tpl->tpl_vars['id']->value][0] == "Y") { ?> checked="checked"<?php } ?> /> <?php echo $_smarty_tpl->__("yes"); ?> </label> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _no" class="radio"> <input type="radio" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ][]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _no" value="N" <?php if ($_smarty_tpl->tpl_vars['search']->value[$_smarty_tpl->tpl_vars['data_name']->value][$_smarty_tpl->tpl_vars['id']->value][0] == "N") { ?> checked="checked"<?php } ?> /> <?php echo $_smarty_tpl->__("no"); ?> </label> <?php } elseif ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::TEXT_FIELD")) { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['prefix'], ENT_QUOTES, 'UTF-8'); ?> <input type="text" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ][]" class="input-mini" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value[$_smarty_tpl->tpl_vars['data_name']->value][$_smarty_tpl->tpl_vars['id']->value][0], ENT_QUOTES, 'UTF-8'); ?> " /><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['suffix'], ENT_QUOTES, 'UTF-8'); ?> <?php } ?> </td> <?php } } ?> </tr> <?php } ?> </table><?php }
function content_55cceca0610ac9_26483771($_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('remove', 'empty', 'remove', '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_footer']->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_footer']->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_footer']->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 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_footer']->value, "product_id", "product_id"), null, 0); ?> <?php } ?> <!--div class="grid-list"--> <div class="ls_preferate_carousel"> <div class="lsc_wrap"> <div class="lsc_slider"> <!--ul id="ls_fav_ul" class="owl-carousel"--> <ul class="recent_carousel_ul lcs_fix"> <?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"--><li class="clearfix lsc_li_container"><span style="display: none" class="ls_cart_combination_hash"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['cart_id'], ENT_QUOTES, 'UTF-8'); ?> </span><?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_data2.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-twishlist-item testmulticolumnpre3"><a href="<?php echo htmlspecialchars(fn_url("wishlist.delete?cart_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['cart_id']), ENT_QUOTES, 'UTF-8'); ?> " class="ty-twishlist-item__remove ty-remove" title="<?php echo $_smarty_tpl->__("remove"); ?> "><i class="ty-remove__icon ty-icon-cancel-circle"></i></a></div--><div class="ty-grid-list__image testgridlistfooter2"><?php echo $_smarty_tpl->getSubTemplate("views/products/components/product_icon2.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value, 'show_gallery' => false), 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><?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--><form enctype="multipart/form-data"><input type='hidden' name='ls_move_to' value='cart'><input type='hidden' name='ls_cart_combination_hash' value='<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['cart_id'], ENT_QUOTES, 'UTF-8'); ?> '><?php $_smarty_tpl->tpl_vars["option"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["option"]->_loop = false; $_smarty_tpl->tpl_vars['option_id'] = new Smarty_Variable(); $_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; $_smarty_tpl->tpl_vars['option_id']->value = $_smarty_tpl->tpl_vars["option"]->key; ?> <input type="hidden" name="product_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> ][product_options][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option']->value['value'], ENT_QUOTES, 'UTF-8'); ?> "><?php } ?> <input type="hidden" name="result_ids" value="cart_status*,wish_list*,checkout*,account_info*"><input type="hidden" name="redirect_url" value="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['config']->value['current_url']), ENT_QUOTES, 'UTF-8'); ?> "><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'); ?> "><!--input type="hidden" name="product_data[2704][product_options][2291]" value="111924"><input type="hidden" name="product_data[2704][product_options][3468]" value="111210"><input type="hidden" name="product_data[2704][product_options][3471]" value="111239"><input type="hidden" name="product_data[2704][product_options][3470]" value="111238"><input type="hidden" name="product_data[2704][product_options][3485]" value="111357"><input type="hidden" name="product_data[2704][product_options][3469]" value="111212"><input type="hidden" name="product_data[2704][product_options][3484]" value="111885"--><input type="hidden" name="appearance[show_product_options]" value="1"><input type="hidden" name="appearance[details_page]" value="1"><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="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="is_ajax" value="1"><input type="hidden" name="full_render" value="Y"><input type="hidden" name="dispatch[checkout.add..<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> ]" value=""><span class="ls_move_to_cart"><img class="ls_move_to_cart" src='../../../../../../../../design/themes/responsive/media/images/images/move_to_cart.png'></span></form><?php } ?> </li><!--/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 } } } } } ?> </ul> </div> <div class="lsc_slider-nav"> <span class="ls_nav_bullets" style="display: none"></span> <button class="lsc_previous_b" data-dir="prev">Previous</button> <button class="lsc_next_b" data-dir="next">Next</button> </div> </div> </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_footer.tpl" id="<?php echo smarty_function_set_id(array('name' => "blocks/list_templates/grid_list_footer.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_footer']->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_footer']->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_footer']->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 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_footer']->value, "product_id", "product_id"), null, 0); ?> <?php } ?> <!--div class="grid-list"--> <div class="ls_preferate_carousel"> <div class="lsc_wrap"> <div class="lsc_slider"> <!--ul id="ls_fav_ul" class="owl-carousel"--> <ul class="recent_carousel_ul lcs_fix"> <?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"--><li class="clearfix lsc_li_container"><span style="display: none" class="ls_cart_combination_hash"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['cart_id'], ENT_QUOTES, 'UTF-8'); ?> </span><?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_data2.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-twishlist-item testmulticolumnpre3"><a href="<?php echo htmlspecialchars(fn_url("wishlist.delete?cart_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['cart_id']), ENT_QUOTES, 'UTF-8'); ?> " class="ty-twishlist-item__remove ty-remove" title="<?php echo $_smarty_tpl->__("remove"); ?> "><i class="ty-remove__icon ty-icon-cancel-circle"></i></a></div--><div class="ty-grid-list__image testgridlistfooter2"><?php echo $_smarty_tpl->getSubTemplate("views/products/components/product_icon2.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value, 'show_gallery' => false), 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><?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--><form enctype="multipart/form-data"><input type='hidden' name='ls_move_to' value='cart'><input type='hidden' name='ls_cart_combination_hash' value='<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['cart_id'], ENT_QUOTES, 'UTF-8'); ?> '><?php $_smarty_tpl->tpl_vars["option"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["option"]->_loop = false; $_smarty_tpl->tpl_vars['option_id'] = new Smarty_Variable(); $_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; $_smarty_tpl->tpl_vars['option_id']->value = $_smarty_tpl->tpl_vars["option"]->key; ?> <input type="hidden" name="product_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> ][product_options][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option']->value['value'], ENT_QUOTES, 'UTF-8'); ?> "><?php } ?> <input type="hidden" name="result_ids" value="cart_status*,wish_list*,checkout*,account_info*"><input type="hidden" name="redirect_url" value="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['config']->value['current_url']), ENT_QUOTES, 'UTF-8'); ?> "><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'); ?> "><!--input type="hidden" name="product_data[2704][product_options][2291]" value="111924"><input type="hidden" name="product_data[2704][product_options][3468]" value="111210"><input type="hidden" name="product_data[2704][product_options][3471]" value="111239"><input type="hidden" name="product_data[2704][product_options][3470]" value="111238"><input type="hidden" name="product_data[2704][product_options][3485]" value="111357"><input type="hidden" name="product_data[2704][product_options][3469]" value="111212"><input type="hidden" name="product_data[2704][product_options][3484]" value="111885"--><input type="hidden" name="appearance[show_product_options]" value="1"><input type="hidden" name="appearance[details_page]" value="1"><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="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="is_ajax" value="1"><input type="hidden" name="full_render" value="Y"><input type="hidden" name="dispatch[checkout.add..<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> ]" value=""><span class="ls_move_to_cart"><img class="ls_move_to_cart" src='../../../../../../../../design/themes/responsive/media/images/images/move_to_cart.png'></span></form><?php } ?> </li><!--/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 } } } } } ?> </ul> </div> <div class="lsc_slider-nav"> <span class="ls_nav_bullets" style="display: none"></span> <button class="lsc_previous_b" data-dir="prev">Previous</button> <button class="lsc_next_b" data-dir="next">Next</button> </div> </div> </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_55d2f403043d52_82420940($_smarty_tpl) { if (!is_callable('smarty_function_split')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.split.php'; } fn_preload_lang_vars(array('user_account_info', 'username', 'email', 'password', 'login', 'url', 'usergroups', 'pending', 'active', 'profile_name', 'tax_exempt', 'yes', 'contact_information', 'contact_information', 'billing_address', 'shipping_address')); ?> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td valign="top"> <table cellpadding="1" cellspacing="1" border="0" width="100%"> <tr> <td colspan="2" class="form-title"><?php echo $_smarty_tpl->__("user_account_info"); ?> <hr size="1" noshade></td> </tr> <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['use_email_as_login'] != 'Y' && $_smarty_tpl->tpl_vars['user_data']->value['user_type'] != 'S') { ?> <tr> <td class="form-field-caption" nowrap><?php echo $_smarty_tpl->__("username"); ?> : </td> <td ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['user_login'], ENT_QUOTES, 'UTF-8'); ?> </td> </tr> <?php } else { ?> <tr> <td class="form-field-caption" nowrap><?php echo $_smarty_tpl->__("email"); ?> : </td> <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['email'], ENT_QUOTES, 'UTF-8'); ?> </td> </tr> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['send_password']->value || $_smarty_tpl->tpl_vars['settings']->value['General']['quick_registration'] == "Y") { ?> <?php if ($_smarty_tpl->tpl_vars['password']->value) { ?> <tr> <td class="form-field-caption" nowrap><?php echo $_smarty_tpl->__("password"); ?> : </td> <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['password']->value, ENT_QUOTES, 'UTF-8'); ?> </td> </tr> <?php } ?> <tr> <td class="form-field-caption" nowrap><?php echo $_smarty_tpl->__("login"); ?> <?php echo $_smarty_tpl->__("url"); ?> : </td> <td><?php if ($_smarty_tpl->tpl_vars['user_data']->value['company_id']) { echo htmlspecialchars(fn_url("?company_id=" . (string) $_smarty_tpl->tpl_vars['user_data']->value['company_id'], 'C', 'http'), ENT_QUOTES, 'UTF-8'); } else { echo htmlspecialchars(fn_url('', 'C', 'http'), ENT_QUOTES, 'UTF-8'); } ?> </td> </tr> <?php } ?> <?php if (!fn_allowed_for("ULTIMATE:FREE")) { ?> <?php if ($_smarty_tpl->tpl_vars['user_data']->value['usergroups']) { ?> <tr> <td colspan="3"> </td> </tr> <tr> <td colspan="2" class="form-title"><?php echo $_smarty_tpl->__("usergroups"); ?> <hr size="1" noshade></td> </tr> <?php $_smarty_tpl->tpl_vars["user_usergroup"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["user_usergroup"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['user_data']->value['usergroups']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["user_usergroup"]->key => $_smarty_tpl->tpl_vars["user_usergroup"]->value) { $_smarty_tpl->tpl_vars["user_usergroup"]->_loop = true; ?> <tr> <td class="form-field-caption" nowrap><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_usergroup']->value['usergroup'], ENT_QUOTES, 'UTF-8'); ?> : </td> <td><?php if ($_smarty_tpl->tpl_vars['user_usergroup']->value['status'] == 'P') { echo $_smarty_tpl->__("pending"); } else { echo $_smarty_tpl->__("active"); } ?> </td> </tr> <?php } ?> <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['user_multiple_profiles'] == 'Y') { ?> <tr> <td class="form-title"><?php echo $_smarty_tpl->__("profile_name"); ?> : </td> <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['profile_name'], ENT_QUOTES, 'UTF-8'); ?> </td> </tr> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['user_data']->value['tax_exempt'] == 'Y') { ?> <tr> <td class="form-title"><?php echo $_smarty_tpl->__("tax_exempt"); ?> : </td> <td><?php echo $_smarty_tpl->__("yes"); ?> </td> </tr> <?php } ?> </table> </td> <td colspan="2"> </td> </tr> <tr> <td colspan="3"> </td> </tr> </table> <?php if (!$_smarty_tpl->tpl_vars['send_password']->value) { ?> <?php $_smarty_tpl->tpl_vars["profile_fields"] = new Smarty_variable(fn_get_profile_fields($_smarty_tpl->tpl_vars['user_data']->value['user_type']), null, 0); ?> <?php echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['profile_fields']->value['C'], 'size' => 2, 'assign' => "contact_fields", 'simple' => true, 'size_is_horizontal' => true), $_smarty_tpl); ?> <table cellpadding="4" cellspacing="0" border="0" width="100%"> <?php if ($_smarty_tpl->tpl_vars['profile_fields']->value['C']) { ?> <tr> <td valign="top" width="50%"> <table> <?php echo $_smarty_tpl->getSubTemplate("profiles/profile_fields_info.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('fields' => $_smarty_tpl->tpl_vars['contact_fields']->value[0], 'title' => __("contact_information")), 0); ?> </table> </td> <td width="1%"> </td> <td valign="top" width="49%"> <?php if ($_smarty_tpl->tpl_vars['contact_fields']->value[1]) { ?> <table> <?php echo $_smarty_tpl->getSubTemplate("profiles/profile_fields_info.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('fields' => $_smarty_tpl->tpl_vars['contact_fields']->value[1], 'title' => __("contact_information")), 0); ?> </table> <?php } ?> </td> </tr> <?php } ?> <?php if (($_smarty_tpl->tpl_vars['profile_fields']->value['B'] || $_smarty_tpl->tpl_vars['profile_fields']->value['S']) && $_smarty_tpl->tpl_vars['user_data']->value['register_at_checkout'] != "Y" && !($_smarty_tpl->tpl_vars['created']->value && $_smarty_tpl->tpl_vars['settings']->value['General']['quick_registration'] == "Y")) { ?> <tr> <td valign="top"> <?php if ($_smarty_tpl->tpl_vars['profile_fields']->value['B']) { ?> <p></p> <table> <?php echo $_smarty_tpl->getSubTemplate("profiles/profile_fields_info.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('fields' => $_smarty_tpl->tpl_vars['profile_fields']->value['B'], 'title' => __("billing_address")), 0); ?> </table> <?php } else { ?> <?php } ?> </td> <td> </td> <td valign="top"> <?php if ($_smarty_tpl->tpl_vars['profile_fields']->value['S']) { ?> <p></p> <table> <?php echo $_smarty_tpl->getSubTemplate("profiles/profile_fields_info.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('fields' => $_smarty_tpl->tpl_vars['profile_fields']->value['S'], 'title' => __("shipping_address")), 0); ?> </table> <?php } else { ?> <?php } ?> </td> </tr> <?php } ?> </table> <?php } }