<?php
/**
 * Theme info page for Transport Carrier.
 *
 * @package Transport Carrier
 */

define( 'TRANSPORT_CARRIER_DEMO_URL', 'https://legacytheme.net/trial/transport-carrier/' );
define( 'TRANSPORT_CARRIER_THEME_PRO_URL', 'https://www.legacytheme.net/products/transport-wordpress-theme/' );
define( 'TRANSPORT_CARRIER_THEME_DOC_URL', 'https://www.legacytheme.net/tutorial/transport-carrier/' );
define( 'TRANSPORT_CARRIER_THEME_SUPPORT_URL', 'https://wordpress.org/support/theme/transport-carrier/' );
define( 'TRANSPORT_CARRIER_THEME_RATINGS_URL', 'https://wordpress.org/support/theme/transport-carrier/reviews/' );
define( 'TRANSPORT_CARRIER_THEME_UPGRADE_URL', 'https://www.legacytheme.net/products/transport-wordpress-theme/' );
define( 'TRANSPORT_CARRIER_THEME_BUNDLE_URL', 'https://www.legacytheme.net/products/wordpress-theme-bundle/' );


/**
 * Register the theme info submenu.
 */
function transport_carrier_add_menu() {
	add_theme_page(
		esc_html__( 'Legacy-themes', 'transport-carrier' ),
		esc_html__( 'Get Theme Info', 'transport-carrier' ),
		'manage_options',
		'transport-carrier-theme-info',
		'transport_carrier_theme_info'
	);
}
add_action( 'admin_menu', 'transport_carrier_add_menu' );


/**
 * Render the theme info page.
 */
function transport_carrier_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( 'Transport Carrier WordPress Theme', 'transport-carrier' ); ?>
						<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( TRANSPORT_CARRIER_THEME_DOC_URL ); ?>" target="_blank">
										<?php esc_html_e( 'VIEW DOCUMENTATION', 'transport-carrier' ); ?>
									</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( TRANSPORT_CARRIER_DEMO_URL ); ?>" target="_blank">
										<?php esc_html_e( 'VIEW DEMOS', 'transport-carrier' ); ?>
									</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( TRANSPORT_CARRIER_THEME_UPGRADE_URL ); ?>" target="_blank">
										<?php esc_html_e( 'UPGRADE TO PRO', 'transport-carrier' ); ?>
									</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( TRANSPORT_CARRIER_THEME_RATINGS_URL ); ?>" target="_blank">
										<?php esc_html_e( 'RATE OUR THEME', 'transport-carrier' ); ?>
									</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( TRANSPORT_CARRIER_THEME_SUPPORT_URL ); ?>" target="_blank">
										<?php esc_html_e( 'ASK FOR SUPPORT', 'transport-carrier' ); ?>
									</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', 'transport-carrier' ); ?>" />
					</div>
				</div>
			</div>
			<div class="tick-box">
				<div class="comp-box">
					<h2 class="table-heading">
						<?php esc_html_e( 'Why upgrade to Transport Carrier PRO?', 'transport-carrier' ); ?>
					</h2>
					<div class="comp-table">
						<table>
							<thead>
								<tr>
									<th class="thead-column1">
										<strong>
											<h4><?php esc_html_e( 'Feature', 'transport-carrier' ); ?></h4>
										</strong>
									</th>
									<th class="thead-column2">
										<strong>
											<h4><?php esc_html_e( 'Transport Carrier Free', 'transport-carrier' ); ?></h4>
										</strong>
									</th>
									<th class="thead-column3">
										<strong>
											<h4><?php esc_html_e( 'Transport Carrier Pro', 'transport-carrier' ); ?></h4>
										</strong>
									</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td class="tbody-column1"><?php esc_html_e( 'Full Site Editing (FSE) Support', 'transport-carrier' ); ?></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)', 'transport-carrier' ); ?></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', 'transport-carrier' ); ?></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', 'transport-carrier' ); ?></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)', 'transport-carrier' ); ?></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', 'transport-carrier' ); ?></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', 'transport-carrier' ); ?></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)', 'transport-carrier' ); ?></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', 'transport-carrier' ); ?></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', 'transport-carrier' ); ?></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', 'transport-carrier' ); ?></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', 'transport-carrier' ); ?></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', 'transport-carrier' ); ?></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', 'transport-carrier' ); ?></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', 'transport-carrier' ); ?></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( TRANSPORT_CARRIER_THEME_PRO_URL ); ?>" target="_blank">
											<?php esc_html_e( 'Upgrade to PRO', 'transport-carrier' ); ?>
										</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.', 'transport-carrier' ); ?>
					</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', 'transport-carrier' ); ?>">
					</div>
					<div class="info-pro-btn">
						<a class="button button-primary button-large bundle-btn" href="<?php echo esc_url( TRANSPORT_CARRIER_THEME_BUNDLE_URL ); ?>" target="_blank">
							<?php esc_html_e( 'GET ALL THEMES – $59', 'transport-carrier' ); ?>
						</a>
					</div>
					<div class="info-pro-btn">
						<a class="button button-primary button-large" href="<?php echo esc_url( TRANSPORT_CARRIER_THEME_PRO_URL ); ?>" target="_blank">
							<?php esc_html_e( 'UPGRADE TO PRO', 'transport-carrier' ); ?>
						</a>
					</div>
				</div>
			</div>
		</div>
	</div>
	<?php
}
