<?php
/**
 * Custom Menu Page.
 *
 * @since 1.0.0
 *
 * @return void
 */
function nas_construction_group_menu_page() {
    add_submenu_page(
        'themes.php', // Parent slug: 'themes.php' is for Appearance menu
        'Theme Page', // Page title
        'Nas Construction Group', // Menu title
        'manage_options', // Capability
        'theme-menu-page', // Menu slug
        'nas_construction_group_menu_page_callback' // Callback function
    );
}
add_action('admin_menu', 'nas_construction_group_menu_page');

function nas_construction_group_menu_page_callback() {
    $theme         = wp_get_theme();
    $theme_name    = $theme->get('Name');
    $theme_version = $theme->get( 'Version' );
    $theme_slug    = $theme->get_template();
    ?>



    <div class="theme-wrap">
        <div class="theme-image theme-column">
            <?php echo '<img src="' . esc_url( get_stylesheet_directory_uri() . '/screenshot.png' ) . '" alt="Theme screenshot image">'; ?>
        </div>
        <div class="theme-wrap-inner theme-column">
            <h1><?php echo esc_html__( 'Welcome to the', 'nas-construction-group' ) . ' ' . esc_html( $theme_name ) . ' ' . esc_html( $theme_version ); ?></h1>
            <p><?php echo esc_html( $theme_name ) . ' ' . esc_html__( 'Construction is a business theme designed specifically for construction, building companies, and those that offer building services. The theme comes pre-packed with a drag and drop page builder (Visual Composer) to ensure you can easily design your website just how you like it. The layout looks beautiful at any size, be it a laptop screen, iPad, iPhone, Android Mobile or tablets. Plus, Construction includes plenty of customization options that allows you to change the visual style of any elements without touching to single line of codes.', 'nas-construction-group' ); ?></p>
            <div class="quick-links">
                <?php
                echo '<a href="' . esc_url( 'https://www.templatehouse.net/themes/constructo-construction-wordpress-theme/' ) . '" rel="nofollow" target="_blank" class="button button-hero button-primary">' . esc_html__( 'Download Pro Version', 'nas-construction-group' ).'</a>';
                echo '<a href="' . esc_url( 'https://demo.templatehouse.net/constructo/' ) . '" rel="nofollow" target="_blank" class="button button-hero button-secondary">' . esc_html__( 'Live Demo', 'nas-construction-group' ).'</a>';

                echo '<a href="' . esc_url( 'https://www.templatehouse.net/wordpress-website-design-services/' ) . '" rel="nofollow" target="_blank" class="button button-hero button-secondary">' . esc_html__( 'Need WordPress Website Design Services?', 'nas-construction-group' ).'</a>';

                ?>




            </div>
        </div>
    </div>
    <?php
}