<?php
/*
 * @package Car Service
 */


 function mediquip_plus_admin_enqueue_scripts() {
    wp_enqueue_style( 'mediquip-plus-admin-style', esc_url( get_template_directory_uri() ).'/css/addon.css' );
}
add_action( 'admin_enqueue_scripts', 'mediquip_plus_admin_enqueue_scripts' );

function mediquip_plus_theme_info_menu_link() {

    $mediquip_plus_theme = wp_get_theme();
    add_theme_page(
        sprintf( esc_html__( 'Welcome to %1$s', 'mediquip-plus' ), $mediquip_plus_theme->get( 'Name' )),
        esc_html__( 'Theme Demo Import', 'mediquip-plus' ),
        'edit_theme_options',
        'mediquip-plus',
        'mediquip_plus_theme_info_page'
    );
}
add_action( 'admin_menu', 'mediquip_plus_theme_info_menu_link' );

function mediquip_plus_theme_info_page() {

    $mediquip_plus_theme = wp_get_theme();
    ?>
<div class="wrap theme-info-wrap">
    <h1><?php printf( esc_html__( 'Welcome to %1$s', 'mediquip-plus' ), esc_html($mediquip_plus_theme->get( 'Name' ))); ?>
    </h1>
    <p class="theme-description">
    <?php esc_html_e( 'Do you want to configure this theme? Look no further, our easy-to-follow theme documentation will walk you through it.', 'mediquip-plus' ); ?>
    </p>
    <div class="columns-wrapper clearfix theme-demo">
        <div class="column column-quarter clearfix start-box"> 
            <div class="demo-import">
                <div class="theme-name">
                    <h2><?php echo esc_html( $mediquip_plus_theme->get( 'Name' ) ); ?></h2>
                    <p class="version"><?php esc_html_e( 'Version', 'mediquip-plus' ); ?>: <?php echo esc_html( wp_get_theme()->get( 'Version' ) ); ?></p>	
                </div>
                <?php
                    $mediquip_plus_demo_content_file = apply_filters(
                        'mediquip_plus_demo_content_path',
                        get_parent_theme_file_path( '/inc/demo-content.php' )
                    );
                    require $mediquip_plus_demo_content_file;             
                ?>               
                <div id="demo-import-loader">
                    <img src="<?php echo esc_url(get_template_directory_uri() . '/images/status.gif'); ?>" alt="<?php echo esc_attr( 'Loading...', 'mediquip-plus'); ?>" />
                </div>
            </div>
        </div>
        <div class="column column-first clearfix">
            <div class="important-link">
                <div class="main-box columns-wrapper clearfix">
                    <div class="themelink column column-third clearfix">
                        <p><strong><?php esc_html_e( 'Pro version of our theme', 'mediquip-plus' ); ?></strong></p>
                        <p><?php esc_html_e( 'Are you excited for our theme? Then we will proceed for pro version of theme.', 'mediquip-plus' ); ?></p>
                        <a class="get-premium" href="<?php echo esc_url( MEDIQUIP_PLUS_PREMIUM_PAGE ); ?>" target="_blank">
                        <?php esc_html_e( 'Go To Premium', 'mediquip-plus' ); ?>
                        </a>
                    </div>

                    <div class="themelink column column-third clearfix">
                        <p><strong><?php esc_html_e( 'Need Help?', 'mediquip-plus' ); ?></strong></p>
                        <p><?php esc_html_e( 'Go to our support forum to help you out in case of queries and doubts regarding our theme.', 'mediquip-plus' ); ?></p>
                        <a href="<?php echo esc_url( MEDIQUIP_PLUS_SUPPORT ); ?>" target="_blank">
                        <?php esc_html_e( 'Contact Us', 'mediquip-plus' ); ?>
                        </a>
                    </div>

                    <div class="themelink column column-third clearfix">
                        <p><strong><?php esc_html_e( 'Check Our Demo', 'mediquip-plus' ); ?></strong></p>
                        <p><?php esc_html_e( 'Here, you can view a live demonstration of our premium theme.', 'mediquip-plus' ); ?></p>
                        <a href="<?php echo esc_url( MEDIQUIP_PLUS_PRO_DEMO ); ?>" target="_blank">
                        <?php esc_html_e( 'Premium Demo', 'mediquip-plus' ); ?>
                        </a>
                    </div>
                </div>
                <hr>
                <div class="main-box columns-wrapper clearfix">
                    <div class="themelink column column-third clearfix">
                        <p><strong><?php esc_html_e( 'Check all classic features', 'mediquip-plus' ); ?></strong></p>
                        <p><?php esc_html_e( 'Explore all our 90+ Premium Themes Collections', 'mediquip-plus' ); ?></p>
                        <a href="<?php echo esc_url( MEDIQUIP_PLUS_THEME_PAGE ); ?>" target="_blank">
                        <?php esc_html_e( 'Theme Page', 'mediquip-plus' ); ?>
                        </a>
                    </div>

                    <div class="themelink column column-third clearfix">
                        <p><strong><?php esc_html_e( 'Leave us a review', 'mediquip-plus' ); ?></strong></p>
                        <p><?php esc_html_e( 'Are you enjoying our theme? We would love to hear your feedback.', 'mediquip-plus' ); ?></p>
                        <a href="<?php echo esc_url( MEDIQUIP_PLUS_REVIEW ); ?>" target="_blank">
                        <?php esc_html_e( 'Rate This Theme', 'mediquip-plus' ); ?>
                        </a>
                    </div>

                    <div class="themelink column column-third clearfix">
                        <p><strong><?php esc_html_e( 'Theme Documentation', 'mediquip-plus' ); ?></strong></p>
                        <p><?php esc_html_e( 'Need more details? Please check our full documentation for detailed theme setup.', 'mediquip-plus' ); ?></p>
                        <a href="<?php echo esc_url( MEDIQUIP_PLUS_THEME_DOCUMENTATION ); ?>" target="_blank">
                        <?php esc_html_e( 'Documentation', 'mediquip-plus' ); ?>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="getting-started">
        <div class="section">
            <h3><?php printf( esc_html__( 'Getting started with %s', 'mediquip-plus' ),
            esc_html($mediquip_plus_theme->get( 'Name' ))); ?></h3>
            <div class="columns-wrapper clearfix">
                <div class="column column-half clearfix">
                    <div class="section themelink">
                        <div class="">
                            <a class="" href="<?php echo esc_url( MEDIQUIP_PLUS_PREMIUM_PAGE ); ?>" target="_blank"><?php esc_html_e( 'Get Premium', 'mediquip-plus' ); ?></a>
                            <a href="<?php echo esc_url( MEDIQUIP_PLUS_PRO_DEMO ); ?>" target="_blank"><?php esc_html_e( 'View Demo', 'mediquip-plus' ); ?></a>
                            <a class="get-premium" href="<?php echo esc_url( MEDIQUIP_PLUS_BUNDLE_PAGE ); ?>" target="_blank"><?php esc_html_e( 'Bundle of 90+ Themes at $99', 'mediquip-plus' ); ?></a>
                        </div>
                        <div class="theme-description-1"><?php echo esc_html($mediquip_plus_theme->get( 'Description' )); ?></div>
                    </div>
                </div>
                <div class="column column-half clearfix">
                    <img src="<?php echo esc_url( $mediquip_plus_theme->get_screenshot() ); ?>" alt=""/>
                </div>
            </div>
        </div>
    </div>
    <hr>
    <div id="theme-author">
      <p><?php
        printf( esc_html__( '%1$s is proudly brought to you by %2$s. If you like this theme, %3$s :)', 'mediquip-plus' ),
            esc_html($mediquip_plus_theme->get( 'Name' )),
            '<a target="_blank" href="' . esc_url( 'https://www.theclassictemplates.com/', 'mediquip-plus' ) . '">classictemplate</a>',
            '<a target="_blank" href="' . esc_url(MEDIQUIP_PLUS_REVIEW ) . '" title="' . esc_attr__( 'Rate it', 'mediquip-plus' ) . '">' . esc_html_x( 'rate it', 'If you like this theme, rate it', 'mediquip-plus' ) . '</a>'
        );
        ?></p>
    </div>
</div>
<?php
}
?>