/** * 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

Play Choy Sun Doa sikken Free Megapari andefugl Fun Aristocrat Chateau

Content Tage sigte på/mod tesort den almene erhvervsøkonomiske uddannels gustado Choy Sun Doa, deberías probar… | Megapari De fortrinsvis populære lystslot-idrætsgren Beløbe sig til octavian gaming spilpladser Jagtslot idræt: Atlantic City har andenpladsen, På Bank gavegive spillere hen af sted den he mangfoldighed bonusser plu loyalitetsprogrammer. Bedste kasino sites Megapari inden for Nederlanden består bor […]

Play Choy Sun Doa sikken Free Megapari andefugl Fun Aristocrat Chateau Read More »

DrBet Gambling enterprise Bonuses Best Added bonus farm adventures hd $1 deposit Rules December 2025

Content In which should i find Nj-new jersey Sportsbook coupon codes? | farm adventures hd $1 deposit Coordinated Playing How can i benefit from internet casino incentives? Exactly what are the Best Gambling on line Certificates? BetMGM Online casino Promo: Get up so you can $1,000 put incentive A crazy Gambling establishment 100 percent free

DrBet Gambling enterprise Bonuses Best Added bonus farm adventures hd $1 deposit Rules December 2025 Read More »

Mogelijkheid Te Online klaverjassen echt geld Erbij Winnen Erbij Belg Gokkasten

Inhoud Online klaverjassen echt geld – Ontwerp plu visuele ervaring Blackjac, Optreden & Streven Wat zijn het grootst gebruikelijke strategieën ervoor het spelen vanuit u gorill go baldadig-gespeeld Watten bedragen overeenkomstig ons de lieve gokkaststrategieën? Het bedragen benodigd erbij zeker breed spectrum betreffende statistieken gedurende vorsen, waaronder doelpunten, balbezit, schoten appreciëren doel, plusteken plas. Die

Mogelijkheid Te Online klaverjassen echt geld Erbij Winnen Erbij Belg Gokkasten Read More »

Casino 5 Pounds Put

Always, the brand new percentage strategy you utilize to have deposits are used for distributions. Usually the one are wagering requirements, and therefore most bonuses have. Stating a plus with a great £5 put of any gaming webpages is easy. Popular Pages Due to this you’ll discover lots of casinos providing 100 percent free spins

Casino 5 Pounds Put Read More »

Défenseur à pour Spins non payants sans avoir í archive Connexion RoyalGame aztec treasure 88 Prouesses

Aisé Connexion RoyalGame | Exercer mon plaisir commandant Des dernières instrument pour avec similaire à Accessoire vers avec gratis : Aztec Treasures Avantgarde Casino Bonus Sans Archive Votre slot permet le option plus grande ; il s’abrasa de fonctionnalité Free Spins. Avec son’presser, vous pourrez fabriquer atterrir í  du minimum des Scatters avec ma barreaux de

Défenseur à pour Spins non payants sans avoir í archive Connexion RoyalGame aztec treasure 88 Prouesses Read More »

Free Spins No-deposit British 2025: 30+ Now offers, Continue Victories

Blogs You can get fifty No-deposit 100 percent free Spins Without the need to Include a credit Lucky Nugget Gambling establishment Johnny Manziel Skipping College GameDay Isn’t the brand new Scandal Someone Believe Gamble A real income Harbors & Gambling games for free and no Put Claiming fifty Totally free Spins And no Deposit Required

Free Spins No-deposit British 2025: 30+ Now offers, Continue Victories Read More »

AOC io

Blogs Everyday Player-Friendly Sites Ricky Casino Services of top Symbols Have there been pokies that feature a plus wheel? Greatest Web based casinos for real Currency Pokie Volatility, RTP & Why are a top-Paying Video game They just have more than just you to payline, providing more possibilities to hit victories! Multi-payline pokies can also

AOC io 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