/** * Starter Content Compatibility. * * @since 4.0.0 * @package Astra */ /** * Class Astre_Starter_Content */ class Astra_Starter_Content { public const HOME_SLUG = 'home'; public const ABOUT_SLUG = '#about'; public const SERVICES_SLUG = '#services'; public const REVIEWS_SLUG = '#reviews'; public const WHY_US_SLUG = '#whyus'; public const CONTACT_SLUG = '#contact'; /** * Constructor */ public function __construct() { $is_fresh_site = get_option( 'fresh_site' ); if ( ! $is_fresh_site ) { return; } // Adding post meta and inserting post. add_action( 'wp_insert_post', array( $this, 'register_listener', ), 3, 99 ); // Save astra settings into database. add_action( 'customize_save_after', array( $this, 'save_astra_settings', ), 10, 3 ); if ( ! is_customize_preview() ) { return; } // preview customizer values. add_filter( 'default_post_metadata', array( $this, 'starter_meta' ), 99, 3 ); add_filter( 'astra_theme_defaults', array( $this, 'theme_defaults' ) ); add_filter( 'astra_global_color_palette', array( $this, 'theme_color_palettes_defaults' ) ); } /** * Load default starter meta. * * @since 4.0.2 * @param mixed $value Value. * @param int $post_id Post id. * @param string $meta_key Meta key. * * @return string Meta value. */ public function starter_meta( $value, $post_id, $meta_key ) { if ( get_post_type( $post_id ) !== 'page' ) { return $value; } if ( 'site-content-layout' === $meta_key ) { return 'plain-container'; } if ( 'theme-transparent-header-meta' === $meta_key ) { return 'enabled'; } if ( 'site-sidebar-layout' === $meta_key ) { return 'no-sidebar'; } if ( 'site-post-title' === $meta_key ) { return 'disabled'; } return $value; } /** * Register listener to insert post. * * @since 4.0.0 * @param int $post_ID Post Id. * @param \WP_Post $post Post object. * @param bool $update Is update. */ public function register_listener( $post_ID, $post, $update ) { if ( $update ) { return; } $custom_draft_post_name = get_post_meta( $post_ID, '_customize_draft_post_name', true ); $is_from_starter_content = ! empty( $custom_draft_post_name ); if ( ! $is_from_starter_content ) { return; } if ( 'page' === $post->post_type ) { update_post_meta( $post_ID, 'site-content-layout', 'plain-container' ); update_post_meta( $post_ID, 'theme-transparent-header-meta', 'enabled' ); update_post_meta( $post_ID, 'site-sidebar-layout', 'no-sidebar' ); update_post_meta( $post_ID, 'site-post-title', 'disabled' ); } } /** * Get customizer json * * @since 4.0.0 * @return mixed value. */ public function get_customizer_json() { try { $request = wp_remote_get( ASTRA_THEME_URI . 'inc/compatibility/starter-content/astra-settings-export.json' ); } catch ( Exception $ex ) { $request = null; } if ( is_wp_error( $request ) ) { return false; // Bail early. } // @codingStandardsIgnoreStart /** * @psalm-suppress PossiblyNullReference * @psalm-suppress UndefinedMethod * @psalm-suppress PossiblyNullArrayAccess * @psalm-suppress PossiblyNullArgument * @psalm-suppress InvalidScalarArgument */ return json_decode( $request['body'], 1 ); // @codingStandardsIgnoreEnd } /** * Save Astra customizer settings into database. * * @since 4.0.0 */ public function save_astra_settings() { $settings = self::get_customizer_json(); // Delete existing dynamic CSS cache. delete_option( 'astra-settings' ); if ( ! empty( $settings['customizer-settings'] ) ) { foreach ( $settings['customizer-settings'] as $option => $value ) { update_option( $option, $value ); } } } /** * Load default astra settings. * * @since 4.0.0 * @param mixed $defaults defaults. * @return mixed value. */ public function theme_defaults( $defaults ) { $json = ''; $settings = self::get_customizer_json(); if ( ! empty( $settings['customizer-settings'] ) ) { $json = $settings['customizer-settings']['astra-settings']; } return $json ? $json : $defaults; } /** * Load default color palettes. * * @since 4.0.0 * @param mixed $defaults defaults. * @return mixed value. */ public function theme_color_palettes_defaults( $defaults ) { $json = ''; $settings = self::get_customizer_json(); if ( ! empty( $settings['customizer-settings'] ) ) { $json = $settings['customizer-settings']['astra-color-palettes']; } return $json ? $json : $defaults; } /** * Return starter content definition. * * @return mixed|void * @since 4.0.0 */ public function get() { $nav_items_header = array( 'home' => array( 'type' => 'post_type', 'object' => 'page', 'object_id' => '{{' . self::HOME_SLUG . '}}', ), 'about' => array( 'title' => __( 'Services', 'astra' ), 'type' => 'custom', 'url' => '{{' . self::SERVICES_SLUG . '}}', ), 'services' => array( 'title' => __( 'About', 'astra' ), 'type' => 'custom', 'url' => '{{' . self::ABOUT_SLUG . '}}', ), 'reviews' => array( 'title' => __( 'Reviews', 'astra' ), 'type' => 'custom', 'url' => '{{' . self::REVIEWS_SLUG . '}}', ), 'faq' => array( 'title' => __( 'Why Us', 'astra' ), 'type' => 'custom', 'url' => '{{' . self::WHY_US_SLUG . '}}', ), 'contact' => array( 'title' => __( 'Contact', 'astra' ), 'type' => 'custom', 'url' => '{{' . self::CONTACT_SLUG . '}}', ), ); $content = array( 'attachments' => array( 'logo' => array( 'post_title' => _x( 'Logo', 'Theme starter content', 'astra' ), 'file' => 'inc/assets/images/starter-content/logo.png', ), ), 'theme_mods' => array( 'custom_logo' => '{{logo}}', ), 'nav_menus' => array( 'primary' => array( 'name' => esc_html__( 'Primary', 'astra' ), 'items' => $nav_items_header, ), 'mobile_menu' => array( 'name' => esc_html__( 'Primary', 'astra' ), 'items' => $nav_items_header, ), ), 'options' => array( 'page_on_front' => '{{' . self::HOME_SLUG . '}}', 'show_on_front' => 'page', ), 'posts' => array( self::HOME_SLUG => require ASTRA_THEME_DIR . 'inc/compatibility/starter-content/home.php', // PHPCS:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound ), ); return apply_filters( 'astra_starter_content', $content ); } } Uncategorized - Bun Apeti - Burgers and more

Uncategorized

Magyar Online Casino a legjobb ügyfélszolgálattal és támogatással

Magyar Online Casino a legjobb ügyfélszolgálattal és támogatással ▶️ JÁTSZANI Содержимое Online Casino magyar – legjobb ügyfélidőszolgálat és támogatás Ügyfélszolgálati szolgáltatások Támogatás és segítség nyújtása Ha keresed a legjobb magyar online kasinót, akkor Magyar Online Casino a legjobb kiválasztás. A weboldal támogatja a magyar nyelvet, és biztosítja a játékosoknak a legjobb élményt. Ha nincs depositot […]

Magyar Online Casino a legjobb ügyfélszolgálattal és támogatással Read More »

Mostbet w Polsce – bonusy i promocje

Mostbet w Polsce – bonusy i promocje ▶️ GRAĆ Содержимое Witaj w świat bonusów i promocji Mostbet Mostbet – kasyno online Co warto wiedzieć o bonusach i promocjach Mostbet Mostbet – bonus powitalny Zakładaj swoją przyszłość z Mostbet Jeśli szukasz najlepszych możliwości hazardu online, mostbet jest idealnym wyborem. Ta popularna platforma hazardu oferuje wiele bonusów

Mostbet w Polsce – bonusy i promocje Read More »

Fantastische_winsten_behalen_kan_met_https_westacescasino-netherlands_nl_voor_de

Fantastische winsten behalen kan met https://westacescasino-netherlands.nl voor de ervaren speler Het Spelaanbod van West Aces Casino De Voordelen van Live Casino Spellen Bonussen en Promoties bij West Aces Casino Voorwaarden voor Bonussen en Promoties Betalingsmethoden en Veiligheid Het Belang van Veilige Betalingen Klantenservice en Ondersteuning Verantwoord Spelen bij West Aces Casino 🔥 Spelen ▶️ Fantastische

Fantastische_winsten_behalen_kan_met_https_westacescasino-netherlands_nl_voor_de Read More »

Fantastische_kansen_ontdek_je_bij_uspin_casino_met_aantrekkelijke_promoties

Fantastische kansen ontdek je bij uspin casino met aantrekkelijke promoties De Diversiteit aan Spellen bij uspin casino Live Casino Ervaring Bonussen en Promoties bij uspin casino Loyaliteitsprogramma Veiligheid en Betrouwbaarheid van uspin casino Verantwoord Gokken Klantenservice bij uspin casino Innovatie en de Toekomst van uspin casino 🔥 Spelen ▶️ Fantastische kansen ontdek je bij uspin

Fantastische_kansen_ontdek_je_bij_uspin_casino_met_aantrekkelijke_promoties Read More »

Genuine_fortune_awaits_players_exploring_exciting_possibilities_with_https_jackp

Genuine fortune awaits players exploring exciting possibilities with https://jackpot-raider-casino.uk and exclusive deals Understanding the World of Online Slot Games Progressive Jackpots: The Allure of Life-Changing Wins Navigating the Realm of Table Games Understanding House Edge and Player Advantage The Rise of Live Dealer Games Technological Advancements Enhancing the Live Casino Experience Responsible Gaming and Player

Genuine_fortune_awaits_players_exploring_exciting_possibilities_with_https_jackp Read More »

Uitgebreide_informatie_over_winbeast_en_de_impact_op_moderne_competitieplanning

Uitgebreide informatie over winbeast en de impact op moderne competitieplanning De Psychologie Achter Winnaars De Rol van Coaching en Teamdynamiek De Invloed van Technologie en Data-Analyse Het Gebruik van Virtuele Realiteit en Simulaties De Evolutie van Trainingsmethoden De Belangrijkheid van Fysieke Fitheid De Culturele Impact van Winnaarschap De Toekomst van Competitieplanning en De Rol van

Uitgebreide_informatie_over_winbeast_en_de_impact_op_moderne_competitieplanning Read More »

Succesul_tău_financiar_depinde_de_strategiile_alese_la_nv_casino_online_acum

Succesul tău financiar depinde de strategiile alese la nv casino online acum Înțelegerea Ofertelor și Bonusurilor oferite de nv casino Importanța Cerințelor de Pariere Gestionarea Bugetului și Jocul Responsabil la nv casino Stabilirea Limitelor Personale Strategii de Joc și Înțelegerea Diferitelor Tipuri de Jocuri Strategii pentru Blackjack și Ruletă Securitatea și Protecția Jucătorilor la nv

Succesul_tău_financiar_depinde_de_strategiile_alese_la_nv_casino_online_acum Read More »

Odkrywanie_bonusów_i_strategii_gry_w_kasynie_ninecasino_to_klucz_do_sukcesu

Odkrywanie bonusów i strategii gry w kasynie ninecasino to klucz do sukcesu Bonusy Powitalne i Oferty Specjalne w Ninecasino Wpływ Warunków Obrotu na Realną Wartość Bonusów Strategie Gry w Ninecasino – Jak Zwiększyć Swoje Szanse? RTP i Wybór Gry – Klucz do Rozsądnej Gry Wykorzystanie Programu Lojalnościowego Ninecasino Jak Maksymalizować Korzyści z Programu Lojalnościowego Odpowiedzialna

Odkrywanie_bonusów_i_strategii_gry_w_kasynie_ninecasino_to_klucz_do_sukcesu Read More »

Strategy_and_growth_with_https_thepacificspin-canada_ca_deliver_lasting_market_i

Strategy and growth with https://thepacificspin-canada.ca deliver lasting market impact Understanding Market Dynamics and Strategic Positioning The Role of Data Analytics in Strategic Decision-Making Developing Effective Marketing Campaigns The Power of Social Media Engagement Optimizing for Search Engines: SEO and Beyond Local SEO: Reaching Customers in Your Community Measuring and Analyzing Campaign Performance Beyond Immediate Results:

Strategy_and_growth_with_https_thepacificspin-canada_ca_deliver_lasting_market_i Read More »

/** * Template part for displaying the footer info. * * @link https://codex.wordpress.org/Template_Hierarchy * * @package Astra * @since 1.0.0 */ ?>
Scroll to Top