<?php
/**
 * @package Demo Import
 * @since 1.0.0
 */

class ThemeWhizzie {

	protected $version = '1.1.0';

	/** @var string Current theme name, used as namespace in actions. */
	protected $theme_name = '';
	protected $theme_title = '';

	/** @var string Demo Import page slug and title. */
	protected $page_slug = '';
	protected $page_title = '';
	public $parent_slug;
	/** @var array Demo Import steps set by user. */
	protected $config_steps = array();

	/**
	 * Constructor
	 *
	 * @param $senior_care_charity_config	Our config parameters
	*/
	public function __construct( $senior_care_charity_config ) {
		$this->set_vars( $senior_care_charity_config );
		$this->init();
	}

	/**
	 * Set some settings
	 * @since 1.0.0
	 * @param $senior_care_charity_config	Our config parameters
	*/
	public function set_vars( $senior_care_charity_config ) {
		if( isset( $senior_care_charity_config['page_slug'] ) ) {
			$this->page_slug = esc_attr( $senior_care_charity_config['page_slug'] );
		}
		if( isset( $senior_care_charity_config['page_title'] ) ) {
			$this->page_title = esc_attr( $senior_care_charity_config['page_title'] );
		}
		if( isset( $senior_care_charity_config['steps'] ) ) {
			$this->config_steps = $senior_care_charity_config['steps'];
		}

		$current_theme = wp_get_theme();
		$this->theme_title = $current_theme->get( 'Name' );
		$this->theme_name = strtolower( preg_replace( '#[^a-zA-Z]#', '', $current_theme->get( 'Name' ) ) );
		$this->page_slug = apply_filters( $this->theme_name . '_theme_setup_wizard_page_slug', $this->theme_name . '-demoimport' );
		$this->parent_slug = apply_filters( $this->theme_name . '_theme_setup_wizard_parent_slug', '' );
	}

	/**
	 * Hooks and filters
	 * @since 1.0.0
	*/
	public function init() {
		add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
		add_action( 'admin_menu', array( $this, 'menu_page' ) );
		add_action( 'wp_ajax_setup_widgets', array( $this, 'setup_widgets' ) );
	}

	public function enqueue_scripts() {
		wp_enqueue_style( 'demo-import-style', get_template_directory_uri() . '/demo-import/assets/css/demo-import-style.css');
		wp_register_script( 'demo-import-script', get_template_directory_uri() . '/demo-import/assets/js/demo-import-script.js', array( 'jquery' ), time() );
		wp_localize_script(
			'demo-import-script',
			'senior_care_charity_whizzie_params',
			array(
				'ajaxurl' 		=> admin_url( 'admin-ajax.php' ),
				'wpnonce' 		=> wp_create_nonce( 'whizzie_nonce' ),
				'verify_text'	=> esc_html( 'verifying', 'senior-care-charity' )
			)
		);
		wp_enqueue_script( 'demo-import-script' );
	}

	/**  Make a modal screen for the wizard **/
	public function menu_page() {
		add_menu_page( esc_html( $this->page_title ), esc_html( $this->page_title ), 'manage_options', $this->page_slug, array( $this, 'senior_care_charity_guide' ) ,'',40);
	}

	/** Make an interface for the wizard **/
	public function wizard_page() {
		/* If we arrive here, we have the filesystem */ ?>
		<div class="wrap">
			<?php echo '<div class="whizzie-wrap">';
				// The wizard is a list with only one item visible at a time
				$steps = $this->get_steps();
				echo '<ul class="whizzie-nav wizard-icon-nav">';?>
				<?php
					$stepI=1;
					foreach( $steps as $step ) {
						$stepAct=($stepI ==1)? 1 : 0;
						if( isset( $step['icon_text'] ) && $step['icon_text'] ) {
							echo '<li class="commom-cls nav-step-' . esc_attr( $step['id'] ) . '" wizard-steps="step-'.esc_attr( $step['id'] ).'" data-enable="'.$stepAct.'">
							<p>'.esc_attr( $step['icon_text'] ).'</p>
							</li>';
						}
					$stepI++;}
			 	echo '</ul>';
				echo '<ul class="whizzie-menu wizard-menu-page">';
				foreach( $steps as $step ) {
					$class = 'step step-' . esc_attr( $step['id'] );
					echo '<li data-step="' . esc_attr( $step['id'] ) . '" class="' . esc_attr( $class ) . '" >';
						$content = call_user_func( array( $this, $step['view'] ) );
						printf('<div class="wizard-button-wrapper">');
							if( isset( $step['button_text_one'] )) {
								printf(
									'<div class="button-wrap button-wrap-one">
										<a href="#" class="button button-primary do-it" data-callback="install_widgets" data-step="widgets"><p class="demo-type-text">%s</p></a>
									</div>',
									esc_html( $step['button_text_one'] )
								);
							}
						printf('</div>');
					echo '</li>';
				}
				echo '</ul>';
				?>
				<div class="step-loading"><span class="spinner">
					<img src="<?php echo esc_url(get_template_directory_uri().'/demo-import/assets/images/Spinner-Animaion.gif'); ?>">
				</span></div>
			<?php echo '</div>';?>
		</div>
	<?php }

