<?php
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

if( !class_exists( 'Yoga_Workout_Welcome' ) ) {

	class Yoga_Workout_Welcome {
		public $yoga_workout_theme_fields;

		public function __construct( $yoga_workout_fields = array() ) {
			$this->yoga_workout_theme_fields = $yoga_workout_fields;
			add_action ('admin_init' , array( $this, 'admin_scripts' ) );
			add_action('admin_menu', array( $this, 'yoga_workout_themeinfo_page_menu' ));
		}

		public function admin_scripts() {
			global $pagenow;
			$yoga_workout_file_dir = get_template_directory_uri() . '/themeinfo/assets/';

			if ( $pagenow === 'themes.php' && isset($_GET['page']) && $_GET['page'] === 'yoga-workout-themeinfo-page' ) {

				wp_enqueue_style (
					'yoga-workout-themeinfo-page-style',
					$yoga_workout_file_dir . 'yoga_workout_themeinfo_page.css',
					array(), '1.0.0'
				);

				wp_enqueue_script (
					'yoga-workout-themeinfo-page-functions',
					$yoga_workout_file_dir . 'yoga_workout_themeinfo_page.js',
					array('jquery'),
					'1.0.0',
					true
				);
			}
		}

        public function yoga_workout_theme_info($yoga_workout_id, $yoga_workout_screenshot = false) {
            $yoga_workout_themedata = wp_get_theme();
            return ($yoga_workout_screenshot === true) ? esc_url($yoga_workout_themedata->get_screenshot()) : esc_html($yoga_workout_themedata->get($yoga_workout_id));
        }

        public function yoga_workout_themeinfo_page_menu() {
            add_theme_page(
                /* translators: 1: Theme Name. */
                sprintf(esc_html__('%1$s Info', 'yoga-workout'), $this->yoga_workout_theme_info('Name')),
                sprintf(esc_html__('%1$s Info', 'yoga-workout'), $this->yoga_workout_theme_info('Name')),
                'edit_theme_options',
                'yoga-workout-themeinfo-page',
                array( $this, 'yoga_workout_themeinfo_page' )
            );
		}

        public function yoga_workout_themeinfo_page() {
            // Define tabs with proper escaping and prefixes
            $yoga_workout_tabs = array(
                'yoga_workout_home'      => esc_html__('Home', 'yoga-workout'),
                'yoga_workout_free_pro'  => esc_html__('Free VS Pro', 'yoga-workout'),
                'yoga_workout_faqs'      => esc_html__('FAQs', 'yoga-workout'),
                'yoga_workout_support'   => esc_html__('Free Theme Supports', 'yoga-workout'),
                'yoga_workout_review'    => esc_html__('Please Rate Us', 'yoga-workout'),
                // 'yoga_workout_free_demo_content'    => esc_html__('Click Here For Free Demo Content', 'yoga-workout'),
            );
            ?>
            <div class="wrap about-wrap access-wrap">
        
                <div class="abt-promo-wrap clearfix">
                    <div class="abt-theme-wrap">
                        <h1>
                            <?php
                                printf(
                                    /* translators: 1: Theme Name. */
                                    esc_html__('%1$s - Version %2$s', 'yoga-workout'),
                                    esc_html($this->yoga_workout_theme_info('Name')),
                                    esc_html($this->yoga_workout_theme_info('Version'))
                                );
                            ?>
                        </h1>
                        <div class="doc-links">
                            <h4><?php echo esc_html__('Visit Sites :-', 'yoga-workout'); ?></h4>
                            <a href="<?php echo esc_url(YOGA_WORKOUT_BUY_NOW); ?>" target="_blank">
                                <span class="dashicons dashicons-admin-site-alt3"></span>
                                <span class="theme-pixel-tooltip"><?php echo esc_html__('View Website', 'yoga-workout'); ?></span>
                            </a>
                            <a href="<?php echo esc_url(YOGA_WORKOUT_LIVE_DEMO); ?>" target="_blank">
                                <span class="dashicons dashicons-desktop"></span>
                                <span class="theme-pixel-tooltip"><?php echo esc_html__('View Demo Site', 'yoga-workout'); ?></span>
                            </a>
                            <a href="<?php echo esc_url(YOGA_WORKOUT_THEME_SUPPORT); ?>" target="_blank">
                                <span class="dashicons dashicons-megaphone"></span>
                                <span class="theme-pixel-tooltip"><?php echo esc_html__('Contact Support', 'yoga-workout'); ?></span>
                            </a>
                            <a href="<?php echo esc_url(YOGA_WORKOUT_FREE_DOC); ?>" target="_blank">
                                <span class="dashicons dashicons-pdf"></span>
                                <span class="theme-pixel-tooltip"><?php echo esc_html__('Documentation', 'yoga-workout'); ?></span>
                            </a>
                        </div>
                    </div>
                </div>
        
                <div class="test">
                    <div class="nav-tab-wrapper clearfix">
                        <?php
                        $tabHTML = '';
        
                        foreach ($yoga_workout_tabs as $yoga_workout_id => $yoga_workout_label) :
        
                            $yoga_workout_target = '';
                            $yoga_workout_nav_class = 'nav-tab';
                            $yoga_workout_section = isset($_GET['section']) ? sanitize_text_field($_GET['section']) : 'yoga_workout_home';
        
                            if ($yoga_workout_id === $yoga_workout_section) {
                                $yoga_workout_nav_class .= ' nav-tab-active';
                            }
        
                            if ($yoga_workout_id === 'yoga_workout_free_pro') {
                                $yoga_workout_nav_class .= ' upgrade-button';
                            }

                            if ($yoga_workout_id === 'yoga_workout_review') {
                                $yoga_workout_nav_class .= ' review-button';
                            }

                            if ($yoga_workout_id === 'yoga_workout_free_demo_content') {
                                $yoga_workout_nav_class .= ' demo-content-button';
                            }
        
                            switch ($yoga_workout_id) {
        
                                case 'yoga_workout_support':
                                    $yoga_workout_target = 'target="_blank"';
                                    $yoga_workout_url = esc_url('https://wordpress.org/support/theme/' . esc_html($this->yoga_workout_theme_info('TextDomain')));
                                break;
        
                                case 'yoga_workout_review':
                                    $yoga_workout_target = 'target="_blank"';
                                    $yoga_workout_url = esc_url('https://wordpress.org/support/theme/' . esc_html($this->yoga_workout_theme_info('TextDomain')) . '/reviews/#new-post');
                                break;

                                case 'yoga_workout_free_demo_content':
                                $yoga_workout_target = 'target="_blank"';
                                $yoga_workout_url = esc_url(admin_url('themes.php?page=yoga-workout-freedemocontent'));
                                break;
                                
                                
                                case 'yoga_workout_home':
                                    $yoga_workout_url = esc_url(admin_url('themes.php?page=yoga-workout-themeinfo-page'));
                                break;
        
                                default:
                                    $yoga_workout_url = esc_url(admin_url('themes.php?page=yoga-workout-themeinfo-page&section=' . esc_attr($yoga_workout_id)));
                                break;
        
                            }
        
                            $tabHTML .= '<a ';
                            $tabHTML .= $yoga_workout_target;
                            $tabHTML .= ' href="' . esc_url($yoga_workout_url) . '"';
                            $tabHTML .= ' class="' . esc_attr($yoga_workout_nav_class) . '"';
                            $tabHTML .= '>';

                            if ($yoga_workout_id === 'yoga_workout_free_demo_content') {
                                $tabHTML .= '<span>' . esc_html($yoga_workout_label) . '</span>';
                            } else {
                                $tabHTML .= esc_html($yoga_workout_label);
                            }

                            if ($yoga_workout_id === 'yoga_workout_review') {
                                $tabHTML .= ' <span class="dashicons dashicons-star-filled"></span>';
                                $tabHTML .= ' <span class="dashicons dashicons-star-filled"></span>';
                                $tabHTML .= ' <span class="dashicons dashicons-star-filled"></span>';
                                $tabHTML .= ' <span class="dashicons dashicons-star-filled"></span>';
                                $tabHTML .= ' <span class="dashicons dashicons-star-filled"></span>';
                            }

                            $tabHTML .= '</a>';
        
                        endforeach;
        
                        echo $tabHTML;
                        ?>
        
                        <div class="get-pro">
                            <h3><?php echo esc_html__('Yoga Workout Pro', 'yoga-workout'); ?></h3>
                            <p><?php echo esc_html__('Get all of the features that are infinite!!!', 'yoga-workout'); ?></p>
                            <a class="theme-pixel-button-btn primary-btn" target="_blank" href="<?php echo esc_url(YOGA_WORKOUT_BUY_NOW); ?>"><?php echo esc_html__('Upgrade To Pro', 'yoga-workout'); ?></a>
                        </div>
                    </div>

                    <div class="second-div">
                        <div class="themeinfo-section-wrapper">
                            <div class="themeinfo-section yoga_workout_home clearfix">
                                <?php
                                $yoga_workout_section = isset($_GET['section']) ? sanitize_text_field($_GET['section']) : 'yoga_workout_home';
                                switch ($yoga_workout_section) {
            
                                    case 'yoga_workout_free_pro':
                                        $this->yoga_workout_free_pro();
                                    break;
            
                                    case 'yoga_workout_faqs':
                                        $this->yoga_workout_faqs();
                                    break;
            
                                    case 'yoga_workout_home':
                                    default:
                                        $this->yoga_workout_home();
                                    break;
            
                                }
                                ?>
                            </div>
                        </div>
            
                        <div class="theme-steps-list">

                            <div class="theme-steps highlight">
                                <h3><?php echo esc_html__('Buy Yoga Workout Pro', 'yoga-workout'); ?></h3>
                                <p><?php echo esc_html__('To get limitless features and improvements, buy the Yoga Workout Theme Pro edition.', 'yoga-workout'); ?></p>
                                <a target="_blank" class="button button-primary" href="<?php echo esc_url(YOGA_WORKOUT_BUY_NOW); ?>"><?php echo esc_html__('Buy Pro Theme', 'yoga-workout'); ?></a>
                            </div>

                            <div class="theme-steps">
                                <h3><?php echo esc_html__('Documentation', 'yoga-workout'); ?></h3>
                                <p><?php echo esc_html__('Do you need additional information? You may find detailed instructions on how to use the Yoga Workout Theme in our extensive documentation.', 'yoga-workout'); ?></p>
                                <a target="_blank" class="button button-primary" href="<?php echo esc_url(YOGA_WORKOUT_FREE_DOC); ?>"><?php echo esc_html__('Go to Free Docs', 'yoga-workout'); ?></a>
                            </div>
            
                            <div class="theme-steps">
                                <h3><?php echo esc_html__('Preview Pro Theme', 'yoga-workout'); ?></h3>
                                <p><?php echo esc_html__('Explore our Pro Themes full potential! To see the stunning designs and high-end functionality, click the Live Demo button.', 'yoga-workout'); ?></p>
                                <a target="_blank" class="button button-primary" href="<?php echo esc_url(YOGA_WORKOUT_LIVE_DEMO); ?>"><?php echo esc_html__('View Live Demo', 'yoga-workout'); ?></a>
                            </div>
            
                            <div class="theme-steps highlight">
                                <h3><?php echo esc_html__('Get the Bundle', 'yoga-workout'); ?></h3>
                                <p><?php echo esc_html__('Introducing the WP Theme Bundle by Theme Pixel, a comprehensive collection of over 50 professionally designed WordPress themes tailored for various niches and businesses.', 'yoga-workout'); ?></p>
                                <a target="_blank" class="button button-primary" href="<?php echo esc_url(YOGA_WORKOUT_BUNDLE); ?>"><?php echo esc_html__('Get All Themes', 'yoga-workout'); ?></a>
                            </div>
            
                        </div>
                    </div>
                </div>
        
            </div>
            <?php
        }

        public function yoga_workout_home() {
            ?>
            <div class="theme-info-top-wrap clearfix">
                <h3><?php esc_html_e( 'HOME', 'yoga-workout' ); ?></h3>
                <div class="theme-details">
                    <div class="theme-screenshot">
                        <img src="<?php echo esc_url( $this->yoga_workout_theme_info( 'Screenshot', true ) ); ?>" alt="<?php esc_attr_e( 'Theme screenshot', 'yoga-workout' ); ?>" />
                    </div>
                    <div class="about-text"><?php echo esc_html( $this->yoga_workout_theme_info( 'Description' ) ); ?></div>
                    <div class="clearfix"></div>
                </div>
                <div class="theme-pixel-settings">
                    <h2><?php esc_html_e( 'Quick Customizer Settings', 'yoga-workout' ); ?></h2>
                    <div class="theme-pixel-button">
                        <a href="<?php echo esc_url( admin_url( 'customize.php' ) ); ?>" class="theme-pixel-btn" target="_blank">
                            <?php esc_html_e( 'Go To Customizer', 'yoga-workout' ); ?> <span class="dashicons dashicons-arrow-right-alt"></span>
                        </a>
                    </div>
                </div>
                <div class="theme-pixel-card customizer three-col">
                    <div class="theme-pixel-cardbody">
                        <div class="icon-box">
                            <span class="dashicons dashicons-admin-site-alt3"></span>
                        </div>
                        <div class="theme-pixel-text-wrap">
                            <h3 class="theme-pixel-heading"><?php esc_html_e( 'Site Identity', 'yoga-workout' ); ?></h3>
                            <div class="theme-pixel-button">
                                <a target="_blank" href="<?php echo esc_url( admin_url( 'customize.php?autofocus%5Bcontrol%5D=site_identity' ) ); ?>" class="theme-pixel-btn">
                                    <?php esc_html_e( 'Customize', 'yoga-workout' ); ?>
                                    <span class="dashicons dashicons-arrow-right-alt"></span>
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="theme-pixel-cardbody">
                        <div class="icon-box">
                            <span class="dashicons dashicons-color-picker"></span>
                        </div>
                        <div class="theme-pixel-text-wrap">
                            <h3 class="theme-pixel-heading"><?php esc_html_e( 'Color Settings', 'yoga-workout' ); ?></h3>
                            <div class="theme-pixel-button">
                                <a target="_blank" href="<?php echo esc_url( admin_url( 'customize.php?autofocus%5Bsection%5D=colors' ) ); ?>" class="theme-pixel-btn">
                                    <?php esc_html_e( 'Customize', 'yoga-workout' ); ?>
                                    <span class="dashicons dashicons-arrow-right-alt"></span>
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="theme-pixel-cardbody">
                        <div class="icon-box">
                            <span class="dashicons dashicons-screenoptions"></span>
                        </div>
                        <div class="theme-pixel-text-wrap">
                            <h3 class="theme-pixel-heading"><?php esc_html_e( 'Layout Settings', 'yoga-workout' ); ?></h3>
                            <div class="theme-pixel-button">
                                <a target="_blank" href="<?php echo esc_url( admin_url( 'customize.php?autofocus%5Bpanel%5D=layout_settings' ) ); ?>" class="theme-pixel-btn">
                                    <?php esc_html_e( 'Customize', 'yoga-workout' ); ?>
                                    <span class="dashicons dashicons-arrow-right-alt"></span>
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="theme-pixel-cardbody">
                        <div class="icon-box">
                            <span class="dashicons dashicons-format-image"></span>
                        </div>
                        <div class="theme-pixel-text-wrap">
                            <h3 class="theme-pixel-heading"><?php esc_html_e( 'General Settings', 'yoga-workout' ); ?></h3>
                            <div class="theme-pixel-button">
                                <a target="_blank" href="<?php echo esc_url( admin_url( 'customize.php?autofocus%5Bpanel%5D=banner_option' ) ); ?>" class="theme-pixel-btn">
                                    <?php esc_html_e( 'Customize', 'yoga-workout' ); ?>
                                    <span class="dashicons dashicons-arrow-right-alt"></span>
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="theme-pixel-cardbody">
                        <div class="icon-box">
                            <span class="dashicons dashicons-align-full-width"></span>
                        </div>
                        <div class="theme-pixel-text-wrap">
                            <h3 class="theme-pixel-heading"><?php esc_html_e( 'Frontpage Settings', 'yoga-workout' ); ?></h3>
                            <div class="theme-pixel-button">
                                <a target="_blank" href="<?php echo esc_url( admin_url( 'customize.php?autofocus%5Bpanel%5D=general_settings' ) ); ?>" class="theme-pixel-btn">
                                    <?php esc_html_e( 'Customize', 'yoga-workout' ); ?>
                                    <span class="dashicons dashicons-arrow-right-alt"></span>
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="theme-pixel-cardbody">
                        <div class="icon-box">
                            <span class="dashicons dashicons-admin-page"></span>
                        </div>
                        <div class="theme-pixel-text-wrap">
                            <h3 class="theme-pixel-heading"><?php esc_html_e( 'Footer Settings', 'yoga-workout' ); ?></h3>
                            <div class="theme-pixel-button">
                                <a target="_blank" href="<?php echo esc_url( admin_url( 'customize.php?autofocus%5Bsection%5D=footer_option' ) ); ?>" class="theme-pixel-btn">
                                    <?php esc_html_e( 'Customize', 'yoga-workout' ); ?>
                                    <span class="dashicons dashicons-arrow-right-alt"></span>
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <?php
        }        

		public function yoga_workout_free_pro() {
            ?>
            <h3><?php esc_html_e( 'FREE VS PRO', 'yoga-workout' ); ?></h3>
            <div class="freeandpro">
                <table class="card table free-pro" cellspacing="0" cellpadding="0">
                    <tbody class="table-body">
                        <tr class="table-head">
                            <th class="large"><?php echo esc_html__( 'Features', 'yoga-workout' ); ?></th>
                            <th class="indicator"><?php echo esc_html__( 'Free theme', 'yoga-workout' ); ?></th>
                            <th class="indicator"><?php echo esc_html__( 'Pro Theme', 'yoga-workout' ); ?></th>
                        </tr>

                        <tr class="feature-row">
                            <td class="large">
                                <div class="feature-wrap">
                                    <h4><?php echo esc_html__( 'Responsive Design', 'yoga-workout' ); ?></h4>
                                </div>
                            </td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-yes" size="30"></span></td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-yes" size="30"></span></td>
                        </tr>

                        <tr class="feature-row">
                            <td class="large">
                                <div class="feature-wrap">
                                    <h4><?php echo esc_html__( 'Site Logo upload', 'yoga-workout' ); ?></h4>
                                </div>
                            </td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-yes" size="30"></span></td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-yes" size="30"></span></td>
                        </tr>

                        <tr class="feature-row">
                            <td class="large">
                                <div class="feature-wrap">
                                    <h4><?php echo esc_html__( 'Footer Copyright text', 'yoga-workout' ); ?></h4>
                                    <div class="feature-inline-row">
                                        <span class="info-icon dashicon dashicons dashicons-info"></span>
                                        <span class="feature-description">
                                            <?php echo esc_html__( 'Remove the copyright text from the Footer.', 'yoga-workout' ); ?>
                                        </span>
                                    </div>
                                </div>
                            </td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-yes" size="30"></span></td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-yes" size="30"></span></td>
                        </tr>

                        <tr class="feature-row">
                            <td class="large">
                                <div class="feature-wrap">
                                    <h4><?php echo esc_html__( 'Easy Customization', 'yoga-workout' ); ?></h4>
                                </div>
                            </td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-yes" size="30"></span></td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-yes" size="30"></span></td>
                        </tr>

                        <tr class="feature-row">
                            <td class="large">
                                <div class="feature-wrap">
                                    <h4><?php echo esc_html__( 'Lightweight & Fast Loading', 'yoga-workout' ); ?></h4>
                                </div>
                            </td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-yes" size="30"></span></td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-yes" size="30"></span></td>
                        </tr>

                        <tr class="feature-row">
                            <td class="large">
                                <div class="feature-wrap">
                                    <h4><?php echo esc_html__( 'Global Color', 'yoga-workout' ); ?></h4>
                                </div>
                            </td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-no-alt" size="30"></span></td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-yes" size="30"></span></td>
                        </tr>

                        <tr class="feature-row">
                            <td class="large">
                                <div class="feature-wrap">
                                    <h4><?php echo esc_html__( 'Regular Bug Fixes', 'yoga-workout' ); ?></h4>
                                </div>
                            </td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-yes" size="30"></span></td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-yes" size="30"></span></td>
                        </tr>
                        
                        <tr class="feature-row">
                            <td class="large">
                                <div class="feature-wrap">
                                    <h4><?php echo esc_html__( 'Premium Support', 'yoga-workout' ); ?></h4>
                                </div>
                            </td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-yes" size="30"></span></td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-yes" size="30"></span></td>
                        </tr>

                        <tr class="feature-row">
                            <td class="large">
                                <div class="feature-wrap">
                                    <h4><?php echo esc_html__( 'Theme Sections', 'yoga-workout' ); ?></h4>
                                </div>
                            </td>
                            <td class="indicator"><span class="abc"><?php echo esc_html__( '2 Sections', 'yoga-workout' ); ?></span></td>
                            <td class="indicator"><span class="abc"><?php echo esc_html__( '15+ Sections', 'yoga-workout' ); ?></span></td>
                        </tr>

                        <tr class="feature-row">
                            <td class="large">
                                <div class="feature-wrap">
                                    <h4><?php echo esc_html__( 'Custom colors', 'yoga-workout' ); ?></h4>
                                    <div class="feature-inline-row">
                                        <span class="info-icon dashicon dashicons dashicons-info"></span>
                                        <span class="feature-description">
                                            <?php echo esc_html__( 'Choose a color for links, buttons, icons and so on.', 'yoga-workout' ); ?>
                                        </span>
                                    </div>
                                </div>
                            </td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-no-alt" size="30"></span></td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-yes" size="30"></span></td>
                        </tr>

                        <tr class="feature-row">
                            <td class="large">
                                <div class="feature-wrap">
                                    <h4><?php echo esc_html__( 'Google fonts', 'yoga-workout' ); ?></h4>
                                    <div class="feature-inline-row">
                                        <span class="info-icon dashicon dashicons dashicons-info"></span>
                                        <span class="feature-description">
                                            <?php echo esc_html__( 'You can choose and use over 600 different fonts, for the logo, the menu and the titles.', 'yoga-workout' ); ?>
                                        </span>
                                    </div>
                                </div>
                            </td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-no-alt" size="30"></span></td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-yes" size="30"></span></td>
                        </tr>

                        <tr class="feature-row">
                            <td class="large">
                                <div class="feature-wrap">
                                    <h4><?php echo esc_html__( 'Compatible with Popular Plugins', 'yoga-workout' ); ?></h4>
                                </div>
                            </td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-no-alt" size="30"></span></td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-yes" size="30"></span></td>
                        </tr>

                        <tr class="feature-row">
                            <td class="large">
                                <div class="feature-wrap">
                                    <h4><?php echo esc_html__( 'Translation & WPML Ready', 'yoga-workout' ); ?></h4>
                                </div>
                            </td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-no-alt" size="30"></span></td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-yes" size="30"></span></td>
                        </tr>

                        <tr class="feature-row">
                            <td class="large">
                                <div class="feature-wrap">
                                    <h4><?php echo esc_html__( 'SEO Optimized', 'yoga-workout' ); ?></h4>
                                </div>
                            </td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-no-alt" size="30"></span></td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-yes" size="30"></span></td>
                        </tr>

                        <tr class="feature-row">
                            <td class="large">
                                <div class="feature-wrap">
                                    <h4><?php echo esc_html__( 'Premium Support', 'yoga-workout' ); ?></h4>
                                </div>
                            </td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-no-alt" size="30"></span></td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-yes" size="30"></span></td>
                        </tr>

                        <tr class="feature-row">
                            <td class="large">
                                <div class="feature-wrap">
                                    <h4><?php echo esc_html__( 'Extensive Customization', 'yoga-workout' ); ?></h4>
                                </div>
                            </td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-no-alt" size="30"></span></td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-yes" size="30"></span></td>
                        </tr>

                        <tr class="feature-row">
                            <td class="large">
                                <div class="feature-wrap">
                                    <h4><?php echo esc_html__( 'Custom Post Types', 'yoga-workout' ); ?></h4>
                                </div>
                            </td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-no-alt" size="30"></span></td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-yes" size="30"></span></td>
                        </tr>

                        <tr class="feature-row">
                            <td class="large">
                                <div class="feature-wrap">
                                    <h4><?php echo esc_html__( 'High-Level Compatibility with Modern Browsers', 'yoga-workout' ); ?></h4>
                                </div>
                            </td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-no-alt" size="30"></span></td>
                            <td class="indicator"><span class="dashicon dashicons dashicons-yes" size="30"></span></td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <?php
        }

        public function yoga_workout_faqs() {
            ?>
            <h3><?php esc_html_e( 'FAQs', 'yoga-workout' ); ?></h3>
            <div class="faq-container">
                <div class="accordion" id="YogaWorkoutFaqAccordion">
                    <!-- FAQ 1 -->
                    <div class="accordion-item">
                        <h2 class="accordion-header" id="YogaWorkoutHeadingOne">
                            <button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#YogaWorkoutCollapseOne" aria-expanded="true" aria-controls="YogaWorkoutCollapseOne">
                                <?php echo esc_html__('What is the difference between Free and Pro?', 'yoga-workout'); ?>
                            </button>
                        </h2>
                        <div id="YogaWorkoutCollapseOne" class="accordion-collapse collapse show" aria-labelledby="YogaWorkoutHeadingOne" data-bs-parent="#YogaWorkoutFaqAccordion">
                            <div class="accordion-body">
                                <p>
                                    <?php echo esc_html__('The themes are well-made in both their free and premium versions. But there are a lot more features in the Pro edition.', 'yoga-workout'); ?>
                                </p>
                                <p>
                                    <?php echo esc_html__('You may quickly alter the appearance and feel of your website with the Pro version. You can alter your websites color and typeface with a few clicks. With more customization choices, the premium version gives you greater control over the theme. In addition, the theme offers more layout options and sections than the free version.', 'yoga-workout'); ?>
                                </p>
                            </div>
                        </div>
                    </div>
                    <!-- FAQ 2 -->
                    <div class="accordion-item">
                        <h2 class="accordion-header" id="YogaWorkoutHeadingTwo">
                            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#YogaWorkoutCollapseTwo" aria-expanded="false" aria-controls="YogaWorkoutCollapseTwo">
                                <?php echo esc_html__('What are the advantages of upgrading to the Premium version?', 'yoga-workout'); ?>
                            </button>
                        </h2>
                        <div id="YogaWorkoutCollapseTwo" class="accordion-collapse collapse" aria-labelledby="YogaWorkoutHeadingTwo" data-bs-parent="#YogaWorkoutFaqAccordion">
                            <div class="accordion-body">
                                <p>
                                    <?php echo esc_html__('In addition to the additional features and regular upgrades, the Premium version comes with premium support. Compared to the free assistance, you will receive a much faster response if you encounter any theme problems.', 'yoga-workout'); ?>
                                </p>
                            </div>
                        </div>
                    </div>
                    <!-- FAQ 3 -->
                    <div class="accordion-item">
                        <h2 class="accordion-header" id="YogaWorkoutHeadingThree">
                            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#YogaWorkoutCollapseThree" aria-expanded="false" aria-controls="YogaWorkoutCollapseThree">
                                <?php echo esc_html__('Upgrading to the Pro version- will I lose my changes?', 'yoga-workout'); ?>
                            </button>
                        </h2>
                        <div id="YogaWorkoutCollapseThree" class="accordion-collapse collapse" aria-labelledby="YogaWorkoutHeadingThree" data-bs-parent="#YogaWorkoutFaqAccordion">
                            <div class="accordion-body">
                                <p>
                                    <?php echo esc_html__('Your posts, pages, media, categories, and other data will all be preserved when you upgrade to the Pro theme.', 'yoga-workout'); ?>
                                </p>
                                <p>
                                    <?php echo esc_html__('You will need to configure the extra features via the customizer, though, because the Pro edition has more features and options. It just takes a few minutes to complete this easy process.', 'yoga-workout'); ?>
                                </p>
                                <p>
                                    <?php echo esc_html__('There is a lot of flexibility in the Pro version to accommodate future updates. As a result, it differs slightly from the free theme yet is incredibly versatile and user-friendly.', 'yoga-workout'); ?>
                                </p>
                            </div>
                        </div>
                    </div>
                    <!-- FAQ 4 -->
                    <div class="accordion-item">
                        <h2 class="accordion-header" id="YogaWorkoutHeadingFour">
                            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#YogaWorkoutCollapseFour" aria-expanded="false" aria-controls="YogaWorkoutCollapseFour">
                                <?php echo esc_html__('How do I change the copyright text?', 'yoga-workout'); ?>
                            </button>
                        </h2>
                        <div id="YogaWorkoutCollapseFour" class="accordion-collapse collapse" aria-labelledby="YogaWorkoutHeadingFour" data-bs-parent="#YogaWorkoutFaqAccordion">
                            <div class="accordion-body">
                                <p>
                                    <?php echo esc_html__('You can change the copyright text going to Appearance > Customize > Footer Option > And here you can find (Edit Footer Copyright Text)', 'yoga-workout'); ?>
                                </p>
                            </div>
                        </div>
                    </div>
                    <!-- FAQ 5 -->
                    <div class="accordion-item">
                        <h2 class="accordion-header" id="YogaWorkoutHeadingFour">
                            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#YogaWorkoutCollapseFour" aria-expanded="false" aria-controls="YogaWorkoutCollapseFour">
                                <?php echo esc_html__('Why is my theme not working well?', 'yoga-workout'); ?>
                            </button>
                        </h2>
                        <div id="YogaWorkoutCollapseFour" class="accordion-collapse collapse" aria-labelledby="YogaWorkoutHeadingFour" data-bs-parent="#YogaWorkoutFaqAccordion">
                            <div class="accordion-body">
                                <p>
                                    <?php echo esc_html__('It could be a plugin conflict if your customizer is not loading correctly or if you are experiencing problems with the theme.', 'yoga-workout'); ?>
                                </p>
                                <p>
                                    <?php echo esc_html__('Deactivate every plugin first, with the exception of those the theme suggests, to resolve the problem. After that, use "Ctrl+Shift+R" on Windows to force a new page load. Once the problems have been resolved, begin turning on each plugin individually, then refresh and verify your website each time. This will assist you in identifying the problematic plugin.', 'yoga-workout'); ?>
                                </p>
                                <p>
                                    <?php echo esc_html__('Please get in touch with us if this was not helpful.', 'yoga-workout'); ?>
                                </p>
                            </div>
                        </div>
                    </div>
                    <!-- FAQ 5 -->
                    <div class="accordion-item">
                        <h2 class="accordion-header" id="YogaWorkoutHeadingFour">
                            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#YogaWorkoutCollapseFour" aria-expanded="false" aria-controls="YogaWorkoutCollapseFour">
                                <?php echo esc_html__('How can I solve my issues quickly and get faster support?', 'yoga-workout'); ?>
                            </button>
                        </h2>
                        <div id="YogaWorkoutCollapseFour" class="accordion-collapse collapse" aria-labelledby="YogaWorkoutHeadingFour" data-bs-parent="#YogaWorkoutFaqAccordion">
                            <div class="accordion-body">
                                <p>
                                    <?php echo esc_html__('Please make sure you have updated the theme to the most recent version before sending us a support ticket for any problems. The theme update may have resolved the issue.', 'yoga-workout'); ?>
                                </p>
                                <p>
                                    <?php echo esc_html__('Please try to include as much information as you can in your support ticket submission so that we can address your issue more quickly. We advise you to email us one or more screenshots that clearly illustrate the problems and include the URL of your website.', 'yoga-workout'); ?>
                                </p>
                                <p>
                                    <?php echo esc_html__('Please be patient with us as we may have a delayed response time during the weekend.', 'yoga-workout'); ?>
                                </p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <?php
        }
        
	}

}
new Yoga_Workout_Welcome();
?>