-
Notifications
You must be signed in to change notification settings - Fork 1
/
single.php
44 lines (28 loc) · 1.03 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
<?php get_header(); ?>
<div class="site-content">
<?php if ( have_posts() ) : ?>
<div class="row">
<div class="columns medium-8 medium-centered">
<?php while( have_posts() ) : the_post(); ?>
<article <?php post_class(); ?>>
<header class="page-header">
<?php $post_type_object = get_post_type_object( get_post_type() ); ?>
<h5><a href="<?php echo esc_url( get_post_type_archive_link( get_post_type() ) ); ?>">Blog</a> - <?php echo esc_html( $post_type_object->description ); ?></h5>
<h2><?php the_title(); ?><?php edit_post_link( ' <small><i class="fa fa-pencil"></i></small>' ); ?></h2>
</header>
<div class="page-content">
<?php the_content(); ?>
<?php if ( get_comments_number() ) {
comments_template();
} ?>
</div>
</article>
<?php endwhile; ?>
</div>
</div>
<?php endif; ?>
<?php if ( ! is_home() ) : ?>
<?php echo Hand_Built::get_template_part( 'branded-intro' ); ?>
<?php endif; ?>
</div>
<?php get_footer(); ?>