<?php

cw_load('sections');
$search_data =& cw_session_register("search_data");
$category_page =& cw_session_register('category_page');
$search_data['sections']['objects_per_page'] = $category_page['objects_per_page'];
$search_data['sections']['sort_field'] = $category_page['sort_field'];
$search_data['sections']['sort_direction'] = $category_page['sort_direction'];
$search_data['sections']['attributes'] = $att;
$search_data['sections']['flat_search'] = 1;
list($products, $navigation, $product_filter) = cw_call('cw_sections_get', array('section' => 'arrivals', 'data' => $search_data['sections'], '', 'info_type' => 8 + 32 + 128 + 256 + 1024));
$navigation['script'] = cw_call('cw_core_get_html_page_url', array(array('var' => $target, 'delimiter' => '&', 'att' => $att)));
$smarty->assign('navigation', $navigation);
$smarty->assign('products', $products);
$smarty->assign('product_filter', $product_filter);
$smarty->assign('sort_fields', cw_product_get_sort_fields());
$smarty->assign('search_prefilled', $search_data['sections']);
$location[] = array(cw_get_langvar_by_name('lbl_arrivals'), '');
$location = array_merge($location, cw_product_get_filter_location($product_filter, $navigation['script']));
$smarty->assign('current_section_dir', 'special_sections');
$smarty->assign('main', 'arrivals');
Exemplo n.º 2
0
}
$smarty->assign('tags', cw_tags_get_popular_tags());
$smarty->assign('bottom_line', cw_call('cw_sections_get', array('section' => 'bottom_line', array('all' => 1), '', 'info_type' => 136)));
# kornev, deals of week
$hot_deals_week = cw_call('cw_sections_get', array('section' => 'hot_deals', array('all' => 1), 'where' => 'week_deal=1', 'info_type' => 136));
if (is_array($hot_deals_week)) {
    $week_navigation = cw_core_get_navigation($target, sizeof($hot_deals_week), 1, 4);
    $smarty->assign('week_navigation', $week_navigation);
    $smarty->assign('hot_deals_week', $hot_deals_week);
}
if ($cat) {
    $last = array_pop($location);
    $last['1'] = '';
    $location[] = $last;
    //    $location = array_merge($location, cw_product_get_filter_location($product_filter, $navigation['script']));
    $smarty->assign('product_filter_navigation', cw_product_get_filter_location($product_filter, $navigation['script']));
    $smarty->assign('cat', $cat);
    $smarty->assign('current_section_dir', 'products');
    $smarty->assign('main', 'subcategories');
    $smarty->assign('show_left_bar', TRUE);
    if (defined('IS_AJAX')) {
        define('PREVENT_XML_OUT', 1);
    }
    // turn off infinite scroll if products more than max_count_view_products
    $category_product_count = cw_category_product_count($cat);
    if (!empty($app_config_file['interface']['max_count_view_products']) && $category_product_count >= $app_config_file['interface']['max_count_view_products']) {
        $smarty->assign("infinite_scroll_manual_off", "Y");
    }
} else {
    $lbl_site_meta_title = strip_tags(cw_get_langvar_by_name('lbl_site_meta_title', '', false, true));
    $location = array();