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

if( !class_exists( 'charity_aid_Welcome' ) ) {

	class charity_aid_Welcome {
		public $charity_aid_theme_fields;

		public function __construct( $charity_aid_fields = array() ) {
			$this->charity_aid_theme_fields = $charity_aid_fields;
			add_action ('admin_init' , array( $this, 'admin_scripts' ) );
			add_action('admin_menu', array( $this, 'charity_aid_themeinfo_page_menu' ));
		}

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

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

				wp_enqueue_style (
					'charity-aid-themeinfo-page-style',
					$charity_aid_file_dir . 'charity_aid_themeinfo_page.css',
					array(), '1.0.0'
				);

				wp_enqueue_script (
					'charity-aid-themeinfo-page-functions',
					$charity_aid_file_dir . 'charity_aid_themeinfo_page.js',
					array('jquery'),
					'1.0.0',
					true
				);
			}
		}

        public function charity_aid_theme_info($charity_aid_id, $charity_aid_screenshot = false) {
            $charity_aid_themedata = wp_get_theme();
            return ($charity_aid_screenshot === true) ? esc_url($charity_aid_themedata->get_screenshot()) : esc_html($charity_aid_themedata->get($charity_aid_id));
        }

        public function charity_aid_themeinfo_page_menu() {
            add_theme_page(
                /* translators: 1: Theme Name. */
                sprintf(esc_html__('%1$s Info', 'charity-aid'), $this->charity_aid_theme_info('Name')),
                sprintf(esc_html__('%1$s Info', 'charity-aid'), $this->charity_aid_theme_info('Name')),
                'edit_theme_options',
                'charity-aid-themeinfo-page',
                array( $this, 'charity_aid_themeinfo_page' )
            );
		}

        public function charity_aid_themeinfo_page() {
            // Define tabs with proper escaping and prefixes
            $charity_aid_tabs = array(
                'charity_aid_home'      => esc_html__('Home', 'charity-aid'),
                'charity_aid_free_demo_content'    => esc_html__('Demo Importer', 'charity-aid'),
                'charity_aid_free_pro'  => esc_html__('Free VS Pro', 'charity-aid'),
                'charity_aid_faqs'      => esc_html__('FAQs', 'charity-aid'),
                'charity_aid_support'   => esc_html__('Free Theme Supports', 'charity-aid'),
                'charity_aid_review'    => esc_html__('Please Rate Us', 'charity-aid'),
            );
            ?>
            <?php charity_aid_theme_notice_content( false, true, false ); ?>
                <div class="wrap about-wrap access-wrap">
                    <div class="test">
                        <div class="nav-tab-wrapper clearfix">
                            <?php
                            $tabHTML = '';
            
                            foreach ($charity_aid_tabs as $charity_aid_id => $charity_aid_label) :
            
                                $charity_aid_target = '';
                                $charity_aid_nav_class = 'nav-tab';
                                $charity_aid_section = isset($_GET['section']) ? sanitize_text_field($_GET['section']) : 'charity_aid_home';
            
                                if ($charity_aid_id === $charity_aid_section) {
                                    $charity_aid_nav_class .= ' nav-tab-active';
                                }
            
                                if ($charity_aid_id === 'charity_aid_free_pro') {
                                    $charity_aid_nav_class .= ' upgrade-button';
                                }

                                if ($charity_aid_id === 'charity_aid_review') {
                                    $charity_aid_nav_class .= ' review-button';
                                }

                                if ($charity_aid_id === 'charity_aid_free_demo_content') {
                                    $charity_aid_nav_class .= ' demo-content-button';
                                }
            
                                switch ($charity_aid_id) {
            
                                    case 'charity_aid_support':
                                        $charity_aid_target = 'target="_blank"';
                                        $charity_aid_url = esc_url('https://wordpress.org/support/theme/' . esc_html($this->charity_aid_theme_info('TextDomain')));
                                    break;
            
                                    case 'charity_aid_review':
                                        $charity_aid_target = 'target="_blank"';
                                        $charity_aid_url = esc_url('https://wordpress.org/support/theme/' . esc_html($this->charity_aid_theme_info('TextDomain')) . '/reviews/#new-post');
                                    break;

                                    // case 'charity_aid_free_demo_content':
                                    // $charity_aid_target = 'target="_blank"';
                                    // $charity_aid_url = esc_url(admin_url('themes.php?page=charity_aid_free_demo_content'));
                                    // break;
                                    
                                    
                                    case 'charity_aid_home':
                                        $charity_aid_url = esc_url(admin_url('themes.php?page=charity-aid-themeinfo-page'));
                                    break;
            
                                    default:
                                        $charity_aid_url = esc_url(admin_url('themes.php?page=charity-aid-themeinfo-page&section=' . esc_attr($charity_aid_id)));
                                    break;
            
                                }
            
                                $tabHTML .= '<a ';
                                $tabHTML .= $charity_aid_target;
                                $tabHTML .= ' href="' . esc_url($charity_aid_url) . '"';
                                $tabHTML .= ' class="' . esc_attr($charity_aid_nav_class) . '"';
                                $tabHTML .= '>';

                                if ($charity_aid_id === 'charity_aid_free_demo_content') {
                                    $tabHTML .= '<span>' . esc_html($charity_aid_label) . '</span>';
                                } else {
                                    $tabHTML .= esc_html($charity_aid_label);
                                }

                                $tabHTML .= '</a>';
            
                            endforeach;
            
                            echo $tabHTML;
                            ?>
                        </div>
                        <div class="second-div">
                            <div class="themeinfo-section-wrapper">
                                <div class="themeinfo-section charity_aid_home clearfix">
                                    <?php
                                    $charity_aid_section = isset($_GET['section']) ? sanitize_text_field($_GET['section']) : 'charity_aid_home';
                                    switch ($charity_aid_section) {
                
                                        case 'charity_aid_free_pro':
                                            $this->charity_aid_free_pro();
                                        break;
                
                                        case 'charity_aid_faqs':
                                            $this->charity_aid_faqs();
                                        break;

                                        case 'charity_aid_free_demo_content':
                                            echo '<h3>' . esc_html__( 'FREE DEMO CONTENT', 'charity-aid' ) . '</h3>';

                                            echo '<div class="themeinfo-section charity_aid_free_demo_content clearfix">';
                                            
                                            // include the wizard file
                                            require_once get_template_directory() . '/inc/free-demo-content/free-content.php';
                                            
                                            global $charity_aid_config;
                                            
                                            if ( class_exists( 'charityAidThemeWhizzie' ) ) {
                                                $charity_aid_wiz = new charityAidThemeWhizzie( $charity_aid_config );
                                            
                                                // NOTE: Only render the wizard UI — NOT header/wrapper/tabs
                                                $charity_aid_wiz->charity_aid_Demo_Content_Page();
                                            }
                                            
                                            echo '</div>';
                                            
                                        break;
                
                                        case 'charity_aid_home':
                                        default:
                                            $this->charity_aid_home();
                                        break;
                
                                    }
                                    ?>
                                </div>
                            </div>
                        </div>
                        <div class="customizer-settings">
                            <h4><?php esc_html_e( 'Quick Customizer Settings', 'charity-aid' ); ?></h4>
                            <div class="setting-box">
                                <div class="custom-links">
                                    <div class="icon-box">
                                        <img src="<?php echo esc_url(get_template_directory_uri()) .'/assets/images/icon1.png'; ?>" />
                                    </div>
                                    <div class="icon-info">
                                        <h5><?php esc_html_e( 'Site Logo', 'charity-aid' ); ?></h5>
                                        <a href="<?php echo esc_url( admin_url( 'customize.php?autofocus[section]=title_tagline' ) ); ?>" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Customize', 'charity-aid' ); ?></a>
                                    </div>
                                </div>
                                <div class="custom-links">
                                    <div class="icon-box">
                                        <img src="<?php echo esc_url(get_template_directory_uri()) .'/assets/images/icon2.png'; ?>" />
                                    </div>
                                    <div class="icon-info">
                                        <h5><?php esc_html_e( 'Color Settings', 'charity-aid' ); ?></h5><a href="<?php echo esc_url( admin_url( 'customize.php?autofocus[section]=charity_aid_global_color_section' ) ); ?>" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Customize', 'charity-aid' ); ?></a>
                                    </div>
                                </div>
                                <div class="custom-links">
                                    <div class="icon-box">
                                        <img src="<?php echo esc_url(get_template_directory_uri()) .'/assets/images/icon3.png'; ?>" />
                                    </div>
                                    <div class="icon-info">
                                        <h5><?php esc_html_e( 'Header Settings', 'charity-aid' ); ?></h5>
                                        <a href="<?php echo esc_url( admin_url( 'customize.php?autofocus[section]=charity_aid_header_section' ) ); ?>" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Customize', 'charity-aid' ); ?></a>
                                    </div>
                                </div>
                            </div>
                            <div class="setting-box">
                                <div class="custom-links">
                                    <div class="icon-box">
                                        <img src="<?php echo esc_url(get_template_directory_uri()) .'/assets/images/icon4.png'; ?>" />
                                    </div>
                                    <div class="icon-info">
                                        <h5><?php esc_html_e( 'General Settings', 'charity-aid' ); ?></h5>
                                        <a href="<?php echo esc_url( admin_url( 'customize.php?autofocus[section]=charity_aid_global_font_section' ) ); ?>" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Customize', 'charity-aid' ); ?></a>
                                    </div>
                                </div>
                                <div class="custom-links">
                                    <div class="icon-box">
                                        <img src="<?php echo esc_url(get_template_directory_uri()) .'/assets/images/icon5.png'; ?>" />
                                    </div>
                                    <div class="icon-info">
                                        <h5><?php esc_html_e( 'Homepage Settings', 'charity-aid' ); ?></h5>
                                        <a href="<?php echo esc_url(
                                            admin_url( 'customize.php?autofocus[panel]=charity_aid_frontpage_sections_settings_panel' )
                                        ); ?>" target="_blank" rel="noopener noreferrer">
                                            <?php esc_html_e( 'Customize', 'charity-aid' ); ?>
                                        </a>
                                    </div>
                                </div>
                                <div class="custom-links">
                                    <div class="icon-box">
                                        <img src="<?php echo esc_url(get_template_directory_uri()) .'/assets/images/icon6.png'; ?>" />
                                    </div>
                                    <div class="icon-info">
                                        <h5><?php esc_html_e( 'Footer Settings', 'charity-aid' ); ?></h5>
                                        <a href="<?php echo esc_url( admin_url( 'customize.php?autofocus[section]=charity_aid_footer_widgets_section' ) ); ?>" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Customize', 'charity-aid' ); ?></a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="theme-steps-list">
                        <div class="theme-steps">
                            <h3><?php echo esc_html__('Documentation', 'charity-aid'); ?></h3>
                            <p><?php echo esc_html__('Need help? Our detailed docs will guide you through everything.', 'charity-aid'); ?></p>
                            <a target="_blank" class="button button-primary" href="<?php echo esc_url(CHARITY_AID_FREE_DOC); ?>"><?php echo esc_html__('Go to Docs', 'charity-aid'); ?></a>
                        </div>    
                        <div class="theme-steps pro-info">
                            <h3><?php echo esc_html__('Preview Pro Theme', 'charity-aid'); ?></h3>
                            <p><?php echo esc_html__('Explore our Pro theme demo and see the power of customization.', 'charity-aid'); ?></p>
                            <div class="pro-screenshot">
                                <img src="<?php echo esc_url( get_stylesheet_directory_uri() . '/assets/images/pro-img.png' ); ?>" alt="<?php esc_attr_e( 'Premium Theme Screenshot', 'charity-aid' ); ?>">
                            </div>
                            <strong>Get 20% OFF </strong><span>WordPress Themes</span><br>
                            <strong>Code: EARLY20</strong>
                            <h6 class="price"><?php echo esc_html__('Just ','charity-aid'); ?><span class="reg-price"><?php echo esc_html__('$59.00','charity-aid'); ?></span><span class="sel-price"><?php echo esc_html__('$39.00','charity-aid'); ?></span></h6>
                            <div class="pro-info-buttons">
                                <a target="_blank" class="button button-primary" href="<?php echo esc_url(CHARITY_AID_LIVE_DEMO); ?>"><?php echo esc_html__('View Live Demo', 'charity-aid'); ?></a>
                                <a target="_blank" class="button button-primary" href="<?php echo esc_url(CHARITY_AID_BUY_NOW); ?>"><?php echo esc_html__('Buy Pro Theme', 'charity-aid'); ?></a>
                            </div>
                        </div>              
                        <div class="theme-steps">
                            <h3><?php echo esc_html__('Get the Bundle At Just $59 ', 'charity-aid'); ?></h3>
                            <div class="bundle-img">
                                <img src="<?php echo esc_url(get_template_directory_uri()) .'/assets/images/bundle-img-2.png'; ?>" />
                            </div>
                            <br>
                            <a target="_blank" class="button button-primary" href="<?php echo esc_url(CHARITY_AID_BUNDLE); ?>"><?php echo esc_html__('Get All Themes', 'charity-aid'); ?></a>
                        </div>          
                    </div>
                </div>
            <?php
        }

        public function charity_aid_home() {
            ?>
            <div class="theme-info-top-wrap clearfix">
                <div class="theme-details theme-desc">
                    <div class="theme-screenshot">
                        <img src="<?php echo esc_url( $this->charity_aid_theme_info( 'Screenshot', true ) ); ?>" alt="<?php esc_attr_e( 'Theme screenshot', 'charity-aid' ); ?>" />
                    </div>
                    <div class="about-text"><?php echo esc_html( $this->charity_aid_theme_info( 'Description' ) ); ?></div>
                    <div class="clearfix"></div>
                </div>
            </div>
            <?php
        }        

		public function charity_aid_free_pro() {
            ?>
            <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', 'charity-aid' ); ?></th>
                            <th class="indicator"><?php echo esc_html__( 'Free theme', 'charity-aid' ); ?></th>
                            <th class="indicator"><?php echo esc_html__( 'Pro Theme', 'charity-aid' ); ?></th>
                        </tr>

                        <tr class="feature-row">
                            <td class="large">
                                <div class="feature-wrap">
                                    <h4><?php echo esc_html__( 'Responsive Design', 'charity-aid' ); ?></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', 'charity-aid' ); ?></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', 'charity-aid' ); ?></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.', 'charity-aid' ); ?>
                                        </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', 'charity-aid' ); ?></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', 'charity-aid' ); ?></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', 'charity-aid' ); ?></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', 'charity-aid' ); ?></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', 'charity-aid' ); ?></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', 'charity-aid' ); ?></h4>
                                </div>
                            </td>
                            <td class="indicator"><span class="abc"><?php echo esc_html__( '2 Sections', 'charity-aid' ); ?></span></td>
                            <td class="indicator"><span class="abc"><?php echo esc_html__( '15+ Sections', 'charity-aid' ); ?></span></td>
                        </tr>

                        <tr class="feature-row">
                            <td class="large">
                                <div class="feature-wrap">
                                    <h4><?php echo esc_html__( 'Custom colors', 'charity-aid' ); ?></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.', 'charity-aid' ); ?>
                                        </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', 'charity-aid' ); ?></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.', 'charity-aid' ); ?>
                                        </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', 'charity-aid' ); ?></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', 'charity-aid' ); ?></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', 'charity-aid' ); ?></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', 'charity-aid' ); ?></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', 'charity-aid' ); ?></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', 'charity-aid' ); ?></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', 'charity-aid' ); ?></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 charity_aid_faqs() {
            ?>
            <div class="faq-container">
                <div class="accordion" id="ShoeOutletFaqAccordion">
                    <!-- FAQ 1 -->
                    <div class="accordion-item">
                        <h2 class="accordion-header" id="ShoeOutletHeadingOne">
                            <button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#ShoeOutletCollapseOne" aria-expanded="true" aria-controls="ShoeOutletCollapseOne">
                                <?php echo esc_html__('What is the difference between Free and Pro?', 'charity-aid'); ?>
                            </button>
                        </h2>
                        <div id="ShoeOutletCollapseOne" class="accordion-collapse collapse show" aria-labelledby="ShoeOutletHeadingOne" data-bs-parent="#ShoeOutletFaqAccordion">
                            <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.', 'charity-aid'); ?>
                                </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.', 'charity-aid'); ?>
                                </p>
                            </div>
                        </div>
                    </div>
                    <!-- FAQ 2 -->
                    <div class="accordion-item">
                        <h2 class="accordion-header" id="ShoeOutletHeadingTwo">
                            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#ShoeOutletCollapseTwo" aria-expanded="false" aria-controls="ShoeOutletCollapseTwo">
                                <?php echo esc_html__('What are the advantages of upgrading to the Premium version?', 'charity-aid'); ?>
                            </button>
                        </h2>
                        <div id="ShoeOutletCollapseTwo" class="accordion-collapse collapse" aria-labelledby="ShoeOutletHeadingTwo" data-bs-parent="#ShoeOutletFaqAccordion">
                            <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.', 'charity-aid'); ?>
                                </p>
                            </div>
                        </div>
                    </div>
                    <!-- FAQ 3 -->
                    <div class="accordion-item">
                        <h2 class="accordion-header" id="ShoeOutletHeadingThree">
                            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#ShoeOutletCollapseThree" aria-expanded="false" aria-controls="ShoeOutletCollapseThree">
                                <?php echo esc_html__('Upgrading to the Pro version- will I lose my changes?', 'charity-aid'); ?>
                            </button>
                        </h2>
                        <div id="ShoeOutletCollapseThree" class="accordion-collapse collapse" aria-labelledby="ShoeOutletHeadingThree" data-bs-parent="#ShoeOutletFaqAccordion">
                            <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.', 'charity-aid'); ?>
                                </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.', 'charity-aid'); ?>
                                </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.', 'charity-aid'); ?>
                                </p>
                            </div>
                        </div>
                    </div>
                    <!-- FAQ 4 -->
                    <div class="accordion-item">
                        <h2 class="accordion-header" id="ShoeOutletHeadingFour">
                            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#ShoeOutletCollapseFour" aria-expanded="false" aria-controls="ShoeOutletCollapseFour">
                                <?php echo esc_html__('How do I change the copyright text?', 'charity-aid'); ?>
                            </button>
                        </h2>
                        <div id="ShoeOutletCollapseFour" class="accordion-collapse collapse" aria-labelledby="ShoeOutletHeadingFour" data-bs-parent="#ShoeOutletFaqAccordion">
                            <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)', 'charity-aid'); ?>
                                </p>
                            </div>
                        </div>
                    </div>
                    <!-- FAQ 5 -->
                    <div class="accordion-item">
                        <h2 class="accordion-header" id="ShoeOutletHeadingFour">
                            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#ShoeOutletCollapseFour" aria-expanded="false" aria-controls="ShoeOutletCollapseFour">
                                <?php echo esc_html__('Why is my theme not working well?', 'charity-aid'); ?>
                            </button>
                        </h2>
                        <div id="ShoeOutletCollapseFour" class="accordion-collapse collapse" aria-labelledby="ShoeOutletHeadingFour" data-bs-parent="#ShoeOutletFaqAccordion">
                            <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.', 'charity-aid'); ?>
                                </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.', 'charity-aid'); ?>
                                </p>
                                <p>
                                    <?php echo esc_html__('Please get in touch with us if this was not helpful.', 'charity-aid'); ?>
                                </p>
                            </div>
                        </div>
                    </div>
                    <!-- FAQ 5 -->
                    <div class="accordion-item">
                        <h2 class="accordion-header" id="ShoeOutletHeadingFour">
                            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#ShoeOutletCollapseFour" aria-expanded="false" aria-controls="ShoeOutletCollapseFour">
                                <?php echo esc_html__('How can I solve my issues quickly and get faster support?', 'charity-aid'); ?>
                            </button>
                        </h2>
                        <div id="ShoeOutletCollapseFour" class="accordion-collapse collapse" aria-labelledby="ShoeOutletHeadingFour" data-bs-parent="#ShoeOutletFaqAccordion">
                            <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.', 'charity-aid'); ?>
                                </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.', 'charity-aid'); ?>
                                </p>
                                <p>
                                    <?php echo esc_html__('Please be patient with us as we may have a delayed response time during the weekend.', 'charity-aid'); ?>
                                </p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <?php
        }
        
	}

}
new charity_aid_Welcome();
?>