'inc/merlin', // Location / directory where Merlin WP is placed in your theme. 'merlin_url' => 'blogbit-importer', // 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' => false, // 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' => '', // EDD_Theme_Updater_Admin item_name. 'edd_theme_slug' => '', // EDD_Theme_Updater_Admin item_slug. 'ready_big_button_url' => get_home_url(), // Link for the big button on the ready step. ), // Text strings. $strings = array( 'admin-menu' => esc_html__( 'Blogbit Setup Wizard', 'blogbit' ), 'title%s%s%s%s' => esc_html__( '%s%s Themes ‹ Theme Setup: %s%s', 'blogbit' ), 'return-to-dashboard' => esc_html__( 'Return to the dashboard', 'blogbit' ), // 'ignore' => esc_html__( 'Disable this wizard', 'blogbit' ), 'btn-skip' => esc_html__( 'Skip', 'blogbit' ), 'btn-next' => esc_html__( 'Next', 'blogbit' ), 'btn-start' => esc_html__( 'Start', 'blogbit' ), 'btn-no' => esc_html__( 'Cancel', 'blogbit' ), 'btn-plugins-install' => esc_html__( 'Install', 'blogbit' ), 'btn-child-install' => esc_html__( 'Install', 'blogbit' ), 'btn-content-install' => esc_html__( 'Install', 'blogbit' ), 'btn-import' => esc_html__( 'Import', 'blogbit' ), 'btn-license-activate' => esc_html__( 'Activate', 'blogbit' ), 'btn-license-skip' => esc_html__( 'Later', 'blogbit' ), 'welcome-header%s' => esc_html__( 'Welcome to %s', 'blogbit' ), 'welcome-header-success%s' => esc_html__( 'Hi. Welcome back', 'blogbit' ), '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.', 'blogbit' ), '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.', 'blogbit' ), 'license-header%s' => esc_html__( 'Activate %s', 'blogbit' ), 'license-header-success%s' => esc_html__( '%s is Activated', 'blogbit' ), 'license%s' => esc_html__( 'Enter your license key to enable remote updates and theme support.', 'blogbit' ), 'license-label' => esc_html__( 'License key', 'blogbit' ), 'license-success%s' => esc_html__( 'The theme is already registered, so you can go to the next step!', 'blogbit' ), 'license-json-success%s' => esc_html__( 'Your theme is activated! Remote updates and theme support are enabled.', 'blogbit' ), 'license-tooltip' => esc_html__( 'Need help?', 'blogbit' ), 'child-header' => esc_html__( 'Install Child Theme', 'blogbit' ), 'child-header-success' => esc_html__( 'You\'re good to go!', 'blogbit' ), 'child' => esc_html__( 'Let\'s build & activate a child theme so you may easily make theme changes.', 'blogbit' ), 'child-success%s' => esc_html__( 'Your child theme has already been installed and is now activated, if it wasn\'t already.', 'blogbit' ), 'child-action-link' => esc_html__( 'Learn about child themes', 'blogbit' ), 'child-json-success%s' => esc_html__( 'Awesome. Your child theme has already been installed and is now activated.', 'blogbit' ), 'child-json-already%s' => esc_html__( 'Awesome. Your child theme has been created and is now activated.', 'blogbit' ), 'plugins-header' => esc_html__( 'Install Plugins', 'blogbit' ), 'plugins-header-success' => esc_html__( 'You\'re up to speed!', 'blogbit' ), 'plugins' => esc_html__( 'Let\'s install some essential WordPress plugins to get your site up to speed.', 'blogbit' ), 'plugins-success%s' => esc_html__( 'The required WordPress plugins are all installed and up to date. Press "Next" to continue the setup wizard.', 'blogbit' ), 'plugins-action-link' => esc_html__( 'Plugins', 'blogbit' ), 'import-header' => esc_html__( 'Import Content', 'blogbit' ), 'import' => esc_html__( 'Let\'s import content to your website, to help you get familiar with the theme.', 'blogbit' ), 'import-action-link' => esc_html__( 'Details', 'blogbit' ), 'ready-header' => esc_html__( 'All done. Have fun!', 'blogbit' ), 'ready%s' => esc_html__( 'Your theme has been all set up. Enjoy your new theme by %s.', 'blogbit' ), 'ready-action-link' => esc_html__( 'Extras', 'blogbit' ), 'ready-big-button' => esc_html__( 'View your website', 'blogbit' ), 'ready-link-3' => '', 'ready-link-2' => wp_kses( sprintf( '%2$s', 'https://mekshq.com/documentation/blogbit/', esc_html__( 'Theme Documentation', 'blogbit' ) ), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), ) ); /** * Prepare files to import * * @since 1.0 */ add_filter( 'merlin_import_files', 'blogbit_demo_import_files' ); if ( !function_exists( 'blogbit_demo_import_files' ) ): function blogbit_demo_import_files() { return array( array( 'import_file_name' => 'blogbit default', 'local_import_file' => trailingslashit( get_template_directory() ) . 'inc/demo/default/content.xml', 'local_import_widget_file' => trailingslashit( get_template_directory() ) . 'inc/demo/default/widgets.wie', 'local_import_customizer_file' => trailingslashit( get_template_directory() ) . 'inc/demo/default/options.dat', //'local_import_redux' => array( array( 'file_path' => trailingslashit( get_template_directory() ) . '/inc/demo/default/options.json', 'option_name' => 'blogbit_settings' ) ), 'import_preview_image_url' => get_parent_theme_file_uri( '/screenshot.png' ), 'import_notice' => '', 'preview_url' => 'https://demo.mekshq.com/blogbit/', ) ); } endif; /** * Execute custom code after the whole import has finished. * * @since 1.0 */ // add_action( 'merlin_after_all_import', 'blogbit_merlin_after_import_setup' ); // if ( !function_exists( 'blogbit_merlin_after_import_setup' ) ): // function blogbit_merlin_after_import_setup( ) { // /* Set Menus */ // $menus = array(); // $main_menu = get_term_by( 'name', 'blogbit Main', 'nav_menu' ); // if ( isset( $main_menu->term_id ) ) { // $menus['blogbit_menu_primary'] = $main_menu->term_id; // } // $social_menu = get_term_by( 'name', 'blogbit Social', 'nav_menu' ); // if ( isset( $social_menu->term_id ) ) { // $menus['blogbit_menu_social'] = $social_menu->term_id; // } // if ( !empty( $menus ) ) { // set_theme_mod( 'nav_menu_locations', $menus ); // } // /* Update home URL in menu item */ // $home = get_page_by_title( 'Home', false, 'nav_menu_item' ); // update_post_meta( $home->ID, '_menu_item_url', get_home_url() ); // /* Import contact form */ // blogbit_import_contact_form(); // } // endif; /** * Unset the child theme generator step in merlin welcome panel * * @param unknown $steps * @return mixed * @since 1.0 */ // add_filter( 'blogbit_merlin_steps', 'blogbit_remove_child_theme_generator_from_merlin' ); // if ( !function_exists( 'blogbit_remove_child_theme_generator_from_merlin' ) ): // function blogbit_remove_child_theme_generator_from_merlin( $steps ) { // unset( $steps['child'] ); // return $steps; // } // endif; /** * Stop initial redirect after theme is activated * * @since 1.0 */ // remove_action( 'after_switch_theme', array( $blogbit_wizard, 'switch_theme' ) ); ?>