smarty->_tpl_vars[$k[0]][$k[1]])) { $template->smarty->_tpl_vars[$k[0]][$k[1]] = add_url_params($template->smarty->_tpl_vars[$k[0]][$k[1]], array($param => $_GET[$param])); } elseif (!isset($k[1]) and isset($template->smarty->_tpl_vars[$k[0]])) { $template->smarty->_tpl_vars[$k[0]] = add_url_params($template->smarty->_tpl_vars[$k[0]], array($param => $_GET[$param])); } } } function remove_main_block() { global $page, $template; if (isset($page['section']) and $page['section'] == 'categories' and !isset($page['category'])) { $template->set_prefilter('index', 'remove_main_block_prefilter'); } } function remove_main_block_prefilter($content, $smarty) { return preg_replace('#
.*
#s', '', $content); } ?>