-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.php
More file actions
48 lines (40 loc) · 1.16 KB
/
content.php
File metadata and controls
48 lines (40 loc) · 1.16 KB
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
<?php
/**
* The template used for displaying post content in index.php
*
* @package Tiga
* @author Satrya
* @license license.txt
* @since 0.0.1
*
*/
?>
<?php
$class = of_get_option( 'tiga_home_layouts' );
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( "$class clearfix" ); ?>>
<header>
<h2 class="entry-title">
<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'tiga' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
</h2>
</header>
<?php if(has_post_thumbnail()) { ?>
<figure class="entry-thumbnail">
<a href="<?php the_permalink(); ?>">
<?php
$thumb_size = '';
if ( $class == 'two-cols' )
$thumb_size = 'tiga-300px';
else
$thumb_size = 'tiga-140px';
the_post_thumbnail( $thumb_size, array( 'class' => 'photo thumbnail', 'alt' => get_the_title(), 'title' => get_the_title() ) ); ?>
</a>
</figure>
<?php } ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div>
<div class="entry-meta">
<?php tiga_posted_on(); ?>
</div>
</article><!-- end #article-<?php the_ID(); ?> -->