//-- SWS Bundle Installation script:---------------------------------
    function sws_install()
    {
        global $bundle;
        require_once WPCSS_PATH . 'includes/bundle.php';
        require_once WPCSS_PATH . 'includes/class.ImportExport.php';
        require_once WPCSS_PATH . 'includes/class.CSShortcodes.php';
        CSShortcodes::init_taxonomy();
        CSShortcodes::init_post_type();
        $o = new ImportExport();
        $o->import_bundle($bundle, $error);
        return true;
    }
    if (is_admin() && isset($_GET['activated']) && $pagenow == "themes.php") {
        //workaround until finding a hook for activation of themes.
        sws_install();
    }
    //--------------------------------------------------------
}
//--------------------------------------------------------------------------------------------------------------------
function tdCore_page_menu_args($args)
{
    $args['show_home'] = true;
    return $args;
}
// Add hometype most likely used in bricks for homepage
add_filter('body_class', 'homeType');
function homeType($classes)
{
    // Add the class when needed
    $HomebgType = get_option('_tdCore-home-bgType');
 function install_bundle_if_not_installed()
 {
     global $wpdb;
     $installed_shortcodes_count = intval($wpdb->get_var("SELECT count(ID) FROM `{$wpdb->posts}` WHERE post_type='csshortcode' AND post_status='publish'", 0, 0));
     if (0 == $installed_shortcodes_count) {
         sws_install();
     }
 }