<?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' , 'nb-foody' ),
		'title%s%s%s%s' 		       => esc_html__( '%s%s Themes &lsaquo; Theme Setup: %s%s' , 'nb-foody' ),

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

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

		'welcome-header%s'         => esc_html__( 'Welcome to %s' , 'nb-foody' ),
		'welcome-header-success%s' => esc_html__( 'Hi. Welcome back' , 'nb-foody' ),
		'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.' , 'nb-foody' ),
		'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.' , 'nb-foody' ),

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

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

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

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

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

		'ready-link-1'             => wp_kses( sprintf( '<a href="%1$s" target="_blank">%2$s</a>', 'https://wordpress.org/support/', esc_html__( 'Explore WordPress', 'nb-foody' ) ), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ),
		'ready-link-2'             => wp_kses( sprintf( '<a href="%1$s" target="_blank">%2$s</a>', 'http://cmsmart.net', esc_html__( 'Get Theme Support', 'nb-foody' ) ), 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', 'nb-foody' ) ), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ),
	),
$plugins = array(
	array(
		'name' 		=> esc_html__('Woocommerce', 'nb-foody'),
		'slug' 		=> 'woocommerce',
		'required' 	=> true,
		'version' 	=> '3.5.1',
	),
		array(
		'name' 		=> esc_html__('Contact Form 7', 'nb-foody'),
		'slug' 		=> 'contact-form-7',
		'required' 	=> false,
		'version' 	=> '5.0.5',
	),
	array(
		'name' 		=> esc_html__('MailChimp for WordPress', 'nb-foody'),
		'slug' 		=> 'mailchimp-for-wp',
		'required' 	=> false,
		'version' 	=> '4.2.5',
	),
	array(
		'name' 		=> esc_html__('YITH WooCommerce Wishlist', 'nb-foody'),
		'slug' 		=> 'yith-woocommerce-wishlist',
		'required' 	=> true,
		'version' 	=> '2.2.5',
	),
	array(
		'name' 		=> esc_html__('YITH WooCommerce Quick View', 'nb-foody'),
		'slug' 		=> 'yith-woocommerce-quick-view',
		'required' 	=> true,
		'version' 	=> '1.3.5',
	),
	array(
        'name' 		=> esc_html__('Foody Elements', 'nb-foody'),
        'slug' 		=> 'foody-elements',
        'required' 	=> false,
        'version' 	=> '1.1.0',
        'source' 	=> get_template_directory() . '/plugins/foody-elements.zip',
	),
	array(
        'name' 		=> esc_html__('Netbase Element Foody', 'nb-foody'),
        'slug' 		=> 'netbase-elements-foody',
        'required' 	=> false,
        'version' 	=> '1.0.0',
        'source' 	=> get_template_directory() . '/plugins/netbase-elements-foody.zip',
	),
	array(
        'name' 		=> esc_html__('NetbaseTeam SimpleModal Login', 'nb-foody'),
        'slug' 		=> 'nbt-simplemodal-login',
        'required' 	=> false,
        'version' 	=> '1.1',
        'source' => get_template_directory() . '/plugins/nbt-simplemodal-login.zip',
	),
	array(
        'name' 		=> esc_html__('Open Table Widget', 'nb-foody'),
        'slug' 		=> 'open-table-widget',
        'required' 	=> false,
        'version' 	=> '1.8',
    ),
    array(
        'name' 		=> esc_html__('Restaurant Reservations', 'nb-foody'),
        'slug' 		=> 'restaurant-reservations',
        'required' 	=> false,
        'version' 	=> '1.7.8',
    ),
	array(
		'name' 		=> esc_html__('Slider Revolution', 'nb-foody'),
		'slug' 		=> 'revslider',
		'required' 	=> false,
		'version' 	=> '5.4.8',
		'source' 	=> get_template_directory() . '/plugins/revslider.zip',
	),
	array(
		'name' => esc_html__('WPBakery Visual Composer', 'nb-foody'),
		'slug' => 'js_composer',
		'required' => true,
		'version' => '5.5.4',
		'source' => get_template_directory() . '/plugins/js_composer.zip',
	),
	array(
		'name' => esc_html__('Ultimate Addons for WPBakery Page Builder', 'nb-foody'),
		'slug' => 'Ultimate_VC_Addons',
		'required' => true,
		'version' => '3.16.25',
		'source' => get_template_directory() . '/plugins/Ultimate_VC_Addons.zip',
	)
)
);