	/**
	 * Set options for the steps
	 * @return Array
	*/
	public function get_steps() {
		$dev_steps = $this->config_steps;
		$steps = array(
			'widgets' => array(
				'id'			=> 'widgets',
				'title'			=> __( 'Customizer', 'senior-care-charity' ),
				'icon'			=> 'welcome-widgets-menus',
				'view'			=> 'get_step_widgets',
				'callback'		=> 'install_widgets',
				'button_text_one'	=> __( 'Import Demo', 'senior-care-charity' ),
				'can_skip'		=> true,
				'icon_text'      => 'Import Demo'
			),
			'done' => array(
				'id'			=> 'done',
				'title'			=> __( 'All Done', 'senior-care-charity' ),
				'icon'			=> 'yes',
				'view'			=> 'get_step_done',
				'callback'		=> '',
				'icon_text'      => 'Done'
			)
		);
		// Iterate through each step and replace with dev config values
		if( $dev_steps ) {
			// Configurable elements - these are the only ones the dev can update from config.php
			$can_config = array( 'title', 'icon', 'button_text', 'can_skip' );
			foreach( $dev_steps as $dev_step ) {
				// We can only proceed if an ID exists and matches one of our IDs
				if( isset( $dev_step['id'] ) ) {
					$id = $dev_step['id'];
					if( isset( $steps[$id] ) ) {
						foreach( $can_config as $element ) {
							if( isset( $dev_step[$element] ) ) {
								$steps[$id][$element] = $dev_step[$element];
							}
						}
					}
				}
			}
		}
		return $steps;
	}

	/**    Print the content for the intro step     **/
		public function get_step_importer() { ?>
		<div class="summary">
			<p>
				<?php esc_html_e('Thank you for choosing this Senior Care Charity Theme. Using this quick setup wizard, you will be able to configure your new website and get it running in just a few minutes. Just follow these simple steps mentioned in the wizard and get started with your website.','senior-care-charity'); ?>
			</p>
		</div>
	<?php }

	/**   Print the content for the widgets step   **/
	public function get_step_widgets() { ?>
		<div class="summary">
			<p>
				<?php esc_html_e('This theme allows you to import demo content and add widgets. Install them using the button below. You can also update or deactivate them using the Customizer.','senior-care-charity'); ?>
			</p>
		</div>
	<?php }

	/** Print the content for the final step **/
	public function get_step_done() { ?>

		<div class="setup-finish">
			<p>
				<?php echo esc_html('Your demo content has been imported successfully. Click the finish button for more information.'); ?>
			</p>
			<div class="finish-buttons">
				<a href="<?php echo esc_url( admin_url( 'themes.php?page=senior-care-charity-getstart-page' ) ); ?>" class="wz-btn-customizer" target="_blank"><?php esc_html_e('About Senior Care Charity','senior-care-charity') ?></a>
				<a href="<?php echo esc_url(admin_url('/customize.php')); ?>" class="wz-btn-customizer" target="_blank"><?php esc_html_e('Customize Your Demo','senior-care-charity') ?></a>
				<a href="" class="wz-btn-builder" target="_blank"><?php esc_html_e('Customize Your Demo','senior-care-charity'); ?></a>
				<a href="<?php echo esc_url(home_url()); ?>" class="wz-btn-visit-site" target="_blank"><?php esc_html_e('Visit Your Site','senior-care-charity'); ?></a>
			</div>
			<div class="finish-buttons">
				<a href="<?php echo esc_url(admin_url()); ?>" class="button button-primary"><?php esc_html_e('Finish','senior-care-charity'); ?></a>
			</div>
		</div>

	<?php }


