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

pinup casino mobil tətbiqi: oyunları harada tapmaq olar?

Kazino oyunları dünyası sürətlə inkişaf edir və müasir texnologiyalar sayəsində oyunçuların mobil cihazlardan ən sevdikləri oyunlara daxil olmaları daha asan olub. Mobil tətbiqlər, oyunçulara istədikləri yerdən və istədikləri vaxtda oynama imkanı tanıyır. Bu yazıda, onlayn kazino tətbiqi və pin up oyunu seçimi haqqında ətraflı məlumat verəcəyik. Yeni oyunçular üçün kazino siqnallarını necə oxumaq olar Onlayn […]

pinup casino mobil tətbiqi: oyunları harada tapmaq olar? Read More »

Как начать играть в Pinco casino: пошаговое руководство для новичков

Казино привлекает множество игроков своей атмосферой азарта и возможностью выигрыша. Знакомство с азартными играми может быть захватывающим, но для новичков важно понимать основы. В этой статье мы рассмотрим, как начать играть в казино, а также расскажем о мобильных приложениях, которые упрощают этот процесс, таких как пинко приложение , доступные на платформах Android и iOS. Как

Как начать играть в Pinco casino: пошаговое руководство для новичков Read More »

Top Case Pariuri Online: cum să protejezi informațiile tale personale

Într-o lume modernă, unde jocurile de noroc online câștigă din ce în ce mai multă popularitate, este esențial să înțelegi cum să te protejezi pe tine și informațiile tale personale. Această ghidare te va ajuta să navighezi în universul cazinourilor online, oferindu-ți atât strategii utile, cât și informații despre operatorii de pariuri online, cum ar

Top Case Pariuri Online: cum să protejezi informațiile tale personale Read More »

Descubre cómo garantizar la seguridad en tus pagos en pin up casino

En el mundo de los casinos en línea, la seguridad de los pagos es un aspecto crucial que todos los jugadores deben considerar. Con el crecimiento de los juegos de azar en línea, garantizar que tus transacciones sean seguras es fundamental para disfrutar de una experiencia sin preocupaciones. Además, plataformas populares como pin up ofrecen

Descubre cómo garantizar la seguridad en tus pagos en pin up casino Read More »

Pinup казино: как получить максимальные бонусы в 2026 году

В 2026 году мир азартных игр продолжает привлекать внимание игроков со всего мира. Казино становятся всё более доступными, а бонусные программы привлекают новых клиентов. В этом контексте Пинап официальный сайт предлагает уникальные возможности для своих пользователей. В данной статье мы рассмотрим, как получить максимальные бонусы и использовать их для успешной игры в этом онлайн-казино. Как

Pinup казино: как получить максимальные бонусы в 2026 году Read More »

Pin Up casino: лучшие игры и уникальные функции для незабываемого опыта

Казино стало настоящим развлечением для многих пользователей, и среди них особое место занимает Пин Ап казино, которое предлагает широкий выбор игр, уникальные функции и привлекательные бонусы, что делает его отличным выбором для любителей азартных развлечений. В этой статье мы рассмотрим, что делает Пин Ап казино таким привлекательным, как начать игру и какие особенности помогают создать

Pin Up casino: лучшие игры и уникальные функции для незабываемого опыта Read More »

Pin Up casino: топ-игры и функции, которые стоит попробовать

Казино всегда привлекали игроков своей атмосферой волнения и возможностью выиграть призы. Пин Ап казино предлагает широкий выбор игр и уникальные функции, которые делают его особенно интересным для азартных игроков, включая возможность казино Пинап играть в различные слоты и настольные игры. В этой статье мы подробно рассмотрим, что может предложить это онлайн-казино и какие игры стоит

Pin Up casino: топ-игры и функции, которые стоит попробовать Read More »

Pinco casino: yeni başlayanlar üçün ətraflı bələdçi

Onlayn kazino dünyası getdikcə populyarlaşır və yeni başlayanlar üçün bu alana daxil olmaq bəzən çətin görüne bilər, lakin Pinco az kazino, geniş oyun seçimi, müasir interfeysi və təhlükəsizlik standartları ilə oyunculara rahat və təhlükəsiz bir mühit təqdim edir. Bu bələdçi, Pinco kazino ilə tanış olmaq və bu platformadan maksimum istifadə etmək üçün sizə lazım olan

Pinco casino: yeni başlayanlar üçün ətraflı bələdçi Read More »

Nagad88 Bangladesh: Understanding the secure payment methods for online gaming

The rise of online gaming has transformed the gambling landscape in Bangladesh, offering players access to a diverse range of gaming options from the comfort of their homes. With platforms like nagad88 leading the way, understanding the secure payment methods available is crucial for a seamless gaming experience and a better overall enjoyment of the

Nagad88 Bangladesh: Understanding the secure payment methods for online gaming Read More »

Instant Withdrawal Casino Canada promotions in 2026: what you need to know for better

As the online gambling landscape continues to evolve, Canadian players are increasingly drawn to casinos that offer swift payouts and generous bonuses. In 2026, the focus on instant withdrawal casinos has intensified, with players seeking not just engaging gaming experiences but also secure and rapid financial transactions. This article delves into the significant features and

Instant Withdrawal Casino Canada promotions in 2026: what you need to know for better 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