function b_sitemap_news() { $xoopsDB =& Database::getInstance(); // news $block = sitemap_get_categoires_map($xoopsDB->prefix("topics"), "topic_id", "topic_pid", "topic_title", "index.php?storytopic=", "topic_title"); return $block; }
function _sitemap_xpress($mydirname) { global $sitemap_configs, $xoopsDB; if (!file_exists(XOOPS_ROOT_PATH . '/modules/' . $mydirname . '/wp-includes/version.php')) { return ''; } include XOOPS_ROOT_PATH . '/modules/' . $mydirname . '/wp-includes/version.php'; if ($wp_db_version < 6124) { // UNDER WP2.3 $block = sitemap_get_categoires_map($xoopsDB->prefix("wp_categories"), "cat_ID", "category_parent", "cat_name", "index.php?cat=", "cat_name"); return $block; } $disp_sub = @$sitemap_configs["show_subcategoris"]; $prefix = preg_replace('/wordpress/', 'wp', $mydirname); $prefix = $xoopsDB->prefix($prefix); require_once XOOPS_ROOT_PATH . '/modules/' . $mydirname . '/include/general_functions.php'; $options_tables = get_table_list($prefix, 'options'); $index = 0; $blogs = array(); foreach ($options_tables as $options_table) { $blog_url = get_blog_option($options_table, 'siteurl'); $blog_sub_url = preg_replace('/.*\\/' . $mydirname . '/', '', $blog_url); $blog_sub_url = preg_replace('/\\//', '', $blog_sub_url); if (!empty($blog_sub_url)) { $blog_sub_url = $blog_sub_url . '/'; } $blog_name = get_blog_option($options_table, 'blogname'); $db_prefix = get_multi_prefix($options_table, 'options'); $data = array('blog_name' => $blog_name, 'blog_sub_url' => $blog_sub_url, 'term_taxonomy' => $db_prefix . 'term_taxonomy', 'terms' => $db_prefix . 'terms'); $blogs[$index] = $data; $index++; } return xpress_get_categoires_map($blogs, $disp_sub); }
function b_sitemap_booklists() { $xoopsDB =& Database::getInstance(); $block = sitemap_get_categoires_map($xoopsDB->prefix("mybooks_cat"), "cid", "pid", "title", "viewcat.php?cid=", "title"); //$block["path"] = "viewcat.php?cid="; return $block; }
function b_sitemap_weblinks() { $xoopsDB =& Database::getInstance(); // news // $maptree = new SitemapTree($xoopsDB->prefix("topics"), "topic_id", "topic_pid"); // $block = $maptree->getCategoriesMap("topic_title", "topic_title"); $block = sitemap_get_categoires_map($xoopsDB->prefix("weblinks_category"), "cid", "pid", "title", "viewcat.php?cid=", "title"); //$block["path"] = "viewcat.php?cid="; return $block; }
function b_sitemap_AMS() { $xoopsDB =& Database::getInstance(); // news // $maptree = new SitemapTree($xoopsDB->prefix("topics"), "topic_id", "topic_pid"); // $block = $maptree->getCategoriesMap("topic_title", "topic_title"); $block = sitemap_get_categoires_map($xoopsDB->prefix("ams_topics"), "topic_id", "topic_pid", "topic_title", "index.php?storytopic=", "topic_title"); //$block["path"] = "index.php?storytopic="; return $block; }
function b_sitemap_myAds() { $xoopsDB =& Database::getInstance(); $block = sitemap_get_categoires_map($xoopsDB->prefix("ann_categories"), "cid", "pid", "title", "index.php?pa=view&cid=", "title"); return $block; }
function b_sitemap_catads() { $xoopsDB =& Database::getInstance(); $block = sitemap_get_categoires_map($xoopsDB->prefix("catads_cat"), "cat_id", "pid", "title", "adslist.php?cat_id=", "title"); return $block; }
function b_sitemap_debaser() { $xoopsDB =& Database::getInstance(); $block = sitemap_get_categoires_map($xoopsDB->prefix("debaser_genre"), "genreid", "subgenreid", "genretitle", "genre.php?genreid=", "genretitle"); return $block; }
function b_sitemap_tutorials() { $xoopsDB =& Database::getInstance(); $block = sitemap_get_categoires_map($xoopsDB->prefix("tutorials_categorys"), "cid", "scid", "cname", "listutorials?cid=", "cname"); return $block; }
function b_sitemap_mydownloads() { $xoopsDB =& Database::getInstance(); $block = sitemap_get_categoires_map($xoopsDB->prefix("mydownloads_cat"), "cid", "pid", "title", "viewcat.php?cid=", "title"); return $block; }
function b_sitemap_smartsection() { $xoopsDB =& Database::getInstance(); $block = sitemap_get_categoires_map($xoopsDB->prefix("smartsection_categories"), "categoryid", "parentid", "name", "category.php?categoryid=", "weight"); return $block; }
function b_sitemap_wordpress() { $xoopsDB =& Database::getInstance(); $block = sitemap_get_categoires_map($xoopsDB->prefix("wp_categories"), "cat_ID", "category_parent", "cat_name", "index.php?cat=", "cat_name"); return $block; }
function b_sitemap_wfsection() { $xoopsDB =& Database::getInstance(); $block = sitemap_get_categoires_map($xoopsDB->prefix("wfs_category"), "id", "pid", "title", "viewarticles.php?category=", "title"); return $block; }
function b_sitemap_myalbum() { $db =& Database::getInstance(); $block = sitemap_get_categoires_map($db->prefix("myalbum_cat"), "cid", "pid", "title", "viewcat.php?cid=", "title"); return $block; }
function b_sitemap_articles() { $xoopsDB =& Database::getInstance(); $block = sitemap_get_categoires_map($xoopsDB->prefix("articles_cat"), "id", "cat_parent_id", "cat_name", "index.php?cat_id=", "cat_name"); return $block; }
function b_sitemap_gnavi($mydirname) { $db =& Database::getInstance(); $ret = sitemap_get_categoires_map($db->prefix($mydirname . "_cat"), "cid", "pid", "title", "index.php?cid=", "title"); return $ret; }
function b_sitemap_weblog() { $xoopsDB =& Database::getInstance(); $block = sitemap_get_categoires_map($xoopsDB->prefix("weblog_category"), "cat_id", "cat_pid", "cat_title", "index.php?cat_id=", "cat_title"); return $block; }
function b_sitemap_piCal() { $xoopsDB =& Database::getInstance(); $block = sitemap_get_categoires_map($xoopsDB->prefix("pical_cat"), "cid", "pid", "cat_title", "index.php?cid=", "weight"); return $block; }
function b_sitemap_xcgal() { $xoopsDB =& Database::getInstance(); $block = sitemap_get_categoires_map($xoopsDB->prefix("xcgal_categories"), "cid", "parent", "name", "index.php?cat=", "pos"); return $block; }