forked from themejack/briar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.php
More file actions
40 lines (36 loc) · 1.06 KB
/
Copy pathcontent.php
File metadata and controls
40 lines (36 loc) · 1.06 KB
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
<?php
/**
* The default template for displaying content
*
* Used for both single and index/archive/search.
*
* @package Briar
* @since 1.0
*/
if ( ! is_singular() ) : ?>
<div class="row">
<?php endif; ?>
<div <?php post_class( array( 'post-item', 'clearfix' ) ); ?>>
<?php
if ( ! is_singular() ) :
briar_post_thumbnail();
?>
<div class="<?php if ( has_post_thumbnail() ) : ?>col-sm-8<?php else : ?>col-sm-12<?php endif; ?>">
<?php endif;
if ( is_singular() ) {
if ( ! has_post_thumbnail() ) {
the_title( '<h1 class="post-item__title">', '</h1>' );
}
} else {
the_title( sprintf( '<h3 class="post-item__title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h3>' );
}
briar_post_content();
if ( ! is_singular() ) :
edit_post_link( sprintf( __( 'Edit%s', 'briar' ), '<span class="screen-reader-text"> ' . get_the_title() . '</span>' ), '<span class="edit-link">', '</span>' );
?>
</div><!-- /.col -->
<?php endif; ?>
</div><!-- /.post-item -->
<?php if ( ! is_singular() ) : ?>
</div><!-- /.row -->
<?php endif;