0
|
1 |
<div id="comments"> |
|
2 |
<?php if ( post_password_required() ) : ?> |
|
3 |
<p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'pego_tr' ); ?></p> |
|
4 |
</div><!-- #comments --> |
|
5 |
<?php |
|
6 |
return; |
|
7 |
endif; |
|
8 |
?> |
|
9 |
<?php // You can start editing here -- including this comment! ?> |
|
10 |
|
|
11 |
<?php if ( have_comments() ) : ?> |
|
12 |
<h3 id="comments"> |
|
13 |
<?php |
|
14 |
printf( _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'pego_tr' ), |
|
15 |
number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' ); |
|
16 |
?> |
|
17 |
</h3> |
|
18 |
<ol class="commentlist"> |
|
19 |
<?php |
|
20 |
wp_list_comments( array( 'callback' => 'inmotion_comment' ) ); |
|
21 |
?> |
|
22 |
</ol> |
|
23 |
<?php |
|
24 |
/* If there are no comments and comments are closed, let's leave a little note, shall we? |
|
25 |
* But we don't want the note on pages or post types that do not support comments. |
|
26 |
*/ |
|
27 |
elseif ( ! comments_open() && ! is_page() && post_type_supports( get_post_type(), 'comments' ) ) : |
|
28 |
?> |
|
29 |
<p class="nocomments"><?php _e( 'Comments are closed.', 'pego_tr' ); ?></p> |
|
30 |
<?php endif; ?> |
|
31 |
<?php if ('open' == $post->comment_status) : ?> |
|
32 |
|
|
33 |
<div id="respond"> |
|
34 |
|
|
35 |
<h3><?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?></h3> |
|
36 |
|
|
37 |
<div class="cancel-comment-reply"> |
|
38 |
<small><?php cancel_comment_reply_link(); ?></small> |
|
39 |
</div> |
|
40 |
|
|
41 |
<?php if ( get_option('comment_registration') && !$user_ID ) : ?> |
|
42 |
<p><?php _e('You must be','pego_tr'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>"><?php _e('logged in','pego_tr'); ?></a> <?php _e('to post a comment.','pego_tr'); ?></p> |
|
43 |
<?php else : ?> |
|
44 |
|
|
45 |
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> |
|
46 |
<?php if ( $user_ID ) : ?> |
|
47 |
<p><?php _e('Logged in as','pego_tr'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account"><?php _e('Log out','pego_tr'); ?> »</a></p> |
|
48 |
|
|
49 |
<?php else : ?> |
|
50 |
|
|
51 |
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" /> |
|
52 |
<label for="author"><small><?php _e('Name','pego_tr'); ?> <?php if ($req) echo "*"; ?></small></label></p> |
|
53 |
|
|
54 |
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" /> |
|
55 |
<label for="email"><small><?php _e('Mail','pego_tr'); ?> <?php if ($req) echo "*"; ?></small></label></p> |
|
56 |
|
|
57 |
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /> |
|
58 |
<label for="url"><small><?php _e('Website','pego_tr'); ?></small></label></p> |
|
59 |
|
|
60 |
<?php endif; ?> |
|
61 |
<!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>--> |
|
62 |
|
|
63 |
<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p> |
|
64 |
<p id="blog-post-form-allow"> |
|
65 |
<span class="commentsExtra"><?php _e('You may use this','pego_tr'); ?> <abbr title="HyperText Markup Language">HTML</abbr> <?php _e('tags and attributes:','pego_tr'); ?></span><br /> |
|
66 |
<?php echo allowed_tags(); ?> |
|
67 |
</p> |
|
68 |
<p class="comment-it"><input name="submit" type="submit" id="submit" tabindex="5" value="Comment it!" /> |
|
69 |
<?php comment_id_fields(); ?> |
|
70 |
</p> |
|
71 |
<?php do_action('comment_form', $post->ID); ?> |
|
72 |
|
|
73 |
</form> |
|
74 |
|
|
75 |
<?php endif; // If registration required and not logged in ?> |
|
76 |
</div> |
|
77 |
<?php endif; // if you delete this the sky will fall on your head ?> |
|
78 |
</div><!-- #comments --> |