forked from RRZE-Webteam/Design-RRZE-Techfak2013
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
91 lines (72 loc) · 1.83 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
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
<?php
get_header();
global $options;
if (is_active_sidebar('inhaltsinfo-area')) {
dynamic_sidebar('inhaltsinfo-area');
}
?>
<?php
if (have_posts())
while (have_posts()) : the_post();
$custom_fields = get_post_custom();
?>
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<div class="post-entry">
<?php
if (has_post_thumbnail() && (!has_post_format('gallery'))) {
the_post_thumbnail();
}
the_content();
?>
</div>
<?php wp_link_pages(); ?>
<div class="post-meta"><p>
<?php
tf2013_post_pubdateinfo();
if ($options['aktiv-autoren'])
tf2013_post_autorinfo();
tf2013_post_taxonominfo();
?>
</p>
</div>
<div><?php edit_post_link(__('Bearbeiten', 'tf2013'), '', ''); ?></div>
</div>
<div class="post-nav">
<ul>
<?php
previous_post_link('<li class="back">◀ %link</li>', '%title');
next_post_link('<li class="forward">%link ▶</li>', '%title');
?>
</ul>
</div>
<hr>
<div class="post-comments" id="comments">
<?php comments_template('', true); ?>
</div>
<div class="post-nav">
<?php if (has_filter('related_posts_by_category')) { ?>
<h3><?php _e("Weitere Artikel in diesem Themenkreis:", 'tf2013'); ?></h3>
<ul class="related">
<?php
do_action(
'related_posts_by_category', array(
'orderby' => 'post_date',
'order' => 'DESC',
'limit' => 5,
'echo' => true,
'before' => '<li>',
'inside' => '',
'outside' => '',
'after' => '</li>',
'rel' => 'follow',
'type' => 'post',
'image' => array(1, 1),
'message' => 'Keine Treffer'
)
)
?>
</ul>
<?php } ?>
</div>
<?php endwhile; // end of the loop. ?>
<?php get_footer(); ?>