'price_vozr', 'text' => LISTING_SORT_PRICE1), array('id' => 'price_ub', 'text' => LISTING_SORT_PRICE2), array('id' => 'new', 'text' => LISTING_SORT_NEW), ); $r_display_array = array( array('id' => 'list', 'text' => LISTING_SORT_LIST), array('id' => 'columns', 'text' => LISTING_SORT_COLUMNS) ); if ($_GET['display'] == '') { $display = $template->getMainconf('LIST_DISPLAY_TYPE') == 0 ? 'list' : 'columns'; } else { $display = $_GET['display']; } if ($display == 'list') { $display_hover_list = 'hover'; } elseif ($display == 'columns') { $display_hover_columns = 'hover'; } // ajax-form, where we adding hidden values of current selected attributes: foreach ($_GET as $k => $v) { if(!is_int($k)){ $k = preg_replace('/[^A-Za-z0-9_]/ui','',$k); } $v = preg_replace('/[?!^0-9-+()₴!\"№;%:?*_=\'~@#$^&\[\]\.\,><]/','',$v); if ($k == 'cPath' or $k == 'f' or $k == 'language' or $k == 'manufacturers_id') { } elseif (is_int($k)) { $m_srch .= ''; } else { if (isset($cPath) && $cPath == 0 && ($k == 'sort' || $k == 'type')) { if ($_GET['sort'] == 'new') { $heading_text_box = $zero_category_title = BOX_HEADING_WHATS_NEW; } if ($_GET['type'] == 'specials') { $heading_text_box = sprintf( BOX_HEADING_DEFAULT_SPECIALS, tep_date_long_translate(strftime('%B')) ); $zero_category_title = sprintf(BOX_HEADING_DEFAULT_SPECIALS, ''); } if ($_GET['sort'] == 'featured') { $heading_text_box = $zero_category_title = BOX_HEADING_FEATURED; } } else { $m_srch .= ''; } } } $m_srch = '
' . $m_srch . '
'; // END ajax-form; if (!empty($_GET['page']) && empty($redirectOptionsIdsArrayForCheck)) { $heading_text_box .= ($heading_text_box ? ' - ' : '') . PREVNEXT_TITLE_PPAGE . ' ' . $_GET['page']; } // Clear $desc_text seo filter if (!empty($_GET['filter_id'])) { $desc_text = ""; } } } else { // default page $content = CONTENT_INDEX_DEFAULT; $breadcrumb->add(TITLE); } //$milliseconds = round(microtime(true) * 1000); // attributes arrays: // get all attributes list from current category $counts_array = array(); $counts_may_be = array(); // array with all selected attributes $show_in_filter = array(); $attr_names_array = array(); $attr_sort_orders = array(); $show_in_product_listing = array(); $show_options_arr = []; if($content != CONTENT_INDEX_DEFAULT || !@file_get_contents(DIR_FS_CATALOG.'temp/attributes_'.$languages_id.'.json')){ getArrayWithAllAttributes(); } $options_string = generateOptionsString($attr_names_array, $attr_vals_names_array); if (!empty($options_string)) { $heading_text_box .= $options_string; } // --------------- ATTRIBUTES COUNTER IN FILTER ----------------------------- // if (defined('SEO_FILTER') && constant('SEO_FILTER') == 'true') { require(DIR_WS_MODULES . '/attributes_counter.php'); } // --------------- ATTRIBUTES COUNTER IN FILTER --END------------------------ // // END get list of all attributes from current category if ($_SESSION['view_order_success']) { unset($_SESSION['view_order_success']); } if ($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') { require(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING_COL); } else { require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/' . TEMPLATENAME_MAIN_PAGE); } require(DIR_WS_INCLUDES . 'application_bottom.php');