<?php
add_action('admin_menu', 'good_wine_getting_started');
function good_wine_getting_started()
{
    add_theme_page(esc_html__('Get Started', 'good-wine'), esc_html__('Get Started', 'good-wine'), 'edit_theme_options', 'good-wine-guide-page', 'good_wine_test_guide');
}

// Add a Custom CSS file to WP Admin Area
function good_wine_admin_theme_style()
{
    wp_enqueue_style('custom-admin-style', esc_url(get_template_directory_uri()) . '/inc/get-started/get-started.css');
}

add_action('admin_enqueue_scripts', 'good_wine_admin_theme_style');

//guidline for about theme
function good_wine_test_guide()
{
    //custom function about theme customizer
    $return = add_query_arg(array());
    $theme = wp_get_theme('good-wine');
    $screenshot_url = $theme->get_screenshot();
    ?>
    <div class="wrapper-info">
        <div class="intro">
            <h3><?php esc_html_e('Welcome to Good Wine WordPress Theme', 'good-wine'); ?></h3>
            <p>Version: <?php echo esc_html($theme['Version']); ?></p>
        </div>
        <div class="theme-desc">
            <p><?php esc_html_e('Good Wine is a WordPress theme tailor-made for winery stores, seamlessly combining the power of blocks and e-commerce functionality. Craft a sophisticated online presence that captures the essence of your wines, from rich reds to crisp whites. With “Good Wine,” you can effortlessly showcase your vintages, offer a delightful shopping experience, and uncork the potential for online success. Raise a toast to a website that’s as smooth as your finest blend.', 'good-wine'); ?></p>
        </div>
        <div class="col-left">
            <div class="started">
                <hr>
                <div class="centerbold">
                    <h4><?php esc_html_e('Check Our Demo', 'good-wine'); ?></h4>
                    <p><?php esc_html_e('Here, you can view a live demonstration of our theme.', 'good-wine'); ?></p>
                    <a class="bg-color" href="<?php echo esc_url(GOOD_WINE_DEMO); ?>"
                       target="_blank"><?php esc_html_e('Theme Demo', 'good-wine'); ?></a>
                    <hr>
                    <h4><?php esc_html_e('Need Help?', 'good-wine'); ?></h4>
                    <p><?php esc_html_e('Go to our support forum to help you out in case of queries and doubts regarding our theme.', 'good-wine'); ?></p>
                    <a class="bg-color" href="<?php echo esc_url(GOOD_WINE_SUPPORT); ?>"
                       target="_blank"><?php esc_html_e('Support', 'good-wine'); ?></a>
                    <hr>
                    <h4><?php esc_html_e('Leave us a review', 'good-wine'); ?></h4>
                    <p><?php esc_html_e('Are you enjoying our theme? We would love to hear your feedback.', 'good-wine'); ?></p>
                    <a class="bg-color" href="<?php echo esc_url(GOOD_WINE_REVIEW); ?>"
                       target="_blank"><?php esc_html_e('Review', 'good-wine'); ?></a>
                    <hr>
                    <h4><?php esc_html_e('Contact Developers', 'good-wine'); ?></h4>
                    <p><?php esc_html_e('If you are looking for development support, feel free to schedule a free call.', 'good-wine'); ?></p>
                    <a href="<?php echo esc_url(GOOD_WINE_FREE_CALL); ?>"
                       target="_blank"><?php esc_html_e('Schedule a free call', 'good-wine'); ?></a>
                </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 } ?>
