/** * 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 ); } } Bun Apeti - Burgers and more - Page 7236 of 7613 - Something out of the Box

Ενσωμάτωση Πορτοφολιού Ολοκληρώθηκε Lamabet Casino Connects Δημοφιλείς Εφαρμογές για την Ελλάδα

Καθώς εξετάζω το μεταβαλλόμενο πεδίο των online τυχερών παιχνιδιών στην Ελλάδα, με εντυπωσιάζει το πώς η ενσωμάτωση του πορτοφολιού του Lamabet Casino μεταμορφώνει τον τρόπο με τον οποίο οι παίκτες επικοινωνούν με τις δημοφιλείς τους πλατφόρμες. Συνδέοντας δημοφιλείς εφαρμογές πληρωμών, υπόσχεται μια άνετη εμπειρία για καταθέσεις και αναλήψεις. Αλλά τι σημαίνει αυτό για το μέλλον […]

Ενσωμάτωση Πορτοφολιού Ολοκληρώθηκε Lamabet Casino Connects Δημοφιλείς Εφαρμογές για την Ελλάδα Read More »

Need voor Gokautomaten Casino biedt spelers in Nederland onafhankelijkheid bij elke draai

Als speler in Holland waardeer ik de onafhankelijkheid die online slots bij elke draai bieden. De verscheidenheid aan thema’s en innovatieve functies stelt me in staat mijn spelervaring aan te passen aan mijn voorkeuren. Het gaat niet alleen om geluk; het draait om strategie en plezier. Met promoties die de spanning verhogen, vraag ik me

Need voor Gokautomaten Casino biedt spelers in Nederland onafhankelijkheid bij elke draai Read More »

Wie schalten austrianische Spieler VIP-Prämien im SpinoGambino Casino zugänglich?

Bei der Untersuchung, wie österreichische Spieler im SpinoGambino Casino VIP-Prämien bekommen können, wird schnell deutlich, dass Engagement entscheidend ist. Konstantes Spielen und Einzahlen sind nur der Beginn. Doch es gibt spezielle Schritte und Taktiken, mit denen Sie sich von der Masse abheben und Ihren Rang in der Spielergemeinschaft erhöhen können. Neugierig, welche Schritte das sind

Wie schalten austrianische Spieler VIP-Prämien im SpinoGambino Casino zugänglich? Read More »

Opérations en monnaie réelle de tous les jours pour la France au casino Bwin

Bwin Casino met à disposition aux participants français la chance de jouer tous les jours en monnaie réelle. La site offre une large gamme de activités, comprenant des jeux de table traditionnels aux bandits manchots contemporaines, en incluant les jeux live. Des promotions régulières augmentent l’expérience ludique, et une interface conviviale garantit une navigation fluide.

Opérations en monnaie réelle de tous les jours pour la France au casino Bwin Read More »

A Lamabet Kaszinó lehetővé teszi, hogy megismerd a legjobb RTP-s online játékokat Magyarországon

Miközben a Lamabet Kaszinót kutattam, azt tapasztaltam, hogy lenyűgöző kínálatot kínálnak a legjobb RTP-jű játékokból, amelyeket kifejezetten magyar játékosok számára terveztek. A könnyen használható kezelőfelület megkönnyíti a klasszikus nyerőgépek és asztali játékok közötti navigációt. Főleg a kiemelkedő RTP-jű játékok, mint mint a “Book of Ra”, és a stratégiai opciók, mint például a Blackjack, ragadták meg

A Lamabet Kaszinó lehetővé teszi, hogy megismerd a legjobb RTP-s online játékokat Magyarországon Read More »

Guida alla iscrizione, istruzioni passo passo al RockWin Casino in Italia

Gestire la procedura di iscrizione al RockWin Casino in Italia è abbastanza semplice e ho alcuni step pratici per guidarti. Prima di tutto, ti accompagnerò attraverso la impostazione iniziale, dalla ricerca del sito web alla compilazione dei tuoi dati. Sapere come iscriversi in modo corretto può rivelare un mondo di game e offerte entusiasmanti. Curiosi

Guida alla iscrizione, istruzioni passo passo al RockWin Casino in Italia Read More »

Win Airlines Casino – Divertimenti emozionanti e premi onesti in Italia

Quando ho testato per la prima volta Win Airlines Casino, sono rimasto incuriosito dall’ampia varietà di giochi disponibili. Sembrava soddisfare tutti i tipi di giocatori, che preferissero le slot classiche o preferissero esperienze nuove e innovative. Anche l’impegno per il fair play ha catturato la mia attenzione. Ma ciò che distingue davvero questo casinò sono

Win Airlines Casino – Divertimenti emozionanti e premi onesti in Italia Read More »

Discover Secure and Quick Payments on Unibet Casino in Canada

Unibet Casino in Canada provides a thorough approach to secure and instant payments. With diverse deposit options, players can choose what suits them best. Advanced security measures ensure that personal information remains safe. Yet, the specifics of the withdrawal process and tips for effective fund management remain crucial. Understanding these elements can greatly boost the

Discover Secure and Quick Payments on Unibet Casino in Canada Read More »

Prezentare de ansamblu și caracteristici cheie la Unibet Casino pentru jucătorii din România

Pe măsură ce am analizat Unibet Casino, am descoperit o gamă largă de caracteristici care se adresează jucătorilor români. Varietatea jocurilor lor mi-a atras atenția, în special sloturile și jocurile de masă. Interfața cu utilizatorul a fost intuitivă, ceea ce a făcut explorarea simplă. În plus, am observat bonusuri atractive și o secțiune de cazinou

Prezentare de ansamblu și caracteristici cheie la Unibet Casino pentru jucătorii din România Read More »

¿Por qué las miniaturas de los juegos de casino de Bwin se cargan rápidamente? México Impaciente Tester

En el competitivo entorno de los juegos en línea, la velocidad de carga es fundamental para la satisfacción del usuario. Bwin Casino demuestra este concepto de manera efectiva en México. Las miniaturas de sus juegos se cargan rápidamente gracias a una avanzada tecnología y una novedosa compresión de imágenes. Esta eficacia no solo satisface las

¿Por qué las miniaturas de los juegos de casino de Bwin se cargan rápidamente? México Impaciente Tester 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