tosql($category_id, INTEGER); $db->query($sql); if($db->next_record()) { $category_name = get_translation($db->f("category_name")); $short_description = get_translation($db->f("short_description")); $full_description = get_translation($db->f("full_description")); $html_title = $category_name; if (strlen($short_description)) { $meta_description = $short_description; } else if (strlen($full_description)) { $meta_description = $full_description; } } } else { $html_title = FORUM_TITLE; } $t = new VA_Template($settings["templates_dir"]); $t->set_file("main","forums.html"); $t->set_var("FORUM_TITLE", FORUM_TITLE); $t->set_var("ALL_FORUM_TOPICS_MSG", ALL_FORUM_TOPICS_MSG); $t->set_var("current_href", "forums.php"); include_once ("./header.php"); if(is_array($page_settings)) { foreach($page_settings as $setting_name => $setting_value) { if ($setting_name == "top_products_block") { include_once ("./blocks/block_top_products.php"); top_products($setting_value); } else if ($setting_name == "products_top_sellers") { include_once ("./blocks/block_products_top_sellers.php"); products_top_sellers($setting_value); } else if ($setting_name == "products_latest") { include_once ("./blocks/block_products_latest.php"); products_latest($setting_value); } else if ($setting_name == "products_top_viewed") { include_once ("./blocks/block_products_top_viewed.php"); products_top_viewed($setting_value); } else if ($setting_name == "search_block") { include_once ("./blocks/block_search.php"); search_form($setting_value); } else if ($setting_name == "products_recently_viewed") { include_once ("./blocks/block_products_recently.php"); products_recently_viewed($setting_value); } else if ($setting_name == "login_block") { login_form($setting_value); } else if ($setting_name == "cart_block") { include_once ("./blocks/block_cart.php"); small_cart($setting_value); } else if ($setting_name == "subscribe_block") { include_once ("./blocks/block_subscribe.php"); subscribe_form($setting_value); } else if ($setting_name == "sms_test_block") { include_once ("./blocks/block_sms_test.php"); sms_test_form($setting_value); } else if ($setting_name == "poll_block") { include_once ("./blocks/block_poll.php"); poll_form($setting_value); } else if ($setting_name == "language_block") { include_once ("./blocks/block_language.php"); language_form($setting_value, $page_settings["language_selection"]); } else if ($setting_name == "currency_block") { include_once ("./blocks/block_currency.php"); currency_form($setting_value); } elseif ($setting_name == "layouts_block") { include_once("./blocks/block_layouts.php"); layouts($setting_value); } else if($setting_name == "forum_search_block") { include_once ("./blocks/block_forum_search.php"); forum_search($setting_value); } else if ($setting_name == "forum_latest") { include_once ("./blocks/block_forum_latest.php"); forum_latest($setting_value); } else if ($setting_name == "forum_top_viewed") { include_once ("./blocks/block_forum_top_viewed.php"); forum_top_viewed($setting_value); } else if($setting_name == "forum_list") { include_once ("./blocks/block_forum_list.php"); forum_list($setting_value); } else if($setting_name == "forum_breadcrumb") { include_once("./blocks/block_forum_breadcrumb.php"); forum_breadcrumb($setting_value); } else if (preg_match("/^navigation_block_(\d+)$/", $setting_name, $matches)) { include_once("./blocks/block_navigation.php"); navigation_menu($setting_value, $matches[1]); } else if (preg_match("/^custom_block_/", $setting_name)) { custom_block($setting_value, substr($setting_name, 13)); } else if (preg_match("/^banners_group_/", $setting_name)) { banners_group($setting_value, substr($setting_name, 14)); } } } if(!get_setting_value($page_settings, "left_column_hide", 0)) { $t->set_var("left_column_width", get_setting_value($page_settings, "left_column_width", "20%")); $t->parse("left_column", false); } if(!get_setting_value($page_settings, "middle_column_hide", 0)) { $t->set_var("middle_column_width", get_setting_value($page_settings, "middle_column_width", "60%")); $t->parse("middle_column", false); } if(!get_setting_value($page_settings, "right_column_hide", 0)) { $t->set_var("right_column_width", get_setting_value($page_settings, "right_column_width", "20%")); $t->parse("right_column", false); } include_once ("./footer.php"); $t->set_var("html_title", $html_title); $t->set_var("meta_keywords", $meta_keywords); $t->set_var("meta_description", get_meta_desc($meta_description)); $t->pparse("main"); ?>