/** * 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 ); } } Public - Bun Apeti - Burgers and more

Public

Safe gaming at Dot Net Tutorials: understanding deposits, withdrawals, and security measures

Gaming online has grown tremendously, with casinos leveraging digital gaming platforms to engage millions of players. As this market continues to evolve, understanding how deposits, withdrawals, and security measures work is essential for a safe and enjoyable gaming experience. Dot Net Tutorials provides insights into these elements, ensuring that players can navigate the landscape of […]

Safe gaming at Dot Net Tutorials: understanding deposits, withdrawals, and security measures Read More »

Pin Up Casino mobil tətbiqi: oyun oynamağı asanlaşdıran yeniliklər

Casino oyunları, əyləncənin və adrenalinin bir araya gəldiyi mühitlərdir. Son illərdə, bu sektorda baş verən sürətli inkişaflar sayəsində oyunçular üçün daha rahat, təhlükəsiz və əlçatan təcrübələr təqdim edilir. Bu yazıda, müxtəlif kazinoların mobil tətbiqləri, bonus sistemləri və pin up oyun seçimi ilə istifadəçilərə necə daha yaxşı xidmət etdiklərini araşdıracağıq. Bonuslar, Oyunlar və Hesab Açma: Praktik

Pin Up Casino mobil tətbiqi: oyun oynamağı asanlaşdıran yeniliklər Read More »

What features to explore in the top online casino games this year

As online casinos continue to evolve, 2026 is an exciting year for players seeking immersive gaming experiences. With a multitude of features enhancing gameplay and user interaction, understanding what to look for in top online casino games like axecasino2-au.com can significantly elevate your gaming journey. From innovative bonuses and dazzling graphics to user-friendly interfaces, this

What features to explore in the top online casino games this year Read More »

PinUp casino: reseña de la app móvil y sus increíbles bonificaciones

En el mundo del juego en línea, los casinos móviles se han vuelto esenciales para los apostadores que buscan una experiencia de juego fluida y accesible. PinUp casino se destaca en este ámbito, ofreciendo una app móvil intuitiva y una serie de bonificaciones atractivas que mejoran la experiencia de los jugadores, además de que pueden

PinUp casino: reseña de la app móvil y sus increíbles bonificaciones Read More »

Der ultimative Leitfaden für Ausländische Online Casinos Schweiz 2026: Boni, Spiele und

Im Jahr 2026 erfreuen sich ausländische Online Casinos in der Schweiz großer Beliebtheit. Spieler haben Zugang zu einer Vielzahl von Plattformen, die nicht nur zahlreiche Spiele anbieten, sondern auch beste ausländische online casinos lukrative Boni und attraktive Zahlungsmethoden bereitstellen. Dieser Leitfaden bietet einen umfassenden Überblick über das, was Spieler über ausländische Online Casinos in der

Der ultimative Leitfaden für Ausländische Online Casinos Schweiz 2026: Boni, Spiele und Read More »

Suosituimmat pelit netticasinolla: parhaat kolikkopelit ja live-pöydät

Nykyään netticasinot tarjoavat pelaajille valtavan valikoiman pelejä, joista suosituimmat ovat kolikkopelit ja live-pöydät. Kolikkopelit houkuttelevat käyttäjiä erilaisten teemojen, bonuspelien ja voittomahdollisuuksien ansiosta, kun taas live-pöydät tarjoavat autenttisen kasinokokemuksen suoraan omalta sohvalta. Erityisesti pelaajat, jotka etsivät uusia vaihtoehtoja, saattavat kiinnostua uudet kasinot ilman rekisteröitymistä , sillä ne tarjoavat usein ainutlaatuisia etuja ja innovatiivisia pelimuotoja. Tässä artikkelissa

Suosituimmat pelit netticasinolla: parhaat kolikkopelit ja live-pöydät Read More »

Maximize your experience at Real Money Non GamStop Casinos: Essential tips for UK players

The world of online casinos has evolved significantly, particularly for UK players seeking options outside traditional gaming regulations. Real money non GamStop casinos offer unique opportunities, allowing players to enjoy their favorite games without the constraints of self-exclusion lists. As you explore various platforms, consider how a non gamstop casino can provide an exciting environment

Maximize your experience at Real Money Non GamStop Casinos: Essential tips for UK players Read More »

Beste Online Casino Nederland: waar vind je de meeste waardevolle bonussen en RTP’s?

De wereld van online casino’s in Nederland is de afgelopen jaren sterk geëvolueerd. Met een breed scala aan opties kunnen spelers de beste ervaringen vinden, inclusief aantrekkelijke bonussen en hoge Return to Player (RTP) percentages. In dit artikel verkennen we de beste online casino’s in Nederland, zoals Beste online casino Nederland , voor 2026, met

Beste Online Casino Nederland: waar vind je de meeste waardevolle bonussen en RTP’s? Read More »

Gateway bonusar och erbjudanden: Så maximerar du ditt spelande 2026

Att spela på nätcasinon har blivit allt mer populärt, och det är viktigt att förstå vilka bonusar och erbjudanden som finns tillgängliga för spelare. Genom att använda rätt strategier kan du maximera din spelupplevelse och öka dina chanser att vinna. I denna artikel kommer vi att utforska hur du kan dra nytta av bonusar och

Gateway bonusar och erbjudanden: Så maximerar du ditt spelande 2026 Read More »

Spinalto Casino’s populaire live games: waar je als speler moet zijn

In de wereld van online gokken is het belangrijk om een casino te vinden dat niet alleen een breed scala aan spellen aanbiedt, maar ook een veilige en gebruiksvriendelijke omgeving biedt. Spinalto Casino is een uitstekende keuze voor Nederlandse spelers die op zoek zijn naar spannende live games en een uitgebreide collectie slots, zoals te

Spinalto Casino’s populaire live games: waar je als speler moet zijn 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