Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Join the Conversation
- Notice: Undefined variable: i in /home/maorakrish/domains/maorakrish.frh.co.il/public_html/wp-content/themes/newword/comments-template.php on line 19
- הוא בדיוק לפי הקובץ שפורסם comments-template.phpהנה הקוד של ה
- <?php if(!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) : ?>
- <?php die('You can not access this page directly!'); ?>
- <?php endif; ?>
- <?php if(!empty($post->post_password)) : ?>
- <?php if($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
- <p><?php _e('This post is password protected. Enter the password to view comments.','sagive'); ?></p>
- <?php endif; ?>
- <?php endif; ?>
- <!--===STR========== COMMENTS LIST =====================-->
- <?php if($comments) : ?>
- <div class="commentFormOpener"><h3><?php _e('Join the Conversation','sagive'); ?></h3></div>
- <div class="CommentsList">
- <ul>
- <?php foreach($comments as $comment) : ?>
- <?php $i++; ?>
- <?php if ($comment->comment_approved == '0') : ?>
- <div class="notification"><?php _e('Your comment is awaiting approval','sagive'); ?></div>
- <?php endif; ?>
- <li id="comment-<?php comment_ID(); ?>" <?php if($i&1) { echo 'class="whiteComment"';} else {echo 'class="greyComment"';} ?>>
- <div class="commentText">
- <div class="thumbComment">
- <a href="<?php comment_author_url(); ?>"><?php if(function_exists('get_avatar')) { echo get_avatar($comment, '50'); } ?></a>
- </div>
- <div class="commentInfo">
- <h4 class="authorMeta">
- <span class="author"><?php comment_author(); ?> <?php _e('Wrote','sagive'); ?></span><br />
- <span class="meta"><?php _e('Was published on','sagive'); ?> <?php comment_date(); ?> <?php _e('at','sagive'); ?> <?php comment_time(); ?></span>
- </h4>
- <div class="commentBody">
- <?php comment_text(); ?>
- </div>
- </div>
- <div class="fix"></div>
- </div>
- </li>
- <?php endforeach; ?>
- </ul>
- </div>
- <?php else : ?>
- <?php endif; ?>
- <!--===END========== COMMENTS LIST =====================-->
- <?php if(comments_open()) : ?>
- <div class="commentFormOpener"><h3><?php _e('Publish Comment','sagive'); ?></h3></div>
- <div id="commentForm">
- <?php if(get_option('comment_registration') && !$user_ID) : ?>
- <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 : ?>
- <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','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 »','sagive'); ?></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','sagive'); ?> <?php if($req) _e('required','sagive'); ?></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','sagive'); ?> <?php if($req) _e('required','sagive'); ?></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','sagive'); ?></small></label></p>
- <?php endif; ?>
- <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
- <p>
- <input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit comment','sagive'); ?>" />
- <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
- </p>
- <?php do_action('comment_form', $post->ID); ?>
- <div class="fix"></div>
- </form>
- <?php endif; ?>
- </div>
- <?php else : ?>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement