$listing_template = 'product_tops_list.html'; if (isset($_SESSION['listing_tops_template'])) { $listing_template = $_SESSION['listing_tops_template']; } if ($listing_template == 'product_tops_list.html') { $vamTemplate->assign('LISTING_TEMPLATE', 'product_tops_columns.html'); $vamTemplate->assign('LISTING_TEMPLATE_TEXT', 'плиткой'); } else { $vamTemplate->assign('LISTING_TEMPLATE', 'product_tops_list.html'); $vamTemplate->assign('LISTING_TEMPLATE_TEXT', 'списком'); } if (!$cache || $rebuild) { if (count($module_content) > 0) { $vamTemplate->assign('module_content', $module_content); if ($rebuild) { $vamTemplate->clear_cache(CURRENT_TEMPLATE . '/module/new_products_overview.html', $cache_id); } //$main_content = $vamTemplate->fetch(CURRENT_TEMPLATE . '/module/new_products_overview.html', $cache_id); $main_content = $vamTemplate->fetch(CURRENT_TEMPLATE . '/module/product_listing/' . $listing_template); } } else { //$main_content = $vamTemplate->fetch(CURRENT_TEMPLATE . '/module/new_products_overview.html', $cache_id); $main_content = $vamTemplate->fetch(CURRENT_TEMPLATE . '/module/product_listing/' . $listing_template); } $vamTemplate->assign('main_content', $main_content); $vamTemplate->caching = 0; if (!defined(RM)) { $vamTemplate->load_filter('output', 'note'); } $template = file_exists('templates/' . CURRENT_TEMPLATE . '/' . FILENAME_PRODUCTS_NEW . '.html') ? CURRENT_TEMPLATE . '/' . FILENAME_PRODUCTS_NEW . '.html' : CURRENT_TEMPLATE . '/index.html'; $vamTemplate->assign('category_depth', true);