Advertisement
Guest User

Untitled

a guest
Nov 28th, 2013
92
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Join the Conversation
  2.  
  3. Notice: Undefined variable: i in /home/maorakrish/domains/maorakrish.frh.co.il/public_html/wp-content/themes/newword/comments-template.php on line 19
  4.  
  5. הוא בדיוק לפי הקובץ שפורסם comments-template.phpהנה הקוד של ה
  6.  
  7. <?php if(!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) : ?>
  8. <?php die('You can not access this page directly!'); ?>
  9. <?php endif; ?>
  10.  
  11. <?php if(!empty($post->post_password)) : ?>
  12. <?php if($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
  13. <p><?php _e('This post is password protected. Enter the password to view comments.','sagive'); ?></p>
  14. <?php endif; ?>
  15. <?php endif; ?>
  16.  
  17. <!--===STR========== COMMENTS LIST =====================-->
  18. <?php if($comments) : ?>
  19.  
  20. <div class="commentFormOpener"><h3><?php _e('Join the Conversation','sagive'); ?></h3></div>
  21.  
  22. <div class="CommentsList">
  23. <ul>
  24. <?php foreach($comments as $comment) : ?>
  25. <?php $i++; ?>
  26.  
  27. <?php if ($comment->comment_approved == '0') : ?>
  28. <div class="notification"><?php _e('Your comment is awaiting approval','sagive'); ?></div>
  29. <?php endif; ?>
  30. <li id="comment-<?php comment_ID(); ?>" <?php if($i&1) { echo 'class="whiteComment"';} else {echo 'class="greyComment"';} ?>>
  31.  
  32. <div class="commentText">
  33. <div class="thumbComment">
  34. <a href="<?php comment_author_url(); ?>"><?php if(function_exists('get_avatar')) { echo get_avatar($comment, '50'); } ?></a>
  35. </div>
  36. <div class="commentInfo">
  37. <h4 class="authorMeta">
  38. <span class="author"><?php comment_author(); ?> <?php _e('Wrote','sagive'); ?></span><br />
  39. <span class="meta"><?php _e('Was published on','sagive'); ?> <?php comment_date(); ?> <?php _e('at','sagive'); ?> <?php comment_time(); ?></span>
  40. </h4>
  41. <div class="commentBody">
  42. <?php comment_text(); ?>
  43. </div>
  44. </div>
  45. <div class="fix"></div>
  46.  
  47. </div>
  48.  
  49. </li>
  50. <?php endforeach; ?>
  51. </ul>
  52. </div>
  53. <?php else : ?>
  54. <?php endif; ?>
  55. <!--===END========== COMMENTS LIST =====================-->
  56.  
  57.  
  58. <?php if(comments_open()) : ?>
  59. <div class="commentFormOpener"><h3><?php _e('Publish Comment','sagive'); ?></h3></div>
  60. <div id="commentForm">
  61. <?php if(get_option('comment_registration') && !$user_ID) : ?>
  62. <p><?php _e('You must be','sagive'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>"><?php _e('logged in','sagive'); ?></a> <?php _e('to post a comment.','sagive'); ?></p><?php else : ?>
  63. <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
  64. <?php if($user_ID) : ?>
  65. <p><?php _e('Logged in as','sagive'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account','sagive'); ?>"><?php _e('Log out &raquo;','sagive'); ?></a></p>
  66. <?php else : ?>
  67. <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
  68. <label for="author"><small><?php _e('Name','sagive'); ?> <?php if($req) _e('required','sagive'); ?></small></label></p>
  69. <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
  70. <label for="email"><small><?php _e('Mail','sagive'); ?> <?php if($req) _e('required','sagive'); ?></small></label></p>
  71.  
  72. <p><input type="text" name="url" id="url" value="<?php echo comment_author_url(); ?>" size="22" tabindex="3" />
  73. <label for="url"><small><?php _e('Website','sagive'); ?></small></label></p>
  74.  
  75. <?php endif; ?>
  76. <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
  77. <p>
  78. <input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit comment','sagive'); ?>" />
  79. <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
  80. </p>
  81. <?php do_action('comment_form', $post->ID); ?>
  82. <div class="fix"></div>
  83. </form>
  84.  
  85. <?php endif; ?>
  86. </div>
  87. <?php else : ?>
  88. <?php endif; ?>
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement