126 lines
		
	
	
		
			6.9 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			126 lines
		
	
	
		
			6.9 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| /**
 | |
|  * Merlin WP configuration file.
 | |
|  *
 | |
|  * @package   Merlin WP
 | |
|  * @version   @@pkg.version
 | |
|  * @link      https://merlinwp.com/
 | |
|  * @author    Rich Tabor, from ThemeBeans.com & the team at ProteusThemes.com
 | |
|  * @copyright Copyright (c) 2018, Merlin WP of Inventionn LLC
 | |
|  * @license   Licensed GPLv3 for Open Source Use
 | |
|  */
 | |
| 
 | |
| if ( ! class_exists( 'Merlin' ) ) {
 | |
| 	return;
 | |
| }
 | |
| 
 | |
| defined('THEMEKALIA_IMPORT_VENDOR_PATH') || define('THEMEKALIA_IMPORT_VENDOR_PATH', get_template_directory() . '/demo-import/vendor/');
 | |
| 
 | |
| require_once THEMEKALIA_IMPORT_VENDOR_PATH . 'autoload.php';
 | |
| 
 | |
| if ( ! class_exists( '\WP_Importer' ) ) {
 | |
| 	require ABSPATH . '/wp-admin/includes/class-wp-importer.php';
 | |
| }
 | |
| require_once get_template_directory() . '/demo-import/importer/WPImporterLogger.php';
 | |
| require_once get_template_directory() . '/demo-import/importer/WPImporterLoggerCLI.php';
 | |
| require_once get_template_directory() . '/demo-import/importer/WXRImportInfo.php';
 | |
| require_once get_template_directory() . '/demo-import/importer/WXRImporter.php';
 | |
| require_once get_template_directory() . '/demo-import/importer/Importer.php';
 | |
| /**
 | |
|  * Set directory locations, text strings, and settings.
 | |
|  */
 | |
| $wizard = new Merlin(
 | |
| 
 | |
| 	$config = array(
 | |
| 		'directory'            => 'demo-import',
 | |
| 		// Location / directory where Merlin WP is placed in your theme.
 | |
| 		'merlin_url'           => 'demo-import',
 | |
| 		// The wp-admin page slug where Merlin WP loads.
 | |
| 		'parent_slug'          => 'themes.php',
 | |
| 		// The wp-admin parent page slug for the admin menu item.
 | |
| 		'capability'           => 'manage_options',
 | |
| 		// The capability required for this menu to be displayed to the user.
 | |
| 		'child_action_btn_url' => 'https://codex.wordpress.org/child_themes',
 | |
| 		// URL for the 'child-action-link'.
 | |
| 		'dev_mode'             => true,
 | |
| 		// Enable development mode for testing.
 | |
| 		'license_step'         => false,
 | |
| 		// EDD license activation step.
 | |
| 		'license_required'     => false,
 | |
| 		// Require the license activation step.
 | |
| 		'license_help_url'     => '',
 | |
| 		// URL for the 'license-tooltip'.
 | |
| 		'edd_remote_api_url'   => '',
 | |
| 		// EDD_Theme_Updater_Admin remote_api_url.
 | |
| 		'edd_item_name'        => 'Thinkai',
 | |
| 		// EDD_Theme_Updater_Admin item_name.
 | |
| 		'edd_theme_slug'       => 'thinkai',
 | |
| 		// EDD_Theme_Updater_Admin item_slug.
 | |
| 		'ready_big_button_url' => home_url( '/' ),
 | |
| 		// Link for the big button on the ready step.
 | |
| 	),
 | |
| 	$strings = array(
 | |
| 		'admin-menu'          => esc_html__( 'Theme Kalia Import', 'thinkai' ),
 | |
| 
 | |
| 		/* translators: 1: Title Tag 2: Theme Name 3: Closing Title Tag */
 | |
| 		'title%s%s%s%s'       => esc_html__( '%1$s%2$s Themes ‹ Theme Setup: %3$s%4$s', 'thinkai' ),
 | |
| 		'return-to-dashboard' => esc_html__( 'Return to the dashboard', 'thinkai' ),
 | |
| 		'ignore'              => esc_html__( 'Disable this wizard', 'thinkai' ),
 | |
| 
 | |
| 		'btn-skip'                 => esc_html__( 'Skip', 'thinkai' ),
 | |
| 		'btn-next'                 => esc_html__( 'Next', 'thinkai' ),
 | |
| 		'btn-start'                => esc_html__( 'Start', 'thinkai' ),
 | |
| 		'btn-no'                   => esc_html__( 'Cancel', 'thinkai' ),
 | |
| 		'btn-plugins-install'      => esc_html__( 'Install', 'thinkai' ),
 | |
| 		'btn-child-install'        => esc_html__( 'Install', 'thinkai' ),
 | |
| 		'btn-content-install'      => esc_html__( 'Install', 'thinkai' ),
 | |
| 		'btn-import'               => esc_html__( 'Import', 'thinkai' ),
 | |
| 		'btn-license-activate'     => esc_html__( 'Activate', 'thinkai' ),
 | |
| 		'btn-license-skip'         => esc_html__( 'Later', 'thinkai' ),
 | |
| 
 | |
| 		/* translators: Theme Name */
 | |
| 		'license-header%s'         => esc_html__( 'Activate %s', 'thinkai' ),
 | |
| 		/* translators: Theme Name */
 | |
| 		'license-header-success%s' => esc_html__( '%s is Activated', 'thinkai' ),
 | |
| 		/* translators: Theme Name */
 | |
| 		'license%s'                => esc_html__( 'Enter your license key to enable remote updates and theme support.', 'thinkai' ),
 | |
| 		'license-label'            => esc_html__( 'License key', 'thinkai' ),
 | |
| 		'license-success%s'        => esc_html__( 'The theme is already registered, so you can go to the next step!', 'thinkai' ),
 | |
| 		'license-json-success%s'   => esc_html__( 'Your theme is activated! Remote updates and theme support are enabled.', 'thinkai' ),
 | |
| 		'license-tooltip'          => esc_html__( 'Need help?', 'thinkai' ),
 | |
| 
 | |
| 		/* translators: Theme Name */
 | |
| 		'welcome-header%s'         => esc_html__( 'Welcome to %s', 'thinkai' ),
 | |
| 		'welcome-header-success%s' => esc_html__( 'Hi. Welcome back', 'thinkai' ),
 | |
| 		'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.', 'thinkai' ),
 | |
| 		'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.', 'thinkai' ),
 | |
