<?php

/**
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-3.0.txt
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
} // Exit if accessed directly

if( !class_exists( 'anna_lite_welcome' ) ) {

	class anna_lite_welcome {

        public $theme_fields;

		public function __construct( $fields = array() ) {

			$this->theme_fields = $fields;

			add_action ('admin_init' , array( &$this, 'admin_scripts' ) );
			add_action('admin_menu',array( &$this, 'welcome_page_menu'));

		}

		public function admin_scripts() {

			global $pagenow;

			$file_dir = get_template_directory_uri() . '/core/admin/assets/';

			if ( $pagenow == 'themes.php' && isset($_GET['page']) && $_GET['page'] == 'anna-lite-welcome-page') {

				wp_enqueue_style (
					'anna-lite-welcome-page-style',
					$file_dir . 'css/welcome-page.css',
					array(), '1.0.0'
				);

				wp_enqueue_script (
					'anna-lite-welcome-page-functions',
					$file_dir . 'js/welcome-page.js',
					array('jquery'),
					'1.0.0',
					TRUE
				);

			}

		}

    public function theme_info($id, $screenshot = false) {
      $themedata = wp_get_theme();
      return ($screenshot == true) ? $themedata->get_screenshot() : $themedata->get($id);
    }

    public function welcome_page_menu() {

			add_theme_page(
				sprintf(esc_html__('About %1$s', 'anna-lite'), $this->theme_info('Name')),
				sprintf(esc_html__('About %1$s', 'anna-lite'), $this->theme_info('Name')),
				'edit_theme_options',
				'anna-lite-welcome-page',
				array( &$this, 'welcome_page' )
			);

		}

    public function check_installed_plugin($slug, $filename) {
			return file_exists( ABSPATH . 'wp-content/plugins/' . $slug . '/' . $filename . '.php' ) ? true : false;
		}

		private function call_plugin_api( $slug ) {

			include_once ABSPATH . 'wp-admin/includes/plugin-install.php';

			$call_api = get_transient( 'anna_lite_plugin_info_' . $slug );

			if ( false === $call_api ) {
				$call_api = plugins_api(
					'plugin_information',
					array(
						'slug'   => $slug,
						'fields' => array(
							'downloaded'        => false,
							'rating'            => false,
							'description'       => false,
							'short_description' => true,
							'donate_link'       => false,
							'tags'              => false,
							'sections'          => true,
							'homepage'          => true,
							'added'             => false,
							'last_updated'      => false,
							'compatibility'     => false,
							'tested'            => false,
							'requires'          => false,
							'downloadlink'      => false,
							'icons'             => true,
							'banners'           => true,
						),
					)
				);
				set_transient( 'anna_lite_plugin_info_' . $slug, $call_api, 30 * MINUTE_IN_SECONDS );
			}

			return $call_api;
		}

        public function welcome_page() {

            $tabs = array(
                'getting_started' => esc_html__('Getting Started', 'anna-lite'),
                'recommended_plugins' => esc_html__('Recommended Plugins', 'anna-lite'),
                'free_pro' => esc_html__('Free VS Pro', 'anna-lite'),
                'changelog' => esc_html__('Changelog', 'anna-lite'),
                'support' => esc_html__('Support', 'anna-lite'),
            );

        ?>

            <div class="wrap about-wrap access-wrap">
                <div class="abt-promo-wrap clearfix">
                    <div class="abt-theme-wrap">

                        <h1>
                        	<?php
								printf(
									esc_html__('Welcome to %1$s - Version %2$s', 'anna-lite'),
									$this->theme_info('Name'),
									$this->theme_info('Version')
								);
							?>
                        </h1>

                        <div class="theme-details">


                            <div class="theme-screenshot">
                                <img src="<?php echo esc_url($this->theme_info('Screenshot', true)); ?>" alt="<?php esc_attr_e( 'Theme screenshot', 'anna-lite' ); ?>"/>
                            </div>

                            <div class="about-text"><?php echo $this->theme_info('Description'); ?></div>

                            <div class="clearfix"></div>

                        </div>

                    </div>

                </div>

                <div class="nav-tab-wrapper clearfix">

					<?php

						$tabHTML = '';

						foreach ($tabs as $id => $label) :

							$target = '';
							$nav_class = 'nav-tab';
							$section = isset($_GET['section']) ? $_GET['section'] : 'getting_started';

              if ($id == $section) {
								$nav_class .= ' nav-tab-active';
							}

							if ($id == 'free_pro') {
								$nav_class .= ' upgrade-button';
							}

							switch ($id) {

								case 'support':
									$target = 'target="_blank"';
									$url = esc_url('https://wordpress.org/support/theme/'.$this->theme_info('TextDomain'));
								break;

								case 'getting_started':
									$url = esc_url(admin_url('themes.php?page=anna-lite-welcome-page'));
								break;

								default:
									$url = esc_url(admin_url('themes.php?page=anna-lite-welcome-page&section=' . $id));
								break;

							}

							$tabHTML .= '<a ';
							$tabHTML .= $target;
							$tabHTML .= ' href="' . $url. '"';
							$tabHTML .= ' class="' . esc_attr($nav_class). '"';
							$tabHTML .= '>';
							$tabHTML .= esc_html($label);
							$tabHTML .= '</a>';

						endforeach;

						echo $tabHTML;

					?>

                </div>

                <div class="welcome-section-wrapper">

                    <div class="welcome-section getting_started clearfix">

                    	<?php

							$section = isset($_GET['section']) ? $_GET['section'] : 'getting_started';

							switch ($section) {

								case 'free_pro':
									$this->free_pro();
								break;

								case 'recommended_plugins':
									$this->recommended_plugins();
								break;

								case 'changelog':
									$this->changelog();
								break;

								case 'getting_started':
								default:
									$this->getting_started();
								break;

							}

						?>

                    </div>

                </div>

            </div>

		<?php

		}

		public function quick_links() {

			return array(
				array (
					'text' => esc_html__('Upload logo', 'anna-lite'),
					'link' => add_query_arg( [ 'autofocus[control]' => 'custom_logo' ], admin_url( 'customize.php' ))
				),
				array (
					'text' => esc_html__('Color scheme', 'anna-lite'),
					'link' => add_query_arg(['autofocus[control]' => 'anna_lite_skin'], admin_url( 'customize.php'))
				),
				array (
					'text' => esc_html__('General settings', 'anna-lite'),
					'link' => add_query_arg(['autofocus[section]' => 'settings_section'], admin_url( 'customize.php'))
				),
				array (
					'text' => esc_html__('Layouts', 'anna-lite'),
					'link' => add_query_arg(['autofocus[section]' => 'layouts_section'], admin_url( 'customize.php'))
				),
				array (
					'text' => esc_html__('Typography', 'anna-lite'),
					'link' => add_query_arg(['autofocus[panel]' => 'typography_panel'], admin_url( 'customize.php'))
				),
				array (
					'text' => esc_html__('Footer', 'anna-lite'),
					'link' => add_query_arg(['autofocus[section]' => 'footer_section'], admin_url( 'customize.php'))
				),
			);

		}

        public function getting_started() {

		?>

			<div class="getting-started-top-wrap clearfix">

				<div class="theme-steps-list">

					<div class="theme-steps">

						<h3><?php echo esc_html__('Step 1 - Ensure Your Page Home Page is set Your latest posts', 'anna-lite'); ?></h3>
						<ol>
							<li><?php echo esc_html__('Go to Settings > Reading > General settings > Your homepage displays', 'anna-lite'); ?></li>
							<li><?php echo esc_html__('Set "Your homepage displays" to Your latest posts', 'anna-lite'); ?></li>
							<li><?php echo esc_html__('Save changes', 'anna-lite'); ?></li>
						</ol>
						<a class="button button-primary" target="_blank" href="<?php echo esc_url(admin_url('options-reading.php')); ?>"><?php echo esc_html__('Assign Static Page', 'anna-lite'); ?></a>
					</div>

					<div class="theme-steps">
						<h3><?php echo esc_html__('Step 2 - Customizer Options Panel', 'anna-lite'); ?></h3>
						<p><?php echo esc_html__('Now go to Customizer Page. Using the WordPress Customizer you can easily set up the home page and customize the theme.', 'anna-lite'); ?></p>
						<a class="button button-primary" href="<?php echo esc_url(admin_url('customize.php')); ?>"><?php echo esc_html__('Go to Customizer Panels', 'anna-lite'); ?></a>
					</div>

					<div class="theme-steps">
						<h3><?php echo esc_html__('Customizer quick links', 'anna-lite'); ?></h3>
						<ul class="quick-links">
                        	<?php
								foreach ( $this->quick_links() as $quick_link ) {
									echo '<li><a class="button" href="'.$quick_link['link'].'">'.$quick_link['text'].'</a></li>';
								}
							?>
						</ul>
					</div>

					<div class="theme-steps">
						<h3><?php echo esc_html__('Documentation', 'anna-lite'); ?></h3>
						<p><?php echo esc_html__('Need help to use Anna Lite? Please check our full documentation.', 'anna-lite'); ?></p>
						<a target="_blank" class="button button-primary" href="<?php echo esc_url('https://demo.themeinprogress.eu/anna/anna-lite-documentation/'); ?>"><?php echo esc_html__('Go to Docs', 'anna-lite'); ?></a>
					</div>

				</div>

			</div>

        <?php

		}

		public function recommended_plugins() {

			$plugins = array(

				array(
					'filename'	=> 'init',
					'slug'      => 'internal-linking-of-related-contents',
				),
				array(
					'filename'	=> 'init',
					'slug'      => 'content-snippet-manager',
				),
				array(
					'filename'	=> 'init',
					'slug'      => 'wa-chatbox-manager',
				),
				array(
					'filename'	=> 'init',
					'slug'      => 'custom-thank-you-page',
				),

			);

		?>

			<div class="required-plugin-top-wrap clearfix">

				<div class="required-plugin-list">

				<?php

                    foreach ( $plugins as $plugin ) {

                        $slug = $plugin['slug'];
                        $filename = $plugin['filename'];

                        $plugin_info = $this->call_plugin_api( $slug );
                        $plugin_desc = $plugin_info->short_description;
                        $plugin_img  = ( !isset($plugin_info->icons['1x']) ) ? $plugin_info->icons['default'] : $plugin_info->icons['1x'];
                        $plugin_banner  = $plugin_info->banners['low'];

                ?>

					<div class="required-plugin">

                        <div class="required-plugin-head">

							<img class="plugin-banner" src="<?php echo $plugin_banner;?>">

                        </div>

                        <div class="required-plugin-desc">

                            <h3><?php echo $plugin_info->name; ?></h3>
							<?php echo $plugin_info->short_description; ?>

						</div>

                        <div class="required-plugin-footer">

							<span>

								<?php
									echo esc_html__('v', 'anna-lite');
									echo $plugin_info->version;
									echo esc_html__(' by ', 'anna-lite');
									echo html_entity_decode( wp_strip_all_tags( $plugin_info->author ) );
								?>

							</span>

							<?php if ( $this->check_installed_plugin( $slug, $filename ) ) : ?>

                            	<button type="button" class="button button-disabled" disabled="disabled">
                            		<?php esc_html_e( 'Installed', 'anna-lite' ); ?>
                            	</button>

                            <?php else : ?>

                            	<a class="install-now button-primary" href="<?php echo esc_url( wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin='. $slug ), 'install-plugin_'. $slug ) ); ?>" >
                            		<?php esc_html_e( 'Install Now', 'anna-lite' ); ?>
                            	</a>

                            <?php endif; ?>

						</div>

					</div>

				<?php

					}

				?>

				</div>

			</div>

        <?php

		}

		public function free_pro() {

		?>

            <table class="card table free-pro" cellspacing="0" cellpadding="0" >

                <tbody class="table-body">

                    <tr class="table-head">
                        <th class="large"></th>
                        <th class="indicator"><?php echo esc_html__('Anna Lite', 'anna-lite'); ?></th>
                        <th class="indicator"><?php echo esc_html__('Anna Pro', 'anna-lite'); ?></th>
                    </tr>

                    <tr class="feature-row">
                        <td class="large">
                            <div class="feature-wrap">
                                <h4><?php echo esc_html__('WooCommerce Support', 'anna-lite'); ?></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__('Responsive Layout', 'anna-lite'); ?></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__('Masonry layout', 'anna-lite'); ?></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__('Logo upload', 'anna-lite'); ?></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__('Social icons', 'anna-lite'); ?></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__('Copyright text', 'anna-lite'); ?></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.', 'anna-lite'); ?>
                                    </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__('Custom colors', 'anna-lite'); ?></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 the links, the backgrounds, the slogan and so on.', 'anna-lite'); ?>
                                    </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__('Portfolio section', 'anna-lite'); ?></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 add and display your works and give a modern layout, thanks to the masonry layout.', 'anna-lite'); ?>
                                    </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__('Galleries', 'anna-lite'); ?></h4>
                                <div class="feature-inline-row">
                                    <span class="info-icon dashicon dashicons dashicons-info"></span>
                                    <span class="feature-description">
										<?php echo esc_html__('For the gallery posts, pages and portfolio items, you can display the native slider or one of available slideshow created with Slider Revolution plugin (not included with Anna theme).', 'anna-lite'); ?>
                                    </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__('Unlimited sidebar areas', 'anna-lite'); ?></h4>
                                <div class="feature-inline-row">
                                    <span class="info-icon dashicon dashicons dashicons-info"></span>
                                    <span class="feature-description">
										<?php echo esc_html__('On Anna theme you can generate an unique sidebar area for each post, page, WooCommerce product and portfolio item.', 'anna-lite'); ?>
                                    </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', 'anna-lite'); ?></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.', 'anna-lite'); ?>
                                    </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__('1 click upgrades', 'anna-lite'); ?></h4>
                                <div class="feature-inline-row">
                                    <span class="info-icon dashicon dashicons dashicons-info"></span>
                                    <span class="feature-description">
										<?php echo esc_html__('Start automatically the theme upgrades with simple one-click.', 'anna-lite'); ?>
                                    </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__('Lifetime updates', 'anna-lite'); ?></h4>
                                <div class="feature-inline-row">
                                    <span class="info-icon dashicon dashicons dashicons-info"></span>
                                    <span class="feature-description">
										<?php echo esc_html__('For a limited time, you can purchase the theme with guaranteed lifetime updates.', 'anna-lite'); ?>
                                    </span>
                                </div>
                            </div>
                        </td>

                        <td class="indicator"></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__('Unlimited Website Usage', 'anna-lite'); ?></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 install and activate the theme on an unlimited number of websites, with no restrictions', 'anna-lite'); ?>
                                    </span>
                                </div>
                            </div>
                        </td>

                        <td class="indicator"></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__('30 days money back guarantee', 'anna-lite'); ?></h4>
                            </div>
                        </td>

                        <td class="indicator"></td>
                        <td class="indicator"><span class="dashicon dashicons dashicons-yes" size="30"></span></td>

                    </tr>

                    <tr class="upsell-row">

                        <td></td>
                        <td class="upsell-notice">
                            <?php
                                printf(
                                    wp_kses_post(
                                        __( 'Anna is now available through the <strong>%s</strong>, with access to all 19 premium WordPress themes via a single, one-time payment.', 'anna-lite' )
                                    ),
                                    esc_html__( 'Themes Membership', 'anna-lite' )
                                );
                            ?>
                        </td>
                        <td>
                            <a target="_blank" href="<?php echo esc_url( 'https://www.themeinprogress.com/anna-clean-wordpress-blog-and-shop-theme/?ref=2&campaign=anna-welcome-page' );?>" class="button button-primary"><?php echo esc_html__('Get access - From €15.99', 'anna-lite'); ?></a>
                        </td>
                    </tr>

                </tbody>

            </table>

        <?php

		}

		public function changelog() {

		?>

			<div class="changelog_container">

                <div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.6.3', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : May, 30 - 2026', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                            <li><?php echo esc_html__('Tested with WordPress 7.0', 'anna-lite'); ?></li>
                            <li><?php echo esc_html__('Edit - Code optimized', 'anna-lite'); ?></li>
                        </ul>
                    </div>

                </div>

                <div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.6.2', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : January, 20 - 2026', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                            <li><?php echo esc_html__('Edit : Code optimized', 'anna-lite'); ?></li>
                        </ul>
                    </div>

                </div>

                <div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.6.1', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : January, 17 - 2026', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                            <li><?php echo esc_html__('Edit : Code optimized', 'anna-lite'); ?></li>
                            <li><?php echo esc_html__('Tested with WordPress 6.9', 'anna-lite'); ?></li>
                        </ul>
                    </div>

                </div>

                <div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.6.0', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : November, 06 - 2025', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                            <li><?php echo esc_html__('Optimized : WooCommerce buttons inside the header cart', 'anna-lite'); ?></li>
                            <li><?php echo esc_html__('Updated : WooCommerce templates', 'anna-lite'); ?></li>
                        </ul>
                    </div>

                </div>

                <div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.5.9', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : October, 17 - 2025', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                            <li><?php echo esc_html__('Updated : WooCommerce templates', 'anna-lite'); ?></li>
                        </ul>
                    </div>

                </div>

                <div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.5.8', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : July, 20  - 2025', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                            <li><?php echo esc_html__('Updated : WooCommerce templates', 'anna-lite'); ?></li>
                        </ul>
                    </div>

                </div>

                <div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.5.7', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : May, 20  - 2025', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                            <li><?php echo esc_html__('Updated : WooCommerce templates', 'anna-lite'); ?></li>
                            <li><?php echo esc_html__('Tested with WordPress 6.8', 'anna-lite'); ?></li>
                        </ul>
                    </div>

                </div>

                <div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.5.6', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : March, 30  - 2025', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                            <li><?php echo esc_html__('Edit : Code optimized', 'anna-lite'); ?></li>
                        </ul>
                    </div>

                </div>

                <div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.5.5', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : March, 03  - 2025', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                            <li><?php echo esc_html__('Updated : WooCommerce templates', 'anna-lite'); ?></li>
                        </ul>
                    </div>

                </div>

                <div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.5.4', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : February, 20  - 2025', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                            <li><?php echo esc_html__('Edit - Code optimized', 'anna-lite'); ?></li>
                        </ul>
                    </div>

                </div>

                <div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.5.3', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : February, 18  - 2025', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                            <li><?php echo esc_html__('Updated : WooCommerce templates', 'anna-lite'); ?></li>
                        </ul>
                    </div>

                </div>

                <div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.5.2', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : December, 09  - 2024', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                            <li><?php echo esc_html__('Updated : WooCommerce templates', 'anna-lite'); ?></li>
                            <li><?php echo esc_html__('Tested with WordPress 6.7', 'anna-lite'); ?></li>
                        </ul>
                    </div>

                </div>

                <div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.5.1', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : November, 02  - 2024', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                            <li><?php echo esc_html__('Updated : Documentation links', 'anna-lite'); ?></li>
                        </ul>
                    </div>

                </div>

                <div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.5.0', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : August, 07  - 2024', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                            <li><?php echo esc_html__('Updated : WooCommerce templates', 'anna-lite'); ?></li>
                            <li><?php echo esc_html__('Tested with WordPress 6.6', 'anna-lite'); ?></li>
                        </ul>
                    </div>

                </div>

                <div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.4.9', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : May, 22 - 2024', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                            <li><?php echo esc_html__('Edit - Code optimized', 'anna-lite'); ?></li>
                        </ul>
                    </div>

                </div>

                <div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.4.8', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : April, 29 - 2024', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                            <li><?php echo esc_html__('Updated : WooCommerce templates', 'anna-lite'); ?></li>
                            <li><?php echo esc_html__('Tested with WordPress 6.5', 'anna-lite'); ?></li>
                        </ul>
                    </div>

                </div>

                <div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.4.7', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : March, 11 - 2024', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                            <li><?php echo esc_html__('Edit - Code optimized', 'anna-lite'); ?></li>
                            <li><?php echo esc_html__('Tested with PHP 8.3', 'anna-lite'); ?></li>
                        </ul>
                    </div>

                </div>

                <div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.4.6', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : March, 07 - 2024', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                            <li><?php echo esc_html__('Fixed: Warning messages “Deprecated: Creation of dynamic property” on PHP 8', 'anna-lite'); ?></li>
                            <li><?php echo esc_html__('Tested with PHP 8.2', 'anna-lite'); ?></li>
                        </ul>
                    </div>

                </div>

                <div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.4.5', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : January, 16 - 2024', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

				    <div class="changelog_details" style="display: none; ">
                        <ul>
                            <li><?php echo esc_html__('Edit - Code optimized', 'anna-lite'); ?></li>
                            <li><?php echo esc_html__('Tested with WooCommerce 8.4', 'anna-lite'); ?></li>
                        </ul>
				    </div>

                </div>

                <div class="changelog_element">

				      <span class="theme_version">
				            <strong><?php echo esc_html__('v1.4.4', 'anna-lite'); ?></strong>
				            <?php echo esc_html__('Release date : November, 16 - 2023', 'anna-lite'); ?>
				            <span class="dashicons dashicons-arrow-down-alt2"></span>
				      </span>

				      <div class="changelog_details" style="display: none; ">
				            <ul>
                      <li><?php echo esc_html__('Updated : WooCommerce templates', 'anna-lite'); ?></li>
                      <li><?php echo esc_html__('Fixed - Broken links on welcome page section', 'anna-lite'); ?></li>
                      <li><?php echo esc_html__('Edit - Code optimized', 'anna-lite'); ?></li>
                      <li><?php echo esc_html__('Tested with WordPress 6.4', 'anna-lite'); ?></li>
				            </ul>
				      </div>

                </div>

                <div class="changelog_element">

				      <span class="theme_version">
				            <strong><?php echo esc_html__('v1.4.3', 'anna-lite'); ?></strong>
				            <?php echo esc_html__('Release date : June, 02 - 2023', 'anna-lite'); ?>
				            <span class="dashicons dashicons-arrow-down-alt2"></span>
				      </span>

				      <div class="changelog_details" style="display: none; ">
				            <ul>
				                  <li><?php echo esc_html__('Tested with WordPress 6.2', 'anna-lite'); ?></li>
				            </ul>
				      </div>

				</div>

                <div class="changelog_element">

				      <span class="theme_version">
				            <strong><?php echo esc_html__('v1.4.2', 'anna-lite'); ?></strong>
				            <?php echo esc_html__('Release date : March, 20 - 2023', 'anna-lite'); ?>
				            <span class="dashicons dashicons-arrow-down-alt2"></span>
				      </span>

				      <div class="changelog_details" style="display: none; ">
				            <ul>
				                  <li><?php echo esc_html__('Fixed - Footer overlay in masonry layout when there are no elements to display', 'anna-lite'); ?></li>
                          <li><?php echo esc_html__('Updated : WooCommerce templates', 'anna-lite'); ?></li>
				                  <li><?php echo esc_html__('Tested with WordPress 6.1', 'anna-lite'); ?></li>
				            </ul>
				      </div>

				</div>

				<div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.4.1', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : November, 19 - 2022', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                          <li><?php echo esc_html__('Fixed : Deprecated WooCommerce function on cart page', 'anna-lite'); ?></li>
                          <li><?php echo esc_html__('Updated : WooCommerce templates', 'anna-lite'); ?></li>
                        </ul>
                    </div>

            	</div>

				<div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.4.0', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : September, 24 - 2022', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                          <li><?php echo esc_html__('Fixed : Searched item on search result page', 'anna-lite'); ?></li>
                          <li><?php echo esc_html__('Updated - Italian translation', 'anna-lite'); ?></li>
                          <li><?php echo esc_html__('Tested with PHP 8', 'anna-lite'); ?></li>
                        </ul>
                    </div>

            	</div>

				<div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.3.9', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : June, 27 - 2022', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                          <li><?php echo esc_html__('Tested with WordPress 6.0', 'anna-lite'); ?></li>
                        </ul>
                    </div>

            	</div>

				<div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.3.8', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : March, 08 - 2022', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                          <li><?php echo esc_html__('Tested with WordPress 5.9', 'anna-lite'); ?></li>
                        </ul>
                    </div>

            	</div>

				<div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.3.7', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : December, 13 - 2021', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                          <li><?php echo esc_html__('Updated - Italian translation', 'anna-lite'); ?></li>
                          <li><?php echo esc_html__('Edit - Code optimized', 'anna-lite'); ?></li>
                        </ul>
                    </div>

            	</div>

				<div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.3.6', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : November, 08 - 2021', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                          <li><?php echo esc_html__('Added - Post author info box', 'anna-lite'); ?></li>
                          <li><?php echo esc_html__('Edit - Code optimized', 'anna-lite'); ?></li>
                        </ul>
                    </div>

            	</div>

				<div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.3.5', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : August, 08 - 2021', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                            <li><?php echo esc_html__('Tested with WordPress 5.8', 'anna-lite'); ?></li>
                        </ul>
                    </div>

				</div>

				<div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.3.4', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : July, 13 - 2021', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                            <li><?php echo esc_html__('Added : Changelog tab on welcome page', 'anna-lite'); ?></li>
                        </ul>
                    </div>

            	</div>

				<div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.3.3', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : May, 22 - 2021', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                            <li><?php echo esc_html__('Added : Premium feature lists on customizer section', 'anna-lite'); ?></li>
                            <li><?php echo esc_html__('Added : Demo link on customizer section', 'anna-lite'); ?></li>
                        </ul>
                    </div>

            	</div>

            	<div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.3.2', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : May, 17 - 2021', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                            <li><?php echo esc_html__('Added : Edit buttons in the WordPress customizer to manage the theme settings', 'anna-lite'); ?></li>
                        </ul>
                    </div>

            	</div>

            	<div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.3.1', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : May, 05 - 2021', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                            <li><?php echo esc_html__('Added : Documentation link on admin welcome page', 'anna-lite'); ?></li>
                            <li><?php echo esc_html__('Improved : Theme details on welcome page', 'anna-lite'); ?></li>
                        </ul>
                    </div>

            	</div>

            	<div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.3.0', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : April, 04 - 2021', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                            <li><?php echo esc_html__('Added : Dedicated section for the recommended plugins on admin welcome page', 'anna-lite'); ?></li>
                            <li><?php echo esc_html__('Added : Free vs Pro tab on admin welcome page', 'anna-lite'); ?></li>
                        </ul>
                    </div>

            	</div>

            	<div class="changelog_element">

                    <span class="theme_version">
                        <strong><?php echo esc_html__('v1.2.9', 'anna-lite'); ?></strong>
                        <?php echo esc_html__('Release date : March, 24 - 2021', 'anna-lite'); ?>
                        <span class="dashicons dashicons-arrow-down-alt2"></span>
                    </span>

                    <div class="changelog_details" style="display: none; ">
                        <ul>
                            <li><?php echo esc_html__('Added : Welcome page on admin section', 'anna-lite'); ?></li>
                            <li><?php echo esc_html__('Tested with WordPress 5.7', 'anna-lite'); ?></li>
                        </ul>
                    </div>

            	</div>

            </div>

        <?php

		}

	}

}

new anna_lite_welcome();

?>
