Advertisement
bondcemil

Untitled

Dec 16th, 2015
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.79 KB | None | 0 0
  1. <?php
  2. /**
  3.  * @package Paginated_Comments
  4.  * @subpackage Default_Theme
  5.  */
  6.  
  7.     // Do not delete these lines
  8.     if (!empty($_SERVER['SCRIPT_FILENAME']) && 'paginated-comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
  9.         die ('Please do not load this page directly. Thanks!');
  10.  
  11.     if ( post_password_required() ) { ?>
  12.         <p class="nocomments">This post is password protected. Enter the password to view comments.</p>
  13.     <?php
  14.         return;
  15.     }
  16.  
  17.     /* This variable is for alternating comment background */
  18.     $oddcomment = 'class="alt" ';
  19. ?>
  20.  
  21. <!-- You can start editing here. -->
  22. <?php if ( $comments ) : ?>
  23.     <h3><?php comments_number('Yorum Yok', '1 Yorum', '% Yorum' );?></h3>
  24.  
  25.     <!-- Start Paginated Comments Pages -->
  26.     <?php if ( Paginated_Comments_have_pages() ) : ?>
  27.         <p class="paginated-comments-pages"><?php _e("Pages:"); ?> <?php Paginated_Comments_print_pages(); ?></p>
  28.     <?php endif; ?>
  29.     <!-- End Paginated Comments Pages -->
  30.  
  31.     <ul class="comment-list">
  32.  
  33.     <?php foreach ($comments as $comment) : ?>
  34.  
  35.         <li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>">
  36.  
  37. <div class="comment-meta commentmetadata">
  38.             <cite class="fn"><?php comment_author_link() ?></cite>
  39.             <?php if ($comment->comment_approved == '0') : ?>
  40.             <em>Yorumunuz onay bekliyor.</em>
  41.             <?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','&nbsp;&nbsp;',''); ?>
  42. </div>
  43.             <?php comment_text() ?>
  44.  
  45.         </li>
  46.  
  47.     <?php
  48.         /* Changes every other comment to a different class */
  49.         $oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : '';
  50.     ?>
  51.  
  52.     <?php endforeach; /* end for each comment */ ?>
  53.  
  54.     </ul>
  55.  
  56.     <!-- Start Paginated Comments Pages -->
  57.     <?php if ( Paginated_Comments_have_pages() ) : ?>
  58.         <p class="paginated-comments-pages"><?php _e("Pages:"); ?> <?php Paginated_Comments_print_pages(); ?></p>
  59.     <?php endif; ?>
  60.     <!-- End Paginated Comments Pages -->
  61.  
  62.  <?php else : // this is displayed if there are no comments so far ?>
  63.  
  64.   <?php if ('open' == $post->comment_status) : ?>
  65.         <!-- If comments are open, but there are no comments. -->
  66.  
  67.      <?php else : // comments are closed ?>
  68.         <!-- If comments are closed. -->
  69.         <p class="nocomments">Comments are closed.</p>
  70.  
  71.     <?php endif; ?>
  72. <?php endif; ?>
  73.  
  74.  
  75. <?php if ('open' == $post->comment_status) : ?>
  76.  
  77.     <div id="respond">
  78.  
  79.         <h3><?php comment_form_title( __('Yorum Yap', 'wpzoom' ), __('Leave a Reply to %s', 'wpzoom')); ?></h3>
  80.  
  81.         <div class="cancel-comment-reply"><p><?php cancel_comment_reply_link(); ?></p></div>
  82.  
  83.             <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
  84.  
  85.             <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>
  86.             <?php else : ?>
  87.  
  88.         <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
  89.  
  90.         <textarea name="comment" id="comment" tabindex="1" rows="10" cols="140"></textarea><br />
  91.  
  92.             <?php if ( $user_ID ) : ?>
  93.  
  94.             <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') ?> &raquo;</a></p>      
  95.  
  96.  <input name="submit" type="submit" id="submit" class="comm-submit" value="<?php _e('Yorum Gönder', 'wpzoom') ?>" />  
  97.  
  98.             <?php else : ?>
  99.  
  100.                 <div id="formLabels">
  101.  
  102.                     <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>
  103.  
  104.                     <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>
  105.  
  106.                     <input name="submit" type="submit" id="submit" class="comm-submit" value="<?php _e('Yorum Gönder', 'wpzoom') ?>" />
  107.  
  108.                 </div>
  109.  
  110.             <?php endif; ?>
  111.  
  112.             <?php comment_id_fields(); ?>
  113.  
  114.             <?php do_action('comment_form', $post->ID); ?>
  115.  
  116.         <div class="clear"></div>
  117.  
  118.         </form>
  119.  
  120.     <?php endif; // If registration required and not logged in ?>
  121.  
  122.     </div>
  123.  
  124. <?php endif; // if you delete this the sky will fall on your head ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement