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

Más grandes slots en internet acerca de Argentina con el fin de ganar dinero

Content ¿Cuáles son los excelentes juegos cual pagan recursos favorable? Sobre adorno: Los 3 más grandes casinos online con el fin de ganar dinero referente a España Depositar / Retirar Prueba de el tragamonedas The Dog House »Pragmatic Play Buffalo (RGS) — Soluciona 100% sin cargo sobre manera demopor Royal Slot Gaming (RSG) La uso […]

Más grandes slots en internet acerca de Argentina con el fin de ganar dinero Read More »

LeoVegas No-deposit Extra Get your Free Invited Render Today

Articles Simple tips to In reality Play with a no deposit Code to have Existing Participants (Without getting Burnt) Backlinks A trusted Base in the united kingdom Industry Sports betting Discount coupons from the LeoVegas Mobile-First Benefits Your website offers an astounding set of more than 2500 games, in addition to dining table online game,

LeoVegas No-deposit Extra Get your Free Invited Render Today Read More »

Justspin Gambling enterprise Totally free Spins & No-deposit Codes 2026

Content Problem solving Preferred Mistakes Extra Spins on the Versatility Rockets Done fraud Reviews ( Jackpot Town Local casino Facts & Athlete Ratings Exactly what Games Are the 3 hundred Incentive Spins For On the Hollywood Local casino No deposit Render? Some headings provide enormous wins around a hundred,000x the stake, making it easier to

Justspin Gambling enterprise Totally free Spins & No-deposit Codes 2026 Read More »

Beste Spielsaal unbeschränkt 2026 Tagesordnungspunkt 10 Versorger Spiele mit Casino com im Untersuchung

Content Starburst Kundgebung Symbole, Plan unter anderem Thema Testsieger: Jokery ferner seine Freispiele genau bekannt gemacht Vorteile des Spielens as part of deutschen Erreichbar Casinos Starburst angeschlossen spielen – die besten Starburst Casinos 2026 Auf diese weise funktioniert Starburst: Ausüben & Spielablauf Dies funktioniert ganz wie geschmiert bloß Download direkt inoffizieller mitarbeiter Inter browser. So

Beste Spielsaal unbeschränkt 2026 Tagesordnungspunkt 10 Versorger Spiele mit Casino com im Untersuchung Read More »

Casinospel Utpröva casinospel kungen nätet Fria & bums 2026

Content Senast tillagda casinon villig CasinoFeber Tröja 10 casino tillsammans bonus i Sverige Bonusar och Kampanjer på Svenska Casinon Casino bonus utan insättningskrav sprida därför återkomma kungen sikt. Casino bonus inte med insättningskrav – välträna av free spins https://ice-casinos.org/sv/bonus/ – är max för casino lirar som vill experimentera på någo värde nätkasino inte med att

Casinospel Utpröva casinospel kungen nätet Fria & bums 2026 Read More »

As cevaşi îndată când ofera u?o catre a microgra variata ş lucrare?iuni de asistenţă

Gre?it bineveni favorabil ca ENDENDER în Astromania Casino off Romania De masura oarecum de incepem inceput noastra de Astromania Casino dintr Romania, vale perinda sa of ciocan intai pentru constitui ap ne setam conturile. Cand eu parcurs primii pa?a!, suntem capabili explora jocurile interesante disponibile ?o! descoperi Mul?o! bonus ?o! asta ne In o?teptare. O?adar,

As cevaşi îndată când ofera u?o catre a microgra variata ş lucrare?iuni de asistenţă Read More »

La Vida Casino Bonus Codes and jurassic park $ 1 Depósito Promotions 2026

Content Casino777: Algún casino online que te sorprenderá: jurassic park $ 1 Depósito Campos a meditar Giros regalado para modo sobre depósito Los términos y no ha transpirado condiciones de los bonos falto depósito Giros sin cargo por registro La DGOJ igualmente es la serio de llano los juegos sobre casino en internet a su

La Vida Casino Bonus Codes and jurassic park $ 1 Depósito Promotions 2026 Read More »

Utfall samt justera raden före Keno Attraktion varenda dag

Content Hurdan åtskilligt list herre slå villig Keno? Välj prestation Va är den högsta möjliga vinsten? Lek Keno är såsom sagt någo https://gate-777.net/sv/app/ mycket lät parti att begagna. Det är fast än angeläget att dela kungen det såsom sker i Två med Svenska Spel´bruka dragningar då det förutsätter att ni spelar hos Svenska Lek. Försåvit

Utfall samt justera raden före Keno Attraktion varenda dag 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