<?php
/**
 * Theme info page for Fire Brigade.
 *
 * @package Fire Brigade
 */

define( 'FIRE_BRIGADE_DEMO_URL', 'https://legacytheme.net/trial/fire-brigade/' );
define( 'FIRE_BRIGADE_THEME_PRO_URL', 'https://www.legacytheme.net/products/firefighter-wordpress-theme/' );
define( 'FIRE_BRIGADE_THEME_DOC_URL', 'https://www.legacytheme.net/tutorial/fire-brigade/' );
define( 'FIRE_BRIGADE_THEME_SUPPORT_URL', 'https://wordpress.org/support/theme/fire-brigade/' );
define( 'FIRE_BRIGADE_THEME_RATINGS_URL', 'https://wordpress.org/support/theme/fire-brigade/reviews/' );
define( 'FIRE_BRIGADE_THEME_UPGRADE_URL', 'https://www.legacytheme.net/products/firefighter-wordpress-theme/' );
define( 'FIRE_BRIGADE_THEME_BUNDLE_URL', 'https://www.legacytheme.net/products/wordpress-theme-bundle/' );


/**
 * Register the theme info submenu.
 */
function fire_brigade_add_menu() {
	add_theme_page(
		esc_html__( 'Legacy-themes', 'fire-brigade' ),
		esc_html__( 'Get Theme Info', 'fire-brigade' ),
		'manage_options',
		'fire-brigade-theme-info',
		'fire_brigade_theme_info'
	);
}
add_action( 'admin_menu', 'fire_brigade_add_menu' );


/**
 * Render the theme info page.
 */