function princart_local_import_files() {
	return array(
		array(
			'import_file_name'             		=> 'Foody Pizza',
			'local_import_file_data'            => trailingslashit( get_template_directory() ) . 'import-files/ocdi/pizza/content.xml',
			'local_import_widget_file'     		=> trailingslashit( get_template_directory() ) . 'import-files/ocdi/pizza/widgets.wie',
			'local_import_customizer_file' 		=> trailingslashit( get_template_directory() ) . 'import-files/ocdi/pizza/customizer.dat',
			'local_import_rev_slider_file' 		=> trailingslashit( get_template_directory() ) . 'import-files/ocdi/pizza/pizza-1.zip',
			'import_preview_image_url'     		=> trailingslashit( get_template_directory_uri() ) . 'import-files/ocdi/pizza/screenshot.png',
			'import_notice'                		=> esc_html__( 'After you import this demo, you will have to setup the slider separately.', 'nb-foody' ),
			'title_home_page'                  	=> 'Home',
			'menu_settings'                 	=> array(
                'primary' 		=> 'Main Menu',
                'header-sub' 	=> 'Top Menu'
												),
		),
        array(
            'import_file_name'             		=> 'Foody Jruits',
            'url_path_child_theme'            => 'http://demo5.cmsmart.net/wordpress/foody/child-themes-foody/nb-foody-jruits.zip',
            'local_import_file_data'            => trailingslashit( get_template_directory() ) . 'import-files/ocdi/jruits/content.xml',
            'local_import_widget_file'     		=> trailingslashit( get_template_directory() ) . 'import-files/ocdi/jruits/widgets.wie',
            'local_import_customizer_file' 		=> trailingslashit( get_template_directory() ) . 'import-files/ocdi/jruits/customizer.dat',
            'local_import_rev_slider_file' 		=> trailingslashit( get_template_directory() ) . 'import-files/ocdi/jruits/slider-fruits.zip',
            'import_preview_image_url'     		=> trailingslashit( get_template_directory_uri() ) . 'import-files/ocdi/jruits/screenshot.png',
            'import_notice'                		=> esc_html__( 'After you import this demo, you will have to setup the slider separately.', 'nb-foody' ),
            'title_home_page'                  	=> 'Home-page',
            'menu_settings'                 	=> array(
                'primary' 		=> 'Home-menu',
            ),
        ),
        array(
            'import_file_name'             		=> 'Foody Bakery',
            'url_path_child_theme'            => 'http://demo5.cmsmart.net/wordpress/foody/child-themes-foody/nb-foody-bakery.zip',
            'local_import_file_data'            => trailingslashit( get_template_directory() ) . 'import-files/ocdi/bakery/content.xml',
            'local_import_widget_file'     		=> trailingslashit( get_template_directory() ) . 'import-files/ocdi/bakery/widgets.wie',
            'local_import_customizer_file' 		=> trailingslashit( get_template_directory() ) . 'import-files/ocdi/bakery/customizer.dat',
            'local_import_rev_slider_file' 		=> trailingslashit( get_template_directory() ) . 'import-files/ocdi/bakery/bakery-1.zip',
            'import_preview_image_url'     		=> trailingslashit( get_template_directory_uri() ) . 'import-files/ocdi/bakery/screenshot.png',
            'import_notice'                		=> esc_html__( 'After you import this demo, you will have to setup the slider separately.', 'nb-foody' ),
            'title_home_page'                  	=> 'Home',
            'menu_settings'                 	=> array(
                'primary' 		=> 'Main Menu',
                'header-sub' 	=> 'Sub menu'
            ),
        ),
        array(
            'import_file_name'             		=> 'Foody Capucifoo',
            'url_path_child_theme'            => 'http://demo5.cmsmart.net/wordpress/foody/child-themes-foody/nb-foody-coffee.zip',
            'local_import_file_data'            => trailingslashit( get_template_directory() ) . 'import-files/ocdi/capucifoo/content.xml',
            'local_import_widget_file'     		=> trailingslashit( get_template_directory() ) . 'import-files/ocdi/capucifoo/widgets.wie',
            'local_import_customizer_file' 		=> trailingslashit( get_template_directory() ) . 'import-files/ocdi/capucifoo/customizer.dat',
            'local_import_rev_slider_file' 		=> trailingslashit( get_template_directory() ) . 'import-files/ocdi/capucifoo/capucifoo.zip',
            'import_preview_image_url'     		=> trailingslashit( get_template_directory_uri() ) . 'import-files/ocdi/capucifoo/screenshot.png',
            'import_notice'                		=> esc_html__( 'After you import this demo, you will have to setup the slider separately.', 'nb-foody' ),
            'title_home_page'                  	=> 'Home',
            'menu_settings'                 	=> array(
                'primary' 		=> 'main menu',
            ),
		),
		array(
            'import_file_name'             		=> 'Foody Restaurant',
            'url_path_child_theme'            => 'http://demo5.cmsmart.net/wordpress/foody/child-themes-foody/nb-foody-restaurant.zip',
            'local_import_file_data'            => trailingslashit( get_template_directory() ) . 'import-files/ocdi/restafoo/content.xml',
            'local_import_widget_file'     		=> trailingslashit( get_template_directory() ) . 'import-files/ocdi/restafoo/widgets.wie',
            'local_import_customizer_file' 		=> trailingslashit( get_template_directory() ) . 'import-files/ocdi/restafoo/customizer.dat',
            'local_import_rev_slider_file' 		=> trailingslashit( get_template_directory() ) . 'import-files/ocdi/restafoo/slider-restaurant.zip',
            'import_preview_image_url'     		=> trailingslashit( get_template_directory_uri() ) . 'import-files/ocdi/restafoo/screenshot.png',
            'import_notice'                		=> esc_html__( 'After you import this demo, you will have to setup the slider separately.', 'nb-foody' ),
            'title_home_page'                  	=> 'Home',
            'menu_settings'                 	=> array(
                'primary' 		=> 'main menu',
            ),
		),
		array(
            'import_file_name'             		=> 'Foody Sushi',
            'url_path_child_theme'            => 'http://demo5.cmsmart.net/wordpress/foody/child-themes-foody/nb-foody-sushi.zip',
            'local_import_file_data'            => trailingslashit( get_template_directory() ) . 'import-files/ocdi/sushi/content.xml',
            'local_import_widget_file'     		=> trailingslashit( get_template_directory() ) . 'import-files/ocdi/sushi/widgets.wie',
            'local_import_customizer_file' 		=> trailingslashit( get_template_directory() ) . 'import-files/ocdi/sushi/customizer.dat',
            'local_import_rev_slider_file' 		=> trailingslashit( get_template_directory() ) . 'import-files/ocdi/sushi/sushifoo.zip',
            'import_preview_image_url'     		=> trailingslashit( get_template_directory_uri() ) . 'import-files/ocdi/sushi/screenshot.png',
            'import_notice'                		=> esc_html__( 'After you import this demo, you will have to setup the slider separately.', 'nb-foody' ),
            'title_home_page'                  	=> 'Home',
            'menu_settings'                 	=> array(
                'primary' 		=> 'main menu',
            ),
		),
		array(
            'import_file_name'             		=> 'Foody Wine',
            'url_path_child_theme'            => 'http://demo5.cmsmart.net/wordpress/foody/child-themes-foody/nb-foody-wine.zip',
            'local_import_file_data'            => trailingslashit( get_template_directory() ) . 'import-files/ocdi/wine/content.xml',
            'local_import_widget_file'     		=> trailingslashit( get_template_directory() ) . 'import-files/ocdi/wine/widgets.wie',
            'local_import_customizer_file' 		=> trailingslashit( get_template_directory() ) . 'import-files/ocdi/wine/customizer.dat',
            'local_import_rev_slider_file' 		=> trailingslashit( get_template_directory() ) . 'import-files/ocdi/wine/slider1.zip',
            'import_preview_image_url'     		=> trailingslashit( get_template_directory_uri() ) . 'import-files/ocdi/wine/screenshot.png',
            'import_notice'                		=> esc_html__( 'After you import this demo, you will have to setup the slider separately.', 'nb-foody' ),
            'title_home_page'                  	=> 'Home 1',
            'menu_settings'                 	=> array(
                'primary' 		=> 'main menu',
            ),
        )
	);
}
add_filter( 'merlin_import_files', 'princart_local_import_files' );