<?php
/**
 * Add Theme info Page
 */

function journy_menu() {
	add_theme_page( esc_html__( 'Journy', 'journy' ), esc_html__( 'About Journy Theme', 'journy' ), 'edit_theme_options', 'about-journy', 'journy_theme_page_display' );
}
add_action( 'admin_menu', 'journy_menu' );

/**
 * Display About page
 */
function journy_theme_page_display() {
	$theme = wp_get_theme();

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

		<div class="Grace-wrapper">
			<div class="journy-info-holder">
				<div class="journy-info-holder-content">
					<div class="Grace-Welcome">
						<h1 class="welcomeTitle"><?php esc_html_e( 'About Theme Info', 'journy' ); ?></h1>
						<div class="featureDesc">
							<?php echo esc_html__( 'Journy is a free travel WordPress theme for advisor, business coach, company, corporate, firm, gutenberg, life coach, personal development, portfolio.', 'journy' ); ?>
						</div>

                        <h1 class="welcomeTitle"><?php esc_html_e( 'Theme Features', 'journy' ); ?></h1>

                        <h2><?php esc_html_e( 'Block Compatibale', 'journy' ); ?></h2>
                        <div class="featureDesc">
                            <?php echo esc_html__( 'The built-in customizer panel quickly change aspects of the design and display changes live before saving them.', 'journy' ); ?>
                        </div>

                        <h2><?php esc_html_e( 'Responsive Ready', 'journy' ); ?></h2>
                        <div class="featureDesc">
                            <?php echo esc_html__( 'The themes layout will automatically adjust and fit on any screen resolution and looks great on any device. Fully optimized for iPhone and iPad.', 'journy' ); ?>
                        </div>

                        <h2><?php esc_html_e( 'Cross Browser Compatible', 'journy' ); ?></h2>
                        <div class="featureDesc">
                            <?php echo esc_html__( 'Our themes are tested in all mordern web browsers and compatible with the latest version including Chrome,Firefox, Safari, Opera, IE11 and above.', 'journy' ); ?>
                        </div>

					</div> <!-- .Grace-Welcome -->
				</div> <!-- .journy-info-holder-content -->


				<div class="journy-info-holder-sidebar">

						<div class="sidebarBX">
							<h2 class="sidebarBX-title"><?php echo esc_html__( 'Important Links', 'journy' ); ?></h2>

							<ul class="themeinfo-links">
                                <li>
									<a href="<?php echo esc_url( 'https://journy.webhelpagency.com/' ); ?>" target="_blank"><?php echo esc_html__( 'Demo Preview', 'journy' ); ?></a>
								</li>
								<li>
									<a href="<?php echo esc_url( 'https://journy.webhelpagency.com/documentation/' ); ?>" target="_blank"><?php echo esc_html__( 'Documentation', 'journy' ); ?></a>
								</li>
							</ul>
						</div>

				</div><!-- .journy-info-holder-sidebar -->

			</div> <!-- .journy-info-holder -->
		</div><!-- .Grace-wrapper -->
<?php }