<?php
//about theme info
add_action( 'admin_menu', 'bb_mobile_application_gettingstarted' );
function bb_mobile_application_gettingstarted() {    	
	add_theme_page( esc_html__('Theme Demo Content', 'bb-mobile-application'), esc_html__('Theme Demo Content', 'bb-mobile-application'), 'edit_theme_options', 'bb_mobile_application_guide', 'bb_mobile_application_mostrar_guide');   
}

// Add a Custom CSS file to WP Admin Area
function bb_mobile_application_admin_theme_style() {
   wp_enqueue_style('bb-mobile-application-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('bb-mobile-application-notice', esc_url(get_template_directory_uri()) . '/inc/admin/js/notice.js', array('jquery'), time(), true);
	wp_enqueue_script('bb-mobile-application-notice');
	// Admin notice code END

}
add_action('admin_enqueue_scripts', 'bb_mobile_application_admin_theme_style');

//guidline for about theme
function bb_mobile_application_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'bb-mobile-application' );
?>

<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', 'bb-mobile-application'); ?></a>
			<a href="<?php echo esc_url( BB_MOBILE_APPLICATION_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'bb-mobile-application' ); ?></a>
			<a href="<?php echo esc_url( 'https://www.themescaliber.com/products/bb-mobile-application-theme'); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'bb-mobile-application' ); ?></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', 'bb-mobile-application' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container  tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="bb_mobile_application_openCity(event, 'tc_demo')">
					<a href="#">
						<?php esc_html_e( 'Theme Demo Import', 'bb-mobile-application' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="bb_mobile_application_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'bb-mobile-application' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="bb_mobile_application_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'bb-mobile-application' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="bb_mobile_application_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'bb-mobile-application' ); ?>
					</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 BB Mobile Application', 'bb-mobile-application' ); ?> <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 BB Mobile Application', 'bb-mobile-application' ); ?></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 BB Mobile Application Theme', 'bb-mobile-application' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( BB_MOBILE_APPLICATION_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'bb-mobile-application' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'bb-mobile-application'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( BB_MOBILE_APPLICATION_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'bb-mobile-application'); ?></a>
				</div>
				<div class="col-tc-6">
					<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/admin/images/screenshot.png" alt="" />
				</div>
				<div class="col-tc-6">
					<P><?php esc_html_e( 'BB Mobile Application is a free multipurpose and fully responsive mobile app landing theme designed to create professional and high-converting websites for mobile applications, software products, SaaS platforms, startups, digital services, and online businesses, while also supporting ecommerce-style product showcases such as subscription services, digital products, and online solutions. Ideal for app developers, tech startups, agencies, entrepreneurs, and freelancers, this theme features a clean, modern design with smooth coding standards to build a strong online presence. It includes customizable sections for app features, screenshots, service highlights, banners, Call to Action buttons, testimonials, pricing details, and social media integration to boost user engagement and conversions. Built for seamless compatibility with WooCommerce for digital sales, Yoast SEO for search optimization, and Contact Form 7 for inquiries and lead generation, the theme ensures flexibility and advanced functionality. This free customizable theme offers easy design control through the Customizer with layout options, background images, color settings, fast loading speed, SEO-friendly structure, translation-ready support, and mobile-first performance, making BB Mobile Application a reliable and user-friendly solution for promoting apps, software, and digital businesses effectively.', 'bb-mobile-application' ); ?></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( 'BB Mobile Application Theme Information', 'bb-mobile-application' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( BB_MOBILE_APPLICATION_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'bb-mobile-application' ); ?></a>
					<a href="<?php echo esc_url( BB_MOBILE_APPLICATION_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'bb-mobile-application' ); ?></a>
					<a href="<?php echo esc_url( BB_MOBILE_APPLICATION_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'bb-mobile-application' ); ?></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( 'BB Mobile Application Pro Theme', 'bb-mobile-application' ); ?></h4>
				<P><?php esc_html_e( 'Are you searching for a versatile option to present a multipurpose website? Well, the Mobile Responsive Business WordPress Theme is an extensively developed theme to cover the website requirements of every business. The best thing about this theme is its customization options that let you make unique websites on single clicks. Extreme consideration is given to the design of this Mobile Application WordPress Theme so as to make it adaptable for any business type. Because of the well-structured Landing Page that comes incorporated with this theme, any business can lead ahead of its competitors! This Corporate WordPress Theme is really advantageous, it owes the credit of being multipurpose and giving a thorough insight of your website to the site visitors. You dont have to make any changes in its coding to create different website pages. You can nicely showcase your work with this mobile application theme. The great features of this theme put forward the robustness of your product. It offers detailed documentation and full theme support. Also, this Mobile Friendly WordPress Theme presents your stunning website on handheld devices as per users convenience. Get this state of the art Landing Page WordPress Theme right away.', 'bb-mobile-application' ); ?></P>	
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'bb-mobile-application' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title and tagline customization', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Seperate Newsletter Section', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slides', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Posttype', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'bb-mobile-application' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'bb-mobile-application' ); ?></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?', 'bb-mobile-application' ); ?></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.', 'bb-mobile-application' ); ?></P>
						<a href="<?php echo esc_url( BB_MOBILE_APPLICATION_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'bb-mobile-application' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'bb-mobile-application'); ?></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.', 'bb-mobile-application' ); ?></P>
						<a href="<?php echo esc_url( BB_MOBILE_APPLICATION_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'bb-mobile-application'); ?></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', 'bb-mobile-application'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>