<?php global $r_option;  ?>
<div class="clear"></div>
<div id="comments">

  <?php if (get_comments_number() > 0) : ?>
  <div id="photoblogcontent" class="rightimportant"><div id="smallboxshowpost" class="showcomment"><span class="post-comments mhgozicon"></span><strong>عدد التعليقات ::</strong>  <?php comments_number('0','1','%'); ?></div></div>
  <?php endif; ?>
  <?php if(!$comments) : ?>
  <p>لا يوجد تعليقات حاليا ..</p>
  <?php endif; ?>
  <?php if($comments) : ?>
  <?php foreach($comments as $comment) : ?>
  <div class="comment "> </div>
  <div class="comment-body">
    <div class="commenterstat">
      <div class="commenter"><?php echo get_avatar($comment, '85'); ?>
        <div class="comment-date"><span>
          <?php comment_date('d/m/y'); ?>
          </span> <span class="time">
          <?php comment_time('H:i'); ?>
          </span></div>
      </div>
      <div class="commenttext"> <span class="autorcomeent">
        <?php comment_author_link(); ?>
        </span>
        <?php comment_text(); ?>
      </div>
      <?php if($comment->comment_approved == '0') : ?>
      <p><?php echo $r_option['t_pending_approval']; ?></p>
      <?php endif; ?>
    </div>
  </div>
  <?php endforeach; ?>
  <?php endif; ?>
</div>





<?php if('open' == $post->comment_status) : ?>
<?php if($comment_registration && !$user_ID) : ?>
<p><?php echo $r_option['t_comment_logged']; ?></p>
<?php else : ?>



    
<div class="comment-form">
  <h3><?php echo $r_option['t_comments_h']; ?></h3>
  <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    <br />
    <fieldset style="border:0px;">
      <?php if(!$user_ID ) : ?>
      <input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" class="input name-icon comment-icon re5" />
      <div class="clear"></div>
      <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" class="input email-icon comment-icon" />
      <div class="clear"></div>
      <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" class="input ws-icon comment-icon" />
      <div class="clear"></div>
      <?php endif; ?>
      <textarea tabindex="4" rows="9" cols="100%" id="comment" name="comment" class="textarea"></textarea>
      <div class="clear"></div>
      <div class="submit-wrap">
        <input type="hidden" value="<?php echo $id; ?>" name="comment_post_ID" />
        <input type="submit" value="اضف التعليق" tabindex="5" class="general-button comment-submit-d" name="submit" />
        <?php do_action('comment_form', $post->ID); ?>
      </div>
    </fieldset>
  </form>
</div>
<?php endif; ?>
<?php else : ?>
<p><?php echo $r_option['t_comments_allowed']; ?></p>
<?php endif; ?>
