--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/wp/wp-content/themes/IN-MOTION-package-u1/in-motion/comments.php Wed Nov 06 03:21:17 2013 +0000
@@ -0,0 +1,78 @@
+ <div id="comments">
+ <?php if ( post_password_required() ) : ?>
+ <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'pego_tr' ); ?></p>
+ </div><!-- #comments -->
+ <?php
+ return;
+ endif;
+ ?>
+ <?php // You can start editing here -- including this comment! ?>
+
+ <?php if ( have_comments() ) : ?>
+ <h3 id="comments">
+ <?php
+ printf( _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'pego_tr' ),
+ number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
+ ?>
+ </h3>
+ <ol class="commentlist">
+ <?php
+ wp_list_comments( array( 'callback' => 'inmotion_comment' ) );
+ ?>
+ </ol>
+ <?php
+ /* If there are no comments and comments are closed, let's leave a little note, shall we?
+ * But we don't want the note on pages or post types that do not support comments.
+ */
+ elseif ( ! comments_open() && ! is_page() && post_type_supports( get_post_type(), 'comments' ) ) :
+ ?>
+ <p class="nocomments"><?php _e( 'Comments are closed.', 'pego_tr' ); ?></p>
+ <?php endif; ?>
+ <?php if ('open' == $post->comment_status) : ?>
+
+ <div id="respond">
+
+ <h3><?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?></h3>
+
+ <div class="cancel-comment-reply">
+ <small><?php cancel_comment_reply_link(); ?></small>
+ </div>
+
+ <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
+ <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>
+ <?php else : ?>
+
+ <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
+ <?php if ( $user_ID ) : ?>
+ <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>
+
+ <?php else : ?>
+
+ <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
+ <label for="author"><small><?php _e('Name','pego_tr'); ?> <?php if ($req) echo "*"; ?></small></label></p>
+
+ <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
+ <label for="email"><small><?php _e('Mail','pego_tr'); ?> <?php if ($req) echo "*"; ?></small></label></p>
+
+ <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
+ <label for="url"><small><?php _e('Website','pego_tr'); ?></small></label></p>
+
+ <?php endif; ?>
+ <!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->
+
+ <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
+ <p id="blog-post-form-allow">
+ <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 />
+ <?php echo allowed_tags(); ?>
+ </p>
+ <p class="comment-it"><input name="submit" type="submit" id="submit" tabindex="5" value="Comment it!" />
+ <?php comment_id_fields(); ?>
+ </p>
+ <?php do_action('comment_form', $post->ID); ?>
+
+ </form>
+
+<?php endif; // If registration required and not logged in ?>
+</div>
+<?php endif; // if you delete this the sky will fall on your head ?>
+</div><!-- #comments -->