forked from Codeinwp/fara
-
Notifications
You must be signed in to change notification settings - Fork 0
/
content.php
44 lines (39 loc) · 1.16 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
<?php
/**
* @package Fara
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('item-sizer'); ?>>
<div class="post-inner clearfix">
<?php if ( has_post_thumbnail() ) : ?>
<div class="entry-thumb">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" >
<?php the_post_thumbnail('fara-entry-thumb'); ?>
</a>
</div>
<?php endif; ?>
<div class="post-content clearfix">
<?php if ( 'post' == get_post_type() ) : ?>
<div class="post-meta col-md-3 col-sm-3 col-xs-12">
<?php fara_posted_on(); ?>
</div><!-- .entry-meta -->
<?php endif; ?>
<div class="content-inner col-md-9 col-sm-9 col-xs-12">
<header class="entry-header">
<?php the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php
the_excerpt();
?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'fara' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
</div>
</div>
</div>
</article><!-- #post-## -->