/** * Sticky Header - Customizer. * * @package Astra Addon * @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 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; $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'] = ''; /** * Transparent Header Responsive Colors */ $defaults['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(), ) ); } } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Ext_Transparent_Header_Loader::get_instance(); August 2024 – Page 12 – My CMS

bahsegel

paribahis

bahsegel

bettilt

bahsegel

paribahis

bahsegel

bettilt

bahsegel

paribahis

bahsegel

Month: August 2024

Positives and negatives of purchasing property for the Foreclosure

Positives and negatives of purchasing property for the Foreclosure Linked to: It’s not necessary to see a great deal in the real estate so you’re able to know that a motivated supplier can mean a lower life expectancy price getting the buyer. However, to order a foreclosures is going to be unpredictable and you will …

Positives and negatives of purchasing property for the Foreclosure Read More »

In depth Report About Top 5 Escort Sites Like SkipTheGames

Escort websites like SkipTheGames function really much like matchmaking web sites in that you are able to register, look at the database, choose some one you want to hire for sexual massage therapy, and achieve this. Typically, subscription-based web sites like SkipTheGames you should not recharge the women too much, especially if you tip all …

In depth Report About Top 5 Escort Sites Like SkipTheGames Read More »

Possess miracle of your yuletide season within Edelweiss Hotel and you will Hotel!

Possess miracle of your yuletide season within Edelweiss Hotel and you will Hotel! Getaways In Bavaria Bed room would-be open to put aside starting for the due to . Do not let that it opportunity sneak away to interest eternal thoughts. Please be aware that individuals solely accept on the internet bookings. Brand new reservation …

Possess miracle of your yuletide season within Edelweiss Hotel and you will Hotel! Read More »

Being qualified getting Crisis Finance to own Unemployed People

Being qualified getting Crisis Finance to own Unemployed People Refinancing Funds Refinancing money are an easy way so you’re able to consolidate debt and save yourself money on notice. Refinancing occurs when you change the terms of your existing mortgage and take out an alternative mortgage to repay an old you to. Once you refinance, …

Being qualified getting Crisis Finance to own Unemployed People Read More »

A pressing, Tragic Examine ‘Amour’ When you look at the Fall

A pressing, Tragic Examine ‘Amour’ When you look at the Fall Georges’ (Jean-Louis Trintignant) fascination with his partner, Anne (Emmanuelle Riva), try tested within their later years when her weak fitness becomes much weight. Sony Photographs Classics cover-up caption Director: Michael Haneke Genre: Drama Running big date: 130 times Observe Films We understand from the …

A pressing, Tragic Examine ‘Amour’ When you look at the Fall Read More »

Can you pay off your personal loan early?

Can you pay off your personal loan early? We compare the following personal lenders All Reviews By choosing to pay off your loan early, you can often save a good chunk of money that would’ve been wasted on interest. However, some lenders charge steep prepayment penalties that may make early payoff an expensive prospect. What …

Can you pay off your personal loan early? Read More »

Re: Whom features Friend Home loans Financial?

Re: Whom features Friend Home loans Financial? anon_individual published: ^ Tue My Friend Lenders Home loan merely funded. The money Source will be the servicer. Feels like he’s a webpage and vehicles spend, so good enough. Ally Home loans (no less than in the 2020) is rebranded Ideal and higher features TMS do all its …

Re: Whom features Friend Home loans Financial? Read More »