<?php
//about theme info
add_action( 'admin_menu', 'mega_construction_gettingstarted' );
function mega_construction_gettingstarted() {    	
	add_theme_page( esc_html__('Demo Theme Content', 'mega-construction'), esc_html__('Demo Theme Content', 'mega-construction'), 'edit_theme_options', 'mega_construction_guide', 'mega_construction_mostrar_guide');   
}

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

//guidline for about theme
function mega_construction_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'mega-construction' );
?>
<div class="wrapper-info">
	<div class="intro">
		<h3><?php esc_html_e( 'Welcome to Mega Construction WordPress Theme', 'mega-construction' ); ?></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!', 'mega-construction' ); ?></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', 'mega-construction' ); ?></p>
					<p class="coupon"><?php echo esc_html__( 'Use Coupon Code:" GET 20 "', 'mega-construction' ); ?></p>
					<a href="<?php echo esc_url( MEGA_CONSTRUCTION_PRO_THEME_URL ); ?>" class="btn-pro" target="_blank" >
						<?php esc_html_e('Get Pro', 'mega-construction'); ?>
					</a>
				</div>
			</div>
		</div>
		<div class="started">
			<h3><?php esc_html_e( 'Lite Theme Info', 'mega-construction' ); ?></h3>
			<p><?php esc_html_e( 'Mega Construction is a professional, responsive, and multipurpose theme crafted to showcase construction, architecture, and factory-related solutions, including quality construction, property development, property management, real estate agencies, realtors, brokers, architects, building companies, contractors, interior designers, architectural firms, renovation services, homebuilders, industrial construction, factory operations, and repair services. Ideal for builders, contractors, and construction professionals, it enables efficient management of properties, agents, and agencies while presenting portfolios, projects, and services in a compelling way. Built with optimized code for faster performance, it is SEO-friendly, mobile-ready, and easy to use, allowing seamless content sharing across social media platforms. Mega Construction also supports essential tools such as WooCommerce for selling construction or factory-related products and services, Contact Form 7 for handling client inquiries, and Yoast SEO for improving search visibility, delivering a versatile, modern, and professional online presence for construction, architecture, and factory businesses.', 'mega-construction')?></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', 'mega-construction'); ?></h3>
					<ol>
						<li>
						<a href="<?php echo esc_url( MEGA_CONSTRUCTION_SUPPORT ); ?>" target="_blank"><?php esc_html_e('Support Forum', 'mega-construction'); ?></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', 'mega-construction'); ?></h3>
					<ol>
						<li> <?php esc_html_e('Start', 'mega-construction'); ?> <a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'mega-construction'); ?></a> <?php esc_html_e('your website.', 'mega-construction'); ?></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', 'mega-construction'); ?></h3>
					<ol>
						<li>
						<a href="<?php echo esc_url( MEGA_CONSTRUCTION_REVIEW ); ?>" target="_blank"><?php esc_html_e('Rate it here', 'mega-construction'); ?></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', 'mega-construction' ); ?></h3>
					<ol>
						<li><?php esc_html_e( 'The Mega Construction Lite', 'mega-construction' ); ?> <a href="<?php echo esc_url( MEGA_CONSTRUCTION_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'mega-construction' ); ?></a></li>
					</ol>
				</div>
			</div>
			
			<h3><?php esc_html_e( 'Get started with Mega Construction Theme', 'mega-construction' ); ?></h3>
			<div class="col-left-inner"> 
				<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/getting-started/images/customizer-image.png" alt="" />
			</div>
			<div class="col-right-inner">
				<p><?php esc_html_e( 'Go to', 'mega-construction' ); ?> <a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e( 'Customizer', 'mega-construction' ); ?> </a> <?php esc_html_e( 'and start customizing your website', 'mega-construction' ); ?></p>
				<ul>
					<li><?php esc_html_e( 'Easily customizable ', 'mega-construction' ); ?> </li>
					<li><?php esc_html_e( 'Absolutely free', 'mega-construction' ); ?> </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-tg.png" alt="" />
			<hr class="firsthr">
			<div class="btn-grp">
				<a href="<?php echo esc_url( MEGA_CONSTRUCTION_PRO_THEME_URL ); ?>" target="_blank"><?php esc_html_e('Get Premium', 'mega-construction'); ?></a>
				<a href="<?php echo esc_url( MEGA_CONSTRUCTION_LIVE_DEMO ); ?>" target="_blank"><?php esc_html_e('Live Demo', 'mega-construction'); ?></a>
				<a href="<?php echo esc_url( MEGA_CONSTRUCTION_THEME_DOC ); ?>" target="_blank"><?php esc_html_e('Pro Documentation', 'mega-construction'); ?></a>
				<a href="<?php echo esc_url( MEGA_CONSTRUCTION_BUNDLE_URL ); ?>" target="_blank"><?php esc_html_e('Bundle of 176+ Premium WP Themes at $99', 'mega-construction'); ?></a>
			<hr class="secondhr">
		</div>
		<h3><?php esc_html_e( 'PREMIUM THEME FEATURES', 'mega-construction'); ?></h3>
		<ul>
		 	<li><?php esc_html_e( 'Sticky Header', 'mega-construction'); ?></li>
		 	<li><?php esc_html_e( 'Custom post types', 'mega-construction'); ?></li>
			<li><?php esc_html_e( 'Default demo Importer', 'mega-construction'); ?></li>
		 	<li><?php esc_html_e( 'Responsive Design', 'mega-construction'); ?></li>
		 	<li><?php esc_html_e( 'Advanced Color Options and Color Pallets', 'mega-construction'); ?></li>
		 	<li><?php esc_html_e( '100+ Font Family Options', 'mega-construction'); ?></li>
		 	<li><?php esc_html_e( 'RTL & Translation Ready', 'mega-construction'); ?></li>
		 	<li><?php esc_html_e( 'Support to Add Custom CSS/JS', 'mega-construction'); ?></li>
		 	<li><?php esc_html_e( 'SEO Friendly', 'mega-construction'); ?></li>
		 	<li><?php esc_html_e( 'Pagination Option', 'mega-construction'); ?></li>
		 	<li><?php esc_html_e( 'Footer Customization Options', 'mega-construction'); ?></li>
		 	<li><?php esc_html_e( 'Fully Integrated with Font Awesome Icon', 'mega-construction'); ?></li>
		 	<li><?php esc_html_e( 'Short Codes', 'mega-construction'); ?></li>
		 	<li><?php esc_html_e( 'Services listing', 'mega-construction'); ?></li>
		 	<li><?php esc_html_e( 'Gallery, Banner & Post Type Plugin Functionality', 'mega-construction'); ?></li>
		 	<li><?php esc_html_e( 'Multiple Inner Page Templates', 'mega-construction'); ?></li>
		 	<li><?php esc_html_e( 'Customizable Home Page', 'mega-construction'); ?></li>
		 	<li><?php esc_html_e( 'Advance Social Media Feature', 'mega-construction'); ?></li>
		 	<li><?php esc_html_e( 'Testimonials Listing', 'mega-construction'); ?></li>
		</ul>
	</div>
	
</div>
<?php } ?>