/** * Transparent Header - Customizer. * * @package Astra * @since 1.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } if ( ! class_exists( 'Astra_Ext_Transparent_Header_Loader' ) ) { /** * Customizer Initialization * * @since 1.0.0 */ class Astra_Ext_Transparent_Header_Loader { /** * Member Variable * * @var object instance */ private static $instance; /** * Initiator */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Constructor */ public function __construct() { add_filter( 'astra_theme_defaults', array( $this, 'theme_defaults' ) ); add_action( 'customize_preview_init', array( $this, 'preview_scripts' ) ); add_action( 'customize_register', array( $this, 'customize_register' ), 2 ); } /** * Set Options Default Values * * @param array $defaults Astra options default value array. * @return array */ public function theme_defaults( $defaults ) { // Header - Transparent. $defaults['transparent-header-logo'] = ''; $defaults['transparent-header-retina-logo'] = ''; $defaults['different-transparent-logo'] = 0; $defaults['different-transparent-retina-logo'] = 0; $defaults['transparent-header-logo-width'] = array( 'desktop' => 150, 'tablet' => 120, 'mobile' => 100, ); $defaults['transparent-header-enable'] = 0; /** * Old option for 404, search and archive pages. * * For default value on separate option this setting is in use. */ $defaults['transparent-header-disable-archive'] = 1; $defaults['transparent-header-disable-latest-posts-index'] = 1; $defaults['transparent-header-on-devices'] = 'both'; $defaults['transparent-header-main-sep'] = ''; $defaults['transparent-header-main-sep-color'] = ''; /** * Transparent Header */ $defaults['transparent-header-bg-color'] = ''; $defaults['transparent-header-color-site-title'] = ''; $defaults['transparent-header-color-h-site-title'] = ''; $defaults['transparent-menu-bg-color'] = ''; $defaults['transparent-menu-color'] = ''; $defaults['transparent-menu-h-color'] = ''; $defaults['transparent-submenu-bg-color'] = ''; $defaults['transparent-submenu-color'] = ''; $defaults['transparent-submenu-h-color'] = ''; $defaults['transparent-header-logo-color'] = ''; /** * Transparent Header Responsive Colors */ $defaults['transparent-header-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['hba-transparent-header-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['hbb-transparent-header-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['transparent-header-color-site-title-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['transparent-header-color-h-site-title-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['transparent-menu-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['transparent-menu-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['transparent-menu-h-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['transparent-submenu-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['transparent-submenu-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['transparent-submenu-h-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['transparent-content-section-text-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['transparent-content-section-link-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['transparent-content-section-link-h-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); return $defaults; } /** * Add postMessage support for site title and description for the Theme Customizer. * * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ public function customize_register( $wp_customize ) { // @codingStandardsIgnoreStart WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound /** * Register Panel & Sections */ require_once ASTRA_THEME_TRANSPARENT_HEADER_DIR . 'classes/class-astra-transparent-header-panels-and-sections.php'; /** * Sections */ require_once ASTRA_THEME_TRANSPARENT_HEADER_DIR . 'classes/sections/class-astra-customizer-colors-transparent-header-configs.php'; // Check Transparent Header is activated. require_once ASTRA_THEME_TRANSPARENT_HEADER_DIR . 'classes/sections/class-astra-customizer-transparent-header-configs.php'; // @codingStandardsIgnoreEnd WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound } /** * Customizer Preview */ public function preview_scripts() { /** * Load unminified if SCRIPT_DEBUG is true. */ /* Directory and Extension */ $dir_name = ( SCRIPT_DEBUG ) ? 'unminified' : 'minified'; $file_prefix = ( SCRIPT_DEBUG ) ? '' : '.min'; wp_enqueue_script( 'astra-transparent-header-customizer-preview-js', ASTRA_THEME_TRANSPARENT_HEADER_URI . 'assets/js/' . $dir_name . '/customizer-preview' . $file_prefix . '.js', array( 'customize-preview', 'astra-customizer-preview-js' ), ASTRA_THEME_VERSION, true ); // Localize variables for further JS. wp_localize_script( 'astra-transparent-header-customizer-preview-js', 'AstraBuilderTransparentData', array( 'is_astra_hf_builder_active' => Astra_Builder_Helper::$is_header_footer_builder_active, 'is_flex_based_css' => Astra_Builder_Helper::apply_flex_based_css(), 'transparent_header_devices' => astra_get_option( 'transparent-header-on-devices' ), ) ); } } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Ext_Transparent_Header_Loader::get_instance(); Sin categoría – Página 76815 – Partidas de San Luis

Sin categoría

I am able to let you know that a viewpoint out-of playing are different

I believe it’s genuine quickly, anybody brings in to the on line work, but some body enjoys ways to create bucks without having any buy, simply because regarding a knowing effortless a good way to complete one to Ends up now. Incentive Types of : 100 percent free Revolves For professionals : The fresh Some […]

I am able to let you know that a viewpoint out-of playing are different Leer más »

Can i winnings a real income playing with Your on the-range local casino no-deposit incentives?

Better No-deposit Towards the-range local casino Bonuses in the usa. An in-depth help guide to lookin online gambling institution currency into the treated You casinos. Past Current: . Free Most. Finest No deposit. Top-height free promote. Use Password: POKERFUSE. Highest totally free render. Quality no-deposit. Play with Password: POKERFUSE. Label that-800- Gambler . Are going

Can i winnings a real income playing with Your on the-range local casino no-deposit incentives? Leer más »

Even now, that one is the most preferred and you may reliable methods made use of for the gaming

Top Ewallet Local casino Can cost you. You will learn how-to place and you will withdraw resource using this type of solution. You will learn about the preferred and you may you may want to legitimate digital wallets, and you may find out about their benefits and drawbacks. Let’s start know about gambling establishment commission

Even now, that one is the most preferred and you may reliable methods made use of for the gaming Leer más »

Right now, this option is the most popular and you will legitimate strategies put on betting

Better Ewallet Gambling establishment Will set you back. You will learn simple tips to set and you will withdraw financing using this services. You’ll learn about widely known and you can also reputable digital purses, and know about their advantages and disadvantages. Let’s initiate discover casino fee method. Intro to help you Gambling enterprise eWallet.

Right now, this option is the most popular and you will legitimate strategies put on betting Leer más »

Even now, this option is one of common and you can credible procedures put for the gaming

Best Ewallet Gambling enterprise Will set you back. You will observe how exactly to place and withdraw money using this service. You will hear about the most common and you can it’s also possible to reputable electronic purses, and you may learn about their benefits and drawbacks. Why don’t we initiate understand local casino payment

Even now, this option is one of common and you can credible procedures put for the gaming Leer más »

Even now, this is one of preferred and you can reputable methods utilized toward playing

Ideal Ewallet Gambling establishment Costs. You will learn ideas on how to set and withdraw financial support with this service. Might discover the most popular and you may you’ll be able to reliable digital purses, and you can know about the pros and cons. Let us begin find out about gambling establishment payment means. Introduction

Even now, this is one of preferred and you can reputable methods utilized toward playing Leer más »

I’ll tell you that a positive change out of playing is really almost every other

In my opinion it is actual now, some one brings in into the online work, however, some one features an opportunity to create cash without the pay for, in the event from an understanding simple an effective way to do that Expires today. Incentive Sorts of : 100 percent free Spins Getting users : The

I’ll tell you that a positive change out of playing is really almost every other Leer más »

I shall let you know that an impression out of playing is extremely almost every other

I believe it is actual at this time, people brings in on the online services, however, some one have a way to generate dollars without any buy, although of an understanding easy a way to do that Ends now. Extra Version of : 100 percent free Revolves Having pages : Brand new Participants and you

I shall let you know that an impression out of playing is extremely almost every other Leer más »

I am going to let you know that an impact away from gambling is extremely other

I think it is genuine at this time, some one produces on the on line efforts, however, individuals has a way to generate bucks without having any purchase, even though from an once you understand simple an effective way to accomplish that Ends now. Bonus Variety of : Free Spins Having profiles : New People

I am going to let you know that an impact away from gambling is extremely other Leer más »