<?php
//about theme info
add_action( 'admin_menu', 'modern_blogger_gettingstarted' );
function modern_blogger_gettingstarted() {    	
	add_theme_page( esc_html__('Demo Theme Content', 'modern-blogger'), esc_html__('Demo Theme Content', 'modern-blogger'), 'edit_theme_options', 'modern_blogger_guide', 'modern_blogger_mostrar_guide');   
}

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

//guidline for about theme
function modern_blogger_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'modern-blogger' );
?>
<div class="wrapper-info">
	<div class="intro">
		<h3><?php esc_html_e( 'Welcome to Modern Blogger WordPress Theme', 'modern-blogger' ); ?></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">Congratulations!</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', 'modern-blogger' ); ?></p>
					<p class="coupon"><?php echo esc_html__( 'Use Coupon Code:" GET20 "', 'modern-blogger' ); ?></p>
					<a href="<?php echo esc_url( MODERN_BLOGGER_THEMESGLANCE_PRO_THEME_URL ); ?>" class="btn-pro" target="_blank" >
						<?php esc_html_e('Get Pro', 'modern-blogger'); ?>
					</a>
				</div>
			</div>
		</div>

		<div class="started">
			<h3><?php esc_html_e( 'Lite Theme Info', 'modern-blogger' ); ?></h3>
			<p><?php esc_html_e( 'The Modern Blogger Theme is a stylish, minimalist, and performance-optimized solution built for content creators, bloggers, influencers, and writers who want a professional, visually appealing, and engaging blog. Ideal for personal blogging, lifestyle blogs, travel journals, food blogs, fashion blogging, technology writing, creative storytelling, and digital media publishing, it features a clean and fully responsive layout focused on readability, strong typography, and high-quality visuals across desktops, tablets, and smartphones. With flexible customization options for colors, fonts, layouts, and multiple post formats including video, audio, gallery, and standard posts, this theme helps creators establish a unique online identity while presenting diverse content effectively. Designed for influencer marketing, content monetization, and audience growth, it is SEO-optimized with fast-loading performance, structured data support, and clean code to improve search visibility and organic traffic. The theme supports popular plugins like Yoast SEO for optimization, Smash Balloon Social Feed for social media integration, and Mailchimp or Contact Form 7 for email subscriptions and communication, making it easy to expand reach and engagement. Whether you are starting a personal blog or scaling a professional content platform, Modern Blogger offers a modern, flexible, and feature-rich foundation for long-term blogging success.', 'modern-blogger')?></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', 'modern-blogger'); ?></h3>
					<ol>
						<li>
						<a href="<?php echo esc_url( MODERN_BLOGGER_THEMESGLANCE_SUPPORT ); ?>" target="_blank"><?php esc_html_e('Support Forum', 'modern-blogger'); ?></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', 'modern-blogger'); ?></h3>
					<ol>
						<li> <?php esc_html_e('Start', 'modern-blogger'); ?> <a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'modern-blogger'); ?></a> <?php esc_html_e('your website.', 'modern-blogger'); ?></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', 'modern-blogger'); ?></h3>
					<ol>
						<li>
						<a href="<?php echo esc_url( MODERN_BLOGGER_THEMESGLANCE_REVIEW ); ?>" target="_blank"><?php esc_html_e('Rate it here', 'modern-blogger'); ?></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', 'modern-blogger' ); ?></h3>
					<ol>
						<li><?php esc_html_e( 'Modern blogger', 'modern-blogger' ); ?> <a href="<?php echo esc_url( MODERN_BLOGGER_THEMESGLANCE_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'modern-blogger' ); ?></a></li>
					</ol>
				</div>
			</div>
			
			<h3><?php esc_html_e( 'Get started with Modern Blogger Theme', 'modern-blogger' ); ?></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', 'modern-blogger' ); ?> <a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e( 'Customizer', 'modern-blogger' ); ?> </a> <?php esc_html_e( 'and start customizing your website', 'modern-blogger' ); ?></p>
				<ul>
					<li><?php esc_html_e( 'Easily customizable ', 'modern-blogger' ); ?> </li>
					<li><?php esc_html_e( 'Absolutely free', 'modern-blogger' ); ?> </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( MODERN_BLOGGER_THEMESGLANCE_PRO_THEME_URL ); ?>" target="_blank"><?php esc_html_e('Get Premium', 'modern-blogger'); ?></a>
				<a href="<?php echo esc_url( MODERN_BLOGGER_THEMESGLANCE_LIVE_DEMO ); ?>" target="_blank"><?php esc_html_e('Live Demo', 'modern-blogger'); ?></a>
				<a href="<?php echo esc_url( MODERN_BLOGGER_THEMESGLANCE_THEME_DOC ); ?>" target="_blank"><?php esc_html_e('Pro Documentation', 'modern-blogger'); ?></a>
				<a href="<?php echo esc_url(  MODERN_BLOGGER_BUNDLE_URL ); ?>" target="_blank"><?php esc_html_e('Bundle of 176+ Premium WP Themes at $79', 'modern-blogger'); ?></a>
			</div>
			<hr class="secondhr">
		</div>
		<h3><?php esc_html_e( 'PREMIUM THEME FEATURES', 'modern-blogger'); ?></h3>
		<ul>
		 	<li><?php esc_html_e( 'Slider with unlimited slides', 'modern-blogger'); ?></li>
		 	<li><?php esc_html_e( 'Simple Menu option', 'modern-blogger'); ?></li>
		 	<li><?php esc_html_e( 'Default demo Importer', 'modern-blogger'); ?></li>
		 	<li><?php esc_html_e( 'Primary color option', 'modern-blogger'); ?></li>
		 	<li><?php esc_html_e( 'About Section', 'modern-blogger'); ?></li>
		 	<li><?php esc_html_e( 'Custom Post type for “testimonial” listing', 'modern-blogger'); ?></li>
		 	<li><?php esc_html_e( 'Features Section', 'modern-blogger'); ?></li>
		 	<li><?php esc_html_e( 'Team section with the custom post type', 'modern-blogger'); ?></li>
		 	<li><?php esc_html_e( 'Video Section', 'modern-blogger'); ?></li>
		 	<li><?php esc_html_e( 'Newsletter Section', 'modern-blogger'); ?></li>
		 	<li><?php esc_html_e( 'Blog Post section on the home', 'modern-blogger'); ?></li>
		 	<li><?php esc_html_e( 'Frequently asked question', 'modern-blogger'); ?></li>
		 	<li><?php esc_html_e( 'Latest Blog Post Section', 'modern-blogger'); ?></li>
		 	<li><?php esc_html_e( 'Contact Page Template', 'modern-blogger'); ?></li>
		 	<li><?php esc_html_e( 'Recent Post Widget with thumbnails', 'modern-blogger'); ?></li>
		 	<li><?php esc_html_e( 'Blog full width, With Left and Right sidebar Templat', 'modern-blogger'); ?></li>
		</ul>
	</div>
	
</div>
<?php } ?>