<?php
//about theme info
add_action( 'admin_menu', 'catering_lite_gettingstarted' );
function catering_lite_gettingstarted() {    	
	add_theme_page( esc_html__('Get Started', 'catering-lite'), esc_html__('Get Started', 'catering-lite'), 'edit_theme_options', 'catering_lite_guide', 'catering_lite_mostrar_guide');   
}

// Add a Custom CSS file to WP Admin Area
function catering_lite_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('catering-lite-notice', esc_url(get_theme_file_uri()) . '/inc/getting-started/js/notice.js', array('jquery'), time(), true);
	wp_enqueue_script('catering-lite-notice');
	// Admin notice code END
}
add_action('admin_enqueue_scripts', 'catering_lite_admin_theme_style');

//guidline for about theme
function catering_lite_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'catering-lite' );
?>
<div class="wrapper-info">
	<div class="intro">
		<h3><?php esc_html_e( 'Welcome to Catering Lite WordPress Theme', 'catering-lite' ); ?></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!', 'catering-lite' ); ?></span></p>
				<?php
					/* Demo Import */
					require  get_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', 'catering-lite' ); ?></p>
					<p class="coupon"><?php echo esc_html__( 'Use Coupon Code:" GET20 "', 'catering-lite' ); ?></p>
					<a href="<?php echo esc_url(CATERING_LITE_THEMESGLANCE_PRO_THEME_URL ); ?>" class="btn-pro" target="_blank" >
						<?php esc_html_e('Get Pro', 'catering-lite'); ?>
					</a>
				</div>
			</div>
		</div>
		<div class="started">
			<h3><?php esc_html_e( 'Lite Theme Info', 'catering-lite' ); ?></h3>
			<p><?php esc_html_e( 'Catering Lite is a feature-rich and professionally designed theme crafted for caterers, food service providers, event planners, wedding caterers, corporate catering businesses, tavern owners, food courts, party planners, menu management services, and other food-related ventures aiming to build a strong online presence. Built on the Bootstrap framework, it delivers a clean, responsive, and user-friendly layout enhanced with elegant CSS animations and interactive elements that create an engaging browsing experience. The theme includes essential sections such as Team, Testimonials, service highlights, and a prominent Call to Action (CTA) button to boost inquiries, bookings, and customer engagement. It offers extensive customization options, enabling easy adjustments to color schemes, typography, layouts, and responsive sliders to align seamlessly with your brand identity. Its SEO-friendly structure and fast-loading, optimized code improve search visibility while ensuring smooth performance across desktops, tablets, and smartphones. The theme also supports WooCommerce for online food ordering, Contact Form 7 for inquiries, Yoast SEO for search optimization, WPML for multilingual functionality, and social media integration for wider reach, making it an ideal solution for catering websites, event planning services, restaurant service pages, tavern promotions,  businesses seeking a dynamic, reliable, and conversion-focused online foundation.', 'catering-lite')?></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', 'catering-lite'); ?></h3>
					<ol>
						<li>
							<a href="<?php echo esc_url( CATERING_LITE_THEMESGLANCE_SUPPORT ); ?>" target="_blank"><?php esc_html_e('Support Forum', 'catering-lite'); ?></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', 'catering-lite'); ?></h3>
					<ol>
						<li> <?php esc_html_e('Start', 'catering-lite'); ?> <a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'catering-lite'); ?></a> <?php esc_html_e('your website.', 'catering-lite'); ?></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', 'catering-lite'); ?></h3>
					<ol>
						<li>
							<a href="<?php echo esc_url( CATERING_LITE_THEMESGLANCE_REVIEW ); ?>" target="_blank"><?php esc_html_e('Rate it here', 'catering-lite'); ?></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', 'catering-lite' ); ?></h3>
					<ol>
						<li><?php esc_html_e( 'Food Truck Lite Lite', 'catering-lite' ); ?> <a href="<?php echo esc_url( CATERING_LITE_THEMESGLANCE_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'catering-lite' ); ?></a></li>
					</ol>
				</div>
			</div>
			
			<h3><?php esc_html_e( 'Get started with Catering Lite Theme', 'catering-lite' ); ?></h3>
			<div class="col-left-inner"> 
				<img role="img" src="<?php echo esc_url(get_theme_file_uri()); ?>/inc/getting-started/images/free-screenshot.png" alt="" />
			</div>		
			<div class="col-right-inner">
				<p><?php esc_html_e( 'Go to', 'catering-lite' ); ?> <a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e( 'Customizer', 'catering-lite' ); ?> </a> <?php esc_html_e( 'and start customizing your website', 'catering-lite' ); ?></p>
				<ul>
					<li><?php esc_html_e( 'Easily customizable ', 'catering-lite' ); ?> </li>
					<li><?php esc_html_e( 'Absolutely free', 'catering-lite' ); ?> </li>
				</ul>
			</div>
		</div>
	</div>
	<div class="col-right">
		<div class="centerbold">
			<img role="img" src="<?php echo esc_url(get_theme_file_uri()); ?>/inc/getting-started/images/responsive.png" alt="" />
			<hr class="firsthr">
			<div class="btn-grp">
				<a href="<?php echo esc_url(  CATERING_LITE_THEMESGLANCE_PRO_THEME_URL ); ?>" target="_blank"><?php esc_html_e('Get Premium', 'catering-lite'); ?></a>
				<a href="<?php echo esc_url( CATERING_LITE_THEMESGLANCE_LIVE_DEMO ); ?>" target="_blank"><?php esc_html_e('Live Demo', 'catering-lite'); ?></a>
				<a href="<?php echo esc_url( CATERING_LITE_THEMESGLANCE_THEME_DOC ); ?>" target="_blank"><?php esc_html_e('Pro Documentation', 'catering-lite'); ?></a>
				<a href="<?php echo esc_url( CATERING_LITE_BUNDLE_URL ); ?>" target="_blank"><?php esc_html_e('Bundle of 176+ Premium WP Themes at $79', 'catering-lite'); ?></a>
			</div>
			<hr class="secondhr">
		</div>
		<h3><?php esc_html_e( 'PREMIUM THEME FEATURES', 'catering-lite'); ?></h3>
		<ul>
		 	<li><?php esc_html_e( 'Slider with unlimited slides', 'catering-lite'); ?></li>
		 	<li><?php esc_html_e( 'Custom Posttype for "courses" listing', 'catering-lite'); ?></li>
		 	<li><?php esc_html_e( 'Custom Posttype for "Events" listing', 'catering-lite'); ?></li>
		 	<li><?php esc_html_e( 'Video Section', 'catering-lite'); ?></li>
		 	<li><?php esc_html_e( 'Search courses', 'catering-lite'); ?></li>
		 	<li><?php esc_html_e( 'Courses categories listing', 'catering-lite'); ?></li>
		 	<li><?php esc_html_e( 'Gallery Plugin with shortcode', 'catering-lite'); ?></li>
		 	<li><?php esc_html_e( 'Custom Posttype for "Instructor" listing', 'catering-lite'); ?></li>
		 	<li><?php esc_html_e( 'Social Icon widget', 'catering-lite'); ?></li>
		 	<li><?php esc_html_e( 'Blog Post section on home', 'catering-lite'); ?></li>
		 	<li><?php esc_html_e( 'Newsletter with contact form 7', 'catering-lite'); ?></li>
		 	<li><?php esc_html_e( 'Woocommerce Product section on home', 'catering-lite'); ?></li>
		 	<li><?php esc_html_e( 'Record Section', 'catering-lite'); ?></li>
		 	<li><?php esc_html_e( 'Contact widget for footer', 'catering-lite'); ?></li>
		 	<li><?php esc_html_e( 'Contact page Template', 'catering-lite'); ?></li>
		 	<li><?php esc_html_e( 'Recent Post Widget with thumbnails', 'catering-lite'); ?></li>
		 	<li><?php esc_html_e( 'Blog full width, With Left and Right sidebar Template', 'catering-lite'); ?></li>
		</ul>
	</div>
	
</div>
<?php } ?>