-
Notifications
You must be signed in to change notification settings - Fork 14
/
content-single-termine.php
52 lines (33 loc) · 2.49 KB
/
content-single-termine.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
<?php if ( has_post_thumbnail() ): ?>
<?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );
$url = $thumb['0']; ?>
<a href="<?php echo $url ?>" class="postimg fancybox"><?php the_post_thumbnail('titelbild'); ?></a>
<?php $imgexc = get_post(get_post_thumbnail_id())->post_excerpt;
if ($imgexc != "") { ?>
<p class="caption"><span><i class="fas fa-image"></i> <?php echo $imgexc;?></span></p>
<?php } ?>
<?php endif; ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
<header class="article-header">
<h1 class="h2"><?php the_title(); ?></h1>
<?php $amt = get_post_meta( $post->ID, 'kr8mb_pers_pos_amt', true );
if (! empty ($amt )){ ?><h2 class="h3"><?php echo $amt; ?></h2><?php } ?>
</header>
<section class="entry-content clearfix">
<div class="socialprofile">
<?php $www = get_post_meta( $post->ID, 'kr8mb_pers_contact_www', true );
if (! empty ($www )){ ?><a href="<?php echo $www; ?>"><span class="fas fa-globe-americas"></span></a><?php } ?>
<?php $email = get_post_meta( $post->ID, 'kr8mb_pers_contact_email', true );
if (! empty ($email )){ ?><a href="mailto:<?php echo $email; ?>"><span class="fas fa-envelope"></span></a><?php } ?>
<?php $facebook = get_post_meta( $post->ID, 'kr8mb_pers_contact_facebook', true );
if (! empty ($facebook )){ ?><a href="<?php echo $facebook; ?>"><span class="fab fa-facebook"></span></a><?php } ?>
<?php $twitter = get_post_meta( $post->ID, 'kr8mb_pers_contact_twitter', true );
if (! empty ($twitter )){ ?><a href="https://twitter.com/<?php echo $twitter; ?>"><span class="fab fa-twitter"></span></a><?php } ?>
</div>
<?php $excerpt = get_post_meta( $post->ID, 'kr8mb_pers_excerpt', true );
if (! empty ($excerpt )){ ?><p class="intro"><?php echo $excerpt; ?></p><?php } ?>
<?php the_content(); ?>
<?php $anschrift = get_post_meta( $post->ID, 'kr8mb_pers_contact_anschrift', true );
if (! empty ($anschrift )){ ?><div class="anschrift"><?php echo wpautop( $anschrift, $br = 1 ); ?></div><?php } ?>
</section>
</article>