-
Notifications
You must be signed in to change notification settings - Fork 1
/
content.php
60 lines (49 loc) · 2.48 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
<div class="item-isotope">
<article id="post-<?php the_ID(); ?>" <?php post_class('pluto-post-box'); ?>>
<div class="post-body">
<?php osetin_top_social_share_index(); ?>
<?php osetin_get_media_content(); ?>
<?php if(os_is_post_element_active('title') || os_is_post_element_active('category') || os_is_post_element_active('excerpt')){ ?>
<div class="post-content-body">
<?php if(os_is_post_element_active('title')): ?>
<h4 class="post-title entry-title"><a href="<?php echo esc_url( get_permalink() ); ?>"><?php the_title(); ?></a></h4>
<?php endif; ?>
<?php if(os_is_post_element_active('category')): ?>
<?php echo get_the_category_list(); ?>
<?php endif; ?>
<?php if(os_is_post_element_active('excerpt')): ?>
<div class="post-content entry-summary"><?php echo os_excerpt(get_field('index_excerpt_length', 'option'), os_is_post_element_active('read_more')); ?></div>
<?php endif; ?>
</div>
<?php } ?>
</div>
<?php if(os_is_post_element_active('date') || os_is_post_element_active('author') || os_is_post_element_active('like')): ?>
<div class="post-meta entry-meta">
<?php if(os_is_post_element_active('date')): ?>
<div class="meta-date">
<i class="fa os-icon-clock-o"></i>
<time class="entry-date updated" datetime="<?php echo get_the_date( 'c' ); ?>"><?php echo get_the_date('M j'); ?></time>
</div>
<?php endif; ?>
<?php if(os_is_post_element_active('view_count')): ?>
<div class="meta-view-count">
<i class="fa os-icon-eye"></i>
<span><?php if(function_exists('echo_tptn_post_count')) echo do_shortcode('[tptn_views]'); ?></span>
</div>
<?php endif; ?>
<?php if(os_is_post_element_active('like') && function_exists('zilla_likes')): ?>
<div class="meta-like">
<?php zilla_likes(); ?>
</div>
<?php endif; ?>
<?php if(os_is_post_element_active('author')): ?>
<div class="meta-author">
<?php if(!is_rtl()) _e('by', 'pluto'); ?>
<strong class="author vcard"><a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) )) ; ?>" class="url fn n" rel="author"><?php echo get_the_author(); ?></a></strong>
<?php if(is_rtl()) _e('by', 'pluto'); ?>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
</article>
</div>