Skip to:
Content

BuddyPress.org

Ticket #557: buddypress-home-nicola-patch.diff

File buddypress-home-nicola-patch.diff, 6.0 KB (added by nicolagreco, 16 years ago)

Patch for home theme issues + indentations

  • archive.php

     
    88
    99                         <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
    1010                         <?php /* If this is a category archive */ if (is_category()) { ?>
    11                         <h3 class="pageTitle"><?php _e( 'Archive for the', 'buddypress' ) ?> &#8216;<?php single_cat_title(); ?>&#8217; <?php _e( 'Category', 'buddypress' ) ?></h2>
     11                        <h3 class="pageTitle"><?php _e( 'Archive for the', 'buddypress' ) ?> &#8216;<?php single_cat_title(); ?>&#8217; <?php _e( 'Category', 'buddypress' ) ?></h3>
    1212
    1313                         <?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'); ?></h2>
     14                        <h3 class="pageTitle"><?php _e( 'Archive for', 'buddypress' ) ?> <?php the_time('F jS, Y'); ?></h3>
    1515
    1616                         <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    17                         <h3 class="pageTitle"><?php _e( 'Archive for', 'buddypress' ) ?> <?php the_time('F, Y'); ?></h2>
     17                        <h3 class="pageTitle"><?php _e( 'Archive for', 'buddypress' ) ?> <?php the_time('F, Y'); ?></h3>
    1818
    1919                        <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    20                         <h3 class="pageTitle"><?php _e( 'Archive for', 'buddypress' ) ?> <?php the_time('Y'); ?></h2>
     20                        <h3 class="pageTitle"><?php _e( 'Archive for', 'buddypress' ) ?> <?php the_time('Y'); ?></h3>
    2121
    2222                        <?php /* If this is an author archive */ } elseif (is_author()) { ?>
    23                         <h3 class="pageTitle"><?php _e( 'Author Archive', 'buddypress' ) ?></h2>
     23                        <h3 class="pageTitle"><?php _e( 'Author Archive', 'buddypress' ) ?></h3>
    2424
    2525                        <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    26                         <h3 class="pageTitle"><?php _e( 'Blog Archives', 'buddypress' ) ?></h2>
     26                        <h3 class="pageTitle"><?php _e( 'Blog Archives', 'buddypress' ) ?></h3>
    2727
    2828                        <?php } ?>
    2929
  • comments.php

     
    6868<div id="compose-reply">
    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>
     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>
    101100<?php do_action('comment_form', $post->ID); ?>
    102101
    103 <?php if ( $user_ID ) : ?>
     102        </form>
    104103</div>
    105 <?php endif; ?>
     104        <?php endif; // If registration required and not logged in ?>
    106105
    107 </form>
    108 </div>
    109 <?php endif; // If registration required and not logged in ?>
    110 
    111106<?php endif; // if you delete this the sky will fall on your head ?>
    112107