-
Notifications
You must be signed in to change notification settings - Fork 21
/
content.php
executable file
·31 lines (30 loc) · 977 Bytes
/
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
<?php
/**
* Main Template of Tinection WordPress Theme
*
* @package Tinection
* @version 1.1.2
* @date 2014.12.27
* @author Zhiyan <[email protected]>
* @site Zhiyanblog <www.zhiyanblog.com>
* @copyright Copyright (c) 2014-2015, Zhiyan
* @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later
* @link http://www.zhiyanblog.com/tinection.html
**/
?>
<?php get_template_part('includes/thumbnail'); ?>
<?php if(!is_search()): ?>
<div class="home-blog-entry-text clr">
<h3>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
</h3>
<!-- Post meta -->
<?php tin_post_meta(); ?>
<!-- /.Post meta -->
<p>
<?php if(ot_get_option('content_or_excerpt')=='content'){the_content();}
else{$contents = get_the_excerpt(); $excerpt = wp_trim_words($contents,ot_get_option('excerpt-length'),''); echo $excerpt.' '.new_excerpt_more('...');}
?>
</p>
</div>
<?php endif; ?>