<?php
if (!class_exists('Merlin')) {
    return;
}

/**
 * Set directory locations, text strings, and other settings for Merlin WP.
 */
$wizard = new Merlin(
// Configure Merlin with custom settings.
    $config = array(
        'directory' => '', // Location where the 'merlin' directory is placed.
        'merlin_url' => 'merlin', // Customize the page URL where Merlin WP loads.
        'child_action_btn_url' => 'https://codex.wordpress.org/Child_Themes',  // The URL for the 'child-action-link'.
        'help_mode' => false, // Set to true to turn on the little wizard helper.
        'dev_mode' => true, // Set to true if you're testing or developing.
        'branding' => true, // Set to false to remove Merlin WP's branding.
    ),
    // Text strings.
    $strings = array(
        'admin-menu' => esc_html__('Theme Setup', 'sparta'),
        'title%s%s%s%s' => esc_html__('%s%s Themes &lsaquo; Theme Setup: %s%s', 'sparta'),

        'return-to-dashboard' => esc_html__('Return to the dashboard', 'sparta'),

        'btn-skip' => esc_html__('Skip', 'sparta'),
        'btn-next' => esc_html__('Next', 'sparta'),
        'btn-start' => esc_html__('Start', 'sparta'),
        'btn-no' => esc_html__('Cancel', 'sparta'),
        'btn-plugins-install' => esc_html__('Install', 'sparta'),
        'btn-child-install' => esc_html__('Install', 'sparta'),
        'btn-content-install' => esc_html__('Install', 'sparta'),
        'btn-import' => esc_html__('Import', 'sparta'),

        'welcome-header%s' => esc_html__('Welcome to %s', 'sparta'),
        'welcome-header-success%s' => esc_html__('Hi. Welcome back', 'sparta'),
        'welcome%s' => esc_html__('This wizard will set up your theme, install plugins, and import content. It is optional & should take only a few minutes.', 'sparta'),
        'welcome-success%s' => esc_html__('You may have already run this theme setup wizard. If you would like to proceed anyway, click on the "Start" button below.', 'sparta'),

        'child-header' => esc_html__('Install Child Theme', 'sparta'),
        'child-header-success' => esc_html__('You\'re good to go!', 'sparta'),
        'child' => esc_html__('Let\'s build & activate a child theme so you may easily make theme changes.', 'sparta'),
        'child-success%s' => esc_html__('Your child theme has already been installed and is now activated, if it wasn\'t already.', 'sparta'),
        'child-action-link' => esc_html__('Learn about child themes', 'sparta'),
        'child-json-success%s' => esc_html__('Awesome. Your child theme has already been installed and is now activated.', 'sparta'),
        'child-json-already%s' => esc_html__('Awesome. Your child theme has been created and is now activated.', 'sparta'),

        'plugins-header' => esc_html__('Install %d plugins', 'sparta'),
        'plugins-header-success' => esc_html__('You\'re up to speed!', 'sparta'),
        'plugins' => esc_html__('Let\'s install some essential WordPress plugins to get your site up to speed.', 'sparta'),
        'plugins-success%s' => esc_html__('The required WordPress plugins are all installed and up to date. Press "Next" to continue the setup wizard.', 'sparta'),
        'plugins-action-link' => esc_html__('Advanced', 'sparta'),

        'import-header-1' => esc_html__('Choose your own theme', 'sparta'),
        'import-1' => esc_html__('See %d+ home layouts', 'sparta'),
        'import-header-2' => esc_html__('Choose Your Theme', 'sparta'),
        'import-2' => esc_html__('There are many unique and sophisticated theme are available on Sparta that you can choose the one is suitable for your use', 'sparta'),
        'import-header-3' => esc_html__('Import data', 'sparta'),
        'import-3' => esc_html__('You will get the demo data of the theme which you chose and you can customize it if you want', 'sparta'),
        'import-header-4' => esc_html__('Importing...', 'sparta'),
        'import-4' => esc_html__('Please be patient. It will be ended soon.
			Do not quit or shut down your browser', 'sparta'),
        'process-4' => esc_html__('Importing Sparta data', 'sparta'),

        'import-header' => esc_html__('Import Content', 'sparta'),
        'import' => esc_html__('Let\'s import content to your website, to help you get familiar with the theme.', 'sparta'),
        'import-action-link' => esc_html__('Advanced', 'sparta'),

        'ready-header' => esc_html__('Import Successfully!!!', 'sparta'),
        'ready%s' => esc_html__('Your site has been set up successfully. Enjoy your new site by %s', 'sparta'),
        'ready-action-link' => esc_html__('Extras', 'sparta'),
        'ready-big-button' => esc_html__('View your site', 'sparta'),

        'ready-link-1' => wp_kses(sprintf('<a href="%1$s" target="_blank">%2$s</a>', 'https://wordpress.org/support/', esc_html__('Explore WordPress', 'sparta')), array('a' => array('href' => array(), 'target' => array()))),
        'ready-link-3' => wp_kses(sprintf('<a href="' . admin_url('customize.php') . '" target="_blank">%s</a>', esc_html__('Start Customizing', 'sparta')), array('a' => array('href' => array(), 'target' => array()))),
    ),
    $plugins = array(
        array(
            'name' => esc_html__('Contact Form 7', 'sparta'),
            'slug' => 'contact-form-7',
            'required' => false,
            'version' => '',
        ),

        array(
            'name' => esc_html__('WooCommerce', 'sparta'),
            'slug' => 'woocommerce',
            'required' => false,
            'version' => '',
        ),

        array(
            'name' => esc_html__('Event Espresso 4 Decaf', 'sparta'),
            'slug' => 'event-espresso-decaf',
            'required' => false,
            'version' => '',
        ),

        array(
            'name' => esc_html__('MailChimp for WordPress', 'sparta'),
            'slug' => 'mailchimp-for-wp',
            'required' => false,
            'version' => '',
        ),

        array(
            'name' => esc_html__('Smart Slider 3', 'sparta'),
            'slug' => 'smart-slider-3',
            'required' => false,
            'version' => '',
        ),

        array(
            'name' => 'Hotel Booking',
            'slug' => 'motopress-hotel-booking',
            'required' => false,
            'version' => '',
            'source' => get_parent_theme_file_path() . '/inc/plugins/motopress-hotel-booking.zip',
        ),

        array(
            'name' => esc_html__('YITH WooCommerce Wishlist', 'sparta'),
            'slug' => 'yith-woocommerce-wishlist',
            'required' => false,
            'version' => '',
        ),

        array(
            'name' => 'WPBakery Page Builder',
            'slug' => 'js_composer',
            'required' => false,
            'version' => '',
            'source' => get_parent_theme_file_path() . '/inc/plugins/js_composer.zip',
        ),

    )
);

function sparta_local_import_files()
{
    return array(
        array(
            'import_file_name' => 'default',
            'local_import_file_data' => get_parent_theme_file_path('inc/import-files/default/demo-content.xml'),
            'local_import_widget_file' => get_parent_theme_file_path('inc/import-files/default/widgets.wie'),
            'local_import_customizer_file' => get_parent_theme_file_path('inc/import-files/default/customize.dat'),
            'local_import_smart_slider_file' => get_parent_theme_file_path('inc/import-files/sliders/populer_rooms.ss3'),
            'local_import_smart_slider_file2' => get_parent_theme_file_path('inc/import-files/sliders/reservation.ss3'),
            'local_import_smart_slider_file3' => get_parent_theme_file_path('inc/import-files/sliders/slider_full_width.ss3'),
            'local_import_smart_slider_file4' => get_parent_theme_file_path('inc/import-files/sliders/slider_video.ss3'),
            'local_import_smart_slider_file5' => get_parent_theme_file_path('inc/import-files/sliders/sparta_static.ss3'),

            'import_preview_image_url' => 'http://sparta.vikitheme.com/wp-content/uploads/2019/07/import-default.png',
            'import_notice' => esc_html__('After you import this demo, you will have to setup the slider separately.', 'sparta'),
            'preview_url' => 'http://sparta.vikitheme.com',
            'title_home_page' => 'Home Default',
            'menu_settings' => array(
                'main-menu' => 'main'
            ),
        ),
        array(
            'import_file_name' => 'dark',
            'local_import_file_data' => get_parent_theme_file_path('inc/import-files/default/demo-content.xml'),
            'local_import_widget_file' => get_parent_theme_file_path('inc/import-files/default/widgets.wie'),
            'local_import_customizer_file' => get_parent_theme_file_path('inc/import-files/default/customize.dat'),
            'local_import_smart_slider_file' => get_parent_theme_file_path('inc/import-files/sliders/populer_rooms.ss3'),
            'local_import_smart_slider_file2' => get_parent_theme_file_path('inc/import-files/sliders/reservation.ss3'),
            'local_import_smart_slider_file3' => get_parent_theme_file_path('inc/import-files/sliders/slider_full_width.ss3'),
            'local_import_smart_slider_file4' => get_parent_theme_file_path('inc/import-files/sliders/slider_video.ss3'),
            'local_import_smart_slider_file5' => get_parent_theme_file_path('inc/import-files/sliders/sparta_static.ss3'),

            'import_preview_image_url' => 'http://sparta.vikitheme.com/wp-content/uploads/2019/07/import-home2-dark.png',
            'import_notice' => esc_html__('After you import this demo, you will have to setup the slider separately.', 'sparta'),
            'preview_url' => 'http://sparta.vikitheme.com/home-dark-background/',
            'title_home_page' => 'Home Dark Background',
            'menu_settings' => array(
                'main-menu' => 'main'
            ),
        ),
        
        array(
            'import_file_name' => 'fullscreen',
            'local_import_file_data' => get_parent_theme_file_path('inc/import-files/default/demo-content.xml'),
            'local_import_widget_file' => get_parent_theme_file_path('inc/import-files/default/widgets.wie'),
            'local_import_customizer_file' => get_parent_theme_file_path('inc/import-files/default/customize.dat'),
            'local_import_smart_slider_file' => get_parent_theme_file_path('inc/import-files/sliders/populer_rooms.ss3'),
            'local_import_smart_slider_file2' => get_parent_theme_file_path('inc/import-files/sliders/reservation.ss3'),
            'local_import_smart_slider_file3' => get_parent_theme_file_path('inc/import-files/sliders/slider_full_width.ss3'),
            'local_import_smart_slider_file4' => get_parent_theme_file_path('inc/import-files/sliders/slider_video.ss3'),
            'local_import_smart_slider_file5' => get_parent_theme_file_path('inc/import-files/sliders/sparta_static.ss3'),

            'import_preview_image_url' => 'http://sparta.vikitheme.com/wp-content/uploads/2019/07/import-home3.png',
            'import_notice' => esc_html__('After you import this demo, you will have to setup the slider separately.', 'sparta'),
            'preview_url' => 'http://sparta.vikitheme.com/home-fullscreen-menu/',
            'title_home_page' => 'Home Fullscreen Menu',
            'menu_settings' => array(
                'main-menu' => 'main'
            ),
        ),
        array(
            'import_file_name' => 'transparent',
            'local_import_file_data' => get_parent_theme_file_path('inc/import-files/default/demo-content.xml'),
            'local_import_widget_file' => get_parent_theme_file_path('inc/import-files/default/widgets.wie'),
            'local_import_customizer_file' => get_parent_theme_file_path('inc/import-files/default/customize.dat'),
            'local_import_smart_slider_file' => get_parent_theme_file_path('inc/import-files/sliders/populer_rooms.ss3'),
            'local_import_smart_slider_file2' => get_parent_theme_file_path('inc/import-files/sliders/reservation.ss3'),
            'local_import_smart_slider_file3' => get_parent_theme_file_path('inc/import-files/sliders/slider_full_width.ss3'),
            'local_import_smart_slider_file4' => get_parent_theme_file_path('inc/import-files/sliders/slider_video.ss3'),
            'local_import_smart_slider_file5' => get_parent_theme_file_path('inc/import-files/sliders/sparta_static.ss3'),

            'import_preview_image_url' => 'http://sparta.vikitheme.com/wp-content/uploads/2019/07/import-home4.png',
            'import_notice' => esc_html__('After you import this demo, you will have to setup the slider separately.', 'sparta'),
            'preview_url' => 'http://sparta.vikitheme.com/home-transparent/',
            'title_home_page' => 'Home Transparent',
            'menu_settings' => array(
                'main-menu' => 'main'
            ),
        ),

        array(
            'import_file_name' => 'fullwidth-transparent',
            'local_import_file_data' => get_parent_theme_file_path('inc/import-files/default/demo-content.xml'),
            'local_import_widget_file' => get_parent_theme_file_path('inc/import-files/default/widgets.wie'),
            'local_import_customizer_file' => get_parent_theme_file_path('inc/import-files/default/customize.dat'),
            'local_import_smart_slider_file' => get_parent_theme_file_path('inc/import-files/sliders/populer_rooms.ss3'),
            'local_import_smart_slider_file2' => get_parent_theme_file_path('inc/import-files/sliders/reservation.ss3'),
            'local_import_smart_slider_file3' => get_parent_theme_file_path('inc/import-files/sliders/slider_full_width.ss3'),
            'local_import_smart_slider_file4' => get_parent_theme_file_path('inc/import-files/sliders/slider_video.ss3'),
            'local_import_smart_slider_file5' => get_parent_theme_file_path('inc/import-files/sliders/sparta_static.ss3'),

            'import_preview_image_url' => 'http://sparta.vikitheme.com/wp-content/uploads/2019/07/import-home5.png',
            'import_notice' => esc_html__('After you import this demo, you will have to setup the slider separately.', 'sparta'),
            'preview_url' => 'http://sparta.vikitheme.com/home-fullwidth-transparent/',
            'title_home_page' => 'Home Full Width Transparent',
            'menu_settings' => array(
                'main-menu' => 'main'
            ),
        ),

        array(
            'import_file_name' => 'center',
            'local_import_file_data' => get_parent_theme_file_path('inc/import-files/default/demo-content.xml'),
            'local_import_widget_file' => get_parent_theme_file_path('inc/import-files/default/widgets.wie'),
            'local_import_customizer_file' => get_parent_theme_file_path('inc/import-files/default/customize.dat'),
            'local_import_smart_slider_file' => get_parent_theme_file_path('inc/import-files/sliders/populer_rooms.ss3'),
            'local_import_smart_slider_file2' => get_parent_theme_file_path('inc/import-files/sliders/reservation.ss3'),
            'local_import_smart_slider_file3' => get_parent_theme_file_path('inc/import-files/sliders/slider_full_width.ss3'),
            'local_import_smart_slider_file4' => get_parent_theme_file_path('inc/import-files/sliders/slider_video.ss3'),
            'local_import_smart_slider_file5' => get_parent_theme_file_path('inc/import-files/sliders/sparta_static.ss3'),

            'import_preview_image_url' => 'http://sparta.vikitheme.com/wp-content/uploads/2019/07/import-home6.png',
            'import_notice' => esc_html__('After you import this demo, you will have to setup the slider separately.', 'sparta'),
            'preview_url' => 'http://sparta.vikitheme.com/home-center-logo/',
            'title_home_page' => 'Home Center Logo',
            'menu_settings' => array(
                'main-menu' => 'main'
            ),
        ),

        array(
            'import_file_name' => 'fullwidth',
            'local_import_file_data' => get_parent_theme_file_path('inc/import-files/default/demo-content.xml'),
            'local_import_widget_file' => get_parent_theme_file_path('inc/import-files/default/widgets.wie'),
            'local_import_customizer_file' => get_parent_theme_file_path('inc/import-files/default/customize.dat'),
            'local_import_smart_slider_file' => get_parent_theme_file_path('inc/import-files/sliders/populer_rooms.ss3'),
            'local_import_smart_slider_file2' => get_parent_theme_file_path('inc/import-files/sliders/reservation.ss3'),
            'local_import_smart_slider_file3' => get_parent_theme_file_path('inc/import-files/sliders/slider_full_width.ss3'),
            'local_import_smart_slider_file4' => get_parent_theme_file_path('inc/import-files/sliders/slider_video.ss3'),
            'local_import_smart_slider_file5' => get_parent_theme_file_path('inc/import-files/sliders/sparta_static.ss3'),

            'import_preview_image_url' => 'http://sparta.vikitheme.com/wp-content/uploads/2019/07/import-home7.png',
            'import_notice' => esc_html__('After you import this demo, you will have to setup the slider separately.', 'sparta'),
            'preview_url' => 'http://sparta.vikitheme.com/home-header-full-width/',
            'title_home_page' => 'Home Header Full Width',
            'menu_settings' => array(
                'main-menu' => 'main'
            ),
        ),

        array(
            'import_file_name' => 'fullwidth2',
            'local_import_file_data' => get_parent_theme_file_path('inc/import-files/default/demo-content.xml'),
            'local_import_widget_file' => get_parent_theme_file_path('inc/import-files/default/widgets.wie'),
            'local_import_customizer_file' => get_parent_theme_file_path('inc/import-files/default/customize.dat'),
            'local_import_smart_slider_file' => get_parent_theme_file_path('inc/import-files/sliders/populer_rooms.ss3'),
            'local_import_smart_slider_file2' => get_parent_theme_file_path('inc/import-files/sliders/reservation.ss3'),
            'local_import_smart_slider_file3' => get_parent_theme_file_path('inc/import-files/sliders/slider_full_width.ss3'),
            'local_import_smart_slider_file4' => get_parent_theme_file_path('inc/import-files/sliders/slider_video.ss3'),
            'local_import_smart_slider_file5' => get_parent_theme_file_path('inc/import-files/sliders/sparta_static.ss3'),

            'import_preview_image_url' => 'http://sparta.vikitheme.com/wp-content/uploads/2019/07/import-home8.png',
            'import_notice' => esc_html__('After you import this demo, you will have to setup the slider separately.', 'sparta'),
            'preview_url' => 'http://sparta.vikitheme.com/home-header-full-width-2/',
            'title_home_page' => 'Home Header Full Width 2',
            'menu_settings' => array(
                'main-menu' => 'main'
            ),
        ),

        array(
            'import_file_name' => 'room',
            'local_import_file_data' => get_parent_theme_file_path('inc/import-files/default/demo-content.xml'),
            'local_import_widget_file' => get_parent_theme_file_path('inc/import-files/default/widgets.wie'),
            'local_import_customizer_file' => get_parent_theme_file_path('inc/import-files/default/customize.dat'),
            'local_import_smart_slider_file' => get_parent_theme_file_path('inc/import-files/sliders/populer_rooms.ss3'),
            'local_import_smart_slider_file2' => get_parent_theme_file_path('inc/import-files/sliders/reservation.ss3'),
            'local_import_smart_slider_file3' => get_parent_theme_file_path('inc/import-files/sliders/slider_full_width.ss3'),
            'local_import_smart_slider_file4' => get_parent_theme_file_path('inc/import-files/sliders/slider_video.ss3'),
            'local_import_smart_slider_file5' => get_parent_theme_file_path('inc/import-files/sliders/sparta_static.ss3'),

            'import_preview_image_url' => 'http://sparta.vikitheme.com/wp-content/uploads/2019/07/import-home9.png',
            'import_notice' => esc_html__('After you import this demo, you will have to setup the slider separately.', 'sparta'),
            'preview_url' => 'http://sparta.vikitheme.com/home-listing-room/',
            'title_home_page' => 'Home Listing Room',
            'menu_settings' => array(
                'main-menu' => 'main'
            ),
        ),

    );
}

add_filter('merlin_import_files', 'sparta_local_import_files');