<?php
add_action( 'admin_menu', 'visa_consulting_service_gettingstarted' );
function visa_consulting_service_gettingstarted() {
	add_theme_page( esc_html__('Theme Demo Import', 'visa-consulting-service'), esc_html__('Theme Demo Import', 'visa-consulting-service'), 'edit_theme_options', 'visa-consulting-service-guide-page', 'visa_consulting_service_guide');
}

function visa_consulting_service_admin_theme_style() {
   wp_enqueue_style('visa-consulting-service-custom-admin-style', esc_url(get_template_directory_uri()) . '/inc/dashboard/get_started_info.css');
   wp_enqueue_script('visa-consulting-service-tab', esc_url( get_template_directory_uri() ) . '/inc/dashboard/js/get_started_tab.js');

   	// Admin notice code START
	wp_register_script('visa-consulting-service-notice', esc_url(get_template_directory_uri()) . '/inc/dashboard/js/notice.js', array('jquery'), time(), true);
	wp_enqueue_script('visa-consulting-service-notice');
	// Admin notice code END
}
add_action('admin_enqueue_scripts', 'visa_consulting_service_admin_theme_style');

// Notice after Theme Activation
function visa_consulting_service_activation_notice() {
    // Hide permanently if dismissed
    if ( get_option('visa_consulting_service_admin_notice') == 1 ) {
        return;
    }
    // Hide ONLY on Get Started page
    if ( isset($_GET['page']) && $_GET['page'] === 'visa-consulting-service-guide-page' ) {
        return;
    }  { ?> 
        <div id="visa-consulting-service-welcome-notice" class="notice notice-success is-dismissible getting_started activation-notice	">
            <div class="notice-info">
                <div class="notice-image">
                    <img style="width: 100%;max-width: 320px;line-height: 40px;display: inline-block;vertical-align: top;" src="<?php echo esc_url( get_stylesheet_directory_uri() . '/screenshot.png' ); ?>" />
                </div>
                <div class="notice-content">
                    <h2><?php esc_html_e( 'Thanks For Installing Visa Consulting Service, You Rock!', 'visa-consulting-service' ); ?></h2>
                    <p><?php esc_html_e( 'Take benefit of a variety of features, functionalities, elements, and an exclusive set of customization options to build your own professional visa consulting website. Please click the link below for theme setup details.', 'visa-consulting-service' ); ?></p>
                    <div style="display: grid;">
                        <a class="button notice-btn" href="<?php echo esc_url( admin_url( 'themes.php?page=visa-consulting-service-guide-page' ) ); ?>">
                            <?php esc_html_e( 'Getting Started', 'visa-consulting-service' ); ?>
                        </a>
                        <a class="button notice-btn" target="_blank" href="<?php echo esc_url( VISA_CONSULTING_SERVICE_LIVE_DEMO ); ?>">
                            <?php esc_html_e('Pro Demo', 'visa-consulting-service'); ?>
                        </a>
                        <a class="button notice-btn" target="_blank" href="<?php echo esc_url( VISA_CONSULTING_SERVICE_FREE_DOC ); ?>">
                            <?php esc_html_e('Free Doc', 'visa-consulting-service'); ?>
                        </a>
                        <a class="button notice-btn" target="_blank" href="<?php echo esc_url( VISA_CONSULTING_SERVICE_BUY_PRO ); ?>">
                            <?php esc_html_e('Upgrade To Pro', 'visa-consulting-service'); ?>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    <?php }
}
add_action( 'admin_notices', 'visa_consulting_service_activation_notice' );

// Admin notice code START
function visa_consulting_service_dismissed_notice() {
	update_option( 'visa_consulting_service_admin_notice', true );
}
add_action( 'wp_ajax_visa_consulting_service_dismissed_notice', 'visa_consulting_service_dismissed_notice' );

