/
entry.php
executable file
·35 lines (35 loc) · 2.09 KB
/
entry.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
<?php
global $tb_options;
$tb_blog_show_post_image = (int) isset($tb_options['tb_blog_show_post_image']) ? $tb_options['tb_blog_show_post_image'] : 1;
$tb_blog_show_post_title = (int) isset($tb_options['tb_blog_show_post_title']) ? $tb_options['tb_blog_show_post_title'] : 1;
$tb_blog_show_post_meta = (int) isset($tb_options['tb_blog_show_post_meta']) ? $tb_options['tb_blog_show_post_meta'] : 1;
$tb_blog_show_post_excerpt = (int) isset($tb_options['tb_blog_show_post_excerpt']) ? $tb_options['tb_blog_show_post_excerpt'] : 1;
$tb_blog_post_readmore_text = (int) isset($tb_options['tb_blog_post_readmore_text']) ? $tb_options['tb_blog_post_readmore_text'] : 1;
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="ro-blog-sub-article">
<?php if ( has_post_thumbnail() && $tb_blog_show_post_image ) { ?>
<a href="<?php the_permalink() ?>"><?php the_post_thumbnail('full'); ?></a>
<?php } ?>
<?php if ( $tb_blog_show_post_title ) { ?>
<h5><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h5>
<?php } ?>
<?php if ( $tb_blog_show_post_meta ) { ?>
<div class="ro-blog-meta">
<?php if ( is_sticky() ) { ?>
<span class="publish"><?php _e('<i class="fa fa-thumb-tack"></i> Sticky', 'robusta'); ?></span>
<?php } ?>
<span class="publish"><?php _e('<i class="fa fa-clock-o"></i> ', 'robusta'); echo get_the_date(); ?></span>
<span class="author"><?php _e('<i class="fa fa-user"></i> ', 'robusta'); echo get_the_author(); ?></span>
<span class="categories"><?php the_terms(get_the_ID(), 'category', __('<i class="fa fa-folder-open"></i> ', 'robusta') , ', ' ); ?></span>
<span class="tags"><?php the_tags( __('<i class="fa fa-tags"></i> ', 'robusta'), ', ', '' ); ?> </span>
</div>
<?php } ?>
<?php if ( $tb_blog_show_post_excerpt ) { ?>
<div class="ro-sub-content clearfix"><?php the_excerpt(); ?></div>
<?php } ?>
<?php if ( $tb_blog_post_readmore_text ) { ?>
<a class="ro-btn ro-btn-2" href="<?php the_permalink() ?>"><?php echo esc_html( $tb_blog_post_readmore_text ); ?></a>
<?php } ?>
</div>
</article>