<?php
//about theme info
add_action( 'admin_menu', 'ecommerce_hub_gettingstarted' );
function ecommerce_hub_gettingstarted() {    	
	add_theme_page( esc_html__('Demo Theme Content', 'ecommerce-hub'), esc_html__('Demo Theme Content', 'ecommerce-hub'), 'edit_theme_options', 'ecommerce_hub_guide', 'ecommerce_hub_mostrar_guide');   
}

// Add a Custom CSS file to WP Admin Area
function ecommerce_hub_admin_theme_style() {
   wp_enqueue_style('custom-admin-style', esc_url(get_template_directory_uri()) . '/inc/getting-started/getting-started.css');

   // Admin notice code START
	wp_register_script('ecommerce-hub-notice', esc_url(get_template_directory_uri()) . '/inc/getting-started/js/notice.js', array('jquery'), time(), true);
	wp_enqueue_script('ecommerce-hub-notice');
	// Admin notice code END
}
add_action('admin_enqueue_scripts', 'ecommerce_hub_admin_theme_style');

//guidline for about theme
function ecommerce_hub_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'ecommerce-hub' );
?>
<div class="wrapper-info">
	<div class="intro">
		<h3><?php esc_html_e( 'Welcome to Ecommerce Hub WordPress Theme', 'ecommerce-hub' ); ?></h3>
		<p>( Version: <?php echo esc_html($theme['Version']);?> )</p>
	</div>
	<div class="col-left">
		<div class="left-box">
			<div class="color_bg_blue color-info">

				<div class="intro-text"><img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/getting-started/images/themesglance-logo.png" alt="" />
				</div>
				<p class="intro_version"><span class="highlight1"><?php echo esc_html__( 'Congratulations!', 'ecommerce-hub' ); ?></span></p>
				<?php
					/* Demo Import */
					require get_parent_theme_file_path( '/inc/getting-started/demo-content.php' );
				?>
			</div>
			<div class="best-offers">
				<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/getting-started/images/best-offer.png" alt="best-offer" />
				<div class="offers">
					<p class="offer-text"><?php echo esc_html__( 'On Premium WordPress Theme', 'ecommerce-hub' ); ?></p>
					<p class="coupon"><?php echo esc_html__( 'Use Coupon Code:" GET20 "', 'ecommerce-hub' ); ?></p>
					<a href="<?php echo esc_url( ECOMMERCE_HUB_THEMESGLANCE_PRO_THEME_URL ); ?>" class="btn-pro" target="_blank" >
						<?php esc_html_e('Get Pro', 'ecommerce-hub'); ?>
					</a>
				</div>
			</div>
		</div>
		<div class="started">
			<h3><?php esc_html_e( 'Lite Theme Info', 'ecommerce-hub' ); ?></h3>
			<p><?php esc_html_e( 'Ecommerce Hub is a stylish, versatile, and contemporary eCommerce theme designed for online stores, digital marketplaces, fashion and apparel shops, cosmetics, sports goods, jewelry, toys, baby products, kitchenware, home décor, organic stores, wedding essentials, gadget stores, grocery shops, and multipurpose online shops. Fully responsive and mobile-friendly, this theme ensures smooth navigation and an engaging shopping experience across all devices. Integrated with WooCommerce, it provides multiple shop layouts, secure payment gateways, product listing options, cart management, and smooth checkout processes, enabling you to set up a fully functional eCommerce website effortlessly. Built with SEO-friendly, clean, and bug-free code, the theme supports multilingual sites, RTL scripts, cross-browser compatibility, and fast loading speeds. Social media integration allows effortless promotion, while banners, sliders, and customizable sections enhance visual appeal. With easy customization through the theme customizer, users can adjust colors, fonts, layouts, and other elements without coding knowledge, making Ecommerce Hub perfect for startups, retailers, and established online businesses seeking a professional, high-performing eCommerce platform.', 'ecommerce-hub')?></p>
			<hr>

			<div class="service">
				<div class="info col-lg-3 col-md-3">
					<h3><span class="dashicons dashicons-media-document"></span> <?php esc_html_e('Get Support', 'ecommerce-hub'); ?></h3>
					<ol>
						<li>
						<a href="<?php echo esc_url( ECOMMERCE_HUB_THEMESGLANCE_SUPPORT ); ?>" target="_blank"><?php esc_html_e('Support Forum', 'ecommerce-hub'); ?></a>
						</li>
					</ol>
				</div>
				<div class="info col-lg-3 col-md-3">
					<h3><span class="dashicons dashicons-welcome-widgets-menus"></span> <?php esc_html_e('Getting Started', 'ecommerce-hub'); ?></h3>
					<ol>
						<li> <?php esc_html_e('Start', 'ecommerce-hub'); ?> <a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'ecommerce-hub'); ?></a> <?php esc_html_e('your website.', 'ecommerce-hub'); ?></li>
					</ol>
				</div>
				<div class="info col-lg-3 col-md-3">
					<h3><span class="dashicons dashicons-star-filled"></span> <?php esc_html_e('Rate This Theme', 'ecommerce-hub'); ?></h3>
					<ol>
						<li>
						<a href="<?php echo esc_url( ECOMMERCE_HUB_THEMESGLANCE_REVIEW ); ?>" target="_blank"><?php esc_html_e('Rate it here', 'ecommerce-hub'); ?></a>
						</li>
					</ol>
				</div>
				<div class="info col-lg-3 col-md-3">
					<h3><span class="dashicons dashicons-editor-help"></span> <?php esc_html_e( 'Help Docs', 'ecommerce-hub' ); ?></h3>
					<ol>
						<li><?php esc_html_e( 'Ecommerce Hub Lite', 'ecommerce-hub' ); ?> <a href="<?php echo esc_url( ECOMMERCE_HUB_THEMESGLANCE_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'ecommerce-hub' ); ?></a></li>
					</ol>
				</div>
			</div>
			
			<h3><?php esc_html_e( 'Get started with Ecommerce Hub Theme', 'ecommerce-hub' ); ?></h3>
			<div class="col-left-inner"> 
				<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/getting-started/images/free-screenshot.png" alt="" />
			</div>		
			<div class="col-right-inner">
				<p><?php esc_html_e( 'Go to', 'ecommerce-hub' ); ?> <a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e( 'Customizer', 'ecommerce-hub' ); ?> </a> <?php esc_html_e( 'and start customizing your website', 'ecommerce-hub' ); ?></p>
				<ul>
					<li><?php esc_html_e( 'Easily customizable ', 'ecommerce-hub' ); ?> </li>
					<li><?php esc_html_e( 'Absolutely free', 'ecommerce-hub' ); ?> </li>
				</ul>
			</div>
		</div>
	</div>
	<div class="col-right">
		<div class="centerbold">
			<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/getting-started/images/responsive.png" alt="" />
			<hr class="firsthr">
			<div class="btn-grp">
				<a href="<?php echo esc_url( ECOMMERCE_HUB_THEMESGLANCE_PRO_THEME_URL ); ?>" target="_blank"><?php esc_html_e('Get Premium', 'ecommerce-hub'); ?></a>
				<a href="<?php echo esc_url( ECOMMERCE_HUB_THEMESGLANCE_LIVE_DEMO ); ?>" target="_blank"><?php esc_html_e('Live Demo', 'ecommerce-hub'); ?></a>
				<a href="<?php echo esc_url( ECOMMERCE_HUB_THEMESGLANCE_THEME_DOC ); ?>" target="_blank"><?php esc_html_e('Pro Documentation', 'ecommerce-hub'); ?></a>
				<a href="https://www.themesglance.com/products/wp-theme-bundle" target="_blank"><?php esc_html_e('Bundle of 176+ Premium WP Themes at $79', 'ecommerce-hub'); ?></a>
			</div>
			<hr class="secondhr">
		</div>
		<h3><?php esc_html_e( 'PREMIUM THEME FEATURES', 'ecommerce-hub'); ?></h3>
		<ul>
		 	<li><?php esc_html_e( 'Slider with unlimited slides', 'ecommerce-hub'); ?></li>
		 	<li><?php esc_html_e( 'Custom Posttype for "testimonial" listing', 'ecommerce-hub'); ?></li>
		 	<li><?php esc_html_e( 'product Categories Section', 'ecommerce-hub'); ?></li>
		 	<li><?php esc_html_e( 'Multiple Products Section', 'ecommerce-hub'); ?></li>
		 	<li><?php esc_html_e( 'Promo section', 'ecommerce-hub'); ?></li>
		 	<li><?php esc_html_e( 'Latest News Section', 'ecommerce-hub'); ?></li>
		 	<li><?php esc_html_e( 'About Section', 'ecommerce-hub'); ?></li>
		 	<li><?php esc_html_e( 'Partner/Sponser listing', 'ecommerce-hub'); ?></li>
		 	<li><?php esc_html_e( 'Social Icon widget', 'ecommerce-hub'); ?></li>
		 	<li><?php esc_html_e( 'Blog Post section on home', 'ecommerce-hub'); ?></li>
		 	<li><?php esc_html_e( 'Newsletter with contact form 7', 'ecommerce-hub'); ?></li>
		 	<li><?php esc_html_e( 'Woocommerce Product section on home', 'ecommerce-hub'); ?></li>
		 	<li><?php esc_html_e( 'Record Section', 'ecommerce-hub'); ?></li>
		 	<li><?php esc_html_e( 'Contact widget for footer', 'ecommerce-hub'); ?></li>
		 	<li><?php esc_html_e( 'Contact page Template', 'ecommerce-hub'); ?></li>
		 	<li><?php esc_html_e( 'Recent Post Widget with thumbnails', 'ecommerce-hub'); ?></li>
		 	<li><?php esc_html_e( 'Blog full width, With Left and Right sidebar Template', 'ecommerce-hub'); ?></li>
		</ul>
	</div>
	
</div>
<?php } ?>