forked from kre8tiv/Joseph-knows-best
-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-person-team.php
26 lines (18 loc) · 1.16 KB
/
content-person-team.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
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
<?php if ( has_post_thumbnail() ): ?>
<?php the_post_thumbnail('thumbnail'); ?>
<?php endif; ?>
<?php
$amt = get_post_meta( $post->ID, 'kr8mb_pers_pos_amt', true );
$email = get_post_meta( $post->ID, 'kr8mb_pers_contact_email', true );
$telefon = get_post_meta( $post->ID, 'kr8mb_pers_contact_telefon', true );
?>
<header class="article-header">
<h3><?php the_title(); ?></h3>
</header>
<section class="entry-content">
<?php if (! empty ($amt )){ ?><p class="funktion"><?php echo $amt; ?></p><?php } ?>
<?php if (! empty ($email )){ ?><p><i class="fa fa-envelope-o"></i> <a href="mailto:<?php echo $email; ?>" title="Schreibe <?php the_title(); ?> eine E-Mail"><?php echo $email; ?></a></p><?php } ?>
<?php if (! empty ($telefon )){ ?><p><i class="fa fa-phone"></i> <?php echo $telefon; ?></p><?php } ?>
</section>
</article>