<?php
//about theme info
add_action( 'admin_menu', 'bb_wedding_bliss_gettingstarted' );
function bb_wedding_bliss_gettingstarted() {    	
	add_theme_page( esc_html__('Theme Demo Content', 'bb-wedding-bliss'), esc_html__('Theme Demo Content', 'bb-wedding-bliss'), 'edit_theme_options', 'bb_wedding_bliss_guide', 'bb_wedding_bliss_mostrar_guide');   
}

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

//guidline for about theme
function bb_wedding_bliss_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'bb-wedding-bliss' );
?>

<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-wedding-bliss'); ?></a>
			<a href="<?php echo esc_url( BB_WEDDING_BLISS_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'bb-wedding-bliss' ); ?></a>
			<a href="<?php echo esc_url( 'https://www.themescaliber.com/products/wedding-website-wordpress-theme'); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'bb-wedding-bliss' ); ?></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-wedding-bliss' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="bb_wedding_bliss_openCity(event, 'tc_demo')">
					<a href="#">
						<?php esc_html_e( 'Theme Demo Import', 'bb-wedding-bliss' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="bb_wedding_bliss_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'bb-wedding-bliss' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="bb_wedding_bliss_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'bb-wedding-bliss' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="bb_wedding_bliss_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'bb-wedding-bliss' ); ?>
					</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 Wedding Bliss', 'bb-wedding-bliss' ); ?> <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 Wedding Bliss', 'bb-wedding-bliss' ); ?></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 Wedding Bliss Theme', 'bb-wedding-bliss' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( BB_WEDDING_BLISS_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'bb-wedding-bliss' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'bb-wedding-bliss'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( BB_WEDDING_BLISS_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'bb-wedding-bliss'); ?></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 Wedding Bliss is an elegant and feature-rich wedding website theme designed to create stunning sites for weddings, engagements, receptions, anniversaries, and related celebration events. Ideal for couples, wedding planners, bridal studios, photographers, event organizers, invitation designers, and wedding service providers, this theme helps showcase love stories, event details, galleries, schedules, and services beautifully. Built on the lightweight Bootstrap framework, it offers a fully responsive, mobile-friendly, and retina-ready layout that looks flawless across all devices and screen sizes. The theme features an eye-catching banner with a Call-to-Action button, customizable color schemes, refined typography, and flexible layout options to create a personalized and romantic wedding experience. It includes dedicated sections for testimonials, photo galleries, blogs, social media integration, and event highlights to build trust and engagement. Optimized for fast loading speed and SEO-friendly structure, BB Wedding Bliss ensures better visibility in search results and smooth performance. With easy customization through an intuitive admin panel, built-in shortcodes, and compatibility with Contact Form 7 for inquiries and RSVPs, this free wedding theme provides a professional, stylish, and memorable platform for showcasing wedding services or personal celebrations.', 'bb-wedding-bliss' ); ?></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 Wedding Bliss Theme Information', 'bb-wedding-bliss' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( BB_WEDDING_BLISS_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'bb-wedding-bliss' ); ?></a>
					<a href="<?php echo esc_url( BB_WEDDING_BLISS_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'bb-wedding-bliss' ); ?></a>
					<a href="<?php echo esc_url( BB_WEDDING_BLISS_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'bb-wedding-bliss' ); ?></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 Wedding Bliss Pro Theme', 'bb-wedding-bliss' ); ?></h4>
				<P><?php esc_html_e( 'BB wedding bliss brings you a Premium Wedding WordPress Theme. This Top Wedding WordPress theme will allow you to create an insane online Wedding invitation. You can use our premium Wedding Website templates and create an interactive yet stunning wedding invitation that will do a lot more than just being an invite. This responsive wedding planner WordPress theme is dedicated to turning your website into a temple of information about your wedding. Once you purchase our theme, you would not only be able to record, alter, save and send invites to everyone swiftly but you can also distribute wedding photos, information and so much more. The visitors will be able to see all the Information on the website. The theme contains a negative countdown, notifying everyone about the number of days and hours left for the wedding. It also contains RSVP, blog, Friends, and family section, Thanks note, photo gallery and a lot more. The bride and the groom can share their love story with the world, using our themes dedicated section. Our theme will save you from the aftermath tide of demand for wedding pictures by using our theme. Just send your friends and family the link and let them browse and download whatever pleases to their heart. ', 'bb-wedding-bliss' ); ?></P>	
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'bb-wedding-bliss' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title, and tagline customization', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Separate Newsletter Section', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slide', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Post type', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'bb-wedding-bliss' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'bb-wedding-bliss' ); ?></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-wedding-bliss' ); ?></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-wedding-bliss' ); ?></P>
						<a href="<?php echo esc_url( BB_WEDDING_BLISS_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'bb-wedding-bliss' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'bb-wedding-bliss'); ?></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-wedding-bliss' ); ?></P>
						<a href="<?php echo esc_url( BB_WEDDING_BLISS_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'bb-wedding-bliss'); ?></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-wedding-bliss'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>