	public function senior_care_charity_customizer_nav_menu() {
		// ------- Create Primary Menu --------
		$senior_care_charity_themename = 'Senior Care Charity'; // Ensure the theme name is set
		$senior_care_charity_menuname = $senior_care_charity_themename . ' Primary Menu';
		$senior_care_charity_menulocation = 'menu-1';
		$senior_care_charity_menu_exists = wp_get_nav_menu_object($senior_care_charity_menuname);

		if (!$senior_care_charity_menu_exists) {
			$senior_care_charity_menu_id = wp_create_nav_menu($senior_care_charity_menuname);

			// Home
			wp_update_nav_menu_item($senior_care_charity_menu_id, 0, array(
				'menu-item-title' => __('Home', 'senior-care-charity'),
				'menu-item-classes' => 'home',
				'menu-item-url' => home_url('/'),
				'menu-item-status' => 'publish'
			));

			// About
			$senior_care_charity_page_about = get_page_by_path('about');
			if($senior_care_charity_page_about){
				wp_update_nav_menu_item($senior_care_charity_menu_id, 0, array(
					'menu-item-title' => __('About', 'senior-care-charity'),
					'menu-item-classes' => 'about',
					'menu-item-url' => get_permalink($senior_care_charity_page_about),
					'menu-item-status' => 'publish'
				));
			}

			// Services
			$senior_care_charity_page_services = get_page_by_path('services');
			if($senior_care_charity_page_services){
				wp_update_nav_menu_item($senior_care_charity_menu_id, 0, array(
					'menu-item-title' => __('Services', 'senior-care-charity'),
					'menu-item-classes' => 'services',
					'menu-item-url' => get_permalink($senior_care_charity_page_services),
					'menu-item-status' => 'publish'
				));
			}

			// Blog
			$senior_care_charity_page_blog = get_page_by_path('blog');
			if($senior_care_charity_page_blog){
				wp_update_nav_menu_item($senior_care_charity_menu_id, 0, array(
					'menu-item-title' => __('Blog', 'senior-care-charity'),
					'menu-item-classes' => 'blog',
					'menu-item-url' => get_permalink($senior_care_charity_page_blog),
					'menu-item-status' => 'publish'
				));
			}

			// Contact Us
			$senior_care_charity_page_contact = get_page_by_path('contact');
			if($senior_care_charity_page_contact){
				wp_update_nav_menu_item($senior_care_charity_menu_id, 0, array(
					'menu-item-title' => __('Contact Us', 'senior-care-charity'),
					'menu-item-classes' => 'contact',
					'menu-item-url' => get_permalink($senior_care_charity_page_contact),
					'menu-item-status' => 'publish'
				));
			}

			// Assign menu to location if not set
			if (!has_nav_menu($senior_care_charity_menulocation)) {
				$senior_care_charity_locations = get_theme_mod('nav_menu_locations');
				$senior_care_charity_locations[$senior_care_charity_menulocation] = $senior_care_charity_menu_id; // Use $senior_care_charity_menu_id here
				set_theme_mod('nav_menu_locations', $senior_care_charity_locations);
			}
		}
	}


