-
Notifications
You must be signed in to change notification settings - Fork 1
/
single.php
66 lines (53 loc) · 1.96 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
<?php get_header(); ?>
<div id="primary" class="row-fluid sidebarPage">
<div id="sidebar" role="sidebar" class="sidebarLeft">
<?php if (is_active_sidebar('sidebar-custom-header')) : ?>
<?php dynamic_sidebar('sidebar-custom-header'); ?>
<?php endif; ?>
</div>
<div id="content" role="main" class="sidebarRight">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<article class="post">
<h1 class="title"><?php the_title(); ?></h1>
<div class="post-meta">
<div class="post-meta-left">
<?php the_time('j. F Y'); ?>
<?php if (comments_open()) : ?>
<span class="comments-link">
| <?php comments_popup_link(__('Jetzt kommentieren!', 'slrg-sss-nautilus'), __('1 Kommentar', 'slrg-sss-nautilus'), __('% Kommentare', 'slrg-sss-nautilus'));
?>
</span>
<?php endif; ?>
</div>
<div class="post-meta-right">
<div class="category"><h5>
<?php
$anzahl = get_the_category();
if (count($anzahl) == 1) {
echo(esc_html_e('Kategorie', 'slrg-sss-nautilus'));
} else {
echo(esc_html_e('Kategorien', 'slrg-sss-nautilus'));
}
?>:</h5><?php echo get_the_category_list(); ?>
</div>
</div>
</div>
<div class="the-content">
<?php the_content(); ?>
<?php wp_link_pages(); ?>
</div>
</article>
<?php endwhile; ?>
<?php
if (comments_open() || '0' != get_comments_number())
comments_template('', true);
?>
<?php else : ?>
<article class="post error">
<h1 class="404"><?php esc_html_e('Keine Mitteilung vorhanden', 'slrg-sss-nautilus'); ?></h1>
</article>
<?php endif; ?>
</div>
</div>
<?php get_footer(); ?>