-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-publication.php
86 lines (70 loc) · 2.36 KB
/
single-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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
/**
* Single content for Publication post type
*
* @package Flacso
*/
get_header(); ?>
<div class="col-md-9 col-md-push-3">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'row' ); ?>>
<div class="col-md-3">
<div class="entry-image">
<?php
if ( has_post_thumbnail() ) {
the_post_thumbnail( 'publication' );
}
else {
flacso_the_dummy_image( 'publication' );
}
?>
</div><!-- .entry-image -->
<?php echo flacso_the_publication_download_list(); ?>
</div>
<div class="col-md-9">
<header class="entry-header">
<div class="entry-meta entry--general-info">
<?php flacso_the_publication_general_info(); ?>
</div>
<?php the_title( '<h1 class="entry-title media-heading">', '</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: ' );
/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list( '', __( ', ', 'flacso' ) );
if ( $tags_list ) {
printf( '<div class="tags-links">' . __( 'Tags: %1$s', 'flacso' ) . '</div>', $tags_list );
}
?>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'flacso' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
<div class="entry-share">
<?php flacso_entry_share(); ?>
</div><!-- .entry-share -->
</div><!-- .col-md-9 -->
</article><!-- #post-## -->
<?php endwhile; // end of the loop. ?>
</main><!-- #main -->
</div><!-- #primary -->
</div><!-- .col-md-# -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>