<?php
//about theme info
add_action( 'admin_menu', 'print_on_demand_gettingstarted' );
function print_on_demand_gettingstarted() {
	add_theme_page( esc_html__('About Theme', 'print-on-demand'), esc_html__('About Theme', 'print-on-demand'), 'edit_theme_options', 'print-on-demand-guide-page', 'print_on_demand_mostrar_guide');   
}

// Add a Custom CSS file to WP Admin Area
function print_on_demand_admin_theme_style() {
   wp_enqueue_style('print-on-demand-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', 'print_on_demand_admin_theme_style');

//guidline for about theme
function print_on_demand_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'print-on-demand' );
?>

<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', 'print-on-demand'); ?></a>
			<a href="<?php echo esc_url( PRINT_ON_DEMAND_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'print-on-demand' ); ?></a>
			<a href="<?php echo esc_url( PRINT_ON_DEMAND_BUY_PRO); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'print-on-demand' ); ?></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', 'print-on-demand' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="print_on_demand_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'print-on-demand' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="print_on_demand_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'print-on-demand' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="print_on_demand_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'print-on-demand' ); ?>
					</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 Print On Demand Theme', 'print-on-demand' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( PRINT_ON_DEMAND_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'print-on-demand' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'print-on-demand'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( PRINT_ON_DEMAND_BUY_PRO ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'print-on-demand'); ?></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( 'Print on Demand WordPress theme is the ultimate solution for entrepreneurs and creatives looking to launch a custom products online store. This free theme is designed specifically for businesses in the t-shirt printing, merchandise, and personalized gifts industries, offering a seamless platform for selling custom apparel and digital products. Whether youre starting a brand from scratch or expanding an existing retail operation, this theme provides all the tools you need to succeed. With built-in support for drop shipping, you can easily manage inventory and ship products directly to your customers without the hassle of handling stock. The theme\'s intuitive design services make it easy to create and showcase unique branded merchandise, from t-shirts and hoodies to mugs and phone cases. Fashion and design professionals will appreciate the customizable features that allow you to align your store with your brand\'s aesthetics. The Print on Demand theme is also perfect for those offering custom printing services, giving your customers the ability to personalize products to their liking. In addition to physical products, this theme supports the sale of digital products, making it versatile for businesses offering digital design services or downloadable content. Whether you\'re in the business of creating custom apparel, personalized gifts, or digital designs, this theme is your go-to solution for building a successful online store. With its clean and modern design, responsive layout, and compatibility with major eCommerce plugins, the Print on Demand WordPress theme is the ideal choice for any online retail venture, helping you turn your creative ideas into a thriving business.', 'print-on-demand' ); ?></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( 'Print On Demand Theme Information', 'print-on-demand' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( PRINT_ON_DEMAND_BUY_PRO ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'print-on-demand' ); ?></a>
					<a href="<?php echo esc_url( PRINT_ON_DEMAND_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'print-on-demand' ); ?></a>
					<a href="<?php echo esc_url( PRINT_ON_DEMAND_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'print-on-demand' ); ?></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( 'Print On Demand Pro Theme', 'print-on-demand' ); ?></h4>
				<p><?php esc_html_e( 'T-shirt Ecommerce WordPress Theme – is an elegant and fast-loading T-shirt Ecommerce theme that integrates the latest design trends and user-friendly features. It’s ideal for an online clothes store, T-shirt apparel brands, clothing manufacturers, product brands, or any other type of eCommerce store! This theme has a Call to Action (CTA) button, a Testimonial Section, Customization Options, and a Clean code. It also uses WooCommerce, which makes managing and maintaining your online business much easier. The theme also comes with many custom shortcodes and widgets. It is fully compatible with all devices, popular plugins, modern browsers, and search engines. T-shirt Ecommerce WordPress Theme is built on the Bootstrap framework, and its home pages can be built using Gutenberg Block Editor or Elementor Website Builder.', 'print-on-demand' ); ?></P>		
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'print-on-demand' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title, and tagline customization', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Separate Newsletter Section', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slide', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Post type', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'print-on-demand' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'print-on-demand' ); ?></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?', 'print-on-demand' ); ?></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.', 'print-on-demand' ); ?></P>
						<a href="<?php echo esc_url( PRINT_ON_DEMAND_FREE_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'print-on-demand' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'print-on-demand'); ?></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.', 'print-on-demand' ); ?></P>
						<a href="<?php echo esc_url( PRINT_ON_DEMAND_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'print-on-demand'); ?></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', 'print-on-demand'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>