-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomments.php
More file actions
39 lines (22 loc) · 799 Bytes
/
Copy pathcomments.php
File metadata and controls
39 lines (22 loc) · 799 Bytes
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
<?php if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) die(); ?>
<?php if (post_password_required()) {
echo '<p>Dieser Beitrag ist passwortgeschützt.</p>';
return;
} ?>
<div id="comments">
<h3>Kommentare</h3>
<?php if ($comments) : ?>
<?php wp_list_comments(array('callback' => 'theme_comment')); ?>
<?php else : ?>
<p>Noch keine Kommentare oder Backlinks.</p>
<?php endif; ?>
<p class="center"><?php comments_rss_link('RSS-Feed zu diesem Beitrag'); ?></p>
<?php if (comments_open()) : ?>
<fieldset id="kommentarformular">
<?php comment_form(); ?>
</fieldset>
<?php endif; ?>
<?php if (!comments_open()) {
echo '<p>Kommentare sind für diesen Beitrag geschlossen.</p>';
} ?>
</div>