function fire_brigade_theme_info() {
	$theme = wp_get_theme();
	?>
	<div class="theme-info-get">
		<div class="container">
			<div class="top-section">
				<div class="title">
					<h1 class="info-theme-name">
						<?php esc_html_e( 'Fire Brigade WordPress Theme', 'fire-brigade' ); ?>
						<span><?php echo esc_html( $theme->get( 'Version' ) ); ?></span>
					</h1>
					<p><?php echo esc_html( $theme->get( 'Description' ) ); ?></p>
				</div>
			</div>
			<div class="buttons-box">
				<div class="info-btns-link">
					<div class="sidebar">
						<div class="section-box">
							<div class="icon">
								<span class="dashicons dashicons-format-aside"></span>
							</div>
							<div class="heading">
								<h3>
									<a href="<?php echo esc_url( FIRE_BRIGADE_THEME_DOC_URL ); ?>" target="_blank">
										<?php esc_html_e( 'VIEW DOCUMENTATION', 'fire-brigade' ); ?>
									</a>
								</h3>
							</div>
						</div>
						<div class="section-box">
							<div class="icon">
								<span class="dashicons dashicons-visibility"></span>
							</div>
							<div class="heading">
								<h3>
									<a href="<?php echo esc_url( FIRE_BRIGADE_DEMO_URL ); ?>" target="_blank">
										<?php esc_html_e( 'VIEW DEMOS', 'fire-brigade' ); ?>
									</a>
								</h3>
							</div>
						</div>
						<div class="section-box">
							<div class="icon">
								<span class="dashicons dashicons-admin-generic"></span>
							</div>
							<div class="heading">
								<h3>
									<a href="<?php echo esc_url( FIRE_BRIGADE_THEME_UPGRADE_URL ); ?>" target="_blank">
										<?php esc_html_e( 'UPGRADE TO PRO', 'fire-brigade' ); ?>
									</a>
								</h3>
							</div>
						</div>
						<div class="section-box">
							<div class="icon">
								<span class="dashicons dashicons-star-filled"></span>
							</div>
							<div class="heading">
								<h3>
									<a href="<?php echo esc_url( FIRE_BRIGADE_THEME_RATINGS_URL ); ?>" target="_blank">
										<?php esc_html_e( 'RATE OUR THEME', 'fire-brigade' ); ?>
									</a>
								</h3>
							</div>
						</div>
						<div class="section-box">
							<div class="icon">
								<span class="dashicons dashicons-sos"></span>
							</div>
							<div class="heading">
								<h3>
									<a href="<?php echo esc_url( FIRE_BRIGADE_THEME_SUPPORT_URL ); ?>" target="_blank">
										<?php esc_html_e( 'ASK FOR SUPPORT', 'fire-brigade' ); ?>
									</a>
								</h3>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="middle-section">
				<div class="screnshot-wrapper">
					<div class="scrnsht-box">
						<img class="scrnshot-img" src="<?php echo esc_url( $theme->get_screenshot() ); ?>" alt="<?php esc_attr_e( 'theme screenshot', 'fire-brigade' ); ?>" />
					</div>
				</div>
			</div>
			<div class="tick-box">
				<div class="comp-box">
					<h2 class="table-heading">
						<?php esc_html_e( 'Why upgrade to Fire Brigade PRO?', 'fire-brigade' ); ?>
					</h2>
					<div class="comp-table">
						<table>
							<thead>
								<tr>
									<th class="thead-column1">
										<strong>
											<h4><?php esc_html_e( 'Feature', 'fire-brigade' ); ?></h4>
										</strong>
									</th>
									<th class="thead-column2">
										<strong>
											<h4><?php esc_html_e( 'Fire Brigade Free', 'fire-brigade' ); ?></h4>
										</strong>
									</th>
									<th class="thead-column3">
										<strong>
											<h4><?php esc_html_e( 'Fire Brigade Pro', 'fire-brigade' ); ?></h4>
										</strong>
									</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td class="tbody-column1"><?php esc_html_e( 'Full Site Editing (FSE) Support', 'fire-brigade' ); ?></td>
									<td class="tbody-column2"><span class="dashicons dashicons-yes"></span></td>
									<td class="tbody-column3"><span class="dashicons dashicons-yes"></span></td>
								</tr>
								<tr>
									<td class="tbody-column1"><?php esc_html_e( 'Global Styles (theme.json)', 'fire-brigade' ); ?></td>
									<td class="tbody-column2"><span class="dashicons dashicons-yes"></span></td>
									<td class="tbody-column3"><span class="dashicons dashicons-yes"></span></td>
								</tr>
								<tr>
									<td class="tbody-column1"><?php esc_html_e( 'Custom Logistics Block Patterns', 'fire-brigade' ); ?></td>
									<td class="tbody-column2"><span class="dashicons dashicons-no-alt"></span></td>
									<td class="tbody-column3"><span class="dashicons dashicons-yes"></span></td>
								</tr>
								<tr>
									<td class="tbody-column1"><?php esc_html_e( 'Service Card & Booking Button Styles', 'fire-brigade' ); ?></td>
									<td class="tbody-column2"><span class="dashicons dashicons-no-alt"></span></td>
									<td class="tbody-column3"><span class="dashicons dashicons-yes"></span></td>
								</tr>
								<tr>
									<td class="tbody-column1"><?php esc_html_e( 'Multiple Template Parts (Header, Footer, Sidebar)', 'fire-brigade' ); ?></td>
									<td class="tbody-column2"><span class="dashicons dashicons-yes"></span></td>
									<td class="tbody-column3"><span class="dashicons dashicons-yes"></span></td>
								</tr>
								<tr>
									<td class="tbody-column1"><?php esc_html_e( 'Advanced Template Library', 'fire-brigade' ); ?></td>
									<td class="tbody-column2"><span class="dashicons dashicons-no-alt"></span></td>
									<td class="tbody-column3"><span class="dashicons dashicons-yes"></span></td>
								</tr>
								<tr>
									<td class="tbody-column1"><?php esc_html_e( 'Multiple Color Palettes & Gradients', 'fire-brigade' ); ?></td>
									<td class="tbody-column2"><span class="dashicons dashicons-yes"></span></td>
									<td class="tbody-column3"><span class="dashicons dashicons-yes"></span></td>
								</tr>
								<tr>
									<td class="tbody-column1"><?php esc_html_e( 'Typography Controls (Fonts, Sizes, Spacing)', 'fire-brigade' ); ?></td>
									<td class="tbody-column2"><span class="dashicons dashicons-no-alt"></span></td>
									<td class="tbody-column3"><span class="dashicons dashicons-yes"></span></td>
								</tr>
								<tr>
									<td class="tbody-column1"><?php esc_html_e( 'WooCommerce Block Integration', 'fire-brigade' ); ?></td>
									<td class="tbody-column2"><span class="dashicons dashicons-no-alt"></span></td>
									<td class="tbody-column3"><span class="dashicons dashicons-yes"></span></td>
								</tr>
								<tr>
									<td class="tbody-column1"><?php esc_html_e( 'Performance Optimized for Logistics Pages', 'fire-brigade' ); ?></td>
									<td class="tbody-column2"><span class="dashicons dashicons-yes"></span></td>
									<td class="tbody-column3"><span class="dashicons dashicons-yes"></span></td>
								</tr>
								<tr>
									<td class="tbody-column1"><?php esc_html_e( 'Animation & Scroll Effects', 'fire-brigade' ); ?></td>
									<td class="tbody-column2"><span class="dashicons dashicons-no-alt"></span></td>
									<td class="tbody-column3"><span class="dashicons dashicons-yes"></span></td>
								</tr>
								<tr>
									<td class="tbody-column1"><?php esc_html_e( 'Custom Query Loop Designs', 'fire-brigade' ); ?></td>
									<td class="tbody-column2"><span class="dashicons dashicons-no-alt"></span></td>
									<td class="tbody-column3"><span class="dashicons dashicons-yes"></span></td>
								</tr>
								<tr>
									<td class="tbody-column1"><?php esc_html_e( 'Header & Footer Layout Variations', 'fire-brigade' ); ?></td>
									<td class="tbody-column2"><span class="dashicons dashicons-no-alt"></span></td>
									<td class="tbody-column3"><span class="dashicons dashicons-yes"></span></td>
								</tr>
								<tr>
									<td class="tbody-column1"><?php esc_html_e( 'Custom 404 & Archive Templates', 'fire-brigade' ); ?></td>
									<td class="tbody-column2"><span class="dashicons dashicons-no-alt"></span></td>
									<td class="tbody-column3"><span class="dashicons dashicons-yes"></span></td>
								</tr>
								<tr>
									<td class="tbody-column1"><?php esc_html_e( 'Priority Support & SLA', 'fire-brigade' ); ?></td>
									<td class="tbody-column2"><span class="dashicons dashicons-no-alt"></span></td>
									<td class="tbody-column3"><span class="dashicons dashicons-yes"></span></td>
								</tr>
								<tr class="last-row">
									<td class="tbody-column1"></td>
									<td class="tbody-column2"></td>
									<td class="tbody-column3">
										<a class="button button-primary button-large" href="<?php echo esc_url( FIRE_BRIGADE_THEME_PRO_URL ); ?>" target="_blank">
											<?php esc_html_e( 'Upgrade to PRO', 'fire-brigade' ); ?>
										</a>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>
		<div class="bundle-detail">
			<div class="second-side">
				<div class="bundle-wrapper">
					<h3 class="info-theme-name">
						<?php esc_html_e( 'Bundle up and save! Unlock all our modern business themes in one exclusive pack.', 'fire-brigade' ); ?>
					</h3>
					<div class="scrnsht-box bundlee">
						<img class="scrnshot-img" src="<?php echo esc_url( get_template_directory_uri() . '/assets/images/bundle.png' ); ?>" alt="<?php esc_attr_e( 'bundle image', 'fire-brigade' ); ?>">
					</div>
					<div class="info-pro-btn">
						<a class="button button-primary button-large bundle-btn" href="<?php echo esc_url( FIRE_BRIGADE_THEME_BUNDLE_URL ); ?>" target="_blank">
							<?php esc_html_e( 'GET ALL THEMES – $59', 'fire-brigade' ); ?>
						</a>
					</div>
					<div class="info-pro-btn">
						<a class="button button-primary button-large" href="<?php echo esc_url( FIRE_BRIGADE_THEME_PRO_URL ); ?>" target="_blank">
							<?php esc_html_e( 'UPGRADE TO PRO', 'fire-brigade' ); ?>
						</a>
					</div>
				</div>
			</div>
		</div>
	</div>
	<?php
}
