<?php
add_action('admin_menu', 'journy_getting_started');
function journy_getting_started()
{
    add_theme_page(esc_html__('Get Started', 'journy'), esc_html__('Get Started', 'journy'), 'edit_theme_options', 'journy-guide-page', 'journy_test_guide');
}

// Admin CSS for the theme's own screens only (Get Started + About).
function journy_admin_theme_style( $hook_suffix )
{
    if ( ! in_array( $hook_suffix, array( 'appearance_page_journy-guide-page', 'appearance_page_about-journy' ), true ) ) {
        return;
    }
    wp_enqueue_style( 'journy-get-started', get_template_directory_uri() . '/inc/get-started/get-started.css', array(), wp_get_theme()->get( 'version' ) );
}

add_action('admin_enqueue_scripts', 'journy_admin_theme_style');

//guidline for about theme
function journy_test_guide()
{
    //custom function about theme customizer
    $return = add_query_arg(array());
    $theme = wp_get_theme('journy');
    $screenshot_url = $theme->get_screenshot();
    ?>
    <div class="wrapper-info">
        <div class="intro">
            <h3><?php esc_html_e('Welcome to Journy
 WordPress Theme', 'journy'); ?></h3>
            <p>Version: <?php echo esc_html($theme['Version']); ?></p>
        </div>
        <div class="theme-desc">
            <p><?php esc_html_e('Journy is a WordPress theme designed for travel agencies and more. It uses advanced block technology to let you effortlessly create and customize your website. Achieve Google PageSpeed’s green zone for lightning-fast performance while showcasing your destinations, services, and stories with style.
', 'journy'); ?></p>
        </div>
        <div class="col-left">
            <div class="started">
                <hr>
                <div class="centerbold">
                    <h4><?php esc_html_e('Check Our Demo', 'journy'); ?></h4>
                    <p><?php esc_html_e('Here, you can view a live demonstration of our theme.', 'journy'); ?></p>
                    <a class="bg-color" href="<?php echo esc_url(JOURNY_DEMO); ?>"
                       target="_blank"><?php esc_html_e('Theme Demo', 'journy'); ?></a>
                    <hr>
                    <h4><?php esc_html_e('FAQ', 'journy'); ?></h4>
                    <p><?php esc_html_e('Need more details? Please try to find an answer or ask your question.', 'journy'); ?></p>
                    <a class="bg-color" href="<?php echo esc_url(JOURNY_FAQ); ?>"
                       target="_blank"><?php esc_html_e('Documentation', 'journy'); ?></a>
                    <hr>
                    <h4><?php esc_html_e('Need Help?', 'journy'); ?></h4>
                    <p><?php esc_html_e('Go to our support forum to help you out in case of queries and doubts regarding our theme.', 'journy'); ?></p>
                    <a class="bg-color" href="<?php echo esc_url(JOURNY_SUPPORT); ?>"
                       target="_blank"><?php esc_html_e('Support', 'journy'); ?></a>
                    <hr>
                    <h4><?php esc_html_e('Leave us a review', 'journy'); ?></h4>
                    <p><?php esc_html_e('Are you enjoying our theme? We would love to hear your feedback.', 'journy'); ?></p>
                    <a class="bg-color" href="<?php echo esc_url(JOURNY_REVIEW); ?>"
                       target="_blank"><?php esc_html_e('Review', 'journy'); ?></a>
                    <hr>
                    <h4><?php esc_html_e('Contact Developers', 'journy'); ?></h4>
                    <p><?php esc_html_e('If you are looking for development support, feel free to schedule a free call.', 'journy'); ?></p>
                    <a href="<?php echo esc_url(JOURNY_FREE_CALL); ?>"
                       target="_blank"><?php esc_html_e('Schedule a free call', 'journy'); ?></a>
                    <?php journy_recommended_plugins_section(); ?>
                </div>
            </div>
        </div>
        <div class="col-right">
            <div class="col-left-inner">
                <img role="img"
                     src="<?php echo esc_url($screenshot_url); ?>"
                     alt=""/>
            </div>
        </div>
    </div>
<?php } ?>
