Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- You can start editing here. -->
- <div id="commentpost">
- <?php if ( have_comments() ) : ?>
- <h4 id="comments"><?php comments_number('Пока комментариев нет. Напишем?', 'Есть 1 комментарий', 'Есть % комментариев'); ?> к “<?php the_title(); ?>”</h4>
- <?php if ( ! empty($comments_by_type['comment']) ) : ?>
- <div id="post-navigator-single">
- <div class="alignleft"><?php previous_comments_link() ?></div>
- <div class="alignright"><?php next_comments_link() ?></div>
- </div>
- <ol class="commentlist">
- <?php wp_list_comments('type=comment&callback=user_comment'); ?>
- </ol>
- <div id="post-navigator-single">
- <div class="alignleft"><?php previous_comments_link() ?></div>
- <div class="alignright"><?php next_comments_link() ?></div>
- </div>
- <?php endif; ?>
- <?php else : // this is displayed if there are no comments so far ?>
- <?php if ( 'open' == $post->comment_status ) : ?>
- <!-- If comments are open, but there are no comments. -->
- <h4 id="comments">Пока комментариев нет. Напишем?</h4>
- <?php else : // comments are closed ?>
- <!-- If comments are closed. -->
- <h2 id="post-header">Комментарии закрыты.</h2>
- <?php endif; ?>
- <?php endif; ?>
- <?php if ( 'open' == $post->comment_status ) : ?>
- <div id="respond">
- <h4><?php comment_form_title( 'Оставить комментарий', 'Написать ответ %s' ); ?></h4>
- <div class="cancel-comment-reply">
- <?php cancel_comment_reply_link('Отмена'); ?>
- </div>
- <form action="/wp-comments-post.php" method="post" id="cf">
- <?php if ( $user_ID ) : ?>
- <p>Вы вошли как: <a href="/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Выйти из аккаунта">Выход »</a></p>
- <?php else : ?>
- <p>
- <label for="author"><small>Ваше имя <?php if ($req) echo "(обязательно)"; ?></small></label><br />
- <input type="text" class="tf" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
- </p>
- <p>
- <label for="email"><small>Ваша почта <?php if ($req) echo "(обязательно)"; ?></small></label><br />
- <input type="email" class="tf" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
- </p>
- <?php endif; ?>
- <textarea name="comment" id="comment" cols="50%" rows="8" class="af" tabindex="3"></textarea>
- <div>
- <input name="submit" type="submit" class="st" value="Отправить" id="submit" alt="Отправить свой комментарий" tabindex="4" />
- </div>
- <?php comment_id_fields(); ?>
- <?php do_action('comment_form', $post->ID); ?>
- </form>
- </div>
- <?php endif; // if you delete this the sky will fall on your head ?>
- </div>
Add Comment
Please, Sign In to add comment