本文整理汇总了PHP中sitemap_get_categoires_map函数的典型用法代码示例。如果您正苦于以下问题:PHP sitemap_get_categoires_map函数的具体用法?PHP sitemap_get_categoires_map怎么用?PHP sitemap_get_categoires_map使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了sitemap_get_categoires_map函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: b_sitemap_news
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;
}
示例2: _sitemap_xpress
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);
}
示例3: b_sitemap_booklists
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;
}
示例4: b_sitemap_weblinks
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;
}
示例5: b_sitemap_AMS
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;
}
示例6: b_sitemap_myAds
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;
}
示例7: b_sitemap_catads
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;
}
示例8: b_sitemap_debaser
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;
}
示例9: b_sitemap_tutorials
function b_sitemap_tutorials()
{
$xoopsDB =& Database::getInstance();
$block = sitemap_get_categoires_map($xoopsDB->prefix("tutorials_categorys"), "cid", "scid", "cname", "listutorials?cid=", "cname");
return $block;
}
示例10: b_sitemap_mydownloads
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;
}
示例11: b_sitemap_smartsection
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;
}
示例12: b_sitemap_wordpress
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;
}
示例13: b_sitemap_wfsection
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;
}
示例14: b_sitemap_myalbum
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;
}
示例15: b_sitemap_articles
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;
}