Ticket #557: buddypress-home-nicola-patch.diff
File buddypress-home-nicola-patch.diff, 6.0 KB (added by , 16 years ago) |
---|
-
archive.php
8 8 9 9 <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> 10 10 <?php /* If this is a category archive */ if (is_category()) { ?> 11 <h3 class="pageTitle"><?php _e( 'Archive for the', 'buddypress' ) ?> ‘<?php single_cat_title(); ?>’ <?php _e( 'Category', 'buddypress' ) ?></h 2>11 <h3 class="pageTitle"><?php _e( 'Archive for the', 'buddypress' ) ?> ‘<?php single_cat_title(); ?>’ <?php _e( 'Category', 'buddypress' ) ?></h3> 12 12 13 13 <?php /* If this is a daily archive */ } elseif (is_day()) { ?> 14 <h3 class="pageTitle"><?php _e( 'Archive for', 'buddypress' ) ?> <?php the_time('F jS, Y'); ?></h 2>14 <h3 class="pageTitle"><?php _e( 'Archive for', 'buddypress' ) ?> <?php the_time('F jS, Y'); ?></h3> 15 15 16 16 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> 17 <h3 class="pageTitle"><?php _e( 'Archive for', 'buddypress' ) ?> <?php the_time('F, Y'); ?></h 2>17 <h3 class="pageTitle"><?php _e( 'Archive for', 'buddypress' ) ?> <?php the_time('F, Y'); ?></h3> 18 18 19 19 <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> 20 <h3 class="pageTitle"><?php _e( 'Archive for', 'buddypress' ) ?> <?php the_time('Y'); ?></h 2>20 <h3 class="pageTitle"><?php _e( 'Archive for', 'buddypress' ) ?> <?php the_time('Y'); ?></h3> 21 21 22 22 <?php /* If this is an author archive */ } elseif (is_author()) { ?> 23 <h3 class="pageTitle"><?php _e( 'Author Archive', 'buddypress' ) ?></h 2>23 <h3 class="pageTitle"><?php _e( 'Author Archive', 'buddypress' ) ?></h3> 24 24 25 25 <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> 26 <h3 class="pageTitle"><?php _e( 'Blog Archives', 'buddypress' ) ?></h 2>26 <h3 class="pageTitle"><?php _e( 'Blog Archives', 'buddypress' ) ?></h3> 27 27 28 28 <?php } ?> 29 29 -
comments.php
68 68 <div id="compose-reply"> 69 69 <?php if ('open' == $post->comment_status) : ?> 70 70 71 <h3 id="respond"><?php _e( 'Leave a Reply', 'buddypress' ) ?></h3>71 <h3 id="respond"><?php _e( 'Leave a Reply', 'buddypress' ) ?></h3> 72 72 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 : ?> 76 76 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"> 78 78 79 <?php if ( $user_ID ) : ?>79 <?php if ( $user_ID ) : ?> 80 80 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' ) ?> »</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' ) ?> »</a></p> 82 82 83 <?php else : ?>83 <?php else : ?> 84 84 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> 87 87 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> 90 90 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> 93 93 94 <?php endif; ?>94 <?php endif; ?> 95 95 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> 97 97 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> 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; ?>" /></p> 101 100 <?php do_action('comment_form', $post->ID); ?> 102 101 103 <?php if ( $user_ID ) : ?>102 </form> 104 103 </div> 105 <?php endif;?>104 <?php endif; // If registration required and not logged in ?> 106 105 107 </form>108 </div>109 <?php endif; // If registration required and not logged in ?>110 111 106 <?php endif; // if you delete this the sky will fall on your head ?> 112 107