joseph-knows-best/content-person-vorstand.php

38 lines
2.1 KiB
PHP

<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 );
$www = get_post_meta( $post->ID, 'kr8mb_pers_contact_www', true );
$facebook = get_post_meta( $post->ID, 'kr8mb_pers_contact_facebook', true );
$twitter = get_post_meta( $post->ID, 'kr8mb_pers_contact_twitter', true );
$shortbio = get_post_meta( $post->ID, 'kr8mb_pers_excerpt', true );
$details = get_post_meta( $post->ID, 'kr8mb_pers_pos_details', true );
?>
<header class="article-header">
<h3><?php the_title(); ?></h3>
</header>
<section class="entry-content">
<?php if (! empty ($shortbio )){ ?><p class="short"><?php echo $shortbio; ?></p><?php } ?>
<p class="contact">
<?php if (! empty ($www )){ ?><a href="<?php echo $www; ?>" title="Zur Website von <?php the_title(); ?>"><i class="fa fa-globe"></i></a><?php } ?>
<?php if (! empty ($facebook )){ ?><a href="<?php echo $facebook; ?>" title="Zum Facebook-Profil von <?php the_title(); ?>"><i class="fa fa-thumbs-o-up"></i></a><?php } ?>
<?php if (! empty ($twitter )){ ?><a href="https://twitter.com/<?php echo $twitter; ?>" title="Zum Twitter-Acccount von <?php the_title(); ?>"><i class="fa fa-twitter"></i></a><?php } ?>
<?php if (! empty ($email )){ ?><a href="mailto:<?php echo $email; ?>" title="Schreibe <?php the_title(); ?> eine E-Mail"><i class="fa fa-envelope-o"></i></a><?php } ?>
</p>
<?php if ( $details == "yes"){ ?><p class="details"><a href="<?php the_permalink(); ?>" title="Mehr Details über <?php the_title(); ?>">Details »</a></p><?php } ?>
</section>
</article>