<?php
/**
 * Template part for displaying posts.
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package Sparta
 */

?>
<div class="vk-room-details-content row">
    <div class="col-lg-8">
        <div class="vk-room-details-content-left">
            <div class="vk-room-details-left-slide">
                <?php if (mphb_tmpl_has_room_type_gallery()) : ?>

                    <?php
                    /**
                     * @hooked MPHB\Views\LoopRoomTypeView::_renderImagesWrapperOpen - 10
                     */
                    do_action('mphb_render_loop_room_type_before_gallery');
                    ?>

                    <?php mphb_tmpl_the_room_type_flexslider_gallery(); ?>

                    <?php
                    /**
                     * @hooked \MPHB\Views\LoopRoomTypeView::_enqueueGalleryScripts - 10
                     * @hooked MPHB\Views\LoopRoomTypeView::_renderImagesWrapperClose - 20
                     */
                    do_action('mphb_render_loop_room_type_after_gallery');
                    ?>

                <?php endif; ?>
            </div>
            <h1 class="vk-room-details-title"><?php the_title(); ?></h1>
            <?php do_action('sparta_single_room_type_price'); ?>
            <div class="blog-content">
                <?php the_content(); ?>
            </div>

            <?php if (true == get_theme_mod('sparta_blog_single_show_social_sharing', false)) :
                echo '<div class="vk-social-share-box">';
                if (class_exists('Univer_Core')) :
                    echo do_shortcode('[sparta_social_share]');
                endif;

                echo '</div>';
            endif;

            wp_link_pages(array(
                    'link_before' => '<span>',
                    'link_after' => '</span>',
                    'pagelink' => '%',
                    'before' => '<div class="blog-pagination uni-pagination-content">',
                    'after' => '</div>',
                    'nextpagelink' => esc_html__('&rarr;', 'sparta'),
                    'previouspagelink' => esc_html__('&larr;', 'sparta'),
                )
            ); ?>
            <?php if (has_tag()): ?>
                <div class="post-footer-tag">
                    <div class="heading"><?php echo esc_html__('Tags', 'sparta'); ?></div>
                    <?php the_tags('', ' ', '<br />'); ?>
                </div>
            <?php endif; ?>

        </div>
    </div>

    <div class="col-lg-4">
        <div class="vk-room-details-content-right">
            <?php
            do_action('sparta_single_room_type_content_right');
            ?>
        </div>
    </div>
    <?php
    if (comments_open() || get_comments_number()) :
        echo '<div class="vk-blog-comment col-md-12">';
        comments_template();
        echo '</div>';
    endif; ?>

    <?php sparta_get_related_room(get_the_ID()); ?>

</div>
                                
                               