-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
59 lines (59 loc) · 3.18 KB
/
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
<?php get_header(); ?>
<article>
<div class="container">
<div class="row">
<div class="col-md-8">
<div class="content-seite">
<article>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="bild-arti">
<?php
if ( has_post_thumbnail() ) {
the_post_thumbnail();
}
?>
</div>
<div class="titel-art">
<h2><?php the_title(); ?></h2>
</div>
<p class="postmetadata">
<i class="fa fa-user autor"></i><strong> Autor : </strong><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php echo get_the_author_link(); ?></a>
<strong> | </strong>
<i class="fa fa-calendar date"></i></i> <strong>Datum :</strong> <?php echo the_time('j.F.Y'); ?>
<strong> | </strong>
<i class="fa fa-th-list"></i> <strong>Kategorie :</strong> <?php the_category(', ') ?>
</p>
<div class="entry">
<?php the_content(); ?>
</div>
<div class="autorenbox">
<h3><strong>Dieser Autor hat diesen Beitrag verfasst:</strong></h3><br>
<?php echo get_avatar(get_the_author_meta('ID'),
$size = 80,
$default = '',
$alt = 'Dies ist nur ein Gravatar'); ?>
<strong><h4><?php the_author(); ?></h4></strong>
<p><?php the_author_meta('description'); ?></p><br>
<h4><p>Hier gibt es weitere Beiträge des Autors:</p></h4>
<br> <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><button type="button" class="btn btn-default">Weitere Artikel durchlesen.</button></a>
</div>
<div class="kommentare">
<div class="kommentar-bereich">
<?php comments_template(); ?>
</div>
</div>
<?php endwhile; endif; ?>
</article>
</div>
</div>
<div class="col-md-4">
<div class="sidebar">
<aside>
<?php get_sidebar(); ?>
</aside>
</div>
</div>
</div>
</div>
</article>
<?php get_footer(); ?>