<?php
//about theme info
add_action( 'admin_menu', 'campus_education_gettingstarted' );
function campus_education_gettingstarted() {    	
	add_theme_page( esc_html__('Demo Theme Content', 'campus-education'), esc_html__('Demo Theme Content', 'campus-education'), 'edit_theme_options', 'campus_education_guide', 'campus_education_mostrar_guide');   
}

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

//guidline for about theme
function campus_education_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'campus-education' );
?>
<div class="wrapper-info">
	<div class="intro">
		<h3><?php esc_html_e( 'Welcome to Campus Education WordPress Theme', 'campus-education' ); ?></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!', 'campus-education' ); ?></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', 'campus-education' ); ?></p>
					<p class="coupon"><?php echo esc_html__( 'Use Coupon Code:" GET20 "', 'campus-education' ); ?></p>
					<a href="<?php echo esc_url( CAMPUS_EDUCATION_THEMESGLANCE_PRO_THEME_URL ); ?>" class="btn-pro" target="_blank" >
						<?php esc_html_e('Get Pro', 'campus-education'); ?>
					</a>
				</div>
			</div>
		</div>
		<div class="started">
			<h3><?php esc_html_e( 'Lite Theme Info', 'campus-education' ); ?></h3>
			<p><?php esc_html_e( 'Campus Education is a visually appealing, engaging, and informative education theme designed for colleges, campuses, universities, coaching centres, health coaches, e-learning portals, teaching academies, kindergartens, daycare centers, nursery schools, online high schools, training centers, tuition services, study groups, course hubs, online libraries, and other educational organizations. Perfect for showcasing courses, student programs, tutorials, workshops, online learning, and extracurricular activities, the theme offers a responsive, mobile-friendly, and cross-browser compatible layout. Built on a robust Bootstrap framework, it is SEO-optimized, RTL-supported, and lightweight for fast loading. Customization options allow complete control over headers, footers, banners, sliders, colors, fonts, and layouts via the theme customizer without coding knowledge. Integrated call-to-action buttons and social media icons help increase engagement and reach, while compatibility with essential plugins like Contact Form 7 enables inquiries, course registrations, and communication with students. Campus Education provides an ideal platform for educational institutions, coaching centers, and online learning hubs to build a professional, dynamic, and user-friendly digital presence.', 'campus-education')?></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', 'campus-education'); ?></h3>
					<ol>
						<li>
							<a href="<?php echo esc_url( CAMPUS_EDUCATION_THEMESGLANCE_SUPPORT ); ?>" target="_blank"><?php esc_html_e('Support Forum', 'campus-education'); ?></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', 'campus-education'); ?></h3>
					<ol>
						<li> <?php esc_html_e('Start', 'campus-education'); ?> <a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'campus-education'); ?></a> <?php esc_html_e('your website.', 'campus-education'); ?></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', 'campus-education'); ?></h3>
					<ol>
						<li>
							<a href="<?php echo esc_url( CAMPUS_EDUCATION_THEMESGLANCE_REVIEW ); ?>" target="_blank"><?php esc_html_e('Rate it here', 'campus-education'); ?></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', 'campus-education' ); ?></h3>
					<ol>
						<li><?php esc_html_e( 'Campus Education Lite', 'campus-education' ); ?> <a href="<?php echo esc_url( CAMPUS_EDUCATION_THEMESGLANCE_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'campus-education' ); ?></a></li>
					</ol>
				</div>
			</div>
			<h3><?php esc_html_e( 'Get started with Campus Education Theme', 'campus-education' ); ?></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', 'campus-education' ); ?> <a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e( 'Customizer', 'campus-education' ); ?> </a> <?php esc_html_e( 'and start customizing your website', 'campus-education' ); ?></p>
				<ul>
					<li><?php esc_html_e( 'Easily customizable ', 'campus-education' ); ?> </li>
					<li><?php esc_html_e( 'Absolutely free', 'campus-education' ); ?> </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( CAMPUS_EDUCATION_THEMESGLANCE_PRO_THEME_URL ); ?>" target="_blank"><?php esc_html_e('Get Premium', 'campus-education'); ?></a>
				<a href="<?php echo esc_url( CAMPUS_EDUCATION_THEMESGLANCE_LIVE_DEMO ); ?>" target="_blank"><?php esc_html_e('Live Demo', 'campus-education'); ?></a>
				<a href="<?php echo esc_url( CAMPUS_EDUCATION_THEMESGLANCE_THEME_DOC ); ?>" target="_blank"><?php esc_html_e('Pro Documentation', 'campus-education'); ?></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', 'campus-education'); ?></a>
			<hr class="secondhr">
		</div>
		<h3><?php esc_html_e( 'PREMIUM THEME FEATURES', 'campus-education'); ?></h3>
		<ul>
		 	<li><?php esc_html_e( 'Slider with unlimited slides', 'campus-education'); ?></li>
		 	<li><?php esc_html_e( 'Custom Posttype for "courses" listing', 'campus-education'); ?></li>
		 	<li><?php esc_html_e( 'Custom Posttype for "Events" listing', 'campus-education'); ?></li>
		 	<li><?php esc_html_e( 'Video Section', 'campus-education'); ?></li>
		 	<li><?php esc_html_e( 'Search courses', 'campus-education'); ?></li>
		 	<li><?php esc_html_e( 'Courses categories listing', 'campus-education'); ?></li>
		 	<li><?php esc_html_e( 'Gallery Plugin with shortcode', 'campus-education'); ?></li>
		 	<li><?php esc_html_e( 'Custom Posttype for "Instructor" listing', 'campus-education'); ?></li>
		 	<li><?php esc_html_e( 'Social Icon widget', 'campus-education'); ?></li>
		 	<li><?php esc_html_e( 'Blog Post section on home', 'campus-education'); ?></li>
		 	<li><?php esc_html_e( 'Newsletter with contact form 7', 'campus-education'); ?></li>
		 	<li><?php esc_html_e( 'Woocommerce Product section on home', 'campus-education'); ?></li>
		 	<li><?php esc_html_e( 'Record Section', 'campus-education'); ?></li>
		 	<li><?php esc_html_e( 'Contact widget for footer', 'campus-education'); ?></li>
		 	<li><?php esc_html_e( 'Contact page Template', 'campus-education'); ?></li>
		 	<li><?php esc_html_e( 'Recent Post Widget with thumbnails', 'campus-education'); ?></li>
		 	<li><?php esc_html_e( 'Blog full width, With Left and Right sidebar Template', 'campus-education'); ?></li>
		</ul>
	</div>
	
</div>
<?php } ?>