This repository has been archived by the owner on Jul 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-people.php
44 lines (40 loc) · 1.67 KB
/
content-people.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
/**
* The template for displaying archive pages.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package tsatu
*/
// Exit if accessed directly
if (!defined('ABSPATH')) {
exit;
}
?>
<!-- People -->
<div class="col-md-6">
<article <?php post_class(); ?>>
<div class="row">
<div class="col-md-4 entry-image <?php echo get_post_format(); ?>">
<a href="<?php echo get_permalink(); ?>">
<?php //echo get_the_post_thumbnail(get_the_ID(), 'tsatu-single', array('class' => "img-responsive")); ?>
<?php if ( has_post_thumbnail() ) {
echo get_the_post_thumbnail(get_the_ID(), 'full', array('class' => "img-responsive"));
} else { ?>
<img class="img-responsive wp-post-image" src="<?php echo get_template_directory_uri() ?>/assets/img/nophoto.jpg" />
<?php } ?>
</a>
</div>
<div class="col-md-8">
<header>
<div class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></div>
</header>
<div class="entry-summary">
<?php echo the_terms_list( get_the_ID(), 'people_position' ); ?>
<?php echo the_terms_list( get_the_ID(), 'people_degree' ); ?>
<a href="mailto:<?php echo esc_attr( get_post_meta( get_the_ID(), 'people_email', true ) ); ?>"><?php echo esc_attr( get_post_meta( get_the_ID(), 'faculty_email', true ) ); ?></a>
</div>
</div>
</div>
</article>
</div>