Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/09/2009 08:26:51 PM (15 years ago)
Author:
apeatling
Message:

Fixes #557

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/buddypress-theme/buddypress-home/comments.php

    r1138 r1189  
    6969    <?php if ('open' == $post->comment_status) : ?>
    7070
    71 <h3 id="respond"><?php _e( 'Leave a Reply', 'buddypress' ) ?></h3>
     71    <h3 id="respond"><?php _e( 'Leave a Reply', 'buddypress' ) ?></h3>
    7272
    73 <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
    74 <p><?php printf( __( 'You must be <a href="%s">logged in</a> to post a comment.', 'buddypress' ), get_option('siteurl') . '/wp-login.php?redirect_to=' . urlencode(get_permalink()) ) ?></p>
    75 <?php else : ?>
     73    <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
     74        <p><?php printf( __( 'You must be <a href="%s">logged in</a> to post a comment.', 'buddypress' ), get_option('siteurl') . '/wp-login.php?redirect_to=' . urlencode(get_permalink()) ) ?></p>
     75    <?php else : ?>
    7676
    77 <form action="<?php echo site_url(); ?>/wp-comments-post.php" method="post" id="commentform">
     77    <form action="<?php echo site_url(); ?>/wp-comments-post.php" method="post" id="commentform">
    7878
    79 <?php if ( $user_ID ) : ?>
     79    <?php if ( $user_ID ) : ?>
    8080
    81 <p><?php _e( 'Logged in as', 'buddypress' ) ?> <a href="<?php echo site_url(); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo site_url(); ?>/wp-login.php?action=logout" title="Log out of this account"><?php _e( 'Logout', 'buddypress' ) ?> &raquo;</a></p>
     81        <p><?php _e( 'Logged in as', 'buddypress' ) ?> <a href="<?php echo site_url(); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo site_url(); ?>/wp-login.php?action=logout" title="Log out of this account"><?php _e( 'Logout', 'buddypress' ) ?> &raquo;</a></p>
    8282
    83 <?php else : ?>
     83    <?php else : ?>
    8484
    85 <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
    86 <label for="author"><?php _e( 'Name', 'buddypress' ) ?> <?php if ($req) _e( '(required)', 'buddypress' ); ?></label></p>
     85    <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
     86    <label for="author"><?php _e( 'Name', 'buddypress' ) ?> <?php if ($req) _e( '(required)', 'buddypress' ); ?></label></p>
    8787
    88 <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
    89 <label for="email"><?php _e( 'Mail (will not be published)', 'buddypress' ) ?> <?php if ($req) _e( '(required)', 'buddypress' ); ?></label></p>
     88    <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
     89    <label for="email"><?php _e( 'Mail (will not be published)', 'buddypress' ) ?> <?php if ($req) _e( '(required)', 'buddypress' ); ?></label></p>
    9090
    91 <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
    92 <label for="url"><?php _e( 'Website', 'buddypress' ) ?></label></p>
     91    <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
     92    <label for="url"><?php _e( 'Website', 'buddypress' ) ?></label></p>
    9393
    94 <?php endif; ?>
     94    <?php endif; ?>
    9595
    96 <p><textarea name="comment" id="comment" cols="38" rows="10" tabindex="4"></textarea></p>
     96    <p><textarea name="comment" id="comment" cols="38" rows="10" tabindex="4"></textarea></p>
    9797
    98 <p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e ( 'Submit Comment', 'buddypress' ) ?>" />
    99 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    100 </p>
    101 <?php do_action('comment_form', $post->ID); ?>
     98    <p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e ( 'Submit Comment', 'buddypress' ) ?>" />
     99    <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
     100    </p>
     101    <?php do_action('comment_form', $post->ID); ?>
    102102
    103 <?php if ( $user_ID ) : ?>
    104 </div>
    105 <?php endif; ?>
     103    <?php if ( $user_ID ) : ?>
     104    </div>
     105    <?php endif; ?>
    106106
    107 </form>
     107    </form>
    108108</div>
    109109<?php endif; // If registration required and not logged in ?>
Note: See TracChangeset for help on using the changeset viewer.