Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @package Paginated_Comments
- * @subpackage Default_Theme
- */
- // Do not delete these lines
- if (!empty($_SERVER['SCRIPT_FILENAME']) && 'paginated-comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
- die ('Please do not load this page directly. Thanks!');
- if ( post_password_required() ) { ?>
- <p class="nocomments">This post is password protected. Enter the password to view comments.</p>
- <?php
- return;
- }
- /* This variable is for alternating comment background */
- $oddcomment = 'class="alt" ';
- ?>
- <!-- You can start editing here. -->
- <?php if ( $comments ) : ?>
- <h3><?php comments_number('Yorum Yok', '1 Yorum', '% Yorum' );?></h3>
- <!-- Start Paginated Comments Pages -->
- <?php if ( Paginated_Comments_have_pages() ) : ?>
- <p class="paginated-comments-pages"><?php _e("Pages:"); ?> <?php Paginated_Comments_print_pages(); ?></p>
- <?php endif; ?>
- <!-- End Paginated Comments Pages -->
- <ul class="comment-list">
- <?php foreach ($comments as $comment) : ?>
- <li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>">
- <div class="comment-meta commentmetadata">
- <cite class="fn"><?php comment_author_link() ?></cite>
- <?php if ($comment->comment_approved == '0') : ?>
- <em>Yorumunuz onay bekliyor.</em>
- <?php endif; ?> <a href="<?php echo Paginated_Comments_URL('comment-' . get_comment_ID()); ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('Duzenle',' ',''); ?>
- </div>
- <?php comment_text() ?>
- </li>
- <?php
- /* Changes every other comment to a different class */
- $oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : '';
- ?>
- <?php endforeach; /* end for each comment */ ?>
- </ul>
- <!-- Start Paginated Comments Pages -->
- <?php if ( Paginated_Comments_have_pages() ) : ?>
- <p class="paginated-comments-pages"><?php _e("Pages:"); ?> <?php Paginated_Comments_print_pages(); ?></p>
- <?php endif; ?>
- <!-- End Paginated Comments Pages -->
- <?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. -->
- <?php else : // comments are closed ?>
- <!-- If comments are closed. -->
- <p class="nocomments">Comments are closed.</p>
- <?php endif; ?>
- <?php endif; ?>
- <?php if ('open' == $post->comment_status) : ?>
- <div id="respond">
- <h3><?php comment_form_title( __('Yorum Yap', 'wpzoom' ), __('Leave a Reply to %s', 'wpzoom')); ?></h3>
- <div class="cancel-comment-reply"><p><?php cancel_comment_reply_link(); ?></p></div>
- <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
- <p><?php _e('You must be', 'wpzoom') ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>"><?php _e('logged in', 'wpzoom') ?></a> <?php _e('to post a comment.', 'wpzoom') ?></p>
- <?php else : ?>
- <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
- <textarea name="comment" id="comment" tabindex="1" rows="10" cols="140"></textarea><br />
- <?php if ( $user_ID ) : ?>
- <p><?php _e('Logged in as', 'wpzoom') ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(); ?>" title="<?php _e('Log out of this account', 'wpzoom') ?>"><?php _e('Logout', 'wpzoom') ?> »</a></p>
- <input name="submit" type="submit" id="submit" class="comm-submit" value="<?php _e('Yorum Gönder', 'wpzoom') ?>" />
- <?php else : ?>
- <div id="formLabels">
- <p><input type="text" onblur="if (this.value == '') {this.value = '<?php _e('İsim (gerekli)', 'wpzoom') ?>';}" onfocus="if (this.value == '<?php _e('İsim (gerekli)', 'wpzoom') ?>') {this.value = '';}" value="<?php _e('İsim (gerekli)', 'wpzoom') ?>" name="author" id="author" size="4" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> /></p>
- <p><input type="text" onblur="if (this.value == '') {this.value = '<?php _e('Email (yayınlanmayacak)', 'wpzoom') ?>';}" onfocus="if (this.value == '<?php _e('Email (yayınlanmayacak)', 'wpzoom') ?>') {this.value = '';}" value="<?php _e('Email (yayınlanmayacak)', 'wpzoom') ?>" name="email" id="email" size="4" tabindex="3" <?php if ($req) echo "aria-required='true'"; ?> /> </p>
- <input name="submit" type="submit" id="submit" class="comm-submit" value="<?php _e('Yorum Gönder', 'wpzoom') ?>" />
- </div>
- <?php endif; ?>
- <?php comment_id_fields(); ?>
- <?php do_action('comment_form', $post->ID); ?>
- <div class="clear"></div>
- </form>
- <?php endif; // If registration required and not logged in ?>
- </div>
- <?php endif; // if you delete this the sky will fall on your head ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement