-
Notifications
You must be signed in to change notification settings - Fork 3
/
single.php
30 lines (25 loc) · 969 Bytes
/
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
<?php
/*-------------------------------------------------
BlankPress - Default Single Template
--------------------------------------------------*/
get_header(); ?>
<section class="container main-content group" role="main">
<div class="content">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'group' ); ?> role="article">
<header>
<h1><?php the_title(); ?></h1>
<?php if(is_user_logged_in()) edit_post_link( __( 'edit', BP_DOMAIN ) ); ?>
</header>
<?php the_post_thumbnail(); ?>
<?php blankpress_post_meta(); ?>
<div class="post-content group"><?php the_content(); ?></div>
<section class="comment-section">
<?php comment_form(); ?>
</section>
</article>
<?php endwhile; endif; ?>
</div>
<?php get_sidebar(); ?>
</section>
<?php get_footer();