-
Notifications
You must be signed in to change notification settings - Fork 0
/
content.php
42 lines (36 loc) · 1.19 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
<?php
/**
* Archive content
*
* @package Flacso
*/
?>
<?php $post_type = get_post_type(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'media' ); ?>>
<div class="entry-image pull-left">
<a href="<?php the_permalink(); ?>">
<?php if ( has_post_thumbnail() ) : ?>
<?php the_post_thumbnail( 'thumbnail' ); ?>
<?php endif; ?>
</a>
</div><!-- .entry-image -->
<div class="media-body">
<header class="entry-header">
<div class="entry-meta">
<?php
flacso_the_terms('category', '', true, true );
?>
</div><!-- .entry-meta -->
<?php the_title( sprintf( '<h1 class="entry-title media-heading"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
<?php if ( 'post' == $post_type ) : ?>
<div class="entry-meta">
<?php flacso_posted_on(); ?>
</div><!-- .entry-meta -->
<?php endif; ?>
</header><!-- .entry-header -->
<div class="entry-content entry-content--summary">
<?php the_excerpt(); ?>
</div><!-- .entry-content -->
</div><!-- .media-body -->
<a href="<?php the_permalink(); ?>" class="read-more pull-right"><?php _e( 'Read more', 'flacso' ); ?><span class="more-sign">+</span></a>
</article><!-- #post-## -->