<?php
/**
 * Add theme page
 */

function classified_listings_gettingstarted() {
    add_menu_page(
        esc_html__( 'Classified Listings', 'classified-listings' ), // Page title
        esc_html__( 'Classified Listings', 'classified-listings' ), // Menu title
        'manage_options',                                             // Capability
        'classified-listings-info',                                  // Menu slug (same)
        'classified_listings_theme_page_display',                    // Callback
         get_template_directory_uri() . '/images/menu-icon.svg', // Image icon
        59                                           // Position
    );
}
add_action( 'admin_menu', 'classified_listings_gettingstarted' );

function classified_listings_admin_theme_style() {
	wp_enqueue_style('classified-listings-custom-admin-style', esc_url(get_template_directory_uri()) . '/css/admin-style.css');
	wp_enqueue_script('classified-listings-tabs', esc_url(get_template_directory_uri()) . '/js/tab.js');

	// Admin notice code START
	wp_register_script('classified-listings-notice', esc_url(get_template_directory_uri()) . '/inc/core/js/notice.js', array('jquery'), time(), true);
	wp_enqueue_script('classified-listings-notice');
	// Admin notice code END
	
}
add_action('admin_enqueue_scripts', 'classified_listings_admin_theme_style');

/**
 * Display About page
 */
function classified_listings_theme_page_display() {
	$classified_listings_theme = wp_get_theme();

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

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

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

		<div id="lite_theme" class="tabcontent open">
			<div class="lite-theme-tab">
				<h3><?php esc_html_e( 'Classified Listings', 'classified-listings' ); ?></h3>
				<hr class="h3hr">
			  	<p><?php esc_html_e('Classified Listings is a dynamic and feature-packed WordPress theme that allows you to build a robust online classified ads platform. It serves a wide range of niche markets, including real estate, job postings, business directories, local listings, service providers, and a variety of products and services. With an intuitive and highly customizable interface, users can effortlessly post and search for classified ads. One of the standout features of the Classified Listings theme is its user-friendly front-end submission system. This makes it easy for registered users to submit their listings without any hassle. It\'s perfect for many different ventures, from travel and accommodation listings to antiques and vintage collectibles, education and tutoring services, as well as real estate listings for agents, brokers, hotels, and rental properties. This versatility positions Classified Listings as an excellent choice for creating a community-driven marketplace. The theme also boasts advanced search and filtering options, allowing visitors to find specific listings by category, location, price range, and more, making the browsing experience smooth and efficient. Designed to engage users visually, Classified Listings includes customizable templates for listing pages, ensuring each entry stands out while maintaining a consistent look. This focus on aesthetics enhances user engagement and improves overall site experience. Moreover, the theme offers various monetization options, enabling website owners to generate income by providing premium features for listing promotions, highlighting specific ads, or establishing membership plans. It is also compatible with popular plugins like Ibtana, Directorist, Contact Form 7, Classic Widgets, and GT Translate, streamlining the implementation of these features. Classified Listings is built with responsiveness in mind, ensuring that your platform operates flawlessly across a range of devices, including desktops, tablets, and smartphones. This adaptability is crucial for maximizing accessibility and user engagement, which are key factors in the success of any online marketplace.','classified-listings'); ?></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', 'classified-listings'); ?></a>
						<a href="<?php echo esc_url( home_url() ); ?>" target="_blank"><?php esc_html_e('Visit Your Site', 'classified-listings'); ?></a>
					</div>
					<div class="support-forum-col-section">
						<div class="support-forum-col">
							<h4><?php esc_html_e('Having Trouble, Need Support?', 'classified-listings'); ?></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.', 'classified-listings'); ?></p>
							<div class="info-link">
								<a href="<?php echo esc_url( CLASSIFIED_LISTINGS_SUPPORT ); ?>" target="_blank"><?php esc_html_e('Support Forum', 'classified-listings'); ?></a>
							</div>
						</div>
						<div class="support-forum-col">
							<h4><?php esc_html_e('Reviews & Testimonials', 'classified-listings'); ?></h4>
							<p> <?php esc_html_e('All the features and aspects of this WordPress Theme are phenomenal. I\'d recommend this theme to all.', 'classified-listings'); ?>  </p>
							<div class="info-link">
								<a href="<?php echo esc_url( CLASSIFIED_LISTINGS_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'classified-listings'); ?></a>
							</div>
						</div>
						<div class="support-forum-col">
							<h4><?php esc_html_e('Theme Documentation', 'classified-listings'); ?></h4>
							<p> <?php esc_html_e('If you need any assistance regarding setting up and configuring the Theme, our documentation is there.', 'classified-listings'); ?>  </p>
							<div class="info-link">
								<a href="<?php echo esc_url( CLASSIFIED_LISTINGS_FREE_DOC ); ?>" target="_blank"><?php esc_html_e('Free Theme Documentation', 'classified-listings'); ?></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', 'classified-listings' ); ?></h3>
					<hr class="h3hr">
			    	<p><?php esc_html_e('The Classified WordPress Theme stands as a comprehensive and sophisticated solution designed to establish an exceptional online classified ads platform. It boasts a premium design that exudes professionalism, captivating users with its sleek aesthetics and seamless functionality. This theme caters to businesses, entrepreneurs, and individuals seeking a top-tier platform to list a diverse array of products, services, jobs, and more. Crafted for those who demand excellence, the Classified Theme offers an array of benefits that set it apart from free alternatives. Its premium status guarantees not only an elegant appearance but also unparalleled customization options, allowing users to tailor the website’s visual identity and features according to their specific requirements. This theme is equipped with an impressive range of features and functionalities. Integrated payment gateways streamline transactions, while advanced search and filtering tools empower users to easily discover relevant listings. SEO optimization tools help maximize visibility in search engines, driving higher organic traffic.','classified-listings'); ?></p>
			    	<div class="pro-links">
				    	<a href="<?php echo esc_url( CLASSIFIED_LISTINGS_LIVE_DEMO ); ?>" target="_blank" class="demo-btn"><?php esc_html_e('Live Demo', 'classified-listings'); ?></a>
						<a href="<?php echo esc_url( CLASSIFIED_LISTINGS_BUY_NOW ); ?>" target="_blank" class="prem-btn"><?php esc_html_e('Buy Premium', 'classified-listings'); ?></a>
						<a href="<?php echo esc_url( CLASSIFIED_LISTINGS_PRO_DOC ); ?>" target="_blank" class="doc-btn"><?php esc_html_e('Documentation', 'classified-listings'); ?></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', 'classified-listings' ); ?></h3>
				<hr class="h3hr">
				<div class="table-image">
					<table class="tablebox">
						<thead>
							<tr>
								<th><?php esc_html_e('Features', 'classified-listings'); ?></th>
								<th><?php esc_html_e('Free Themes', 'classified-listings'); ?></th>
								<th><?php esc_html_e('Premium Themes', 'classified-listings'); ?></th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td><?php esc_html_e('Easy Setup', 'classified-listings'); ?></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', 'classified-listings'); ?></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', 'classified-listings'); ?></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', 'classified-listings'); ?></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', 'classified-listings'); ?></td>
								<td class="table-img"><?php esc_html_e('1', 'classified-listings'); ?></td>
								<td class="table-img"><?php esc_html_e('14', 'classified-listings'); ?></td>
							</tr>
							<tr class="odd">
								<td><?php esc_html_e('Home Page Template', 'classified-listings'); ?></td>
								<td class="table-img"><?php esc_html_e('1', 'classified-listings'); ?></td>
								<td class="table-img"><?php esc_html_e('1', 'classified-listings'); ?></td>
							</tr>
							<tr>
								<td><?php esc_html_e('Theme sections', 'classified-listings'); ?></td>
								<td class="table-img"><?php esc_html_e('2', 'classified-listings'); ?></td>
								<td class="table-img"><?php esc_html_e('12', 'classified-listings'); ?></td>
							</tr>
							<tr class="odd">
								<td><?php esc_html_e('Contact us Page Template', 'classified-listings'); ?></td>
								<td class="table-img">0</td>
								<td class="table-img"><?php esc_html_e('1', 'classified-listings'); ?></td>
							</tr>
							<tr>
								<td><?php esc_html_e('Blog Templates & Layout', 'classified-listings'); ?></td>
								<td class="table-img">0</td>
								<td class="table-img"><?php esc_html_e('3(Full width/Left/Right Sidebar)', 'classified-listings'); ?></td>
							</tr>
							<tr class="odd">
								<td><?php esc_html_e('Section Reordering', 'classified-listings'); ?></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', 'classified-listings'); ?></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', 'classified-listings'); ?></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', 'classified-listings'); ?></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', 'classified-listings'); ?></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', 'classified-listings'); ?></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', 'classified-listings'); ?></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', 'classified-listings'); ?></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', 'classified-listings'); ?></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', 'classified-listings'); ?></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', 'classified-listings'); ?></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 ', 'classified-listings'); ?></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', 'classified-listings'); ?></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', 'classified-listings'); ?></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', 'classified-listings'); ?></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', 'classified-listings'); ?></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', 'classified-listings'); ?></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', 'classified-listings'); ?></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', 'classified-listings'); ?></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', 'classified-listings'); ?></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', 'classified-listings'); ?></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', 'classified-listings'); ?></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)', 'classified-listings'); ?></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', 'classified-listings'); ?></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', 'classified-listings'); ?></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', 'classified-listings'); ?></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( CLASSIFIED_LISTINGS_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Upgrade to Pro', 'classified-listings'); ?></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', 'classified-listings' ); ?></h3>
			   		<hr class="h3hr">
			    	<p><?php esc_html_e('Enhance your website effortlessly with our WP Theme Bundle. Get access to 485+ 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.','classified-listings'); ?></p>
			    	<div class="feature">
			    		<h4><?php esc_html_e( 'Features:', 'classified-listings' ); ?></h4>
			    		<p><img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/tick.png" alt="" /><?php esc_html_e('485+ Premium Themes & 5+ Plugins.', 'classified-listings'); ?></p>
			    		<p><img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/tick.png" alt="" /><?php esc_html_e('Seamless Integration.', 'classified-listings'); ?></p>
			    		<p><img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/tick.png" alt="" /><?php esc_html_e('Customization Flexibility.', 'classified-listings'); ?></p>
			    		<p><img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/tick.png" alt="" /><?php esc_html_e('Regular Updates.', 'classified-listings'); ?></p>
			    		<p><img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/tick.png" alt="" /><?php esc_html_e('Dedicated Support.', 'classified-listings'); ?></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!', 'classified-listings'); ?></p>
			    	<div class="pro-links">
						<a href="<?php echo esc_url( CLASSIFIED_LISTINGS_THEME_BUNDLE_BUY_NOW ); ?>" target="_blank" class="bundle-buy"><?php esc_html_e('Get Bundle', 'classified-listings'); ?></a>
						<a href="<?php echo esc_url( CLASSIFIED_LISTINGS_THEME_BUNDLE_DOC ); ?>" target="_blank" class="bundle-doc"><?php esc_html_e('Documentation', 'classified-listings'); ?></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 Classified Listings','classified-listings'); ?> </h2>
				<div class="on-pro">
					<span class="version"><?php esc_html_e( 'Version', 'classified-listings' ); ?>: <?php echo esc_html($classified_listings_theme['Version']);?></span>
					<span class="coupon-code"><?php esc_html_e('Get 20% Of On Pro Theme-Use Code: ','classified-listings'); ?><span class="code-highlight"><?php esc_html_e('VWPRO20','classified-listings'); ?></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.','classified-listings'); ?></p>
		    	<div class="btn-section">
			    	<div class="proo-links">
				    	<a href="<?php echo esc_url( CLASSIFIED_LISTINGS_LIVE_DEMO ); ?>" target="_blank" class="demo-btn"><?php esc_html_e('Live Demo', 'classified-listings'); ?></a>
						<a href="<?php echo esc_url( CLASSIFIED_LISTINGS_BUY_NOW ); ?>" target="_blank" class="prem-btn"><?php esc_html_e('Buy Premium', 'classified-listings'); ?></a>
						<a href="<?php echo esc_url( CLASSIFIED_LISTINGS_PRO_DOC ); ?>" target="_blank" class="doc-btn"><?php esc_html_e('Documentation', 'classified-listings'); ?></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','classified-listings'); ?></h2>
					<h4><?php esc_html_e('Get Access to 485+ Premium WordPress Themes At Just $99','classified-listings'); ?></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', 'classified-listings'); ?></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','classified-listings'); ?></h2>
					<h4><?php esc_html_e('20% Off','classified-listings'); ?></h4>
		  		</div>						
			</div>
	    </div>
	</div>
</div>
<?php }?>