<?php
/**
 * Theme info page for Online Courier Services.
 *
 * @package Online Courier Services
 */

define( 'ONLINE_COURIER_SERVICES_DEMO_URL', 'https://legacytheme.net/trial/online-courier-services/' );
define( 'ONLINE_COURIER_SERVICES_THEME_PRO_URL', 'https://www.legacytheme.net/products/courier-delivery-wordpress-theme/' );
define( 'ONLINE_COURIER_SERVICES_THEME_DOC_URL', 'https://www.legacytheme.net/tutorial/online-courier-services/' );
define( 'ONLINE_COURIER_SERVICES_THEME_SUPPORT_URL', 'https://wordpress.org/support/theme/online-courier-services/' );
define( 'ONLINE_COURIER_SERVICES_THEME_RATINGS_URL', 'https://wordpress.org/support/theme/online-courier-services/reviews/' );
define( 'ONLINE_COURIER_SERVICES_THEME_UPGRADE_URL', 'https://www.legacytheme.net/products/courier-delivery-wordpress-theme/' );
define( 'ONLINE_COURIER_SERVICES_THEME_BUNDLE_URL', 'https://www.legacytheme.net/products/wordpress-theme-bundle/' );


/**
 * Register the theme info submenu.
 */
function online_courier_services_add_menu() {
	add_theme_page(
		esc_html__( 'Legacy-themes', 'online-courier-services' ),
		esc_html__( 'Get Theme Info', 'online-courier-services' ),
		'manage_options',
		'online-courier-services-theme-info',
		'online_courier_services_theme_info'
	);
}
add_action( 'admin_menu', 'online_courier_services_add_menu' );


/**
 * Render the theme info page.
 */
function online_courier_services_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( 'Online Courier Services WordPress Theme', 'online-courier-services' ); ?>
						<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( ONLINE_COURIER_SERVICES_THEME_DOC_URL ); ?>" target="_blank">
										<?php esc_html_e( 'VIEW DOCUMENTATION', 'online-courier-services' ); ?>
									</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( ONLINE_COURIER_SERVICES_DEMO_URL ); ?>" target="_blank">
										<?php esc_html_e( 'VIEW DEMOS', 'online-courier-services' ); ?>
									</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( ONLINE_COURIER_SERVICES_THEME_UPGRADE_URL ); ?>" target="_blank">
										<?php esc_html_e( 'UPGRADE TO PRO', 'online-courier-services' ); ?>
									</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( ONLINE_COURIER_SERVICES_THEME_RATINGS_URL ); ?>" target="_blank">
										<?php esc_html_e( 'RATE OUR THEME', 'online-courier-services' ); ?>
									</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( ONLINE_COURIER_SERVICES_THEME_SUPPORT_URL ); ?>" target="_blank">
										<?php esc_html_e( 'ASK FOR SUPPORT', 'online-courier-services' ); ?>
									</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', 'online-courier-services' ); ?>" />
					</div>
				</div>
			</div>
			<div class="tick-box">
				<div class="comp-box">
					<h2 class="table-heading">
						<?php esc_html_e( 'Why upgrade to Online Courier Services PRO?', 'online-courier-services' ); ?>
					</h2>
					<div class="comp-table">
						<table>
							<thead>
								<tr>
									<th class="thead-column1">
										<strong>
											<h4><?php esc_html_e( 'Feature', 'online-courier-services' ); ?></h4>
										</strong>
									</th>
									<th class="thead-column2">
										<strong>
											<h4><?php esc_html_e( 'Online Courier Services Free', 'online-courier-services' ); ?></h4>
										</strong>
									</th>
									<th class="thead-column3">
										<strong>
											<h4><?php esc_html_e( 'Online Courier Services Pro', 'online-courier-services' ); ?></h4>
										</strong>
									</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td class="tbody-column1"><?php esc_html_e( 'Full Site Editing (FSE) Support', 'online-courier-services' ); ?></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)', 'online-courier-services' ); ?></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', 'online-courier-services' ); ?></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', 'online-courier-services' ); ?></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)', 'online-courier-services' ); ?></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', 'online-courier-services' ); ?></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', 'online-courier-services' ); ?></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)', 'online-courier-services' ); ?></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', 'online-courier-services' ); ?></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', 'online-courier-services' ); ?></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', 'online-courier-services' ); ?></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', 'online-courier-services' ); ?></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', 'online-courier-services' ); ?></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', 'online-courier-services' ); ?></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', 'online-courier-services' ); ?></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( ONLINE_COURIER_SERVICES_THEME_PRO_URL ); ?>" target="_blank">
											<?php esc_html_e( 'Upgrade to PRO', 'online-courier-services' ); ?>
										</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.', 'online-courier-services' ); ?>
					</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', 'online-courier-services' ); ?>">
					</div>
					<div class="info-pro-btn">
						<a class="button button-primary button-large bundle-btn" href="<?php echo esc_url( ONLINE_COURIER_SERVICES_THEME_BUNDLE_URL ); ?>" target="_blank">
							<?php esc_html_e( 'GET ALL THEMES – $59', 'online-courier-services' ); ?>
						</a>
					</div>
					<div class="info-pro-btn">
						<a class="button button-primary button-large" href="<?php echo esc_url( ONLINE_COURIER_SERVICES_THEME_PRO_URL ); ?>" target="_blank">
							<?php esc_html_e( 'UPGRADE TO PRO', 'online-courier-services' ); ?>
						</a>
					</div>
				</div>
			</div>
		</div>
	</div>
	<?php
}
