-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent.php
70 lines (60 loc) · 1.89 KB
/
content.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
69
70
<?php
/**
* The template for displaying standard blog content.
*
* @package Listify
*/
?>
<?php if ( listify_has_integration( 'woocommerce' ) ) : ?>
<?php wc_print_notices(); ?>
<?php endif; ?>
<?php
if ( '' == get_the_content() ) {
return;
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( ! is_singular( 'page' ) ) : ?>
<header <?php echo apply_filters( 'listify_cover', 'entry-header entry-cover' ); ?>>
<div class="cover-wrapper">
<h1 class="entry-title entry-title--in-cover"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
</div>
</header><!-- .entry-header -->
<?php endif; ?>
<div class="content-box-inner">
<?php if ( ! is_singular( 'page' ) ) : ?>
<div class="entry-meta">
<span class="entry-author">
<?php echo get_avatar( get_the_author_meta( 'ID' ), 50 ); ?>
<?php the_author_posts_link(); ?>
</span>
<span class="entry-date">
<?php echo get_the_date(); ?>
</span>
<?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
<span class="entry-comments">
<?php comments_popup_link( __( '0 Comments', 'listify' ), __( '1 Comment', 'listify' ), __( '% Comments', 'listify' ) ); ?>
</span>
<?php endif; ?>
<span class="entry-share">
<?php do_action( 'listify_share_object' ); ?>
</span>
</div>
<?php endif; ?>
<?php if ( is_singular() ) : ?>
<div class="entry-content">
<?php the_content(); ?>
</div>
<?php else : ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php endif; ?>
<?php wp_link_pages(); ?>
<?php if ( ! is_singular() ) : ?>
<footer class="entry-footer">
<a href="<?php the_permalink(); ?>" class="button button-small"><?php _e( 'Read More', 'listify' ); ?></a>
</footer><!-- .entry-footer -->
<?php endif; ?>
</div>
</article><!-- #post-## -->