/
content-masonry-audio.php
73 lines (61 loc) · 1.79 KB
/
content-masonry-audio.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
71
72
73
<?php
/**
* Template part for displaying posts.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package King_News
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'posts-list__item card' ); ?>>
<div class="post-list__item-content">
<header class="entry-header">
<?php king_news_meta_categories( 'loop' ); ?>
<?php
if ( is_single() ) {
the_title( '<h2 class="entry-title">', '</h2>' );
} else {
the_title( '<h5 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h5>' );
}
?>
<?php do_action( 'cherry_post_format_audio' ); ?>
</header><!-- .entry-header -->
<div class="entry-meta-sharing">
<!-- <div class="entry-content">
<?php king_news_blog_content(); ?>
</div>.entry-content -->
<?php if ( 'post' === get_post_type() ) : ?>
<div class="entry-meta">
<?php
king_news_meta_author(
'loop',
array(
'before' => esc_html__( 'By', 'king_news' ) . ' ',
)
);
?>
<?php
king_news_meta_date( 'loop', array(
'before' => '<i class="material-icons">event</i>',
) );
king_news_meta_comments( 'loop', array(
'before' => '<i class="material-icons">mode_comment</i>',
'zero' => esc_html__( 'Leave a comment', 'king_news' ),
'one' => '1',
'plural' => '%',
) );
king_news_meta_tags( 'loop', array(
'before' => '<i class="material-icons">folder_open</i>',
'separator' => ', ',
) );
?>
</div><!-- .entry-meta -->
<?php king_news_share_buttons( 'loop' ); ?>
</div><!-- .entry-meta-sharing -->
<?php endif; ?>
</div>
<footer class="entry-footer">
<?php king_news_share_buttons( 'loop' ); ?>
<?php king_news_read_more(); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->