<?php
//about theme info
add_action( 'admin_menu', 'the_writers_blog_gettingstarted' );
function the_writers_blog_gettingstarted() {
	add_theme_page( esc_html__('About Theme', 'the-writers-blog'), esc_html__('About Theme', 'the-writers-blog'), 'edit_theme_options', 'the-writers-blog-guide-page', 'the_writers_blog_mostrar_guide');   
}

// Add a Custom CSS file to WP Admin Area
function the_writers_blog_admin_theme_style() {
   wp_enqueue_style('the-writers-blog-custom-admin-style', esc_url(get_template_directory_uri()) . '/inc/dashboard/get_started_info.css');
   wp_enqueue_script('tabs', esc_url(get_template_directory_uri()) . '/inc/dashboard/js/tab.js');
}
add_action('admin_enqueue_scripts', 'the_writers_blog_admin_theme_style');

//guidline for about theme
function the_writers_blog_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'the-writers-blog' );
?>

<div class="wrapper-info">  
	<div id="tc-header">
		<div class="tc-container main-header">
			<a class="tc-logo"> 
				<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/dashboard/media/logo.png" alt="" />
			</a>
			<span class="tc-header-action">
			<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customize', 'the-writers-blog'); ?></a>
			<a href="<?php echo esc_url( THE_WRITERS_BLOG_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'the-writers-blog' ); ?></a>
			<a href="<?php echo esc_url( THE_WRITERS_BLOG_BUY_PRO); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'the-writers-blog' ); ?></a>
			<a href="<?php echo esc_url( 'https://www.themescaliber.com/products/wordpress-theme-bundle' ); ?>" class="bundle_btn" target="_blank"> <?php esc_html_e( 'Bundle of 220+ Themes at $99', 'the-writers-blog' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="the_writers_blog_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'the-writers-blog' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="the_writers_blog_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'the-writers-blog' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="the_writers_blog_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'the-writers-blog' ); ?>
					</a>
				</li>
			</ul>
		</div><!-- END .tc-tabs -->
	</div>

	<div class="tc-container">
		<div class="tc-section">
			<div  id="tc_index" class="tabcontent">
				<h2><?php esc_html_e( 'Welcome to The Writers Blog Theme', 'the-writers-blog' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( THE_WRITERS_BLOG_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'the-writers-blog' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'the-writers-blog'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( THE_WRITERS_BLOG_BUY_PRO ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'the-writers-blog'); ?></a>
				</div>
				<div class="col-tc-6">
					<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/screenshot.png" alt="" />
				</div>
				<div class="col-tc-6">
					<P><?php esc_html_e( 'Writers Blog WordPress Theme—a perfect choice for authors, journalists, and content creators. Designed to cater to the needs of bloggers, this theme offers a versatile platform to showcase your writing, whether you’re penning essays, crafting articles, or sharing storytelling ideas. Writers Blog brings together the essentials for engaging online journalism and literature. Its clean and elegant design ensures that your content takes center stage, whether you\'re publishing thought-provoking essays, detailed articles, or creative pieces. With a focus on narrative and storytelling, this theme helps highlight your unique voice and style. Features include customizable layouts to suit various writing formats, from traditional blog posts to in-depth articles and essays. The theme supports multiple content types, making it ideal for medium-to-long-form writing and online journals. It’s designed to enhance creativity and streamline the publishing process, ensuring your content is presented professionally. Engage with your readers through a user-friendly interface and responsive design that adapts to any device. The Writers Blog theme is crafted to amplify your ideas and provide a platform where authors and creatives can thrive. Embrace the world of literature and storytelling with a theme that values the art of writing and supports your journey in the realm of online journalism. Whether you\'re a seasoned author or an aspiring writer, the Writers Blog WordPress Theme is your gateway to a successful blogging experience. Share your narratives, showcase your creativity, and connect with your audience through a professional and engaging online presence.', 'the-writers-blog' ); ?></P>
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>

	<div class="tc-container">
		<div class="tc-section">
			<div id="tc_pro" class="tabcontent">
				<h3><?php esc_html_e( 'The Writers Blog Theme Information', 'the-writers-blog' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( THE_WRITERS_BLOG_BUY_PRO ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'the-writers-blog' ); ?></a>
					<a href="<?php echo esc_url( THE_WRITERS_BLOG_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'the-writers-blog' ); ?></a>
					<a href="<?php echo esc_url( THE_WRITERS_BLOG_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'the-writers-blog' ); ?></a>
				</div>
				<div class="pro-image">
					<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/dashboard/media/responsive.png" alt="" />
				</div>
			<div class="col-pro-5">
				<h4><?php esc_html_e( 'The Writers Blog Pro Theme', 'the-writers-blog' ); ?></h4>
				<p><?php esc_html_e( 'This blog WordPress theme is packed with some top notch features to make an all-encompassing website that does not require you to be a professional coder to make important changes. You can include unlimited slides in the slider area. For a blog it is important to choose typography wisely and to help in the same we have offered unlimited colour options and numerous Google fonts. This blog theme welcomes heavy customization through theme customizer and dashboard. Various shortcodes are implemented and many more Font Awesome icons are used to make website modern and handy. We give customer support and regular theme updates for one year with this premium theme.', 'the-writers-blog' ); ?></P>		
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'the-writers-blog' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title, and tagline customization', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Separate Newsletter Section', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slide', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Post type', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'the-writers-blog' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'the-writers-blog' ); ?></li>
				</ul>				
			</div>	
		</div><!-- END .tc-section -->
	</div>

	<div class="tc-container">
		<div class="tc-section">
			<div id="tc_create" class="tabcontent">
				<div class="tab-cont">
					<h4><?php esc_html_e( 'Need Support?', 'the-writers-blog' ); ?></h4>				
					<div class="info-link-support">
						<P><?php esc_html_e( 'Our team is obliged to help you in every way possible whenever you face any type of difficulties and doubts.', 'the-writers-blog' ); ?></P>
						<a href="<?php echo esc_url( THE_WRITERS_BLOG_FREE_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'the-writers-blog' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'the-writers-blog'); ?></h4>				
					<div class="info-link-support">
						<P><?php esc_html_e( 'It is commendable to have such a theme inculcated with amazing features and robust functionalities. I feel grateful to recommend this theme to one and all.', 'the-writers-blog' ); ?></P>
						<a href="<?php echo esc_url( THE_WRITERS_BLOG_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'the-writers-blog'); ?></a>
					</div>
				</div>

				<div class="tc-section large-section">
					<h2>Let‘s customize your website</h2>
					<p>There are many changes you can make to customize your website. Explore customization options and make it unique.</p>
					<div class="tc-buttons">
						<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>" class="tc-btn primary large-button"><?php esc_html_e('Start Customizing', 'the-writers-blog'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>