	/**
	* Imports the Demo Content
	* @since 1.1.0
	*/
	public function setup_widgets() {

		//................................................. MENU PAGES .................................................//
		
		$senior_care_charity_home_id='';
		$senior_care_charity_home_content = '';

		$senior_care_charity_home_title = 'Home';
		$senior_care_charity_home = array(
				'post_type' => 'page',
				'post_title' => $senior_care_charity_home_title,
				'post_content'  => $senior_care_charity_home_content,
				'post_status' => 'publish',
				'post_author' => 1,
				'post_slug' => 'home'
		);
		$senior_care_charity_home_id = wp_insert_post($senior_care_charity_home);

		//Set the home page template
		add_post_meta( $senior_care_charity_home_id, '_wp_page_template', 'revolution-home.php' );

		//Set the static front page
		$senior_care_charity_home = get_page_by_title( 'Home' );
		update_option( 'page_on_front', $senior_care_charity_home->ID );
		update_option( 'show_on_front', 'page' );


		// Create a posts page and assign the template
		$senior_care_charity_blog_title = 'Blog';
		$senior_care_charity_blog_check = get_page_by_path('blog');
		if (!$senior_care_charity_blog_check) {
			$senior_care_charity_blog = array(
				'post_type'    => 'page',
				'post_title'   => $senior_care_charity_blog_title,
				'post_status'  => 'publish',
				'post_author'  => 1,
				'post_name'    => 'blog' // Unique slug for the blog page
			);
			$senior_care_charity_blog_id = wp_insert_post($senior_care_charity_blog);

			// Set the posts page
			if (!is_wp_error($senior_care_charity_blog_id)) {
				update_option('page_for_posts', $senior_care_charity_blog_id);
			}
		}

		// Create a Contact Us page and assign the template
		$senior_care_charity_contact_title = 'Contact Us';
		$senior_care_charity_contact_check = get_page_by_path('contact');
		if (!$senior_care_charity_contact_check) {
			$senior_care_charity_contact = array(
				'post_type'    => 'page',
				'post_title'   => $senior_care_charity_contact_title,
				'post_content'   => '"More About The Free Charity WordPress Theme"
										The Free Charity WordPress Theme is a purpose-driven website template created to serve the noble cause of charitable organizations and nonprofits. This theme has been crafted with the intent to provide a free and accessible solution for those who seek to make a positive impact on their communities and beyond. It is designed to cater to a wide range of users, from small local charities to larger international nonprofit organizations. This theme can be used to establish a strong online presence, enabling charities to connect with their target audience, raise awareness about their mission, and engage with potential supporters. It offers an attractive and user-friendly platform to share the organization\'s story, showcase their initiatives, and solicit donations or volunteer assistance.

										The Free Charity WordPress Theme presents a comprehensive suite of features and functionalities that empower nonprofits to establish an impactful online presence, connect with their target audience, and effectively advance their missions. It\'s provided free of charge, eliminating the need for nonprofits to allocate a substantial portion of their budget to website development. User-friendliness is another standout feature of this theme. Its intuitive design ensures that even individuals with limited technical expertise can easily set up and manage their websites. This reduces the dependency on expensive web development services, making it an accessible option for nonprofits with limited resources. Customization options are extensive, allowing nonprofits to tailor their website\'s appearance and layout to match their branding and messaging. This not only ensures a unique and visually appealing online presence but also helps in conveying their mission effectively to visitors.

										The Free Charity WordPress Theme serves a variety of purposes for nonprofits. It streamlines the process of collecting online donations, enabling visitors to contribute easily to their cause. Event promotion becomes more accessible, allowing nonprofits to create awareness and drive participation in fundraising campaigns, workshops, and awareness programs. Engagement lies at the heart of the theme\'s capabilities. With features like donation integration, event management, volunteer recruitment, and a testimonial showcase, it encourages active involvement from the audience. Donations become more straightforward, events can be efficiently promoted, volunteers can be recruited and managed effectively, and heartwarming stories and testimonials can be shared to build trust and inspire support. And, ongoing support and updates ensure that nonprofits can maintain a secure, efficient, and up-to-date website.',
					'post_status'  => 'publish',
				'post_author'  => 1,
				'post_name'    => 'contact' // Unique slug for the Contact Us page
			);
			wp_insert_post($senior_care_charity_contact);
		}

		// Create a About page and assign the template
		$senior_care_charity_about_title = 'About';
		$senior_care_charity_about_check = get_page_by_path('about');
		if (!$senior_care_charity_about_check) {
			$senior_care_charity_about = array(
				'post_type'    => 'page',
				'post_title'   => $senior_care_charity_about_title,
				'post_content'   => '"More About The Free Charity WordPress Theme"
										The Free Charity WordPress Theme is a purpose-driven website template created to serve the noble cause of charitable organizations and nonprofits. This theme has been crafted with the intent to provide a free and accessible solution for those who seek to make a positive impact on their communities and beyond. It is designed to cater to a wide range of users, from small local charities to larger international nonprofit organizations. This theme can be used to establish a strong online presence, enabling charities to connect with their target audience, raise awareness about their mission, and engage with potential supporters. It offers an attractive and user-friendly platform to share the organization\'s story, showcase their initiatives, and solicit donations or volunteer assistance.

										The Free Charity WordPress Theme presents a comprehensive suite of features and functionalities that empower nonprofits to establish an impactful online presence, connect with their target audience, and effectively advance their missions. It\'s provided free of charge, eliminating the need for nonprofits to allocate a substantial portion of their budget to website development. User-friendliness is another standout feature of this theme. Its intuitive design ensures that even individuals with limited technical expertise can easily set up and manage their websites. This reduces the dependency on expensive web development services, making it an accessible option for nonprofits with limited resources. Customization options are extensive, allowing nonprofits to tailor their website\'s appearance and layout to match their branding and messaging. This not only ensures a unique and visually appealing online presence but also helps in conveying their mission effectively to visitors.

										The Free Charity WordPress Theme serves a variety of purposes for nonprofits. It streamlines the process of collecting online donations, enabling visitors to contribute easily to their cause. Event promotion becomes more accessible, allowing nonprofits to create awareness and drive participation in fundraising campaigns, workshops, and awareness programs. Engagement lies at the heart of the theme\'s capabilities. With features like donation integration, event management, volunteer recruitment, and a testimonial showcase, it encourages active involvement from the audience. Donations become more straightforward, events can be efficiently promoted, volunteers can be recruited and managed effectively, and heartwarming stories and testimonials can be shared to build trust and inspire support. And, ongoing support and updates ensure that nonprofits can maintain a secure, efficient, and up-to-date website.',
					'post_status'  => 'publish',
				'post_author'  => 1,
				'post_name'    => 'about' // Unique slug for the About page
			);
			wp_insert_post($senior_care_charity_about);
		}

		// Create a Services page and assign the template
		$senior_care_charity_services_title = 'Services';
		$senior_care_charity_services_check = get_page_by_path('services');
		if (!$senior_care_charity_services_check) {
			$senior_care_charity_services = array(
				'post_type'    => 'page',
				'post_title'   => $senior_care_charity_services_title,
				'post_content'   => '"More About The Free Charity WordPress Theme"
										The Free Charity WordPress Theme is a purpose-driven website template created to serve the noble cause of charitable organizations and nonprofits. This theme has been crafted with the intent to provide a free and accessible solution for those who seek to make a positive impact on their communities and beyond. It is designed to cater to a wide range of users, from small local charities to larger international nonprofit organizations. This theme can be used to establish a strong online presence, enabling charities to connect with their target audience, raise awareness about their mission, and engage with potential supporters. It offers an attractive and user-friendly platform to share the organization\'s story, showcase their initiatives, and solicit donations or volunteer assistance.

										The Free Charity WordPress Theme presents a comprehensive suite of features and functionalities that empower nonprofits to establish an impactful online presence, connect with their target audience, and effectively advance their missions. It\'s provided free of charge, eliminating the need for nonprofits to allocate a substantial portion of their budget to website development. User-friendliness is another standout feature of this theme. Its intuitive design ensures that even individuals with limited technical expertise can easily set up and manage their websites. This reduces the dependency on expensive web development services, making it an accessible option for nonprofits with limited resources. Customization options are extensive, allowing nonprofits to tailor their website\'s appearance and layout to match their branding and messaging. This not only ensures a unique and visually appealing online presence but also helps in conveying their mission effectively to visitors.

										The Free Charity WordPress Theme serves a variety of purposes for nonprofits. It streamlines the process of collecting online donations, enabling visitors to contribute easily to their cause. Event promotion becomes more accessible, allowing nonprofits to create awareness and drive participation in fundraising campaigns, workshops, and awareness programs. Engagement lies at the heart of the theme\'s capabilities. With features like donation integration, event management, volunteer recruitment, and a testimonial showcase, it encourages active involvement from the audience. Donations become more straightforward, events can be efficiently promoted, volunteers can be recruited and managed effectively, and heartwarming stories and testimonials can be shared to build trust and inspire support. And, ongoing support and updates ensure that nonprofits can maintain a secure, efficient, and up-to-date website.',
					'post_status'  => 'publish',
				'post_author'  => 1,
				'post_name'    => 'services' // Unique slug for the Services page
			);
			wp_insert_post($senior_care_charity_services);
		}


		// ------------------------------------------ Header -------------------------------------- //

			set_theme_mod('senior_care_charity_location_text_option','Orlando, FL 32830, United States');
			set_theme_mod('senior_care_charity_email_text_option','senior-charity@example.com');
			set_theme_mod('senior_care_charity_phone_text_option','+00-123-4356-7890');

			set_theme_mod('senior_care_charity_facebook_link_option','#');
			set_theme_mod('senior_care_charity_twitter_link_option','#');
			set_theme_mod('senior_care_charity_youtube_link_option','#');
			set_theme_mod('senior_care_charity_instagram_link_option','#');
			set_theme_mod('senior_care_charity_pintrest_link_option','#');

			set_theme_mod('senior_care_charity_donate_link_option','#');

			set_theme_mod('senior_care_charity_enable_slider',1);
			set_theme_mod('senior_care_charity_enable_event',1);


		// ------------------------------------------ Slider Section -------------------------------------- //

			set_theme_mod('senior_care_charity_slide_number','3');

			for($i=1;$i<=3;$i++){
				set_theme_mod( 'senior_care_charity_slider_image'.$i,get_template_directory_uri().'/revolution/assets/images/slider'.$i.'.png' );
				set_theme_mod( 'senior_care_charity_slider_heading'.$i, 'GIVE SENIORS THE LOVE THEY DESERVE' );
				set_theme_mod( 'senior_care_charity_slider_text'.$i, 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut laoreet, orci ac dapibus tempus, ex ligula ullamcorper mi, non egestas elit ante eu risus.' );
				set_theme_mod( 'senior_care_charity_slider_button1_text'.$i, 'READ MORE' );
				set_theme_mod( 'senior_care_charity_slider_button1_link'.$i, '#' );
			}

		// ------------------------------------------ EVENTS Section -------------------------------------- //

			set_theme_mod('senior_care_charity_event_heading','UPCOMING EVENTS');
			set_theme_mod('senior_care_charity_event_text','Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur mollis tempus metus, vehicula placerat massa cursus sed.');

			$headings = [
				'Senior Literacy Workshop',
				'Homeless Senior Aid Drive',
				'Digital Skills for Seniors',
				'Charity Gala for Elder Care'
			];
			
			$dates = [
				'JUNE 30, 2025 3:00 PM',
				'JULY 15, 2025 11:00 AM',
				'AUGUST 10, 2025 2:30 PM',
				'SEPTEMBER 5, 2025 4:00 PM'
			];
			
			$addresses = [
				'Community Center, Main Street, New York',
				'Grand Hall, Kingston Road, Toronto',
				'Cultural House, Elm Avenue, London',
				'Senior Hub, Pine Street, Melbourne'
			];
			
			for ($i = 1; $i <= 4; $i++) {
				set_theme_mod('senior_care_charity_category_image'.$i, get_template_directory_uri().'/revolution/assets/images/events'.$i.'.png');
				set_theme_mod('senior_care_charity_category_heading'.$i, $headings[$i - 1]);
				set_theme_mod('senior_care_charity_category_text'.$i, 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur mollis tempus metus, vehicula placerat massa cursus sed.');
				set_theme_mod('senior_care_charity_event_date'.$i, $dates[$i - 1]);
				set_theme_mod('senior_care_charity_event_address'.$i, $addresses[$i - 1]);
				set_theme_mod('senior_care_charity_category_button1_text'.$i, 'ENROLL NOW');
				set_theme_mod('senior_care_charity_category_button1_link'.$i, '#');
			}			


  	 	$this->senior_care_charity_customizer_nav_menu();
	}

	public function senior_care_charity_guide() {
		$display_string = '';
		$return = add_query_arg( array()) ;
		$theme = wp_get_theme( 'senior-care-charity' );
		?>
		<div class="wrapper-info get-stared-page-wrap">
			<div class="wrapper-info-content">
				<div class="buynow__">
					<h2><?php esc_html_e( 'Welcome to Senior Care Charity', 'senior-care-charity' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
					<p><?php esc_html_e('The quick setup wizard will assist you in configuring your new website. This wizard will import the demo content.', 'senior-care-charity'); ?></p>
				</div>
				<div class="buynow_">
					<a target="_blank" class="buynow_themepage" href="<?php echo esc_url('https://www.revolutionwp.com/products/senior-care-wordpress-theme'); ?>"><?php echo esc_html__('Go Premium Now', 'senior-care-charity'); ?></a>
				</div>
			</div>
			<div class="tab-sec theme-option-tab">
				<div id="demo_offer" class="tabcontent open">
					<?php $this->wizard_page(); ?>
				</div>
			</div>
		</div>
	<?php }
}