<?php
/* Add to Dashboard main menu */
function interior_store_dashboard_menu() {
    add_menu_page(
        esc_html__( 'Interior Store', 'interior-store' ), // Page title
        esc_html__( 'Interior Store', 'interior-store' ), // Menu title
        'manage_options',                                             // Capability
        'interior-store-info',                                  // Menu slug (same)
        'interior_store_theme_page_display',                    // Callback
         get_template_directory_uri() . '/images/menu-icon.svg', // Image icon
        59                                           // Position
    );
}
add_action( 'admin_menu', 'interior_store_dashboard_menu' );

function interior_store_admin_theme_style() {
	wp_enqueue_style('interior-store-custom-admin-style', esc_url(get_template_directory_uri()) . '/css/admin-style.css');
	wp_enqueue_script('interior-store-tabs', esc_url(get_template_directory_uri()) . '/js/tab.js');
	wp_enqueue_script( 'admin-notice-script', get_template_directory_uri() . 'inc/core/js/admin-notice-script.js', array( 'jquery' ) );
}
add_action('admin_enqueue_scripts', 'interior_store_admin_theme_style');

/**
 * Display About page
 */
function interior_store_theme_page_display() {
	$interior_store_theme = wp_get_theme();

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

	<div class="wrapper-info">
		<div class="tab-sec">
			
			<div class="tab">
				<button class="tablinks" onclick="interior_store_open_tab(event, 'lite_theme')"><?php esc_html_e( 'Free Setup', 'interior-store' ); ?></button>
				<button class="tablinks" onclick="interior_store_open_tab(event, 'theme_pro')"><?php esc_html_e( 'Get Premium', 'interior-store' ); ?></button>
				<button class="tablinks" onclick="interior_store_open_tab(event, 'free_pro')"><?php esc_html_e( 'Free VS Premium', 'interior-store' ); ?></button>
				<button class="tablinks" onclick="interior_store_open_tab(event, 'get_bundle')"><?php esc_html_e( 'WP Theme Bundle', 'interior-store' ); ?></button>
			</div>

			<?php 
				$interior_store_plugin_custom_css = '';
				if(class_exists('Ibtana_Visual_Editor_Menu_Class')){
					$interior_store_plugin_custom_css ='display: block';
				}
			?>

			<div id="lite_theme" class="tabcontent open">
				<div class="lite-theme-tab">
					<h3><?php esc_html_e( 'Interior Store', 'interior-store' ); ?></h3>
					<hr class="h3hr">
					<p><?php esc_html_e('The Interior Store theme is a beautifully crafted, fully responsive design created specifically for interior design stores, furniture shops, home decor boutiques, luxury furniture outlets, lifestyle stores, modern furniture showrooms, home styling studios, and online decor stores. Whether you’re running a designer furniture shop, a home decor marketplace, or a trendy interior styling boutique, this theme offers the perfect platform to showcase products with elegance and style. With its clean layout and modern design elements, it supports a wide variety of interior decor items including designer furniture, luxury sofas, lighting fixtures, home accessories, decorative vases, wall art, rugs, curtains, kitchen decor, and soft furnishings. This theme is ideal for creating a visually rich shopping experience that attracts customers looking for elegant home style, luxury home decor, and stylish room design ideas. From bedroom essentials to living room furniture, office furnishings, and dining collections, you can display your catalog using intuitive product grids and beautiful image galleries. Built with SEO-optimized code and fast loading speed, the theme helps improve visibility and overall performance. Eye-catching banners, interactive sliders, and customizable homepage sections allow flexible content presentation. Integrated with WooCommerce, it delivers smooth e-commerce functionality to manage product listings, shopping carts, payments, and promotions. The theme also supports decor blog sections, testimonials, CTA buttons, product filter options, wishlist functionality, and image zoom features with plugins like YITH WooCommerce Wishlist and WooCommerce Product Filter, making it a complete solution to convert visitors into loyal customers.','interior-store'); ?></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', 'interior-store'); ?></a>
							<a href="<?php echo esc_url( home_url() ); ?>" target="_blank"><?php esc_html_e('Visit Your Site', 'interior-store'); ?></a>
						</div>
						<div class="support-forum-col-section">
							<div class="support-forum-col">
								<h4><?php esc_html_e('Having Trouble, Need Support?', 'interior-store'); ?></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.', 'interior-store'); ?></p>
								<div class="info-link">
									<a href="<?php echo esc_url( INTERIOR_STORE_SUPPORT ); ?>" target="_blank"><?php esc_html_e('Support Forum', 'interior-store'); ?></a>
								</div>
							</div>
							<div class="support-forum-col">
								<h4><?php esc_html_e('Reviews & Testimonials', 'interior-store'); ?></h4>
								<p> <?php esc_html_e('All the features and aspects of this WordPress Theme are phenomenal. I\'d recommend this theme to all.', 'interior-store'); ?>  </p>
								<div class="info-link">
									<a href="<?php echo esc_url( INTERIOR_STORE_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'interior-store'); ?></a>
								</div>
							</div>
							<div class="support-forum-col">
								<h4><?php esc_html_e('Theme Documentation', 'interior-store'); ?></h4>
								<p> <?php esc_html_e('If you need any assistance regarding setting up and configuring the Theme, our documentation is there.', 'interior-store'); ?>  </p>
								<div class="info-link">
									<a href="<?php echo esc_url( INTERIOR_STORE_FREE_DOC ); ?>" target="_blank"><?php esc_html_e('Free Theme Documentation', 'interior-store'); ?></a>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>

			<div id="theme_pro" class="tabcontent">		  	
				<div class="pro-info">
					<div class="col-left-pro">
						<h3><?php esc_html_e( 'Premium Theme Information', 'interior-store' ); ?></h3>
						<hr class="h3hr">
						<p><?php esc_html_e('The Interior WordPress Theme is a professionally designed, multipurpose layout tailored for interior design stores, home decor shops, and furniture retailers looking to build a powerful online presence. Crafted with elegance and usability in mind, this theme features a clean layout, modern visuals, and versatile functionality. It’s perfect for showcasing everything from luxury home decor and modern furniture to small space decor and handcrafted interior items. Whether you run a boho-inspired interior store, a rustic decor boutique, or a minimalist furniture shop, this theme adapts seamlessly to your brand. With responsive design and retina-ready graphics, your site will look flawless on all devices. Easy-to-use customization options, a beautiful portfolio section, and WooCommerce compatibility make it ideal for both startups and established decor brands. Whether it’s rugs and carpets, accent furniture, or decorative lighting, this theme helps you present your products in the most compelling way. It’s also optimized for SEO and speed, ensuring performance and visibility.','interior-store'); ?></p>
						<div class="pro-links">
							<a href="<?php echo esc_url( INTERIOR_STORE_LIVE_DEMO ); ?>" target="_blank" class="demo-btn"><?php esc_html_e('Live Demo', 'interior-store'); ?></a>
							<a href="<?php echo esc_url( INTERIOR_STORE_BUY_NOW ); ?>" target="_blank" class="prem-btn"><?php esc_html_e('Buy Premium', 'interior-store'); ?></a>
							<a href="<?php echo esc_url( INTERIOR_STORE_PRO_DOC ); ?>" target="_blank" class="doc-btn"><?php esc_html_e('Documentation', 'interior-store'); ?></a>
						</div>
					</div>
					<div class="col-right-pro scroll-image-wrapper">
						<img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/premium-img.jpg" alt="" class="pro-img" />		    	
					</div>
				</div>		    
			</div>

			<div id="free_pro" class="tabcontent">
				<div class="featurebox">
					<h3><?php esc_html_e( 'Theme Features', 'interior-store' ); ?></h3>
					<hr class="h3hr">
					<div class="table-image">
						<table class="tablebox">
							<thead>
								<tr>
									<th><?php esc_html_e('Features', 'interior-store'); ?></th>
									<th><?php esc_html_e('Free Themes', 'interior-store'); ?></th>
									<th><?php esc_html_e('Premium Themes', 'interior-store'); ?></th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td><?php esc_html_e('Easy Setup', 'interior-store'); ?></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', 'interior-store'); ?></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', 'interior-store'); ?></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', 'interior-store'); ?></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', 'interior-store'); ?></td>
									<td class="table-img"><?php esc_html_e('1', 'interior-store'); ?></td>
									<td class="table-img"><?php esc_html_e('14', 'interior-store'); ?></td>
								</tr>
								<tr class="odd">
									<td><?php esc_html_e('Home Page Template', 'interior-store'); ?></td>
									<td class="table-img"><?php esc_html_e('1', 'interior-store'); ?></td>
									<td class="table-img"><?php esc_html_e('1', 'interior-store'); ?></td>
								</tr>
								<tr>
									<td><?php esc_html_e('Theme sections', 'interior-store'); ?></td>
									<td class="table-img"><?php esc_html_e('2', 'interior-store'); ?></td>
									<td class="table-img"><?php esc_html_e('12', 'interior-store'); ?></td>
								</tr>
								<tr class="odd">
									<td><?php esc_html_e('Contact us Page Template', 'interior-store'); ?></td>
									<td class="table-img">0</td>
									<td class="table-img"><?php esc_html_e('1', 'interior-store'); ?></td>
								</tr>
								<tr>
									<td><?php esc_html_e('Blog Templates & Layout', 'interior-store'); ?></td>
									<td class="table-img">0</td>
									<td class="table-img"><?php esc_html_e('3(Full width/Left/Right Sidebar)', 'interior-store'); ?></td>
								</tr>
								<tr class="odd">
									<td><?php esc_html_e('Section Reordering', 'interior-store'); ?></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', 'interior-store'); ?></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', 'interior-store'); ?></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', 'interior-store'); ?></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', 'interior-store'); ?></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', 'interior-store'); ?></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', 'interior-store'); ?></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', 'interior-store'); ?></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', 'interior-store'); ?></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', 'interior-store'); ?></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', 'interior-store'); ?></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 ', 'interior-store'); ?></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', 'interior-store'); ?></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', 'interior-store'); ?></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', 'interior-store'); ?></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', 'interior-store'); ?></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', 'interior-store'); ?></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', 'interior-store'); ?></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', 'interior-store'); ?></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', 'interior-store'); ?></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', 'interior-store'); ?></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', 'interior-store'); ?></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)', 'interior-store'); ?></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', 'interior-store'); ?></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', 'interior-store'); ?></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', 'interior-store'); ?></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( INTERIOR_STORE_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Upgrade to Pro', 'interior-store'); ?></a></td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</div>

			<div id="get_bundle" class="tabcontent">	
				<div class="bundle-info">
					<div class="col-left-pro">
						<h3><?php esc_html_e( 'WP Theme Bundle', 'interior-store' ); ?></h3>
						<hr class="h3hr">
						<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.','interior-store'); ?></p>
						<div class="feature">
							<h4><?php esc_html_e( 'Features:', 'interior-store' ); ?></h4>
							<p><img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/tick.png" alt="" /><?php esc_html_e('400+ Premium Themes & 5+ Plugins.', 'interior-store'); ?></p>
							<p><img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/tick.png" alt="" /><?php esc_html_e('Seamless Integration.', 'interior-store'); ?></p>
							<p><img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/tick.png" alt="" /><?php esc_html_e('Customization Flexibility.', 'interior-store'); ?></p>
							<p><img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/tick.png" alt="" /><?php esc_html_e('Regular Updates.', 'interior-store'); ?></p>
							<p><img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/tick.png" alt="" /><?php esc_html_e('Dedicated Support.', 'interior-store'); ?></p>
						</div>
						<p><?php esc_html_e('Upgrade now and give your website the professional edge it deserves, all at an unbeatable price of $99!', 'interior-store'); ?></p>
						<div class="pro-links">
							<a href="<?php echo esc_url( INTERIOR_STORE_THEME_BUNDLE_BUY_NOW ); ?>" target="_blank" class="bundle-buy"><?php esc_html_e('Get Bundle', 'interior-store'); ?></a>
							<a href="<?php echo esc_url( INTERIOR_STORE_THEME_BUNDLE_DOC ); ?>" target="_blank" class="bundle-doc"><?php esc_html_e('Documentation', 'interior-store'); ?></a>
						</div>
					</div>
					<div class="col-right-pro scroll-image-wrapper">
						<img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/bundle.jpg" alt="" />
					</div>
				</div>	  	
			</div>
		</div>
		<div class="coupen-code-section">
			<div class="sshot-section">
				<div class="sshot-inner">
					<h2><?php esc_html_e('Welcome To Interior Store','interior-store'); ?> </h2>
					<div class="on-pro">
						<span class="version"><?php esc_html_e( 'Version', 'interior-store' ); ?>: <?php echo esc_html($interior_store_theme['Version']);?></span>
						<span class="coupon-code"><?php esc_html_e('Get 20% Of On Pro Theme-Use Code: ','interior-store'); ?><span class="code-highlight"><?php esc_html_e('VWPRO20','interior-store'); ?></span>
					</div>
					<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.','interior-store'); ?></p>
					<div class="btn-section">
						<div class="proo-links">
							<a href="<?php echo esc_url( INTERIOR_STORE_LIVE_DEMO ); ?>" target="_blank" class="demo-btn"><?php esc_html_e('Live Demo', 'interior-store'); ?></a>
							<a href="<?php echo esc_url( INTERIOR_STORE_BUY_NOW ); ?>" target="_blank" class="prem-btn"><?php esc_html_e('Buy Premium', 'interior-store'); ?></a>
							<a href="<?php echo esc_url( INTERIOR_STORE_PRO_DOC ); ?>" target="_blank" class="doc-btn"><?php esc_html_e('Documentation', 'interior-store'); ?></a>
							
						</div>
						
					</div>
				</div>
				<div class="bundle-banner">
					<div class="bundle-img">
						<img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/bundle-notice.png" alt="" />
					</div>
					<div class="bundle-text">
						<h2><?php esc_html_e('WP THEME BUNDLE','interior-store'); ?></h2>
						<h4><?php esc_html_e('Get Access to 400+ Premium WordPress Themes At Just $99','interior-store'); ?></h4>
						<div class="bundle-button">
							<a href="<?php echo esc_url( 'https://www.vwthemes.com/discount/FREEBREF?redirect=/products/wp-theme-bundle'); ?>" target="_blank"><?php esc_html_e('Get 10% OFF On Bundle', 'interior-store'); ?></a>
						</div>
					</div>
				</div>
			</div>
			<div class="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="logo-text">
						<h2><?php esc_html_e('GET PRO','interior-store'); ?></h2>
						<h4><?php esc_html_e('20% Off','interior-store'); ?></h4>
					</div>						
				</div>
			</div>
		</div>
    </div>
<?php }?>
