當前位置: 首頁>>代碼示例>>PHP>>正文


PHP sitemap_get_categoires_map函數代碼示例

本文整理匯總了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;
}
開發者ID:BackupTheBerlios,項目名稱:haxoo-svn,代碼行數:7,代碼來源:news.php

示例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);
 }
開發者ID:nouphet,項目名稱:rata,代碼行數:34,代碼來源:sitemap.plugin.php

示例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;
}
開發者ID:BackupTheBerlios,項目名稱:peakxoops-svn,代碼行數:7,代碼來源:booklists.php

示例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;
}
開發者ID:BackupTheBerlios,項目名稱:haxoo-svn,代碼行數:10,代碼來源:weblinks.php

示例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;
}
開發者ID:BackupTheBerlios,項目名稱:haxoo-svn,代碼行數:10,代碼來源:AMS.php

示例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&amp;cid=", "title");
    return $block;
}
開發者ID:BackupTheBerlios,項目名稱:haxoo-svn,代碼行數:6,代碼來源:myAds.php

示例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;
}
開發者ID:BackupTheBerlios,項目名稱:haxoo-svn,代碼行數:6,代碼來源:catads.php

示例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;
}
開發者ID:BackupTheBerlios,項目名稱:haxoo-svn,代碼行數:6,代碼來源:debaser.php

示例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;
}
開發者ID:BackupTheBerlios,項目名稱:haxoo-svn,代碼行數:6,代碼來源:tutorials.php

示例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;
}
開發者ID:BackupTheBerlios,項目名稱:haxoo-svn,代碼行數:6,代碼來源:mydownloads.php

示例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;
}
開發者ID:BackupTheBerlios,項目名稱:haxoo-svn,代碼行數:6,代碼來源:smartsection.php

示例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;
}
開發者ID:BackupTheBerlios,項目名稱:peakxoops-svn,代碼行數:6,代碼來源:wordpress.php

示例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;
}
開發者ID:BackupTheBerlios,項目名稱:haxoo-svn,代碼行數:6,代碼來源:wfsection.php

示例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;
}
開發者ID:BackupTheBerlios,項目名稱:haxoo-svn,代碼行數:6,代碼來源:myalbum.php

示例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;
}
開發者ID:BackupTheBerlios,項目名稱:peakxoops-svn,代碼行數:6,代碼來源:articles.php


注:本文中的sitemap_get_categoires_map函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。