-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
29 lines (26 loc) · 812 Bytes
/
Copy pathsingle.php
File metadata and controls
29 lines (26 loc) · 812 Bytes
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
<?php get_header(); ?>
<div class="single-post">
<div class="container">
<div class="row">
<div class="col-xs-12 col-md-9 col-md-push-3 content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php if ( has_post_thumbnail() ) { ?>
<?php $attr = array('class' => 'img-responsive');?>
<div class='post-featured-image'>
<?php the_post_thumbnail( 'full', $attr ); ?>
</div>
<?php } ?>
<h1><?php the_title(); ?></h1>
<p class="by-line">
<?php the_time('j F Y') ?> by <?php the_author() ?>
</p>
<?php the_content(); ?>
<?php endwhile; endif; ?>
</div>
<div class="col-xs-12 col-md-3 col-md-pull-9 sidebar">
<?php get_sidebar(); ?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>