<?php

namespace GS_BOOKS;

defined( 'ABSPATH' ) || exit;

?>

<html class="no-js" <?php language_attributes(); ?>>

    <head>
        <meta charset="<?php bloginfo( 'charset' ); ?>">
        <meta name="viewport" content="width=device-width, initial-scale=1.0" >
        <?php wp_head(); ?>
    </head>

    <!-- <body <?php // body_class(); ?>> -->
    <body class="gsbooks-shortcode-preview--page">
        <div class="gs-shortcode-preview--container">
            <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
                <div class="gs-shortcode-preview--wrapper shortcode-found">
                    <?php echo do_shortcode( get_the_content() ); ?>
                </div>
            <?php endwhile; else: ?>
                <div class="gs-shortcode-preview--wrapper something-wrong">
                    <h2><?php echo esc_html__( 'Something went wrong!', 'gs-books-showcase' ); ?></h2>
                    <p><?php echo esc_html__( 'Data not found for preview, probably it\'s a bug, contact with plugin author', 'gs-books-showcase' ); ?></p>
                </div>
            <?php endif; ?>
        </div>

        <?php wp_footer(); ?>
    </body>
    
</html>