<?php
//about theme info
add_action( 'admin_menu', 'katib_writers_gettingstarted' );
function katib_writers_gettingstarted() {
	add_theme_page( esc_html__('About Theme', 'katib-writers'), esc_html__('About Theme', 'katib-writers'), 'edit_theme_options', 'katib-writers-guide-page', 'katib_writers_mostrar_guide');   
}

// Add a Custom CSS file to WP Admin Area
function katib_writers_admin_theme_style() {
   wp_enqueue_style('katib-writers-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', 'katib_writers_admin_theme_style');

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

<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', 'katib-writers'); ?></a>
			<a href="<?php echo esc_url( KATIB_WRITERS_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'katib-writers' ); ?></a>
			<a href="<?php echo esc_url( KATIB_WRITERS_BUY_PRO); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'katib-writers' ); ?></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', 'katib-writers' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="katib_writers_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'katib-writers' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="katib_writers_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'katib-writers' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="katib_writers_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'katib-writers' ); ?>
					</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 Katib Writers Theme', 'katib-writers' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( KATIB_WRITERS_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'katib-writers' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'katib-writers'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( KATIB_WRITERS_BUY_PRO ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'katib-writers'); ?></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( 'Katib Writers is a judiciously created, engaging, sleek and well-structured WordPress theme for writers to give them vast space to put forth their thoughts on various different topics such as lifestyle, reviews, products or other entertainment niches. Apart from writers and authors, it can be used by journalists, e-magazines, online and onsite book stores, copywriter, writing authors, Video Script Writing, Online or E-Learning Courses, e book seller, tutorials, novelist, reviewers, book distributors poets, bloggers from different niches, libraries, author, Blogging, Freelance Writing, Content Creation, Copywriting, Publishing, Author Website, Book Promotion, Writing Portfolio, Literary Agency, Scriptwriting, journal, journalist, book, copywriter, diary, library, novel, portfolio, online course providers, corporate training providers, publishers, E-Books, White Papers, Case Studies, Email Writing, news agencies, product advertisers, literature lovers, online music and games websites and all similar profession, businesses and websites. It is a fully responsive theme with cross-browser compatibility to entertain maximum people. Katib Writers is multilingual so you can post content in your language; supports RTL writing style and compatible with WPML plugin. This writer WordPress theme is thoroughly customizable and fully SEO enabled. It includes various social media icons, blog sections and many amazing features for a modern website. It is based on the latest WordPress version, hence bug-free and updated. It has a professional look which is complimented by its sophisticated design to hold visitors for a good amount of time.', 'katib-writers' ); ?></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( 'Katib Writers Theme Information', 'katib-writers' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( KATIB_WRITERS_BUY_PRO ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'katib-writers' ); ?></a>
					<a href="<?php echo esc_url( KATIB_WRITERS_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'katib-writers' ); ?></a>
					<a href="<?php echo esc_url( KATIB_WRITERS_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'katib-writers' ); ?></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( 'Katib Writers Pro Theme', 'katib-writers' ); ?></h4>
				<p><?php esc_html_e( 'This WordPress theme for writers gives you great opportunity to engage visitors in your content with its sleek and clutter-free design. This theme is loaded with all the necessary features that yield a high quality website which requires minimum efforts for its handling. It is cleverly designed to make content hero and rest of the things will take back seat. Its typography is thoughtfully decided with proper line spacing, correct line lengths and other measures taken to ensure convenient reading and appealing content. Create stunning inner pages according to your needs in seconds without writing a single line of code through its themes option panel. Additionally, almost all components of this WordPress theme for writers are customizable to give website the hint of your personality and make it represent your thoughts. It is integrated with WooCommerce, WPML and Contact Form 7 plugin along with great compatibility with third party plugins to include specific functionality.', 'katib-writers' ); ?></P>		
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'katib-writers' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title, and tagline customization', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Separate Newsletter Section', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slide', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Post type', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'katib-writers' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'katib-writers' ); ?></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?', 'katib-writers' ); ?></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.', 'katib-writers' ); ?></P>
						<a href="<?php echo esc_url( KATIB_WRITERS_FREE_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'katib-writers' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'katib-writers'); ?></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.', 'katib-writers' ); ?></P>
						<a href="<?php echo esc_url( KATIB_WRITERS_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'katib-writers'); ?></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', 'katib-writers'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>