src/HyyanAdminColorSchema.php
/**
     * Enqueue the registered color schemes on the front end
     */
Enqueue the registered color schemes on the front end
Enqueue the registered color schemes on the front end
function enqueueAdminBarColor() {
        if (!is_admin_bar_showing())
            return;
        $user_color = get_user_option('admin_color');
        if (isset($user_color)) {
            $setting = $this->getOptions();
            if (true == $setting['enbale-on-frontend']) {
                $wp_admin_color_schemes = get_option('wp_admin_color_schemes');
                if (isset($wp_admin_color_schemes[$user_color]))
                    wp_enqueue_style($user_color, $wp_admin_color_schemes[$user_color]->url);
            }
        }
    }
function enqueueAdminBarColor ( ) { if ( ! is_admin_bar_showing ( ) ) return ; $ user_color = get_user_option ( 'admin_color' ) ; if ( isset ( $ user_color ) ) { $ setting = $ this -> getOptions ( ) ; if ( true == $ setting [ 'enbale-on-frontend' ] ) { $ wp_admin_color_schemes = get_option ( 'wp_admin_color_schemes' ) ; if ( isset ( $ wp_admin_color_schemes [ $ user_color ] ) ) wp_enqueue_style ( $ user_color , $ wp_admin_color_schemes [ $ user_color ] -> url ) ; } } }
Enqueue the registered color schemes on the front end
Enqueue the registered color schemes on the front end