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

function real_estate_company_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', 'real-estate-company' ) . ' ' . esc_html( $theme_name ) . ' ' . esc_html( $theme_version ); ?></h1>
            <p><?php echo esc_html__( 'Real Estate Company is a powerful and professional WordPress theme designed specifically for businesses in the real estate and construction industries. Whether you are running an architecture firm, a construction company, a property development group, or a real estate agency, Real Estate Company offers everything you need to create a strong online presence. With its clean, modern design and flexible customization options, Real Estate Company allows you to showcase your projects, services, and team with style and confidence.', 'real-estate-company' ); ?></p>
            <div class="quick-links">
                <?php
                echo '<a href="' . esc_url( 'https://www.templatehouse.net/themes/real-estate-construction-group-wordpress-theme/' ) . '" rel="nofollow" target="_blank" class="button button-hero button-primary">' . esc_html__( 'Download Pro Version', 'real-estate-company' ).'</a>';
               
                echo '<a href="' . esc_url( 'https://demo.templatehouse.net/spacian/' ) . '" rel="nofollow" target="_blank" class="button button-hero button-secondary">' . esc_html__( 'Live Demo', 'real-estate-company' ).'</a>';

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

               ?>
            </div>
        </div>
    </div>
    <?php if ( function_exists( 'real_estate_company_render_pro_themes_section' ) ) { real_estate_company_render_pro_themes_section(); } ?>
    <?php
}