/
single-room.php
32 lines (27 loc) · 960 Bytes
/
single-room.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/**
* The template for displaying all pages.
*/
get_header(); ?>
<?php do_action( 'sp_start_content_wrap_html' ); ?>
<div id="main" class="main">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php echo sp_post_type_sub_nav('room'); ?>
<?php echo sp_sliders( 1, $post->ID, 'post-slider' ); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
</header>
<div class="entry-content">
<?php the_content(); ?>
</div><!-- .entry-content -->
<?php if ( ot_get_option('social_share') != 'off' ) { get_template_part('library/contents/social-share'); } ?>
</article><!-- #post -->
<?php endwhile;
else :
get_template_part('library/contents/error404');
endif; ?>
</div><!-- #main -->
<?php get_sidebar();?>
<?php do_action( 'sp_end_content_wrap_html' ); ?>
<?php get_footer(); ?>