<?php
/**
 * Add theme page
 */

function translation_service_menu() {
	add_theme_page( esc_html__( 'Translation Service', 'translation-service' ), esc_html__( 'Translation Service Theme', 'translation-service' ), 'edit_theme_options', 'translation-service-info', 'translation_service_theme_page_display' );
}
add_action( 'admin_menu', 'translation_service_menu' );

function translation_service_admin_theme_style() {
	wp_enqueue_style('translation-service-custom-admin-style', esc_url(get_template_directory_uri()) . '/css/admin-style.css');
	wp_enqueue_script('translation-service-tabs', esc_url(get_template_directory_uri()) . '/js/tab.js');
}
add_action('admin_enqueue_scripts', 'translation_service_admin_theme_style');

/**
 * Display About page
 */
function translation_service_theme_page_display() {
	$translation_service_theme = wp_get_theme();

	if ( is_child_theme() ) {
		$translation_service_theme = wp_get_theme()->parent();
	} ?>

	<div class="wrapper-info">
	    <div class="col-left sshot-section">
	    	<h2><?php esc_html_e( 'Welcome to Translation Service Theme', 'translation-service' ); ?> <span class="version"><?php esc_html_e('Version:','translation-service'); ?> <?php echo esc_html($translation_service_theme['Version']);?></span></h2>
	    	<p><?php esc_html_e('All our WordPress themes are modern, minimalist, 100% responsive, seo-friendly,feature-rich, and multipurpose that best suit designers, bloggers and other professionals who are working in the creative fields.','translation-service'); ?></p>
	    </div>
	    <div class="col-right coupen-section">
			<div class="logo-section">
				<img src="<?php echo esc_url(get_template_directory_uri()); ?>/screenshot.png" alt="" />
			</div>
			<div class="logo-right">            
	            <div class="update-now">
	                <div class="theme-info">
	                    <div class="theme-info-left">
	                        <h2><?php esc_html_e('TRY PREMIUM','translation-service'); ?></h2>
	                        <h4><?php esc_html_e('Translation Service THEME','translation-service'); ?></h4>
	                    </div>    
	                    <div class="theme-info-right"></div>
	                </div>    
	                <div class="dicount-row">
	                    <div class="disc-sec">    
	                        <h5 class="disc-text"><?php esc_html_e('GET THE FLAT DISCOUNT OF','translation-service'); ?></h5>
	                        <h1 class="disc-per"><?php esc_html_e('20%','translation-service'); ?></h1>    
	                    </div>
	                    <div class="coupen-info">
	                        <h5 class="coupen-code"><?php esc_html_e('"VWPRO20"','translation-service'); ?></h5>
	                        <h5 class="coupen-text"><?php esc_html_e('USE COUPON CODE','translation-service'); ?></h5>
	                        <div class="info-link">                        
	                            <a href="<?php echo esc_url( TRANSLATION_SERVICE_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'UPGRADE TO PRO', 'translation-service' ); ?></a>
	                        </div>    
	                    </div>    
	                </div>                
	            </div>
	        </div> 
	    </div>

	    <div class="tab-sec">
			<div class="tab">
				<button class="tablinks" onclick="translation_service_open_tab(event, 'lite_theme')"><?php esc_html_e( 'Free Setup', 'translation-service' ); ?></button>
			  	<button class="tablinks" onclick="translation_service_open_tab(event, 'pro_theme')"><?php esc_html_e( 'Get Premium', 'translation-service' ); ?></button>
			  	<button class="tablinks" onclick="translation_service_open_tab(event, 'free_pro')"><?php esc_html_e( 'Free Vs Premium', 'translation-service' ); ?></button>
			  	<button class="tablinks" onclick="translation_service_open_tab(event, 'get_bundle')"><?php esc_html_e( 'Get 400+ Themes Bundle at $99', 'translation-service' ); ?></button>
			</div>

			<div id="lite_theme" class="tabcontent open">
				<div class="lite-theme-tab">
					<h3><?php esc_html_e( 'Lite Theme Information', 'translation-service' ); ?></h3>
					<hr class="h3hr">
				  	<p><?php esc_html_e('The Translation Service theme is meticulously crafted for businesses, agencies, freelancers, translators, interpreters, language schools, linguists, content writers, and localization experts seeking a professional multilingual website and a strong international presence while supporting ecommerce functionality for selling translation packages, language courses, digital content, and localization services online through WooCommerce, making it ideal for online store building, dropshipping, and POD products for language learning; built with seamless multilingual compatibility and Polylang integration, it allows accurate translation of pages, posts, menus, and widgets, supporting automated or professional translations, and ensures global communication and cultural localization for international audiences; fully responsive, fast-loading, and SEO-optimized with Yoast SEO, the theme includes Contact Form 7 for inquiries and quote requests, customizable layouts, intuitive navigation, and high performance across desktops, tablets, and mobile devices; perfect for corporate translation companies, ecommerce stores requiring localization, creative portfolios, blogs, and international service-based businesses, this complete solution enhances digital reach, builds trust, and expands customer engagement worldwide.','translation-service'); ?></p>
				  	<div class="col-left-inner">
						<div class="pro-links">
					    	<a href="<?php echo esc_url( admin_url() . 'site-editor.php' ); ?>" target="_blank"><?php esc_html_e('Edit Your Site', 'translation-service'); ?></a>
							<a href="<?php echo esc_url( home_url() ); ?>" target="_blank"><?php esc_html_e('Visit Your Site', 'translation-service'); ?></a>
						</div>
						<div class="support-forum-col-section">
							<div class="support-forum-col">
								<h4><?php esc_html_e('Having Trouble, Need Support?', 'translation-service'); ?></h4>
								<p> <?php esc_html_e('Our dedicated team is well prepared to help you out in case of queries and doubts regarding our theme.', 'translation-service'); ?></p>
								<div class="info-link">
									<a href="<?php echo esc_url( TRANSLATION_SERVICE_SUPPORT ); ?>" target="_blank"><?php esc_html_e('Support Forum', 'translation-service'); ?></a>
								</div>
							</div>
							<div class="support-forum-col">
								<h4><?php esc_html_e('Reviews & Testimonials', 'translation-service'); ?></h4>
								<p> <?php esc_html_e('All the features and aspects of this WordPress Theme are phenomenal. I\'d recommend this theme to all.', 'translation-service'); ?>  </p>
								<div class="info-link">
									<a href="<?php echo esc_url( TRANSLATION_SERVICE_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'translation-service'); ?></a>
								</div>
							</div>
							<div class="support-forum-col">
								<h4><?php esc_html_e('Theme Documentation', 'translation-service'); ?></h4>
								<p> <?php esc_html_e('If you need any assistance regarding setting up and configuring the Theme, our documentation is there.', 'translation-service'); ?>  </p>
								<div class="info-link">
									<a href="<?php echo esc_url( TRANSLATION_SERVICE_FREE_DOC ); ?>" target="_blank"><?php esc_html_e('Free Theme Documentation', 'translation-service'); ?></a>
								</div>
							</div>
						</div>
				  	</div>
				</div>
			</div>

			<div id="pro_theme" class="tabcontent">
			  	<h3><?php esc_html_e( 'Premium Theme Information', 'translation-service' ); ?></h3>
				<hr class="h3hr">
				<div class="col-left-pro">
	    			<p><?php esc_html_e('The Translation Agency WordPress Theme is designed specifically for language service providers, freelance translators, and professional agencies who want a modern, user-friendly, and responsive online presence. This theme comes with a clean design, customizable layouts, and robust functionality that helps you showcase services, pricing plans, portfolios, and testimonials seamlessly. With its drag-and-drop builder compatibility, you can easily design pages without technical expertise. It offers multilingual support, advanced typography, and SEO optimization to help you rank higher on search engines. Fully responsive and cross-browser compatible, it ensures smooth navigation for users on desktops, tablets, and mobiles. Whether you run a small translation business or a large agency, this theme adapts perfectly to your needs. Its professional look, fast loading speed, and secure coding make it an excellent choice to build trust with clients. With the Translation Agency WordPress Theme, you can create a professional website that speaks your brand’s global language.','translation-service'); ?></p>
	    		</div>
		    	<div class="col-right-pro">
			    	<div class="pro-links">
				    	<a href="<?php echo esc_url( TRANSLATION_SERVICE_LIVE_DEMO ); ?>" target="_blank"><?php esc_html_e('Live Demo', 'translation-service'); ?></a>
						<a href="<?php echo esc_url( TRANSLATION_SERVICE_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Buy Pro', 'translation-service'); ?></a>
						<a href="<?php echo esc_url( TRANSLATION_SERVICE_PRO_DOC ); ?>" target="_blank"><?php esc_html_e('Pro Documentation', 'translation-service'); ?></a>
						<a href="<?php echo esc_url( TRANSLATION_SERVICE_THEME_BUNDLE_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Get 400+ Themes Bundle at $99', 'translation-service'); ?></a>
					</div>
					<img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/pro.png" alt="" />
				</div>
			</div>

			<div id="free_pro" class="tabcontent">
				<div class="featurebox">
				    <h3 class="theme-features"><?php esc_html_e( 'Theme Features', 'translation-service' ); ?></h3>
					<hr class="h3hr1">
					<div class="table-image">
						<table class="tablebox">
							<thead>
								<tr>
									<th><?php esc_html_e('Features', 'translation-service'); ?></th>
									<th><?php esc_html_e('Free Themes', 'translation-service'); ?></th>
									<th><?php esc_html_e('Premium Themes', 'translation-service'); ?></th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td><?php esc_html_e('Easy Setup', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr class="odd">
									<td><?php esc_html_e('Responsive Design', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr>
									<td><?php esc_html_e('SEO Friendly', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr class="odd">
									<td><?php esc_html_e('Banner Settings', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr>
									<td><?php esc_html_e('Template Pages', 'translation-service'); ?></td>
									<td class="table-img"><?php esc_html_e('1', 'translation-service'); ?></td>
									<td class="table-img"><?php esc_html_e('14', 'translation-service'); ?></td>
								</tr>
								<tr class="odd">
									<td><?php esc_html_e('Home Page Template', 'translation-service'); ?></td>
									<td class="table-img"><?php esc_html_e('1', 'translation-service'); ?></td>
									<td class="table-img"><?php esc_html_e('1', 'translation-service'); ?></td>
								</tr>
								<tr>
									<td><?php esc_html_e('Theme sections', 'translation-service'); ?></td>
									<td class="table-img"><?php esc_html_e('2', 'translation-service'); ?></td>
									<td class="table-img"><?php esc_html_e('12', 'translation-service'); ?></td>
								</tr>
								<tr class="odd">
									<td><?php esc_html_e('Contact us Page Template', 'translation-service'); ?></td>
									<td class="table-img">0</td>
									<td class="table-img"><?php esc_html_e('1', 'translation-service'); ?></td>
								</tr>
								<tr>
									<td><?php esc_html_e('Blog Templates & Layout', 'translation-service'); ?></td>
									<td class="table-img">0</td>
									<td class="table-img"><?php esc_html_e('3(Full width/Left/Right Sidebar)', 'translation-service'); ?></td>
								</tr>
								<tr class="odd">
									<td><?php esc_html_e('Section Reordering', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-no"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr>
									<td><?php esc_html_e('Demo Importer', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-no"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr class="odd">
									<td><?php esc_html_e('Full Documentation', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr>
									<td><?php esc_html_e('Latest WordPress Compatibility', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr class="odd">
									<td><?php esc_html_e('Support 3rd Party Plugins', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr>
									<td><?php esc_html_e('Secure and Optimized Code', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr class="odd">
									<td><?php esc_html_e('Exclusive Functionalities', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-no"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr>
									<td><?php esc_html_e('Section Enable / Disable', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-no"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr class="odd">
									<td><?php esc_html_e('Section Google Font Choices', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-no"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr>
									<td><?php esc_html_e('Gallery', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-no"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr class="odd">
									<td><?php esc_html_e('Simple & Mega Menu Option', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-no"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr>
									<td><?php esc_html_e('Support to add custom CSS / JS ', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-no"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr class="odd">
									<td><?php esc_html_e('Shortcodes', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-no"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr>
									<td><?php esc_html_e('Custom Background, Colors, Header, Logo & Menu', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-no"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr class="odd">
									<td><?php esc_html_e('Premium Membership', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-no"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr>
									<td><?php esc_html_e('Budget Friendly Value', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-no"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr class="odd">
									<td><?php esc_html_e('Priority Error Fixing', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-no"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr>
									<td><?php esc_html_e('Custom Feature Addition', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-no"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr class="odd">
									<td><?php esc_html_e('All Access Theme Pass', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-no"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr>
									<td><?php esc_html_e('Seamless Customer Support', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-no"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr class="odd">
									<td><?php esc_html_e('WordPress 6.4 or later', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-no"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr>
									<td><?php esc_html_e('PHP 8.2 or 8.3', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-no"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr class="odd">
									<td><?php esc_html_e('MySQL 5.6 (or greater) | MariaDB 10.0 (or greater)', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-no"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr>
									<td><?php esc_html_e('Influence Registration', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-no"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr class="odd">
									<td><?php esc_html_e('Detailed Influencer Portfolio', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-no"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr>
									<td><?php esc_html_e('Premium Pricing Plan', 'translation-service'); ?></td>
									<td class="table-img"><span class="dashicons dashicons-no"></span></td>
									<td class="table-img"><span class="dashicons dashicons-saved"></span></td>
								</tr>
								<tr>
								<td></td>
								<td class="table-img"></td>
								<td class="update-link"><a href="<?php echo esc_url( TRANSLATION_SERVICE_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Upgrade to Pro', 'translation-service'); ?></a></td>
								</tr>
							</tbody>
						</table>

					</div>
				</div>
			</div>

			<div id="get_bundle" class="tabcontent">		  	
			   <div class="col-left-pro">
			   	<h3><?php esc_html_e( 'WP Theme Bundle', 'translation-service' ); ?></h3>
			    	<p><?php esc_html_e('Enhance your website effortlessly with our WP Theme Bundle. Get access to 400+ premium WordPress themes and 5+ powerful plugins, all designed to meet diverse business needs. Enjoy seamless integration with any plugins, ultimate customization flexibility, and regular updates to keep your site current and secure. Plus, benefit from our dedicated customer support, ensuring a smooth and professional web experience.','translation-service'); ?></p>
			    	<div class="feature">
			    		<h4><?php esc_html_e( 'Features:', 'translation-service' ); ?></h4>
			    		<p><?php esc_html_e('400+ Premium Themes & 5+ Plugins.', 'translation-service'); ?></p>
			    		<p><?php esc_html_e('Seamless Integration.', 'translation-service'); ?></p>
			    		<p><?php esc_html_e('Customization Flexibility.', 'translation-service'); ?></p>
			    		<p><?php esc_html_e('Regular Updates.', 'translation-service'); ?></p>
			    		<p><?php esc_html_e('Dedicated Support.', 'translation-service'); ?></p>
			    	</div>
			    	<p>Upgrade now and give your website the professional edge it deserves, all at an unbeatable price of $99!</p>
			    	<div class="pro-links">
						<a href="<?php echo esc_url( TRANSLATION_SERVICE_THEME_BUNDLE_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Buy Now', 'translation-service'); ?></a>
						<a href="<?php echo esc_url( TRANSLATION_SERVICE_THEME_BUNDLE_DOC ); ?>" target="_blank"><?php esc_html_e('Documentation', 'translation-service'); ?></a>
					</div>
			   </div>
			   <div class="col-right-pro">
			    	<img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/bundle.png" alt="" />
			   </div>		    
			</div>
		</div>
	</div>
<?php }?>
