-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
51 lines (44 loc) · 1.46 KB
/
single.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
if(in_category(7) || get_post_type() == 'easy-rooms') {
get_header('property');
include 'single-property.php';
get_footer();
} else {
?>
<div class="clearfix"><?php
get_header();
?></div>
<div class="clearfix container-fluid"><article class="col-xs-12 " id="content" role="main">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="fa fa-thumb-tack"> <?php the_title(); ?></h2>
</div>
<div class="panel-body"><?php echo get_the_post_thumbnail() ?></div>
<div class="panel-footer">
<?php the_content('<p>Read the rest of this entry »</p>'); ?>
<?php the_tags( '<p>Tags: ', ', ', '</p>'); ?>
</div>
</div>
<div class="clearfix">
<div class="col-xs-6 col-sm-6">
<i class="fa fa-arrow-left"> Previous Entry</i>
<p>
<?php previous_post_link( '%link' ); ?>
</p>
</div>
<div class="col-xs-6 col-sm-6 text-right">
Next Entry <i class="fa fa-arrow-right"></i>
<p>
<?php next_post_link( '%link'); ?>
</p>
</div>
</div>
</article>
<aside class="col-xs-12 col-sm-4 col-sm-offset-1" style="padding-top: 1em;">
<?php get_sidebar(); ?>
</aside></div>
<?php endwhile; else: ?>
<?php endif; ?>
<div class="clearfix"><?php get_footer(); ?>
</div><?php } ?>