예제 #1
0
function activate_theme()
{
    if (!class_exists('FN_Pages_Setup')) {
        include_once get_stylesheet_directory() . '/vendor/FN_Theme_Setup.php';
    }
    FN_Pages_Setup::add()->set_home_page('Home Page')->set_post_status('publish')->setup();
    //Fn_Gen::instance()->remove_image_dimesions();
}
예제 #2
0
function bj_activate_theme()
{
    //if (!class_exists('FN_Pages_Setup')) include_once get_stylesheet_directory().'/vendor/FN_Theme_Setup.php';
    FN_Pages_Setup::add()->set_home_page('Home Page')->set_post_status('publish')->setup();
    //resets the home page to wordpress default (posts)
    FN_Pages_Setup::default_home_page_option();
    //Fn_Gen::instance()->remove_image_dimesions();
    csf_default_menus();
}