-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
68 lines (47 loc) · 1.41 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
/**
* The theme's single file use for displaying single posts.
*
* @since 1.0.0
* @package Love_From_Louie
*/
// Don't load directly
if ( ! defined( 'ABSPATH' ) ) {
die;
}
// Load any post-type specific hooks, if they exist
locate_template( '/includes/hooks/' . get_post_type() . '-hooks.php', true, true );
get_header();
the_post();
?>
<div class="row">
<article id="page-<?php the_ID(); ?>" <?php post_class( array(
'columns',
'small-12',
is_active_sidebar( 'sidebar-main' ) ? 'medium-9': 'no-sidebar',
) ); ?>>
<?php if ( has_post_thumbnail() ) : ?>
<div class="thumbnail alignleft">
<?php the_post_thumbnail( 'medium' ); ?>
</div>
<?php endif; ?>
<h1 class="page-title">
<?php the_title(); ?>
</h1>
<p>
<span class="timestamp"><span class="fa fa-clock-o"></span> <?php the_date(); ?></span>
</p>
<?php the_content(); ?>
</article>
<?php if ( is_active_sidebar( 'sidebar-main' ) ) : ?>
<div class="small-12 medium-3 columns">
<?php dynamic_sidebar( 'sidebar-main' ); ?>
</div>
<?php endif; ?>
<?php if ( comments_open() ) : ?>
<div class="columns small-12">
<?php comments_template(); ?>
</div>
<?php endif; ?>
</div>
<?php get_footer();