template ) ); $urls = array( 'theme-url' => 'https://caeliora.deothemes.com/', 'docs' => 'https://docs.deothemes.com/caeliora', 'video-tutorials' => 'https://www.youtube.com/watch?v=KPaIODsG77o&list=PLaPNmyRO67T2JKpCvJ8utEpQ1rhrKnUo1&index=1', ); $videos = array( 'theme-installation' => array( 'links' => array(array( 'link_url' => 'https://www.youtube.com/watch?v=KPaIODsG77o&list=PLaPNmyRO67T2JKpCvJ8utEpQ1rhrKnUo1&index=1', 'link_text' => esc_html__( 'Theme Installation', 'caeliora' ), 'link_img_src' => CAELIORA_URI . '/admin/videos/caeliora_video_demo_import.jpg', )), ), ); $features = array( 'demos' => array( 'title' => esc_html__( 'Home Pages', 'caeliora' ), 'url' => '', 'free' => esc_html__( '1', 'caeliora' ), 'pro' => esc_html__( '10', 'caeliora' ), ), 'style-variations' => array( 'title' => esc_html__( 'Style Variations', 'caeliora' ), 'url' => '', 'free' => esc_html__( '1', 'caeliora' ), 'pro' => esc_html__( '8', 'caeliora' ), ), 'demo-import' => array( 'title' => esc_html__( 'One Click Demo Import', 'caeliora' ), 'url' => '', 'free' => '', 'pro' => '', ), 'header-layouts' => array( 'title' => esc_html__( 'Header Layouts', 'caeliora' ), 'url' => '', 'free' => esc_html__( '1', 'caeliora' ), 'pro' => esc_html__( '4', 'caeliora' ), ), 'featured-area-layouts' => array( 'title' => esc_html__( 'Featured Area Layouts', 'caeliora' ), 'url' => '', 'free' => esc_html__( '2', 'caeliora' ), 'pro' => esc_html__( '8', 'caeliora' ), ), 'post-grid-layouts' => array( 'title' => esc_html__( 'Post Grid Layouts', 'caeliora' ), 'url' => '', 'free' => esc_html__( '2', 'caeliora' ), 'pro' => esc_html__( '5', 'caeliora' ), ), 'promo-boxes-layouts' => array( 'title' => esc_html__( 'Promo Boxes Layouts', 'caeliora' ), 'url' => '', 'free' => esc_html__( '1', 'caeliora' ), 'pro' => esc_html__( '2', 'caeliora' ), ), 'single-post-layouts' => array( 'title' => esc_html__( 'Single Post Layouts', 'caeliora' ), 'url' => '', 'free' => esc_html__( '1', 'caeliora' ), 'pro' => esc_html__( '8', 'caeliora' ), ), 'custom-widgets' => array( 'title' => esc_html__( 'Custom Widgets', 'caeliora' ), 'url' => '', 'free' => esc_html__( '3', 'caeliora' ), 'pro' => esc_html__( '5', 'caeliora' ), ), 'posts-pages-customization' => array( 'title' => esc_html__( 'Posts and pages customization settings', 'caeliora' ), 'url' => '', 'free' => '', 'pro' => '', ), '24-7-support' => array( 'title' => esc_html__( 'Priority email support', 'caeliora' ), 'url' => '', 'free' => '', 'pro' => '', ), 'social-media' => array( 'title' => esc_html__( 'Social Media Icons', 'caeliora' ), 'url' => '', 'free' => '', 'pro' => '', ), 'acf-pro' => array( 'title' => esc_html__( 'ACF Pro integrated', 'caeliora' ), 'url' => '', 'free' => '', 'pro' => '', ), ); $demos = array( 'home-1' => array( 'title' => esc_html__( 'Main', 'caeliora' ), 'url' => $urls['theme-url'], 'preview' => CAELIORA_URI . '/admin/demo-previews/main_preview.jpg', ), 'home-2' => array( 'title' => esc_html__( 'Classic', 'caeliora' ), 'url' => $urls['theme-url'] . 'classic', 'preview' => CAELIORA_URI . '/admin/demo-previews/classic_preview.jpg', ), 'home-3' => array( 'title' => esc_html__( 'Minimal', 'caeliora' ), 'url' => $urls['theme-url'] . 'minimal', 'preview' => CAELIORA_URI . '/admin/demo-previews/minimal_preview.jpg', ), 'home-4' => array( 'title' => esc_html__( 'Travel', 'caeliora' ), 'url' => $urls['theme-url'] . 'travel', 'preview' => CAELIORA_URI . '/admin/demo-previews/travel_preview.jpg', ), 'home-5' => array( 'title' => esc_html__( 'Recipes', 'caeliora' ), 'url' => $urls['theme-url'] . 'recipes', 'preview' => CAELIORA_URI . '/admin/demo-previews/recipes_preview.jpg', ), 'home-6' => array( 'title' => esc_html__( 'Lifestyle', 'caeliora' ), 'url' => $urls['theme-url'] . 'lifestyle', 'preview' => CAELIORA_URI . '/admin/demo-previews/lifestyle_preview.jpg', ), 'home-7' => array( 'title' => esc_html__( 'Lifestyle 2', 'caeliora' ), 'url' => $urls['theme-url'] . 'lifestyle2', 'preview' => CAELIORA_URI . '/admin/demo-previews/lifestyle2_preview.jpg', ), 'home-8' => array( 'title' => esc_html__( 'Interior Design', 'caeliora' ), 'url' => $urls['theme-url'] . 'interior-design', 'preview' => CAELIORA_URI . '/admin/demo-previews/interior_preview.jpg', ), ); ?>

