forked from kre8tiv/Joseph-knows-best
-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-single.php
134 lines (82 loc) · 4.06 KB
/
content-single.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<?php if ( !has_post_format( )) { ?>
<?php if ( has_post_thumbnail() ) {
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );
$url = $thumb['0']; ?>
<div class="introbg parallax" style="background-image:url(<?php echo $url ?>);"></div>
<div id="single-intro" class="parallax" style="background-image:url(<?php echo $url ?>);"></div>
<?php } else { ?>
<?php } ?>
<?php } ?>
<div id="main" class="ninecol first clearfix" role="main">
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix postsingle'); ?> role="article">
<?php if ( has_post_format( 'status' )) { ?>
<?php if ( has_post_thumbnail() ): ?>
<div class="postimg">
<span class="clearfix"><?php the_post_thumbnail('titelbild'); ?> </span>
<?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><br>
<?php endif; ?>
<?php } ?>
<?php if ( has_post_thumbnail() ): ?>
<div class="postimg">
<?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">
<?php $posttags = get_the_tags();
$count=0;
if ($posttags) {
?><p class="subhead"><?php
foreach($posttags as $tag) {
$count++;
if (1 == $count) {
echo '' .$tag->name. ' ';
} }
?></p><?php
}?>
<h1><?php the_title(); ?></h1>
</header>
<?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
<section class="entry-content clearfix">
<?php the_excerpt(); ?>
</section>
<?php else : ?>
<section class="entry-content clearfix">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Seiten:', 'kr8' ), 'after' => '</div>' ) ); ?>
</section>
<?php endif; ?>
<!-- Autor -->
<?php if ( get_post_format() ) : ?>
<?php else: ?>
<?php if ( get_the_author_meta( 'description' ) ) : ?>
<div class="author cleafix">
<?php echo get_avatar( get_the_author_meta( 'ID' ), 80 ); ?>
<div class="author-description">
<h3><?php the_author_posts_link(); ?></h3>
<p><?php the_author_meta( 'description' ); ?></p>
</div>
</div>
<?php endif; ?>
<?php endif; ?>
<footer>
<p class="byline">Veröffentlicht am <time class="updated" datetime="<?php echo the_time('c'); ?>"><?php the_time('j. F Y')?>.</time></p>
</footer>
<?php if (function_exists('kr8_socialshare')) { ?>
<?php kr8_socialshare(); ?>
<?php } ?>
</article>
<?php comments_template( '', true ); ?>
</div>