[ Index ]
 

Code source de WordPress 2.1.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/wp-content/themes/classic/ -> comments.php (source)

   1  <?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
   2  <p><?php _e('Enter your password to view comments.'); ?></p>
   3  <?php return; endif; ?>
   4  
   5  <h2 id="comments"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?>
   6  <?php if ( comments_open() ) : ?>
   7      <a href="#postcomment" title="<?php _e("Leave a comment"); ?>">&raquo;</a>
   8  <?php endif; ?>
   9  </h2>
  10  
  11  <?php if ( $comments ) : ?>
  12  <ol id="commentlist">
  13  
  14  <?php foreach ($comments as $comment) : ?>
  15      <li id="comment-<?php comment_ID() ?>">
  16      <?php comment_text() ?>
  17      <p><cite><?php comment_type(__('Comment'), __('Trackback'), __('Pingback')); ?> <?php _e('by'); ?> <?php comment_author_link() ?> &#8212; <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite> <?php edit_comment_link(__("Edit This"), ' |'); ?></p>
  18      </li>
  19  
  20  <?php endforeach; ?>
  21  
  22  </ol>
  23  
  24  <?php else : // If there are no comments yet ?>
  25      <p><?php _e('No comments yet.'); ?></p>
  26  <?php endif; ?>
  27  
  28  <p><?php comments_rss_link(__('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.')); ?>
  29  <?php if ( pings_open() ) : ?>
  30      <a href="<?php trackback_url() ?>" rel="trackback"><?php _e('TrackBack <abbr title="Universal Resource Locator">URL</abbr>'); ?></a>
  31  <?php endif; ?>
  32  </p>
  33  
  34  <?php if ( comments_open() ) : ?>
  35  <h2 id="postcomment"><?php _e('Leave a comment'); ?></h2>
  36  
  37  <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
  38  <p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p>
  39  <?php else : ?>
  40  
  41  <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
  42  
  43  <?php if ( $user_ID ) : ?>
  44  
  45  <p>Logged in as <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') ?>">Logout &raquo;</a></p>
  46  
  47  <?php else : ?>
  48  
  49  <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
  50  <label for="author"><small>Name <?php if ($req) _e('(required)'); ?></small></label></p>
  51  
  52  <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
  53  <label for="email"><small>Mail (will not be published) <?php if ($req) _e('(required)'); ?></small></label></p>
  54  
  55  <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
  56  <label for="url"><small>Website</small></label></p>
  57  
  58  <?php endif; ?>
  59  
  60  <!--<p><small><strong>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></small></p>-->
  61  
  62  <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
  63  
  64  <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
  65  <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
  66  </p>
  67  <?php do_action('comment_form', $post->ID); ?>
  68  
  69  </form>
  70  
  71  <?php endif; // If registration required and not logged in ?>
  72  
  73  <?php else : // Comments are closed ?>
  74  <p><?php _e('Sorry, the comment form is closed at this time.'); ?></p>
  75  <?php endif; ?>


Généré le : Fri Mar 30 19:41:27 2007 par Balluche grâce à PHPXref 0.7