-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
54 lines (47 loc) · 2.04 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
52
53
54
<?php
/**
* The main template file.
*
* This is the most generic template file in a WordPress theme and one of the
* two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* For example, it puts together the home page when no home.php file exists.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Wp_Bootstrap
* @since Wp Bootstrap 1.0
*/
// Gets header.php
get_header();
?>
<div class="container-fluid tkContent">
<div class="container tkWhite">
<div class="row well">
<div class="col-lg-8 col-xs-12 col-sm-12 col-md-8 well">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
<strong>Written by:</strong> <?php the_author_link(); ?> | <strong>Date:</strong> <?php the_time('l, F jS, Y'); ?>
<?php edit_post_link(); ?><br />
<strong>Categories:</strong> <?php the_category(' • '); ?><br />
<?php the_tags('<strong>Tags:</strong> ',' • ',''); ?>
<hr>
<div class="tkWhite">
<?php the_content(); ?>
</div>
<hr class="clearBoth">
<?php comments_template(); ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, this page does not exist.'); ?></p>
<?php endif; ?>
<p><?php if(function_exists('pagenavi')) { pagenavi(); } ?></p>
</div> <!-- well -->
<div class="col-lg-4 col-xs-12 col-sm-12 col-md-4"><?php get_sidebar(); ?> </div>
</div> <!-- row -->
</div> <!-- tkWhite -->
</div>
<?php
// Gets footer.php
get_footer();
?>