public function get_color_schemes($include_settings = false)
 {
     $return = false;
     // get default themes
     if (!empty($this->arrColorSchemes) && isset($this->arrColorSchemes['default']) != false) {
         //$return = $this->config['color_schemes'];
         $return = $this->arrColorSchemes;
         //new __debug( $return, 'default schemes' );
         // check for scheme paths
         foreach ($return as $strBaseSlug => $arrBaseMeta) {
             $return[$strBaseSlug]['scheme_path'] = trailingslashit(get_template_directory());
             // check for input file
             if (empty($arrBaseMeta['file'])) {
                 // default file = style.less
                 $return[$strBaseSlug]['file'] = 'style.less';
             }
             if (!empty($include_settings)) {
                 //new __debug('fetching settings');
                 $return[$strBaseSlug]['default_settings'] = $this->get_scheme_default_settings($strBaseSlug);
             }
             $return[$strBaseSlug]['_parser'] = 'plugin';
         }
     }
     // look out for backed up scheme
     if (cc2_Helper::has_settings_backup('scheme') != false) {
         $scheme_backup = cc2_Helper::get_settings_backup('scheme');
         if (!empty($scheme_backup) && !empty($scheme_backup['slug'])) {
             //new __debug( $scheme_backup, __METHOD__ );
             /*if( stripos( $scheme_backup['slug'], 'backup__' ) === false ) {
             		
             			$scheme_backup['slug'] = 'backup__'.$scheme_backup['slug'] ;
             		}*/
             $return[$scheme_backup['slug']] = $scheme_backup;
         }
     }
     return $return;
 }
function cc2_theme_activation()
{
    //require_once( get_template_directory() . '/includes/extras.php' );
    // check theme settings + restore if possible
    // option_name = theme_mods_{$theme_name}
    $theme_mods_backup = cc2_Helper::get_settings_backup('theme_mods');
    if (!empty($theme_mods_backup)) {
        update_option('theme_mods_cc2', $theme_mods_backup);
    }
    // set default scheme for initial theme set up
    if (get_theme_mod('color_scheme', false) == false) {
        set_theme_mod('color_scheme', 'default');
    }
    //     if ( is_admin() && isset( $_GET['activated'] ) && 'themes.php' == $GLOBALS['pagenow'] ) {
    //        //wp_redirect(admin_url('customize.php'));
    //
    //        wp_safe_redirect( add_query_arg( array( 'page' => 'cc2-welcome', 'return' => admin_url( 'themes.php') ), admin_url( apply_filters( 'cc2_welcome_screen_url', 'themes.php' ) ) ) );
    //
    //        exit;
    //    }
}
 function is_admin_page($path = false)
 {
     return cc2_Helper::is_admin_page($path);
 }