<?php
//about theme info
add_action( 'admin_menu', 'lawyer_lite_gettingstarted' );
function lawyer_lite_gettingstarted() {    	
	add_theme_page( esc_html__('Theme Demo Content', 'lawyer-lite'), esc_html__('Theme Demo Content', 'lawyer-lite'), 'edit_theme_options', 'lawyer_lite_guide', 'lawyer_lite_mostrar_guide');   
}

// Add a Custom CSS file to WP Admin Area
function lawyer_lite_admin_theme_style() {
   wp_enqueue_style('lawyer-lite-custom-admin-style', esc_url(get_template_directory_uri()) . '/inc/admin/admin.css');
   wp_enqueue_script('tabs', esc_url(get_template_directory_uri()) . '/inc/admin/js/tab.js');

   // Admin notice code START
	wp_register_script('lawyer-lite-notice', esc_url(get_template_directory_uri()) . '/inc/admin/js/notice.js', array('jquery'), time(), true);
	wp_enqueue_script('lawyer-lite-notice');
	// Admin notice code END
}
add_action('admin_enqueue_scripts', 'lawyer_lite_admin_theme_style');

//guidline for about theme
function lawyer_lite_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'lawyer-lite' );
?>

<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/admin/images/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', 'lawyer-lite'); ?></a>
			<a href="<?php echo esc_url( LAWYER_LITE_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'lawyer-lite' ); ?></a>
			<a href="<?php echo esc_url( 'https://www.themescaliber.com/products/premium-lawyer-wordpress-theme'); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'lawyer-lite' ); ?></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', 'lawyer-lite' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="lawyer_lite_openCity(event, 'tc_demo')">
					<a href="#">
						<?php esc_html_e( 'Theme Demo Import', 'lawyer-lite' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="lawyer_lite_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'lawyer-lite' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="lawyer_lite_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'lawyer-lite' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="lawyer_lite_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'lawyer-lite' ); ?>
					</a>
				</li>
			</ul>
		</div><!-- END .tc-tabs -->
	</div>

	<div class="tc-container">
		<div class="tc-section">
			<div  id="tc_demo" class="tabcontent">
				<h2><?php esc_html_e( 'Welcome to Lawyer Lite', 'lawyer-lite' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="demo">
					<h4><?php esc_html_e( 'Click the "Run Importer" button below to load demo content for Lawyer Lite', 'lawyer-lite' ); ?></h4>
					<?php /* Demo Import */ require get_parent_theme_file_path( '/inc/admin/demo-import.php' );?>
				</div>
			</div><!-- END .tc-section -->
		</div>
	</div>

	<div class="tc-container">
		<div class="tc-section">
			<div  id="tc_index" class="tabcontent">
				<h2><?php esc_html_e( 'Welcome to Lawyer Lite Theme', 'lawyer-lite' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( LAWYER_LITE_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'lawyer-lite' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'lawyer-lite'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( LAWYER_LITE_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'lawyer-lite'); ?></a>
				</div>
				<div class="col-tc-6">
					<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/admin/images/screenshot.jpg" alt="" />
				</div>
				<div class="col-tc-6">
				<P><?php esc_html_e( 'Lawyer Lite is a professional, modern, and responsive theme designed for legal professionals, law firms, attorneys, legal advisors, advocates, barristers, legal consultants, corporate lawyers, and law-related businesses. Ideal for showcasing legal services, case studies, practice areas, attorney profiles, client testimonials, office information, legal consultation services, litigation support, corporate law services, and online legal advice, the theme provides a clean, organized, and visually appealing online presence. Fully responsive, retina-ready, and mobile-friendly, it ensures seamless user experience across desktops, tablets, and smartphones. Built with secure, optimized code, the theme guarantees fast loading times, smooth navigation, and SEO-friendly performance. Customization is easy with options for layouts, colors, fonts, and sections, allowing law firms to establish a distinct brand identity. Integrated with WooCommerce for online service bookings, Contact Form 7 for client inquiries, and WPML for multilingual support, Lawyer Lite offers a complete, versatile, and high-performing platform for building a professional, client-focused legal webs', 'lawyer-lite' ); ?></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( 'Lawyer Lite Theme Information', 'lawyer-lite' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( LAWYER_LITE_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'lawyer-lite' ); ?></a>
					<a href="<?php echo esc_url( LAWYER_LITE_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'lawyer-lite' ); ?></a>
					<a href="<?php echo esc_url( LAWYER_LITE_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'lawyer-lite' ); ?></a>
				</div>
				<div class="pro-image">
					<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/admin/images/responsiveimg.jpg" alt="" />
				</div>
			<div class="col-pro-5">
				<h4><?php esc_html_e( 'Lawyer Lite Pro Theme', 'lawyer-lite' ); ?></h4>
				<P><?php esc_html_e( 'This premium lawyer WordPress theme has a bold and impactful design just as the profession you deal in. It is an apt way to display your professionalism and dedication towards your work. The theme works perfectly for lawyers, law firms, legal consultants and consultancies, attorney websites, legal advisors and all those working in this field. This easy to set up theme spares you ample time to invest on your clients. The well designed layouts with proper allocation of sections result in a user-friendly theme. Every single element is included keeping in mind the purpose of this theme. All the information can be found out, without wandering here and there, within minutes of landing on the site. This premium lawyer theme can be installed and run by an amateur and a webmaster with equal ease without requiring any expertise in coding.The theme is added with exclusive features and functionality to deliver high-end performance. Its responsiveness makes it look beautiful on all device screen size. This premium lawyer WP theme is cross-browser compatible and retina ready to give crisp look on all browsers and devices. It offers easy customization of background, colour, header, footer, menu and other entities through customizer. It is significantly made search engine optimized to get a higher rank in search engine. Its multiple blog layouts, 100+ fonts and unlimited colours give you freedom to make your site look according to you wish. Each of its section has option to enable/disable it. Gallery and banner bring out your best image in front of your visitors. Testimonial section will give testimony of your services to let others get an idea of your capabilities. It is made compatible with premium WooCommerce and Contact Form 7 plugin. This premium lawyer theme gives you space to shift between full-width and boxed layout, whichever suits your site the best.', 'lawyer-lite' ); ?></P>	
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'lawyer-lite' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title, and tagline customization', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Separate Newsletter Section', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slide', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Post type', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'lawyer-lite' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'lawyer-lite' ); ?></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?', 'lawyer-lite' ); ?></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.', 'lawyer-lite' ); ?></P>
						<a href="<?php echo esc_url( LAWYER_LITE_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'lawyer-lite' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'lawyer-lite'); ?></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.', 'lawyer-lite' ); ?></P>
						<a href="<?php echo esc_url( LAWYER_LITE_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'lawyer-lite'); ?></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', 'lawyer-lite'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>