-
Notifications
You must be signed in to change notification settings - Fork 2
/
single.php
43 lines (36 loc) · 1 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
<?php get_header(); ?>
<div id="content" class="hfeed row">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
?>
<div <?php post_class(); ?> role="main">
<div id="openlab-main-content" class="content-wrapper">
<div class="entry-title">
<h1><span class="profile-name"><?php the_title(); ?></span></h1>
</div>
<div class="entry-meta">
<?php
$author_id = get_the_author_meta( 'ID' );
printf(
/* translators: 1. post date, 2. author link */
esc_html__( 'Posted on %1$s by %2$s', 'commons-in-a-box' ),
esc_html( get_the_date( 'F j, Y' ) ),
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
bp_core_get_userlink( get_the_author_meta( 'ID' ) )
);
?>
</div>
<div class="entry-content"><?php the_content(); ?></div>
</div>
</div><!--hentry-->
<?php
if ( ! post_password_required() ) {
comments_template( '', true );
}
endwhile;
endif;
?>
</div><!--#content-->
<?php get_footer(); ?>