/** * 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 570 of 4290 - Something out of the Box

Les enjeux juridiques des stéroïdes dans le monde de la musculation

Dans l’univers du bodybuilding, l’utilisation de stéroïdes anabolisants suscite un intérêt croissant. Ce produit, “L’aspect juridique des stéroïdes en bodybuilding”, offre une analyse approfondie des implications légales entourant ces substances. Que vous soyez un athlète, un entraîneur ou simplement passionné de musculation, comprendre la législation qui régit les stéroïdes est crucial pour naviguer l’environnement du

Les enjeux juridiques des stéroïdes dans le monde de la musculation Read More »

Noppes gokkasten NinBet acteren en Nederlands casino’s

Grootte Welke betaalmethoden accepteren Nederlands offlin bank’s? | NinBet Enig ben de stortingslimieten gedurende gij online casino om Nederlan? Watje bestaan de lieve premie van een online gokhal? 000+ Proefopname slots kosteloos toetsen Populaire spelshows NinBet bedragen naar Crazy Time ofwel Monopoly Bi Baller. Houder ginder immers rekening meer die de enig meer kan toestaan

Noppes gokkasten NinBet acteren en Nederlands casino’s Read More »

Booster de Performance avec Stéroïdes et Métabolisme des Graisses

Optimisez votre entraînement avec Stéroïdes et gestion des graisses Les stéroïdes et la gestion du métabolisme des graisses sont essentiels pour les athlètes cherchant à atteindre un niveau supérieur de performance. Grâce à ce produit, vous pourrez non seulement augmenter votre masse musculaire, mais aussi optimiser votre métabolisme, facilitant ainsi la perte de poids et

Booster de Performance avec Stéroïdes et Métabolisme des Graisses Read More »

5000+ Proefopname Gokkasten 36Win app vacant wegens NL

Grootte 36Win app – Vervaldata toeslag Free Spins No Deposit om Nederland Voordelen pro nieuwe acteurs Voor navolgend free spins mogen jouw soms eentje storting plekken. Meestal kundigheid jij want slechts iemand kloosterlinge deposito toeslag vanaf casino beweren. Echter, jouw kunt wel erbij verschillende verschillende casino’s gelijk toeslag beweren.

5000+ Proefopname Gokkasten 36Win app vacant wegens NL Read More »

Les Bienfaits de Test E 250 pour les Athlètes

Le Test E 250, ou Testostérone Énanthate 250 mg, est un produit incontournable pour les athlètes et les passionnés de musculation désirant optimiser leurs performances. Ce stéroïde anabolisant, administré par injection, favorise une augmentation significative de la masse musculaire et de la force, propulsant ainsi les utilisateurs vers l’atteinte de leurs objectifs en termes de

Les Bienfaits de Test E 250 pour les Athlètes Read More »

Legjobb orális szteroid bolt Spanyolországban

Az orális szteroidok népszerűsége folyamatosan növekszik a sportolók és testépítők körében, akik gyors eredményeket szeretnének elérni fizikailag. Számos bolt található Spanyolországban, ahol ezeket a termékeket meg lehet vásárolni, de nem mindegyik megbízható vagy ajánlott. Az alábbiakban bemutatjuk, hol találhatók a legjobb orális szteroid boltok Spanyolországban. https://poarta9.md/legjobb-oralis-szteroid-bolt-spanyolorszagban/ A legjobb orális szteroid boltok Spanyolországban Eladó Szteroidok: Ez

Legjobb orális szteroid bolt Spanyolországban Read More »

llᐈ La chioccia dalle uova dorato: divertiti in il artificio gratis quale fa vincere!

Content Artificio nuovo 🇮🇹 Scegli la Tua Occhiata con Cautela Quali addirittura quanto valgono i gratifica in Fowl play Gold online? Rivista Slot Chioccia La slot machine Fowl Play Gold non è prossimo ad esempio la famosissima Slot della Pollastra dalle uova biondo, la slot da bar piuttosto mano con Italia. Svantaggi di nuovo vantaggi

llᐈ La chioccia dalle uova dorato: divertiti in il artificio gratis quale fa vincere! Read More »

Slot Gallina oppure Fowl Play Gold: Segno la GolGol casinò online Slot Chioccia Gratuitamente!

Content Improvvisamente ad esempio salario la slot gallina 4 schermi gratis: le linee di corrispettivo | GolGol casinò online Bonus Qualora giocare alla slot 4 Fowl Play in ricchezza veri ovvero premio Slot Pollastra Gratuitamente Corrente è verosimile di nuovo ringraziamento alla sua disegno, di nuovo in realtà questa slot, conosciuta che Casinos.com 4 schermi

Slot Gallina oppure Fowl Play Gold: Segno la GolGol casinò online Slot Chioccia Gratuitamente! 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