forked from AlxMedia/motioner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent.php
50 lines (44 loc) · 2.13 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
<?php $format = get_post_format(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="article-type-list group">
<?php if ( has_post_thumbnail() ) : ?>
<div class="type-list-left">
<a class="type-list-thumbnail" href="<?php the_permalink(); ?>">
<div class="image-container">
<?php the_post_thumbnail('motioner-small'); ?>
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fas fa-play"></i></span>'; ?>
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fas fa-volume-up"></i></span>'; ?>
<?php if ( is_sticky() ) echo'<span class="thumb-icon"><i class="fas fa-star"></i></span>'; ?>
</div>
</a>
</div>
<?php endif; ?>
<div class="type-list-center <?php if ( !has_post_thumbnail() ) : ?>no-thumb<?php endif; ?>">
<div class="type-list-content">
<h2 class="type-list-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php if (get_theme_mod('excerpt-length','26') != '0'): ?>
<div class="type-list-excerpt">
<?php the_excerpt(); ?>
</div>
<?php endif; ?>
</div>
</div>
<div class="type-list-right">
<div class="type-list-date"><?php the_time( get_option('date_format') ); ?></div>
<div class="type-list-category">
<?php esc_html_e('By','motioner'); ?> <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
<?php the_author_meta('display_name'); ?>
</a>
</div>
<div class="type-list-category">
<span class="dashicons dashicons-open-folder"></span>
<?php the_category(' / '); ?>
</div>
<div class="type-list-category"><?php echo do_shortcode( '[post-views]' ); ?></div>
<?php if ( comments_open() && ( get_theme_mod( 'comment-count', 'on' ) == 'on' ) ): ?>
<a class="post-comments" href="<?php comments_link(); ?>"><span><?php comments_number( '0', '1', '%' ); ?></span></a>
<?php endif; ?>
<a class="more-link" href="<?php the_permalink(); ?>"><?php esc_html_e('More','motioner'); ?></a>
</div>
</div>
</article><!--/.post-->