Install Plugins', 'caeliora' ); ?>

Import Demo Data', 'caeliora' ); ?>

array( 'class' => array(), 'aria-hidden' => array(), ), ) ); ?> array( 'class' => array(), 'aria-hidden' => array(), ), ) ); ?>
id === 'appearance_page_caeliora-theme' || $current_screen->id === 'toplevel_page_caeliora-theme' ) { return; } if ( is_admin() ) { $current_theme = wp_get_theme(); $welcome_dismissed = get_user_meta( $current_user->ID, 'caeliora_wizard_admin_notice' ); if ( ($current_theme->get( 'Name' ) == "Caeliora" || $current_theme->get( 'Name' ) == "Caeliora Pro") && !$welcome_dismissed ) { add_action( 'admin_notices', 'caeliora_wizard_admin_notice', 99 ); } wp_enqueue_style( 'caeliora-wizard-notice-css', get_template_directory_uri() . '/admin/wizard-notice.css' ); } } add_action( 'current_screen', 'caeliora_activation_admin_notice' ); /** * Adds a button to dismiss the notice */ function caeliora_dismiss_wizard_notice() { global $current_user; $user_id = $current_user->ID; if ( isset( $_GET['caeliora_wizard_dismiss'] ) && $_GET['caeliora_wizard_dismiss'] == '1' ) { add_user_meta( $user_id, 'caeliora_wizard_admin_notice', 'true', true ); } } add_action( 'admin_init', 'caeliora_dismiss_wizard_notice', 1 ); /** * Display an admin notice linking to the wizard screen */ function caeliora_wizard_admin_notice() { if ( current_user_can( 'customize' ) ) { ?>

&$value ) { if ( is_array( $value ) ) { caeliora_recursive_array_replace( $value, $search, $replace ); } else { if ( is_string( $value ) && strpos( $value, $search ) !== false ) { $array[$key] = str_replace( $search, $replace, $value ); } } } } /** * Migrate Sitka theme settings on install */ function caeliora_sitka_theme_migration() { if ( 1 != get_option( 'caeliora_sitka_migration_compete' ) ) { $settings = get_option( "theme_mods_sitka" ); $new_settings = array(); if ( $settings ) { // Migrate theme_mods foreach ( $settings as $key => $value ) { $new_key = str_replace( 'sitka', 'caeliora', $key ); $new_settings[$new_key] = $value; // Migrate global color if ( $key === 'sitka_colors_post_read_more_border' ) { $new_settings['caeliora_colors_global']['primary'] = $value; $new_settings['caeliora_colors_global']['links'] = $value; $new_settings['caeliora_colors_global']['buttons_bg'] = $value; } } update_option( 'theme_mods_caeliora-pro', $new_settings ); // Migrate widgets // 1. get the values of widget_sitka_ and copy them into the widget_caeliora_ $widgets = array( 'social_widget' => 'widget_sitka_social_widget', 'promo_widget' => 'widget_sitka_promo_widget', 'about_widget' => 'widget_sitka_about_widget', 'latest_news_widget' => 'widget_sitka_latest_news_widget', 'facebook_widget' => 'widget_sitka_facebook_widget', ); foreach ( $widgets as $key => $value ) { $widget_data = get_option( $value ); update_option( "widget_caeliora_{$key}", $widget_data ); } // 2. rename array sidebars_widgets sitka > caeliora $sidebar_widgets = get_option( 'sidebars_widgets' ); caeliora_recursive_array_replace( $sidebar_widgets, 'sitka', 'caeliora' ); update_option( 'sidebars_widgets', $sidebar_widgets ); } update_option( 'caeliora_sitka_migration_compete', 1 ); } } add_action( 'after_setup_theme', 'caeliora_sitka_theme_migration' );