$danhmuc = $dm[0]; if ($dm[1] == '') { $page = 1; $page_name = ''; } else { $page = $dm[1]; $page_name = ' - Page ' . $page; } $menu_one = $tc->menu_one($danhmuc); $row_menu_one = mysql_fetch_array($menu_one); $idMenu = $row_menu_one['id']; $type = $row_menu_one['type_id']; $lang = $row_menu_one['lang']; include "languages/{$lang}.php"; include_once 'config.php'; $menu_root = $tc->menu_root($row_menu_one['parent_id'], $idMenu); if (!@$_GET['detail']) { $row_menu_one['url_hinh'] == '' ? $image = 'http://' . $domain . '/' . url_default_image : ($image = 'http://' . $domain . '/' . url_catalog_image . $row_menu_one['url_hinh']); $url = 'http://' . $domain . '/' . $row_menu_one['url']; $title = strip_tags($row_menu_one['title'], ''); $title = str_replace('"', ' ', $title); $description = strip_tags($row_menu_one['metaDescription'], ''); $description = str_replace('"', ' ', $description); $keyword = strip_tags($row_menu_one['metaKeyword'], ''); $keyword = str_replace('"', ' ', $keyword); $seo = $tc->seo($domain, $title . $page_name, $description . $page_name, $keyword, $image, $url); $include = ob_start(); switch ($type) { case 2: include_once 'blocks/articles_list.php'; break;