????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 3.145.200.8 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/www.astacus.se/wp-content/themes/x/framework/functions/global/enqueue/ |
Upload File : |
<?php // ============================================================================= // FUNCTIONS/GLOBAL/ENQUEUE/STYLES.PHP // ----------------------------------------------------------------------------- // Theme styles. // ============================================================================= // ============================================================================= // TABLE OF CONTENTS // ----------------------------------------------------------------------------- // 01. Enqueue Site Styles // 02. Enqueue Admin Styles // 03. Enqueue Customizer Styles // 04. Output Generated Styles // 05. Filter Style Loader Tags // ============================================================================= // Enqueue Site Styles // ============================================================================= if ( ! function_exists( 'x_enqueue_site_styles' ) ) : function x_enqueue_site_styles() { // // Stack data. // $stack = x_get_stack(); $design = x_get_option( 'x_integrity_design' ); if ( $stack == 'integrity' && $design == 'light' ) { $ext = '-light'; } elseif ( $stack == 'integrity' && $design == 'dark' ) { $ext = '-dark'; } else { $ext = ''; } // // Register styles. // wp_register_style( 'x-stack', X_TEMPLATE_URL . '/framework/css/dist/site/stacks/' . $stack . $ext . '.css', NULL, X_VERSION, 'all' ); // // Enqueue styles. // if ( is_child_theme() ) { $dep = ( apply_filters( 'x_enqueue_parent_stylesheet', false ) ) ? array( 'x-stack' ) : NULL; wp_enqueue_style( 'x-child', get_stylesheet_directory_uri() . '/style.css', $dep, X_VERSION, 'all' ); } else { wp_enqueue_style( 'x-stack' ); } if ( is_rtl() ) { wp_enqueue_style( 'x-rtl', X_TEMPLATE_URL . '/framework/css/dist/site/rtl/' . $stack . '.css', NULL, X_VERSION, 'all' ); } if ( X_BBPRESS_IS_ACTIVE ) { if ( x_is_bbpress() ) { wp_deregister_style( 'buttons' ); } wp_deregister_style( 'bbp-default' ); wp_enqueue_style( 'x-bbpress', X_TEMPLATE_URL . '/framework/css/dist/site/bbpress/' . $stack . $ext . '.css', NULL, X_VERSION, 'all' ); } if ( X_BUDDYPRESS_IS_ACTIVE ) { wp_deregister_style( 'bp-legacy-css' ); wp_deregister_style( 'bp-admin-bar' ); wp_enqueue_style( 'x-buddypress', X_TEMPLATE_URL . '/framework/css/dist/site/buddypress/' . $stack . $ext . '.css', NULL, X_VERSION, 'all' ); } if ( X_WOOCOMMERCE_IS_ACTIVE ) { wp_deregister_style( 'woocommerce-layout' ); wp_deregister_style( 'woocommerce-general' ); wp_deregister_style( 'woocommerce-smallscreen' ); wp_enqueue_style( 'x-woocommerce', X_TEMPLATE_URL . '/framework/css/dist/site/woocommerce/' . $stack . $ext . '.css', NULL, X_VERSION, 'all' ); } if ( X_GRAVITY_FORMS_IS_ACTIVE ) { wp_enqueue_style( 'x-gravity-forms', X_TEMPLATE_URL . '/framework/css/dist/site/gravity_forms/' . $stack . $ext . '.css', NULL, X_VERSION, 'all' ); } if ( X_CONTACT_FORM_7_IS_ACTIVE ) { wp_deregister_style( 'contact-form-7' ); } x_enqueue_google_fonts(); } endif; add_action( 'wp_enqueue_scripts', 'x_enqueue_site_styles' ); // Enqueue Admin Styles // ============================================================================= if ( ! function_exists( 'x_enqueue_admin_styles' ) ) : function x_enqueue_admin_styles( $hook ) { wp_enqueue_style( x_tco()->handle( 'admin-css' ) ); wp_enqueue_style( 'x-base', X_TEMPLATE_URL . '/framework/css/dist/admin/base.css', NULL, X_VERSION, 'all' ); wp_enqueue_style( 'wp-color-picker' ); if ( strpos( $hook, 'x-extensions' ) != false ) { wp_enqueue_style( 'x-datepicker', X_TEMPLATE_URL . '/framework/css/dist/admin/datepicker.css', NULL, X_VERSION, 'all' ); } if ( X_VISUAL_COMOPSER_IS_ACTIVE ) { wp_enqueue_style( 'x-visual-composer', X_TEMPLATE_URL . '/framework/css/dist/admin/visual-composer.css', NULL, X_VERSION, 'all' ); } } endif; add_action( 'admin_enqueue_scripts', 'x_enqueue_admin_styles' ); // Enqueue Customizer Styles // ============================================================================= if ( ! function_exists( 'x_enqueue_customizer_controls_styles' ) ) : function x_enqueue_customizer_controls_styles() { wp_enqueue_style( 'x-customizer', X_TEMPLATE_URL . '/framework/css/dist/admin/customizer.css', NULL, X_VERSION, 'all' ); } endif; add_action( 'customize_controls_print_styles', 'x_enqueue_customizer_controls_styles' ); // Output Generated Styles // ============================================================================= if ( ! function_exists( 'x_output_generated_styles' ) ) : function x_output_generated_styles() { ob_start(); echo '<style id="x-generated-css" type="text/css">'; echo x_customizer_get_css(); do_action( 'x_head_css' ); echo x_get_option( 'x_custom_styles' ); echo '</style>'; $css = ob_get_clean(); echo $css; } endif; add_action( 'wp_head', 'x_output_generated_styles', 9998, 0 ); // Filter Style Loader Tags // ============================================================================= if ( ! function_exists( 'x_filter_style_loader_tag' ) ) : function x_filter_style_loader_tag( $tag, $handle ) { if ( X_BBPRESS_IS_ACTIVE ) { if ( $handle == 'editor-buttons' && x_is_bbpress() && ! is_admin() ) { $tag = ''; } } return $tag; } endif; add_filter( 'style_loader_tag', 'x_filter_style_loader_tag', 10, 2 );