| 
 | |
| 		'child-header'         => esc_html__( 'Install Child Theme', 'thinkai' ),
 | |
| 		'child-header-success' => esc_html__( 'You\'re good to go!', 'thinkai' ),
 | |
| 		'child'                => esc_html__( 'Let\'s build & activate a child theme so you may easily make theme changes.', 'thinkai' ),
 | |
| 		'child-success%s'      => esc_html__( 'Your child theme has already been installed and is now activated, if it wasn\'t already.', 'thinkai' ),
 | |
| 		'child-action-link'    => esc_html__( 'Learn about child themes', 'thinkai' ),
 | |
| 		'child-json-success%s' => esc_html__( 'Awesome. Your child theme has already been installed and is now activated.', 'thinkai' ),
 | |
| 		'child-json-already%s' => esc_html__( 'Awesome. Your child theme has been created and is now activated.', 'thinkai' ),
 | |
| 
 | |
| 		'plugins-header'         => esc_html__( 'Install Plugins', 'thinkai' ),
 | |
| 		'plugins-header-success' => esc_html__( 'You\'re up to speed!', 'thinkai' ),
 | |
| 		'plugins'                => esc_html__( 'Let\'s install some essential WordPress plugins to get your site up to speed.', 'thinkai' ),
 | |
| 		'plugins-success%s'      => esc_html__( 'The required WordPress plugins are all installed and up to date. Press "Next" to continue the setup wizard.', 'thinkai' ),
 | |
| 		'plugins-action-link'    => esc_html__( 'Advanced', 'thinkai' ),
 | |
| 
 | |
| 		'import-header'      => esc_html__( 'Import Content', 'thinkai' ),
 | |
| 		'import'             => esc_html__( 'Let\'s import content to your website, to help you get familiar with the theme.', 'thinkai' ),
 | |
| 		'import-action-link' => esc_html__( 'Advanced', 'thinkai' ),
 | |
| 
 | |
| 		'ready-header'      => esc_html__( 'All done. Have fun!', 'thinkai' ),
 | |
| 
 | |
| 		/* translators: Theme Author */
 | |
| 		'ready%s'           => esc_html__( 'Your theme has been all set up. Enjoy your new theme by %s.', 'thinkai' ),
 | |
| 		'ready-action-link' => esc_html__( 'Extras', 'thinkai' ),
 | |
| 		'ready-big-button'  => esc_html__( 'View your website', 'thinkai' ),
 | |
| 		'ready-link-1'      => sprintf( '<a href="%1$s" target="_blank">%2$s</a>', 'https://themeforest.net/user/themekalia/', esc_html__( '5 Star For Project Thinkai', 'thinkai' ) ),
 | |
| 		'ready-link-2'      => sprintf( '<a href="%1$s" target="_blank">%2$s</a>', 'https://themekalia.com/support', esc_html__( 'Get Thinkai Theme Support', 'thinkai' ) ),
 | |
| 	)
 | |
| );
 |