Пример #1
0
function xml_sitemap_config()
{
    // include in sitemap decisions, all other public content automatically included
    set_option('xml_sitemap_include_simple_pages', trim($_POST['xml_sitemap_include_simple_pages']));
    set_option('xml_sitemap_include_tags', trim($_POST['xml_sitemap_include_tags']));
    set_option('xml_sitemap_include_category_browser', trim($_POST['xml_sitemap_include_category_browser']));
    set_option('xml_sitemap_include_exhibits', trim($_POST['xml_sitemap_include_exhibits']));
    // ranking options for various functions
    set_option('xml_sitemap_item_ranking', trim($_POST['xml_sitemap_item_ranking']));
    set_option('xml_sitemap_exhibit_ranking', trim($_POST['xml_sitemap_exhibit_ranking']));
    set_option('xml_sitemap_collection_ranking', trim($_POST['xml_sitemap_collection_ranking']));
    set_option('xml_sitemap_catsandtags_ranking', trim($_POST['xml_sitemap_catsandtags_ranking']));
    set_option('xml_sitemap_main_ranking', trim($_POST['xml_sitemap_main_ranking']));
    set_option('xml_sitemap_home_ranking', trim($_POST['xml_sitemap_home_ranking']));
    // change frequencies for different content points
    set_option('xml_sitemap_change_home_freq', trim($_POST['xml_sitemap_change_home_freq']));
    set_option('xml_sitemap_change_main_freq', trim($_POST['xml_sitemap_change_main_freq']));
    set_option('xml_sitemap_change_item_freq', trim($_POST['xml_sitemap_change_item_freq']));
    set_option('xml_sitemap_change_exhibit_freq', trim($_POST['xml_sitemap_change_exhibit_freq']));
    set_option('xml_sitemap_change_collection_freq', trim($_POST['xml_sitemap_change_collection_freq']));
    set_option('xml_sitemap_change_catsandtags_freq', trim($_POST['xml_sitemap_change_catsandtags_freq']));
    xml_sitemap_build_sitemap();
}
 protected function _processForm()
 {
     if (!empty($_POST)) {
         xml_sitemap_build_sitemap();
     }
 }