-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-publication.php
57 lines (49 loc) · 1.67 KB
/
content-publication.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
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
/**
* Archive content for Publication post type
*
* @package Flacso
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'media' ); ?>>
<?php $post_type = get_post_type(); ?>
<div class="entry-image pull-left">
<a href="<?php the_permalink(); ?>">
<?php
if ( has_post_thumbnail() ) {
the_post_thumbnail( 'publication' );
}
else {
flacso_the_dummy_image( 'publication' );
}
?>
</a>
<?php echo flacso_the_publication_download_list(); ?>
</div><!-- .entry-image -->
<div class="media-body">
<header class="entry-header">
<div class="entry-meta">
<?php flacso_the_publication_general_info(); ?>
</div><!-- .entry-meta -->
<?php the_title( sprintf( '<h1 class="entry-title media-heading"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
<div class="entry-meta">
<?php
// Custom author
$custom_author = get_post_meta( $post->ID, 'custom-author', true );
if ( ! empty ( $custom_author ) ) {
printf( '<div class="custom-author">' . __( 'Author: %1$s', 'flacso' ) . '</div>', $custom_author );
}
// Source
flacso_the_source();
// Higher Education
flacso_the_terms( 'higher-education', 'Categorias: ', true, true );
flacso_the_terms('post_tag', __('Tags: ', 'flacso'), true, true);
?>
</div><!-- .entry-meta -->
</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-## -->