-
Notifications
You must be signed in to change notification settings - Fork 15
/
content-single-gliederung.php
86 lines (35 loc) · 2.66 KB
/
content-single-gliederung.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
<div id="main" class="ninecol first clearfix" role="main">
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
<?php if ( has_post_thumbnail() ): ?>
<div class="postimg">
<a href="<?php echo $url ?>" class="fancybox" title="<?php echo $imgexc;?>"><?php the_post_thumbnail('titelbild'); ?></a>
<?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );
$url = $thumb['0']; ?>
<?php
$imgexc = get_post(get_post_thumbnail_id())->post_excerpt;
if ($imgexc != "") {
?><p class="wp-caption-text"><a href="<?php echo $url ?>" class="fancybox" title="<?php echo $imgexc;?>"><i class="fa fa-picture-o"></i> <?php echo $imgexc;?></a></p><?php
} ?>
</div>
<?php endif; ?>
<header class="article-header">
<h1>
<?php the_title(); ?></h1>
</header>
<section class="entry-content clearfix">
<div class="socialprofile">
<?php $www = get_post_meta( $post->ID, 'kr8mb_gli_contact_www', true );
if (! empty ($www )){ ?><a href="<?php echo $www; ?>"><span class="fa fa-globe"></span></a><?php } ?>
<?php $email = get_post_meta( $post->ID, 'kr8mb_gli_contact_email', true );
if (! empty ($email )){ ?><a href="mailto:<?php echo $email; ?>"><span class="fa fa-envelope"></span></a><?php } ?>
<?php $facebook = get_post_meta( $post->ID, 'kr8mb_gli_contact_facebook', true );
if (! empty ($facebook )){ ?><a href="<?php echo $facebook; ?>"><span class="fa fa-facebook"></span></a><?php } ?>
<?php $twitter = get_post_meta( $post->ID, 'kr8mb_gli_contact_twitter', true );
if (! empty ($twitter )){ ?><a href="https://twitter.com/<?php echo $twitter; ?>"><span class="fa fa-twitter"></span></a><?php } ?>
</div>
<?php $anschrift = get_post_meta( $post->ID, 'kr8mb_gli_contact_anschrift', true );
if (! empty ($anschrift )){ ?><div class="anschrift"><?php echo wpautop( $anschrift, $br = 1 ); ?></div><?php } ?>
<?php the_content(); ?>
</section>
</article>
</div>