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

if( !class_exists( 'Home_Gardening_Welcome' ) ) {

	class Home_Gardening_Welcome {
		public $home_gardening_theme_fields;

		public function __construct( $home_gardening_fields = array() ) {
			$this->home_gardening_theme_fields = $home_gardening_fields;
			add_action ('admin_init' , array( $this, 'admin_scripts' ) );
			add_action('admin_menu', array( $this, 'home_gardening_themeinfo_page_menu' ));
		}

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

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

				wp_enqueue_style (
					'home-gardening-themeinfo-page-style',
					$home_gardening_file_dir . 'home_gardening_themeinfo_page.css',
					array(), '1.0.0'
				);

				wp_enqueue_script (
					'home-gardening-themeinfo-page-functions',
					$home_gardening_file_dir . 'home_gardening_themeinfo_page.js',
					array('jquery'),
					'1.0.0',
					true
				);
			}
		}

        public function home_gardening_theme_info($home_gardening_id, $home_gardening_screenshot = false) {
            $home_gardening_themedata = wp_get_theme();
            return ($home_gardening_screenshot === true) ? esc_url($home_gardening_themedata->get_screenshot()) : esc_html($home_gardening_themedata->get($home_gardening_id));
        }

        public function home_gardening_themeinfo_page_menu() {
            add_theme_page(
                /* translators: 1: Theme Name. */
                sprintf(esc_html__('%1$s Info', 'home-gardening'), $this->home_gardening_theme_info('Name')),
                sprintf(esc_html__('%1$s Info', 'home-gardening'), $this->home_gardening_theme_info('Name')),
                'edit_theme_options',
                'home-gardening-themeinfo-page',
                array( $this, 'home_gardening_themeinfo_page' )
            );
		}

        public function home_gardening_themeinfo_page() {
            // Define tabs with proper escaping and prefixes
            $home_gardening_tabs = array(
                'home_gardening_home'      => esc_html__('Home', 'home-gardening'),
                'home_gardening_free_demo_content'    => esc_html__('Click Here For Free Demo Content', 'home-gardening'),
                'home_gardening_free_pro'  => esc_html__('Free VS Pro', 'home-gardening'),
                'home_gardening_faqs'      => esc_html__('FAQs', 'home-gardening'),
                'home_gardening_support'   => esc_html__('Free Theme Supports', 'home-gardening'),
                'home_gardening_review'    => esc_html__('Please Rate Us', 'home-gardening'),
            );
            ?>
            <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', 'home-gardening'),
                                    esc_html($this->home_gardening_theme_info('Name')),
                                    esc_html($this->home_gardening_theme_info('Version'))
                                );
                            ?>
                        </h1>
                        <div class="doc-links">
                            <h4><?php echo esc_html__('Visit Sites :-', 'home-gardening'); ?></h4>
                            <a href="<?php echo esc_url(HOME_GARDENING_BUY_NOW); ?>" target="_blank">
                                <span class="dashicons dashicons-admin-site-alt3"></span>
                                <span class="theme-pixel-tooltip"><?php echo esc_html__('View Website', 'home-gardening'); ?></span>
                            </a>
                            <a href="<?php echo esc_url(HOME_GARDENING_LIVE_DEMO); ?>" target="_blank">
                                <span class="dashicons dashicons-desktop"></span>
                                <span class="theme-pixel-tooltip"><?php echo esc_html__('View Demo Site', 'home-gardening'); ?></span>
                            </a>
                            <a href="<?php echo esc_url(HOME_GARDENING_THEME_SUPPORT); ?>" target="_blank">
                                <span class="dashicons dashicons-megaphone"></span>
                                <span class="theme-pixel-tooltip"><?php echo esc_html__('Contact Support', 'home-gardening'); ?></span>
                            </a>
                            <a href="<?php echo esc_url(HOME_GARDENING_FREE_DOC); ?>" target="_blank">
                                <span class="dashicons dashicons-pdf"></span>
                                <span class="theme-pixel-tooltip"><?php echo esc_html__('Documentation', 'home-gardening'); ?></span>
                            </a>
                        </div>
                    </div>
                </div>
        
                <div class="test">
                    <div class="nav-tab-wrapper clearfix">
                        <?php
                        $tabHTML = '';
        
                        foreach ($home_gardening_tabs as $home_gardening_id => $home_gardening_label) :
        
                            $home_gardening_target = '';
                            $home_gardening_nav_class = 'nav-tab';
                            $home_gardening_section = isset($_GET['section']) ? sanitize_text_field($_GET['section']) : 'home_gardening_home';
        
                            if ($home_gardening_id === $home_gardening_section) {
                                $home_gardening_nav_class .= ' nav-tab-active';
                            }
        
                            if ($home_gardening_id === 'home_gardening_free_pro') {
                                $home_gardening_nav_class .= ' upgrade-button';
                            }

                            if ($home_gardening_id === 'home_gardening_review') {
                                $home_gardening_nav_class .= ' review-button';
                            }

                            if ($home_gardening_id === 'home_gardening_free_demo_content') {
                                $home_gardening_nav_class .= ' demo-content-button';
                            }
        
                            switch ($home_gardening_id) {
        
                                case 'home_gardening_support':
                                    $home_gardening_target = 'target="_blank"';
                                    $home_gardening_url = esc_url('https://wordpress.org/support/theme/' . esc_html($this->home_gardening_theme_info('TextDomain')));
                                break;
        
                                case 'home_gardening_review':
                                    $home_gardening_target = 'target="_blank"';
                                    $home_gardening_url = esc_url('https://wordpress.org/support/theme/' . esc_html($this->home_gardening_theme_info('TextDomain')) . '/reviews/#new-post');
                                break;
                                
                                case 'home_gardening_home':
                                    $home_gardening_url = esc_url(admin_url('themes.php?page=home-gardening-themeinfo-page'));
                                break;
        
                                default:
                                    $home_gardening_url = esc_url(admin_url('themes.php?page=home-gardening-themeinfo-page&section=' . esc_attr($home_gardening_id)));
                                break;
        
                            }
        
                            $tabHTML .= '<a ';
                            $tabHTML .= $home_gardening_target;
                            $tabHTML .= ' href="' . esc_url($home_gardening_url) . '"';
                            $tabHTML .= ' class="' . esc_attr($home_gardening_nav_class) . '"';
                            $tabHTML .= '>';

                            if ($home_gardening_id === 'home_gardening_free_demo_content') {
                                $tabHTML .= '<span>' . esc_html($home_gardening_label) . '</span>';
                            } else {
                                $tabHTML .= esc_html($home_gardening_label);
                            }

                            if ($home_gardening_id === 'home_gardening_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__('Home Gardening Pro', 'home-gardening'); ?></h3>
                            <p><?php echo esc_html__('Get all of the features that are infinite!!!', 'home-gardening'); ?></p>
                            <a class="theme-pixel-button-btn primary-btn" target="_blank" href="<?php echo esc_url(HOME_GARDENING_BUY_NOW); ?>"><?php echo esc_html__('Upgrade To Pro', 'home-gardening'); ?></a>
                        </div>
                    </div>

                    <div class="second-div">
                        <div class="themeinfo-section-wrapper">
                            <div class="themeinfo-section home_gardening_home clearfix">
                                <?php
                                $home_gardening_section = isset($_GET['section']) ? sanitize_text_field($_GET['section']) : 'home_gardening_home';
                                switch ($home_gardening_section) {
            
                                    case 'home_gardening_free_pro':
                                        $this->home_gardening_free_pro();
                                    break;
            
                                    case 'home_gardening_faqs':
                                        $this->home_gardening_faqs();
                                    break;

                                    case 'home_gardening_free_demo_content':
                                        echo '<h3>' . esc_html__( 'FREE DEMO CONTENT', 'home-gardening' ) . '</h3>';

                                        echo '<div class="themeinfo-section home_gardening_free_demo_content clearfix">';
                                        
                                        // include the wizard file
                                        require_once get_template_directory() . '/inc/free-demo-content/free-content.php';
                                        
                                        global $home_gardening_config;
                                        
                                        if ( class_exists( 'HomeGardeningThemeWhizzie' ) ) {
                                            $home_gardening_wiz = new HomeGardeningThemeWhizzie( $home_gardening_config );
                                        
                                            // NOTE: Only render the wizard UI — NOT header/wrapper/tabs
                                            $home_gardening_wiz->Home_Gardening_Demo_Content_Page();
                                        }
                                        
                                        echo '</div>';
                                        
                                    break;
            
                                    case 'home_gardening_home':
                                    default:
                                        $this->home_gardening_home();
                                    break;
            
                                }
                                ?>
                            </div>
                        </div>
            
                        <div class="theme-steps-list">

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

                            <div class="theme-steps">
                                <h3><?php echo esc_html__('Documentation', 'home-gardening'); ?></h3>
                                <p><?php echo esc_html__('Do you need additional information? You may find detailed instructions on how to use the Home Gardening Theme in our extensive documentation.', 'home-gardening'); ?></p>
                                <a target="_blank" class="button button-primary" href="<?php echo esc_url(HOME_GARDENING_FREE_DOC); ?>"><?php echo esc_html__('Go to Free Docs', 'home-gardening'); ?></a>
                            </div>
            
                            <div class="theme-steps">
                                <h3><?php echo esc_html__('Preview Pro Theme', 'home-gardening'); ?></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.', 'home-gardening'); ?></p>
                                <a target="_blank" class="button button-primary" href="<?php echo esc_url(HOME_GARDENING_LIVE_DEMO); ?>"><?php echo esc_html__('View Live Demo', 'home-gardening'); ?></a>
                            </div>
            
                            <div class="theme-steps highlight">
                                <h3><?php echo esc_html__('Get the Bundle', 'home-gardening'); ?></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.', 'home-gardening'); ?></p>
                                <a target="_blank" class="button button-primary" href="<?php echo esc_url(HOME_GARDENING_BUNDLE); ?>"><?php echo esc_html__('Get All Themes', 'home-gardening'); ?></a>
                            </div>
            
                        </div>
                    </div>
                </div>
        
            </div>
            <?php
        }

        public function home_gardening_home() {
            ?>
            <div class="theme-info-top-wrap clearfix">
                <h3><?php esc_html_e( 'HOME', 'home-gardening' ); ?></h3>
                <div class="theme-details">
                    <div class="theme-screenshot">
                        <img src="<?php echo esc_url( $this->home_gardening_theme_info( 'Screenshot', true ) ); ?>" alt="<?php esc_attr_e( 'Theme screenshot', 'home-gardening' ); ?>" />
                    </div>
                    <div class="about-text"><?php echo esc_html( $this->home_gardening_theme_info( 'Description' ) ); ?></div>
                    <div class="clearfix"></div>
                </div>
                <div class="theme-pixel-settings">
                    <h2><?php esc_html_e( 'Quick Customizer Settings', 'home-gardening' ); ?></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', 'home-gardening' ); ?> <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', 'home-gardening' ); ?></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', 'home-gardening' ); ?>
                                    <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', 'home-gardening' ); ?></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', 'home-gardening' ); ?>
                                    <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', 'home-gardening' ); ?></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', 'home-gardening' ); ?>
                                    <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', 'home-gardening' ); ?></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', 'home-gardening' ); ?>
                                    <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', 'home-gardening' ); ?></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', 'home-gardening' ); ?>
                                    <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', 'home-gardening' ); ?></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', 'home-gardening' ); ?>
                                    <span class="dashicons dashicons-arrow-right-alt"></span>
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <?php
        }        

		public function home_gardening_free_pro() {
            ?>
            <h3><?php esc_html_e( 'FREE VS PRO', 'home-gardening' ); ?></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', 'home-gardening' ); ?></th>
                            <th class="indicator"><?php echo esc_html__( 'Free theme', 'home-gardening' ); ?></th>
                            <th class="indicator"><?php echo esc_html__( 'Pro Theme', 'home-gardening' ); ?></th>
                        </tr>

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

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

}
new Home_Gardening_Welcome();
?>