Esempio n. 1
0
function xt_sitemap_index($force = false, $type = '')
{
    $option = $type == 'baidu' ? XT_OPTION_SITEMAP_BAIDU_INDEX : XT_OPTION_SITEMAP_INDEX;
    $value = '';
    if ($force) {
        $value = xt_sitemap_build_index($type);
    } else {
        $value = get_option($option);
        if (empty($value)) {
            $value = xt_sitemap_build_index($type);
        }
    }
    return $value;
}
Esempio n. 2
0
function xt_cron_sitemap()
{
    include XT_PLUGIN_DIR . '/xt-includes/sitemap.function.php';
    xt_sitemap_build_index();
    xt_sitemap_build_share();
    xt_sitemap_build_album();
    xt_sitemap_build_other();
    xt_sitemap_build_post();
    xt_sitemap_build_user();
}