Repository navigation
Expand file tree
/
Copy pathcontent-single.php
More file actions
69 lines (51 loc) · 3.23 KB
/
Copy pathcontent-single.php
File metadata and controls
69 lines (51 loc) · 3.23 KB
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
<?php if ( has_post_thumbnail() ): ?>
<a href="<?php the_permalink(); ?>" class="postimg"><?php the_post_thumbnail('titelbild'); ?></a>
<?php
$imgexc = get_post(get_post_thumbnail_id())->post_excerpt;
if ($imgexc != "") {
?><p class="caption"><?php echo $imgexc;?></p><?php
}
?>
<?php endif; ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
<header class="article-header">
<h1 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
<p class="byline">Veröffentlicht am <time class="updated" datetime="<?php echo the_time('c'); ?>"><?php the_time('j. F Y')?> um <?php the_time('H:i')?> Uhr.</time></p>
</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; ?>
<footer class="article-footer">
<p class="categories"><span class"cats-title">Kategorien:</span> <?php the_category(', '); ?></p>
<p class="tags"><?php the_tags('<span class="tags-title">' . __('Schlagworte:', '') . '</span> ', ', ', ''); ?></p>
</footer>
<!-- 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; ?>
</article>
<div class="sharewrap">
<p class="calltoshare">
<a href="https://twitter.com/intent/tweet?text=<?php the_title(); ?>&url=<?php the_permalink() ?>" class="twitter" title="Artikel twittern">Twitter</a>
<a href="whatsapp://send?abid=256&text=Schau%20Dir%20das%20mal%20an%3A%20<?php the_permalink(); ?>" class="whatsapp" title="Per WhatsApp verschicken">WhatsApp</a>
<a href="http://www.facebook.com/sharer/sharer.php?u=<?php the_permalink() ?>" class="facebook" title="Auf Facebook teilen">Facebook</a>
<a href="https://plus.google.com/share?url=<?php the_permalink() ?>" class="google">Google+</a>
<a href="mailto:?subject=Das musst Du lesen: <?php echo rawurlencode(get_the_title()); ?>&body=Hey, schau Dir das mal den Artikel auf <?php bloginfo('name'); ?> an: <?php the_permalink(); ?>" title="Per E-Mail weiterleiten" class="email">E-Mail</a>
</p>
</div>