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

function influencer_agency_menu() {
	add_theme_page( esc_html__( 'Influencer Agency', 'influencer-agency' ), esc_html__( 'Influencer Agency Theme', 'influencer-agency' ), 'edit_theme_options', 'influencer-agency-info', 'influencer_agency_theme_page_display' );
}
add_action( 'admin_menu', 'influencer_agency_menu' );

function influencer_agency_admin_theme_style() {
	wp_enqueue_style('influencer-agency-custom-admin-style', esc_url(get_template_directory_uri()) . '/css/admin-style.css');
	wp_enqueue_script('influencer-agency-tabs', esc_url(get_template_directory_uri()) . '/js/tab.js');

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

/**
 * Display About page
 */
function influencer_agency_theme_page_display() {
	$influencer_agency_theme = wp_get_theme();

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

<div class="wrapper-info">  
	<div id="tc-header">
		<div class="tc-container">
			<a class="tc-logo">
				<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/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', 'influencer-agency'); ?></a>
			<a href="<?php echo esc_url( INFLUENCER_AGENCY_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'influencer-agency' ); ?></a>
			<a href="<?php echo esc_url( INFLUENCER_AGENCY_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'influencer-agency' ); ?></a>
			<a href="<?php echo esc_url( INFLUENCER_AGENCY_THEME_BUNDLE_BUY_NOW ); ?>" target="_blank" class="bundle-btn"> <?php esc_html_e( 'Bundle Of 220+ Themes at $99', 'influencer-agency' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container">
		<div class="tc-tabs">
			<ul>
				
				<li class="tablinks home active" onclick="influencer_agency_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'influencer-agency' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="influencer_agency_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'influencer-agency' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="influencer_agency_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'influencer-agency' ); ?>
					</a>
				</li>
			</ul>
		</div><!-- END .tc-tabs -->
	</div>

	

	<div class="tc-container">
		<div class="tc-section">
			<div  id="tc_index" class="tabcontent">
				<h2><?php esc_html_e( 'Welcome to Influencer Agency Theme', 'influencer-agency' ); ?> <span class="version">Version: <?php echo esc_html($influencer_agency_theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a class="get-pro" href="<?php echo esc_url( home_url() ); ?>" target="_blank"><?php esc_html_e('Visit Site', 'influencer-agency'); ?></a>
					<a href="<?php echo esc_url( INFLUENCER_AGENCY_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'influencer-agency' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'influencer-agency'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( INFLUENCER_AGENCY_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'influencer-agency'); ?></a>
				</div>
				<div class="col-tc-6">
					<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/images/screenshot.png" alt="" />
				</div>
				<div class="col-tc-6">
					<P><?php esc_html_e( 'The Influencer Agency is a vibrant and engaging template specifically designed for influencers, content creators, and agencies aiming to build a robust online presence. With a focus on simplicity, this theme provides an accessible yet powerful platform perfect for showcasing talent and managing partnerships seamlessly. It caters to a variety of niches, including social media influencers, bloggers, and digital marketers, offering an intuitive interface suitable for both individuals and agencies. This theme excels across various aspects of marketing and branding, making it an excellent choice for those looking to display portfolios, highlight collaborations, and connect with potential clients and brands. Its user-friendly design allows even those with minimal web development experience to easily establish and maintain their influencer-focused websites. The clean and visually appealing layout enhances clarity, facilitating effortless exploration of content and understanding of the influencer\'s unique offerings. Additionally, the Influencer Agency WordPress Theme is responsive, ensuring a smooth experience across all devices, thereby creating a consistent and engaging interaction for both influencers and their audience. Overall, this theme serves as a vital tool for influencers seeking to effectively manage their online presence. For a closer look, check out the demo at https://preview.themescaliber.com/tc-inluencer-agency-pro/.', 'influencer-agency' ); ?></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( 'Influencer Agency Theme Information', 'influencer-agency' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( INFLUENCER_AGENCY_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'influencer-agency' ); ?></a>
					<a href="<?php echo esc_url( INFLUENCER_AGENCY_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'influencer-agency' ); ?></a>
					<a href="<?php echo esc_url( INFLUENCER_AGENCY_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'influencer-agency' ); ?></a>
				</div>
				<div class="pro-image">
					<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/images/Influencer-Agency-Responsive.png" alt="" />
				</div>
			<div class="col-pro-5">
				<h4><?php esc_html_e( 'Influencer Agency Pro Theme', 'influencer-agency' ); ?></h4>
				<p><?php esc_html_e( 'Influencer Agency is a dynamic and visually appealing template tailored for influencers, content creators, and agencies seeking to establish a strong online presence. Designed with simplicity in mind, this theme caters to users who want an accessible yet powerful platform to showcase their talent and manage partnerships effortlessly. It can be used by influencers of various niches, including social media influencers, bloggers, and digital marketers as it provides an intuitive interface for individuals and agencies alike. It serves as an ideal solution for those wanting to showcase their portfolio, highlight collaborations, and connect with potential clients and brands. The themes user-friendly nature ensures that users, even those without extensive web development knowledge, can easily set up and manage their influencer-focused websites. Its streamlined design prioritizes clarity, making it easy for visitors to explore content, view portfolios, and understand the influencers unique offerings. Benefiting from a clean and visually appealing layout, the Influencer Agency WordPress Theme offers a professional platform that reflects the influencers brand. Its responsiveness ensures a seamless experience across various devices, creating a consistent and engaging experience for both influencers and their audience. The Influencer Agency WordPress Theme is a valuable tool for influencers looking to manage their online presence effectively.', 'influencer-agency' ); ?></P>		
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'influencer-agency' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Easy Setup', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Responsive Design', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'SEO Friendly', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Banner Settings, Title and Tagline Customization', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Template Pages', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Home Page Template', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Theme sections', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Contact us Page Template', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Blog Templates & Layout', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Section Reordering', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Demo Importer', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Full Documentation ', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Latest WordPress Compatibility', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Support 3rd Party Plugins', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Secure and Optimized Code', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Exclusive Functionalities', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Section Enable / Disable', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Section Google Font Choices', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Gallery', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Simple & Mega Menu Option', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Support to add custom CSS / JS', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Shortcodes', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Custom Background, Colors, Header, Logo & Menu', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Premium Membership', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Budget Friendly Value', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Priority Error Fixing', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Custom Feature Addition', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'All Access Theme Pass', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Seamless Customer Support', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'WordPress 6.4 or later', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'PHP 8.2 or 8.3', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'MySQL 5.6 (or greater) | MariaDB 10.0 (or greater)', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Influence Registration', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Detailed Influencer Portfolio', 'influencer-agency' ); ?></li>
					<li><?php esc_html_e( 'Premium Pricing Plan', 'influencer-agency' ); ?></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?', 'influencer-agency' ); ?></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.', 'influencer-agency' ); ?></P>
						<a href="<?php echo esc_url( INFLUENCER_AGENCY_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'influencer-agency' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'influencer-agency'); ?></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.', 'influencer-agency' ); ?></P>
						<a href="<?php echo esc_url( INFLUENCER_AGENCY_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'influencer-agency'); ?></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', 'influencer-agency'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>
