/** * 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(); xtw1838790ca – Página 287 – Partidas de San Luis

xtw1838790ca

Les enjeux captivants des jeux d’argent en ligne entre passion et prudence

Les enjeux captivants des jeux d’argent en ligne entre passion et prudence Une passion grandissante pour les jeux d’argent en ligne Les jeux d’argent en ligne connaissent une popularité fulgurante, attirant des millions de Français chaque année. Cette passion se manifeste à travers des plateformes offrant une diversité incroyable de jeux, allant des traditionnels paris […]

Les enjeux captivants des jeux d’argent en ligne entre passion et prudence Leer más »

The Thrill of Chance Navigating the World of Gambling Adventures

The Thrill of Chance Navigating the World of Gambling Adventures Understanding the Allure of Gambling The world of gambling captivates millions around the globe, largely because of its inherent unpredictability. Individuals are drawn to the thrill of the unknown, where every game offers the promise of fortune or the allure of a spectacular win. The

The Thrill of Chance Navigating the World of Gambling Adventures Leer más »

Descubre las mejores estrategias para triunfar en el casino

Descubre las mejores estrategias para triunfar en el casino Estrategias básicas para principiantes Cuando se trata de jugar en un casino, es fundamental contar con un conocimiento básico de las estrategias más efectivas. Los principiantes deben empezar por familiarizarse con las reglas de los juegos que más les interesan. Conocer estas reglas no solo aumentará

Descubre las mejores estrategias para triunfar en el casino Leer más »

Les enjeux captivants des jeux de hasard et leurs répercussions sociétales

Les enjeux captivants des jeux de hasard et leurs répercussions sociétales Introduction aux jeux de hasard Les jeux de hasard, qui incluent des activités variées comme les paris sportifs, les loteries et les machines à sous, fascinent un large public à travers le monde. Leur popularité croissante souligne non seulement un goût pour le divertissement,

Les enjeux captivants des jeux de hasard et leurs répercussions sociétales Leer más »

Spil med held Oplev de skjulte hemmeligheder bag gambling i Danmark

Spil med held Oplev de skjulte hemmeligheder bag gambling i Danmark Forstå gamblingens verden Gambling i Danmark er en fascinerende verden, hvor held og strategi kolliderer. Mange danskere engagerer sig i forskellige former for spil, hvad enten det er online casinoer, sportsvæddemål eller klassiske spil som poker og blackjack. Denne industri har udviklet sig betydeligt

Spil med held Oplev de skjulte hemmeligheder bag gambling i Danmark Leer más »

Beyond Luck Mastering the Art of Casino Strategy

Beyond Luck Mastering the Art of Casino Strategy The Foundation of Casino Strategy At the core of successful casino play lies a comprehensive understanding of the games you choose to engage in. Many players mistakenly rely solely on luck, but mastering the art of casino strategy involves studying the intricacies of each game. Essential elements

Beyond Luck Mastering the Art of Casino Strategy Leer más »

Tajemnice gier w kasynie jak zwiększyć swoje szanse na wygraną

Tajemnice gier w kasynie jak zwiększyć swoje szanse na wygraną Rozumienie zasad gier Jednym z najważniejszych elementów, które mogą zwiększyć nasze szanse na wygraną w kasynie, jest gruntowne zrozumienie zasad gier, w które zamierzamy grać. Każda gra posiada swoje unikalne reguły, strategie oraz mechanizmy płatności. Na przykład w grach karcianych, takich jak blackjack, kluczowe jest

Tajemnice gier w kasynie jak zwiększyć swoje szanse na wygraną Leer más »

De aantrekkingskracht van kansspelen Een duik in de wereld van gokverslaving

De aantrekkingskracht van kansspelen Een duik in de wereld van gokverslaving De gevoelige allure van kansspelen Kansspelen hebben door de jaren heen een enorme aantrekkingskracht uitgeoefend op mensen van alle leeftijden. De spanning en opwinding die gepaard gaan met het plaatsen van een inzet, het draaien van een wiel of het schudden van de kaarten,

De aantrekkingskracht van kansspelen Een duik in de wereld van gokverslaving Leer más »

Mastering the Thrills of Chance A Deep Dive into Gambling Strategies

Mastering the Thrills of Chance A Deep Dive into Gambling Strategies Understanding the Basics of Gambling Gambling has captivated humans for centuries, drawing people in with the promise of excitement and the potential for big wins. Whether in a luxurious casino setting or through online platforms, the allure of chance creates a compelling experience. At

Mastering the Thrills of Chance A Deep Dive into Gambling Strategies Leer más »

Strategie Vincenti per Massimizzare il Divertimento nei Casinò Online

Strategie Vincenti per Massimizzare il Divertimento nei Casinò Online Conoscere i Giochi Per massimizzare il divertimento nei casinò online, è fondamentale conoscere i vari tipi di giochi disponibili. Che si tratti di slot machine, giochi di carte come il poker o il blackjack, o giochi da tavolo come la roulette, comprendere le regole e le

Strategie Vincenti per Massimizzare il Divertimento nei Casinò Online Leer más »