//After Switch theme function
add_action('after_switch_theme', 'visa_consulting_service_getstart_setup_options');
function visa_consulting_service_getstart_setup_options () {
    update_option('visa_consulting_service_admin_notice', false );
}
// Admin notice code END

/**VW Coaching Institute
 * Theme Info Page
 */
function visa_consulting_service_guide() {
	// Theme info
	$visa_consulting_service_return = add_query_arg( array()) ;
	$visa_consulting_service_theme = wp_get_theme( 'visa-consulting-service' ); ?>

	<div class="wrap getting-started">
		<div class="getting-started__header">
		    <div>
                <h2 class="tgmpa-notice-warning"></h2>
            </div>
		</div>
		<div class="tab-sec">
			<div class="tab">
				<button role="tab" class="tablinks home" onclick="visa_consulting_service_openCity(event, 'bwp_getstart')"><?php esc_html_e( 'Getting Started', 'visa-consulting-service' ); ?></button>
				<button role="tab" class="tablinks" onclick="visa_consulting_service_openCity(event, 'bwp_setup')"><?php esc_html_e( 'Free Theme Information', 'visa-consulting-service' ); ?></button>
				<button role="tab" class="tablinks" onclick="visa_consulting_service_openCity(event, 'bwp_premium_info')"><?php esc_html_e( 'Premium Theme Information', 'visa-consulting-service' ); ?></button>
				<a class="tablinks tablinks-demo" role="tab" href="<?php echo esc_url( VISA_CONSULTING_SERVICE_LIVE_DEMO ); ?>" target="_blank">
					<?php esc_html_e( 'Live Demo', 'visa-consulting-service' ); ?>
				</a>
				<a class="tablinks tablinks-pro" role="tab" href="<?php echo esc_url( VISA_CONSULTING_SERVICE_BUY_PRO ); ?>" target="_blank">
					<?php esc_html_e( 'Buy Pro', 'visa-consulting-service' ); ?>
				</a>
			</div>
			<div  id="bwp_getstart" class="tabcontent">
				<div class="row">
					<div class="col-md-5 intro">
						<div class="pad-box">
							<h2><?php esc_html_e( 'Welcome to Visa Consulting Service ', 'visa-consulting-service' ); ?>
							<span><?php esc_html_e( 'Version: ', 'visa-consulting-service' ); ?><?php echo esc_html($visa_consulting_service_theme['Version']);?></span>
							</h2>
							<span class="intro__version"><?php esc_html_e( 'Congratulations! You are about to use the most easy to use and flexible WordPress theme.', 'visa-consulting-service' ); ?>
							</span>
							<div class="powered-by">
								<p><strong><?php esc_html_e( 'Theme created by Buy WP Templates', 'visa-consulting-service' ); ?></strong></p>
								<p>
									<img class="logo" src="<?php echo esc_url(get_template_directory_uri() . '/inc/dashboard/media/theme-logo.png'); ?>"/>
								</p>
									<div class="demo-content">
									<?php
										/* Demo Import */
										require get_parent_theme_file_path( '/inc/dashboard/demo-content.php' );
									?>
								</div>
								<div id="demo-import-loader">
									<img src="<?php echo esc_url(get_template_directory_uri() . '/inc/dashboard/media/spinner.gif'); ?>" alt="<?php echo esc_attr( 'Loading...', 'visa-consulting-service'); ?>" />
								</div>
							</div>
						</div>
					</div>
					<div class="col-md-7">
						<div class="install-plugins">
							<img src="<?php echo esc_url(get_template_directory_uri() . '/inc/dashboard/media/responsive1.png'); ?>" alt="<?php echo esc_attr( 'visa-consulting-service-preview', 'visa-consulting-service'); ?>" />
						</div>
					</div>
				</div>
				<div class="dashboard__blocks">
					<div class="row">
						<div class="col-md-3">
							<h3><?php esc_html_e( 'Get Support','visa-consulting-service'); ?></h3>
							<ol>
								<li><a target="_blank" href="<?php echo esc_url( VISA_CONSULTING_SERVICE_FREE_SUPPORT ); ?>"><?php esc_html_e( 'Free Theme Support','visa-consulting-service'); ?></a></li>
								<li><a target="_blank" href="<?php echo esc_url( VISA_CONSULTING_SERVICE_PRO_SUPPORT ); ?>"><?php esc_html_e( 'Premium Theme Support','visa-consulting-service'); ?></a></li>
							</ol>
						</div>
						<div class="col-md-3">
							<h3><?php esc_html_e( 'Getting Started','visa-consulting-service'); ?></h3>
							<ol>
								<li><?php esc_html_e( 'Start','visa-consulting-service'); ?> <a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e( 'Customizing','visa-consulting-service'); ?></a> <?php esc_html_e( 'your website.','visa-consulting-service'); ?> </li>
							</ol>
						</div>
						<div class="col-md-3">
							<h3><?php esc_html_e( 'Help Docs','visa-consulting-service'); ?></h3>
							<ol>
								<li><a target="_blank" href="<?php echo esc_url( VISA_CONSULTING_SERVICE_FREE_DOC ); ?>"><?php esc_html_e( 'Free Theme Documentation','visa-consulting-service'); ?></a></li>
								<li><a target="_blank" href="<?php echo esc_url( VISA_CONSULTING_SERVICE_PRO_DOC ); ?>"><?php esc_html_e( 'Premium Theme Documentation','visa-consulting-service'); ?></a></li>
							</ol>
						</div>
						<div class="col-md-3">
							<h3><?php esc_html_e( 'Buy Premium','visa-consulting-service'); ?></h3>
							<ol>
								<a href="<?php echo esc_url( VISA_CONSULTING_SERVICE_BUY_PRO ); ?>" target="_blank"><?php esc_html_e('Buy Pro', 'visa-consulting-service'); ?></a>
							</ol>
						</div>
					</div>
				</div>
			</div>
			<div  id="bwp_setup" class="tabcontent">
				<h2 class="tg-docs-section intruction-title" id="section-4"><?php esc_html_e( '1) Setup Visa Consulting Service Theme', 'visa-consulting-service' ); ?></h2>
				<div class="row">
					<div class="theme-instruction-block col-md-7">
						<div class="pad-box">
							<p><?php esc_html_e( 'Visa Consulting Service is designed for agencies and professionals who provide immigration, travel documentation, and legal consulting services. This theme includes clean page layouts, service sections, consultation forms, appointment booking integration, testimonials, and contact pages to help present visa services in a clear and organized way. It also supports responsive design, SEO-friendly structure, fast loading performance, and easy customization options. This theme can be used by visa consultants, immigration consultants, travel agencies, overseas education consultants, legal advisors, and documentation service providers who want to create a professional online presence and share information about visa processes, documentation requirements, and consultation services. Built with modern design standards, it supports service pages, blog sections, contact forms, and business information pages, making it suitable for service-based websites focused on immigration services, travel consulting, and business consulting services.', 'visa-consulting-service' ); ?><p><br>
							<ol>
								<li><?php esc_html_e( 'Start','visa-consulting-service'); ?> <a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e( 'Customizing','visa-consulting-service'); ?></a> <?php esc_html_e( 'your website.','visa-consulting-service'); ?> </l>
								<li><?php esc_html_e( 'Visa Consulting Service','visa-consulting-service'); ?> <a target="_blank" href="<?php echo esc_url( VISA_CONSULTING_SERVICE_FREE_DOC ); ?>"><?php esc_html_e( 'Documentation','visa-consulting-service'); ?></a> </li>
							</ol>
						</div>
					</div>
					<div class="col-md-5">
						<div class="pad-box">
								<img class="logo" src="<?php echo esc_url( get_stylesheet_directory_uri() . '/screenshot.png' ); ?>"/>
						</div>
					</div>	
				</div>
			</div>
			<div class="col-md-12 text-block tabcontent"  id="bwp_premium_info">
				<h2 class="dashboard-install-title"><?php esc_html_e( '2) Premium Theme Information.','visa-consulting-service'); ?></h2>
				<div class="row">
					<div class="col-md-7">
						<img src="<?php echo esc_url(get_template_directory_uri() . '/inc/dashboard/media/responsive.png'); ?>" alt="<?php echo esc_attr( 'visa-consulting-service-preview', 'visa-consulting-service'); ?>">
						<div class="pad-box">
							<h3><?php esc_html_e( 'Pro Theme Description','visa-consulting-service'); ?></h3>
							<p class="pad-box-p"><?php esc_html_e( 'The Immigration WordPress Theme is designed for websites related to immigration services, visa consulting, travel documentation, and legal advisory services. It includes structured page layouts such as service pages, about section, contact forms, blog pages, and appointment or consultation sections, which help businesses present their information in a clear and organized way. The theme supports responsive design, SEO-friendly structure, fast loading speed, and basic customization options, making it suitable for creating professional business websites. This Immigration WordPress Theme can be used by immigration consultants, visa agents, travel agencies, overseas education consultants, legal consultants, and documentation service providers who want to share visa information, immigration processes, documentation requirements, and consultation services online. It also supports blog content for publishing immigration news, visa updates, travel guidelines, and informational articles, which helps improve website visibility in search engines and keeps visitors informed with updated information related to immigration and visa services. This Immigration WordPress Theme includes essential website features such as homepage sections, service listings, testimonials, team profiles, blog layouts, and contact pages, which are commonly required for consulting and service-based websites. The layout is designed to organize business information clearly so visitors can easily find details about visa services, immigration consulting, legal documentation, and travel assistance services. This theme is suitable for small agencies, consulting firms, legal service providers, and travel consultants who need a simple and structured website to present their services online. It also supports SEO optimization, mobile-friendly design, easy navigation, and customizable sections, allowing users to update content, add services, publish blog posts, and manage contact information easily. The theme structure focuses on content readability, service presentation, and user-friendly navigation, making it suitable for business websites that provide immigration information, visa consulting services, and travel documentation assistance online.', 'visa-consulting-service' ); ?><p>
						</div>
					</div>
					<div class="col-md-5 install-plugin-right">
						<div class="pad-box">
							<h3><?php esc_html_e( 'Pro Theme Features','visa-consulting-service'); ?></h3>
							<div class="dashboard-install-benefit">
								<ul>
									<li><?php esc_html_e( 'Theme options using Customizer API','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Responsive design','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Site Icon and Logo option','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Header Images option','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Favicon, Logo, title, and tagline customization','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Advanced Color options and color pallets','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( '100+ Font Family Options','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Pagination option','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Demo Importer','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Enable-Disable options on All sections','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Main Slider','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Woocommerce Compatible','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Unlimited Slides','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Section to show categories','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Product Listing based on category','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Top Categories Section','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Best Seller Tab','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Testimonial with custom post type','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Promotional Banners','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Partner Listing','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Shortcodes for Testimonials','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Newsletter with the help of contact form 7.','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Well-sanitized as per WordPress standards.','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Responsive layout for all devices','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Typography for the complete website','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Global Color pallete','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Section specific Color pallete','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Fully integrated with Font Awesome Icon','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Instagram Section','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Partner Listing','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Background Image Option','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Custom page templates','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Allow setting site title, tagline, logo','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Left and Right Sidebar','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Sticky post & Comment threads','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Customizable Home Page','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Multiple inner page templates','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Contact Page Template','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Blog Full width and right and left sidebar','visa-consulting-service'); ?></li>
									<li><?php esc_html_e( 'Recent post widget with images, Related post','visa-consulting-service'); ?></li>
								</ul>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
<?php }?>
