Skip to:
Content

bbPress.org

Changeset 3651


Ignore:
Timestamp:
12/28/2011 07:37:22 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Audit the bbp-twentyten theme's actions, HTML, and CSS. See #1702.

Location:
branches/plugin/bbp-themes/bbp-twentyten
Files:
35 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/content-archive-forum.php

    r3312 r3651  
    99
    1010?>
     11
     12<div id="bbpress-forums">
    1113
    1214    <?php bbp_breadcrumb(); ?>
     
    2527
    2628    <?php do_action( 'bbp_template_after_forums_index' ); ?>
     29
     30</div>
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/content-archive-topic.php

    r3634 r3651  
    99
    1010?>
     11
     12<div id="bbpress-forums">
    1113
    1214    <?php bbp_breadcrumb(); ?>
     
    3133
    3234    <?php do_action( 'bbp_template_after_topics_index' ); ?>
     35
     36</div>
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/content-single-forum.php

    r3312 r3651  
    99
    1010?>
     11
     12<div id="bbpress-forums">
    1113
    1214    <?php bbp_breadcrumb(); ?>
     
    4547
    4648    <?php endif; ?>
     49
     50</div>
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/content-single-reply.php

    r3634 r3651  
    99
    1010?>
     11
     12<div id="bbpress-forums">
    1113
    1214    <?php bbp_breadcrumb(); ?>
     
    2527
    2628    <?php do_action( 'bbp_template_after_single_reply' ); ?>
     29
     30</div>
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/content-single-topic-lead.php

    r3492 r3651  
    1010?>
    1111
    12     <table class="bbp-topic" id="bbp-topic-<?php bbp_topic_id(); ?>">
    13         <thead>
    14             <tr>
    15                 <th class="bbp-topic-author"><?php _e( 'Creator', 'bbpress' ); ?></th>
    16                 <th class="bbp-topic-content">
     12<?php do_action( 'bbp_template_before_replies_loop' ); ?>
    1713
    18                     <?php _e( 'Topic', 'bbpress' ); ?>
     14<ul id="bbp-topic-<?php bbp_topic_id(); ?>-lead" class="bbp-lead-topic">
    1915
    20                     <?php bbp_user_subscribe_link(); ?>
     16    <li class="bbp-header">
    2117
    22                     <?php bbp_user_favorites_link(); ?>
     18        <div class="bbp-topic-author"><?php  _e( 'Creator',  'bbpress' ); ?></div><!-- .bbp-topic-author -->
    2319
    24                 </th>
    25             </tr>
    26         </thead>
     20        <div class="bbp-topic-content">
    2721
    28         <tfoot>
    29             <tr>
    30                 <td colspan="2">
     22            <?php _e( 'Topic', 'bbpress' ); ?>
    3123
    32                     <?php bbp_topic_admin_links(); ?>
     24            <?php bbp_user_subscribe_link(); ?>
    3325
    34                 </td>
    35             </tr>
    36         </tfoot>
     26            <?php bbp_user_favorites_link(); ?>
    3727
    38         <tbody>
     28        </div><!-- .bbp-topic-content -->
    3929
    40             <tr class="bbp-topic-header">
    41                 <td colspan="2">
     30    </li><!-- .bbp-header -->
    4231
    43                     <?php printf( __( '%1$s at %2$s', 'bbpress' ), get_the_date(), esc_attr( get_the_time() ) ); ?>
     32    <li class="bbp-body">
    4433
    45                     <a href="#bbp-topic-<?php bbp_topic_id(); ?>" title="<?php bbp_topic_title(); ?>" class="bbp-topic-permalink">#<?php bbp_topic_id(); ?></a>
     34        <div class="bbp-topic-header">
    4635
    47                 </td>
    48             </tr>
     36            <div class="bbp-meta">
    4937
    50             <tr id="post-<?php bbp_topic_id(); ?>" <?php post_class( 'bbp-forum-topic' ); ?>>
     38                <?php printf( __( '%1$s at %2$s', 'bbpress' ), get_the_date(), esc_attr( get_the_time() ) ); ?>
    5139
    52                 <td class="bbp-topic-author">
     40                <a href="<?php bbp_topic_permalink(); ?>" title="<?php bbp_topic_title(); ?>" class="bbp-topic-permalink">#<?php bbp_topic_id(); ?></a>
    5341
    54                     <?php bbp_topic_author_link( array( 'sep' => '<br />' ) ); ?>
     42                <?php do_action( 'bbp_theme_before_topic_admin_links' ); ?>
    5543
    56                     <?php if ( is_super_admin() ) : ?>
     44                <?php bbp_topic_admin_links(); ?>
    5745
    58                         <div class="bbp-topic-ip"><?php bbp_author_ip( bbp_get_topic_id() ); ?></div>
     46                <?php do_action( 'bbp_theme_after_topic_admin_links' ); ?>
    5947
    60                     <?php endif; ?>
     48            </div><!-- .bbp-meta -->
    6149
    62                 </td>
     50        </div><!-- .bbp-topic-header -->
    6351
    64                 <td class="bbp-topic-content">
     52        <div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>>
    6553
    66                     <?php bbp_topic_content(); ?>
     54            <div class="bbp-topic-author">
    6755
    68                 </td>
     56                <?php do_action( 'bbp_theme_before_topic_author_details' ); ?>
    6957
    70             </tr><!-- #post-<?php bbp_topic_id(); ?> -->
     58                <?php bbp_topic_author_link( array( 'sep' => '<br />' ) ); ?>
    7159
    72         </tbody>
    73     </table><!-- #bbp-topic-<?php bbp_topic_id(); ?> -->
     60                <?php if ( is_super_admin() ) : ?>
     61
     62                    <?php do_action( 'bbp_theme_before_topic_author_admin_details' ); ?>
     63
     64                    <div class="bbp-topic-ip"><?php bbp_author_ip( bbp_get_topic_id() ); ?></div>
     65
     66                    <?php do_action( 'bbp_theme_after_topic_author_admin_details' ); ?>
     67
     68                <?php endif; ?>
     69
     70                <?php do_action( 'bbp_theme_after_topic_author_details' ); ?>
     71
     72            </div><!-- .bbp-topic-author -->
     73
     74            <div class="bbp-topic-content">
     75
     76                <?php do_action( 'bbp_theme_after_topic_content' ); ?>
     77
     78                <?php bbp_topic_content(); ?>
     79
     80                <?php do_action( 'bbp_theme_before_topic_content' ); ?>
     81
     82            </div><!-- .bbp-topic-content -->
     83
     84        </div><!-- #post-<?php bbp_topic_id(); ?> -->
     85
     86    </li><!-- .bbp-body -->
     87
     88    <li class="bbp-footer">
     89
     90        <div class="bbp-topic-author"><?php  _e( 'Creator',  'bbpress' ); ?></div>
     91
     92        <div class="bbp-topic-content">
     93
     94            <?php if ( !bbp_show_lead_topic() ) : ?>
     95
     96                <?php _e( 'Posts', 'bbpress' ); ?>
     97
     98            <?php else : ?>
     99
     100                <?php _e( 'Replies', 'bbpress' ); ?>
     101
     102            <?php endif; ?>
     103
     104        </div><!-- .bbp-topic-content -->
     105
     106    </li>
     107
     108</ul><!-- #topic-<?php bbp_topic_id(); ?>-replies -->
     109
     110<?php do_action( 'bbp_template_after_topic_loop' ); ?>
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/content-single-topic.php

    r3638 r3651  
    99
    1010?>
     11
     12<div id="bbpress-forums">
    1113
    1214    <?php bbp_breadcrumb(); ?>
     
    4547
    4648    <?php do_action( 'bbp_template_after_single_topic' ); ?>
     49
     50</div>
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/content-single-user-edit.php

    r3331 r3651  
    1010?>
    1111
    12     <?php do_action( 'bbp_template_notices' );
     12<div id="bbpress-forums">
    1313
    14     // Profile details
    15     bbp_get_template_part( 'bbpress/user', 'details' );
     14    <?php do_action( 'bbp_template_notices' ); ?>
    1615
    17     // User edit form
    18     bbp_get_template_part( 'bbpress/form', 'user-edit' );
     16    <?php bbp_get_template_part( 'bbpress/user', 'details' ); ?>
    1917
    20 ?>
     18    <?php bbp_get_template_part( 'bbpress/form', 'user-edit' ); ?>
     19
     20</div>
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/content-single-user.php

    r3608 r3651  
    1010?>
    1111
     12<div id="bbpress-forums">
     13
    1214    <?php do_action( 'bbp_template_notices' ); ?>
    1315
    14     <?php bbp_get_template_part( 'bbpress/user', 'details'        ); ?>
     16    <?php bbp_get_template_part( 'bbpress/user', 'details' ); ?>
    1517
    1618    <hr />
    1719
    18     <?php bbp_get_template_part( 'bbpress/user', 'subscriptions'  ); ?>
     20    <?php bbp_get_template_part( 'bbpress/user', 'subscriptions' ); ?>
    1921
    2022    <hr />
    2123
    22     <?php bbp_get_template_part( 'bbpress/user', 'favorites'      ); ?>
     24    <?php bbp_get_template_part( 'bbpress/user', 'favorites' ); ?>
    2325
    2426    <hr />
    2527
    26     <?php bbp_get_template_part( 'bbpress/user', 'topics-created' );
     28    <?php bbp_get_template_part( 'bbpress/user', 'topics-created' ); ?>
    2729
    28 ?>
     30</div>
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/content-single-view.php

    r3331 r3651  
    99
    1010?>
     11
     12<div id="bbpress-forums">
    1113
    1214    <?php bbp_breadcrumb(); ?>
     
    2931
    3032    <?php bbp_reset_query_name(); ?>
     33
     34</div>
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/content-topic-tag-edit.php

    r3634 r3651  
    1010?>
    1111
     12<div id="bbpress-forums">
     13
    1214    <?php bbp_breadcrumb(); ?>
    1315
     
    1921
    2022    <?php do_action( 'bbp_template_after_topic_tag_edit' ); ?>
     23
     24</div>
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/form-forum.php

    r3586 r3651  
    1010?>
    1111
    12     <?php if ( bbp_is_forum_edit() ) : ?>
     12<?php if ( bbp_is_forum_edit() ) : ?>
    1313
    14         <?php bbp_breadcrumb(); ?>
     14<div id="bbpress-forums">
    1515
    16         <?php bbp_single_forum_description( array( 'forum_id' => bbp_get_forum_id() ) ); ?>
     16    <?php bbp_breadcrumb(); ?>
    1717
    18     <?php endif; ?>
     18    <?php bbp_single_forum_description( array( 'forum_id' => bbp_get_forum_id() ) ); ?>
    1919
    20     <?php if ( bbp_current_user_can_access_create_forum_form() ) : ?>
     20<?php endif; ?>
    2121
    22         <div id="new-forum-<?php bbp_forum_id(); ?>" class="bbp-forum-form">
     22<?php if ( bbp_current_user_can_access_create_forum_form() ) : ?>
    2323
    24             <form id="new-post" name="new-post" method="post" action="">
     24    <div id="new-forum-<?php bbp_forum_id(); ?>" class="bbp-forum-form">
    2525
    26                 <?php do_action( 'bbp_theme_before_forum_form' ); ?>
     26        <form id="new-post" name="new-post" method="post" action="">
    2727
    28                 <fieldset class="bbp-form">
    29                     <legend>
     28            <?php do_action( 'bbp_theme_before_forum_form' ); ?>
    3029
    31                         <?php
    32                             if ( bbp_is_forum_edit() )
    33                                 printf( __( 'Now Editing &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_forum_title() );
    34                             else
    35                                 bbp_is_single_forum() ? printf( __( 'Create New Forum in &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_forum_title() ) : _e( 'Create New Forum', 'bbpress' );
    36                         ?>
     30            <fieldset class="bbp-form">
     31                <legend>
    3732
    38                     </legend>
     33                    <?php
     34                        if ( bbp_is_forum_edit() )
     35                            printf( __( 'Now Editing &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_forum_title() );
     36                        else
     37                            bbp_is_single_forum() ? printf( __( 'Create New Forum in &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_forum_title() ) : _e( 'Create New Forum', 'bbpress' );
     38                    ?>
    3939
    40                     <?php do_action( 'bbp_theme_before_forum_form_notices' ); ?>
     40                </legend>
    4141
    42                     <?php if ( !bbp_is_forum_edit() && bbp_is_forum_closed() ) : ?>
     42                <?php do_action( 'bbp_theme_before_forum_form_notices' ); ?>
    4343
    44                         <div class="bbp-template-notice">
    45                             <p><?php _e( 'This forum is closed to new content, however your account still allows you to do so.', 'bbpress' ); ?></p>
    46                         </div>
     44                <?php if ( !bbp_is_forum_edit() && bbp_is_forum_closed() ) : ?>
    4745
    48                     <?php endif; ?>
     46                    <div class="bbp-template-notice">
     47                        <p><?php _e( 'This forum is closed to new content, however your account still allows you to do so.', 'bbpress' ); ?></p>
     48                    </div>
    4949
    50                     <?php if ( current_user_can( 'unfiltered_html' ) ) : ?>
     50                <?php endif; ?>
    5151
    52                         <div class="bbp-template-notice">
    53                             <p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
    54                         </div>
     52                <?php if ( current_user_can( 'unfiltered_html' ) ) : ?>
    5553
    56                     <?php endif; ?>
     54                    <div class="bbp-template-notice">
     55                        <p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
     56                    </div>
    5757
    58                     <?php do_action( 'bbp_template_notices' ); ?>
     58                <?php endif; ?>
    5959
    60                     <div>
     60                <?php do_action( 'bbp_template_notices' ); ?>
    6161
    62                         <fieldset class="bbp-form bbp-forum-form-attributes">
    63                             <legend><?php _e( 'Forum Attributes', 'bbpress' ); ?></legend>
     62                <div>
    6463
    65                             <?php do_action( 'bbp_theme_before_forum_form_type' ); ?>
     64                    <fieldset class="bbp-form bbp-forum-form-attributes">
     65                        <legend><?php _e( 'Forum Attributes', 'bbpress' ); ?></legend>
     66
     67                        <?php do_action( 'bbp_theme_before_forum_form_type' ); ?>
     68
     69                        <p>
     70                            <label for="bbp_forum_id"><?php _e( 'Forum Type:', 'bbpress' ); ?></label><br />
     71                            <?php bbp_form_forum_type_dropdown(); ?>
     72                        </p>
     73
     74                        <?php do_action( 'bbp_theme_after_forum_form_type' ); ?>
     75
     76                        <?php do_action( 'bbp_theme_before_forum_form_status' ); ?>
     77
     78                        <p>
     79                            <label for="bbp_forum_id"><?php _e( 'Status:', 'bbpress' ); ?></label><br />
     80                            <?php bbp_form_forum_status_dropdown(); ?>
     81                        </p>
     82
     83                        <?php do_action( 'bbp_theme_after_forum_form_status' ); ?>
     84
     85                        <?php do_action( 'bbp_theme_before_forum_form_status' ); ?>
     86
     87                        <p>
     88                            <label for="bbp_forum_id"><?php _e( 'Visibility:', 'bbpress' ); ?></label><br />
     89                            <?php bbp_form_forum_visibility_dropdown(); ?>
     90                        </p>
     91
     92                        <?php do_action( 'bbp_theme_after_forum_visibility_status' ); ?>
     93
     94                        <?php if ( !bbp_is_single_forum() ) : ?>
     95
     96                            <hr />
     97
     98                            <?php do_action( 'bbp_theme_before_forum_form_parent' ); ?>
    6699
    67100                            <p>
    68                                 <label for="bbp_forum_id"><?php _e( 'Forum Type:', 'bbpress' ); ?></label><br />
    69                                 <?php bbp_form_forum_type_dropdown(); ?>
     101                                <label for="bbp_forum_id"><?php _e( 'Parent Forum:', 'bbpress' ); ?></label><br />
     102                                <?php bbp_dropdown( array( 'show_none' => __( '(No Parent)', 'bbpress' ), 'selected' => bbp_get_form_forum_parent() ) ); ?>
    70103                            </p>
    71104
    72                             <?php do_action( 'bbp_theme_after_forum_form_type' ); ?>
     105                            <?php do_action( 'bbp_theme_after_forum_form_parent' ); ?>
    73106
    74                             <?php do_action( 'bbp_theme_before_forum_form_status' ); ?>
     107                        <?php endif; ?>
     108
     109                    </fieldset>
     110
     111                    <fieldset class="bbp-forum-form-main">
     112
     113                        <?php do_action( 'bbp_theme_before_forum_form_title' ); ?>
     114
     115                        <p>
     116                            <label for="bbp_forum_title"><?php printf( __( 'Forum Name (Maximum Length: %d):', 'bbpress' ), bbp_get_title_max_length() ); ?></label><br />
     117                            <input type="text" id="bbp_forum_title" value="<?php bbp_form_forum_title(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_forum_title" maxlength="<?php bbp_title_max_length(); ?>" />
     118                        </p>
     119
     120                        <?php do_action( 'bbp_theme_after_forum_form_title' ); ?>
     121
     122                        <?php do_action( 'bbp_theme_before_forum_form_content' ); ?>
     123
     124                        <?php if ( !function_exists( 'wp_editor' ) ) : ?>
    75125
    76126                            <p>
    77                                 <label for="bbp_forum_id"><?php _e( 'Status:', 'bbpress' ); ?></label><br />
    78                                 <?php bbp_form_forum_status_dropdown(); ?>
     127                                <label for="bbp_forum_content"><?php _e( 'Forum Description:', 'bbpress' ); ?></label><br />
     128                                <textarea id="bbp_forum_content" tabindex="<?php bbp_tab_index(); ?>" name="bbp_forum_content" cols="60" rows="10"><?php bbp_form_forum_content(); ?></textarea>
    79129                            </p>
    80130
    81                             <?php do_action( 'bbp_theme_after_forum_form_status' ); ?>
     131                        <?php else : ?>
    82132
    83                             <?php do_action( 'bbp_theme_before_forum_form_status' ); ?>
     133                            <?php bbp_the_content( array( 'context' => 'forum' ) ); ?>
    84134
    85                             <p>
    86                                 <label for="bbp_forum_id"><?php _e( 'Visibility:', 'bbpress' ); ?></label><br />
    87                                 <?php bbp_form_forum_visibility_dropdown(); ?>
     135                        <?php endif; ?>
     136
     137                        <?php do_action( 'bbp_theme_after_forum_form_content' ); ?>
     138
     139                        <?php if ( !current_user_can( 'unfiltered_html' ) ) : ?>
     140
     141                            <p class="form-allowed-tags">
     142                                <label><?php _e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br />
     143                                <code><?php bbp_allowed_tags(); ?></code>
    88144                            </p>
    89145
    90                             <?php do_action( 'bbp_theme_after_forum_visibility_status' ); ?>
     146                        <?php endif; ?>
    91147
    92                             <?php if ( !bbp_is_single_forum() ) : ?>
     148                    </fieldset>
    93149
    94                                 <hr />
     150                    <?php do_action( 'bbp_theme_before_forum_form_submit_wrapper' ); ?>
    95151
    96                                 <?php do_action( 'bbp_theme_before_forum_form_parent' ); ?>
     152                    <div class="bbp-submit-wrapper">
    97153
    98                                 <p>
    99                                     <label for="bbp_forum_id"><?php _e( 'Parent Forum:', 'bbpress' ); ?></label><br />
    100                                     <?php bbp_dropdown( array( 'show_none' => __( '(No Parent)', 'bbpress' ), 'selected' => bbp_get_form_forum_parent() ) ); ?>
    101                                 </p>
     154                        <?php do_action( 'bbp_theme_before_forum_form_submit_button' ); ?>
    102155
    103                                 <?php do_action( 'bbp_theme_after_forum_form_parent' ); ?>
     156                        <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_forum_submit" name="bbp_forum_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
    104157
    105                             <?php endif; ?>
    106 
    107                         </fieldset>
    108 
    109                         <fieldset class="bbp-forum-form-main">
    110 
    111                             <?php do_action( 'bbp_theme_before_forum_form_title' ); ?>
    112 
    113                             <p>
    114                                 <label for="bbp_forum_title"><?php printf( __( 'Forum Name (Maximum Length: %d):', 'bbpress' ), bbp_get_title_max_length() ); ?></label><br />
    115                                 <input type="text" id="bbp_forum_title" value="<?php bbp_form_forum_title(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_forum_title" maxlength="<?php bbp_title_max_length(); ?>" />
    116                             </p>
    117 
    118                             <?php do_action( 'bbp_theme_after_forum_form_title' ); ?>
    119 
    120                             <?php do_action( 'bbp_theme_before_forum_form_content' ); ?>
    121 
    122                             <?php if ( !function_exists( 'wp_editor' ) ) : ?>
    123 
    124                                 <p>
    125                                     <label for="bbp_forum_content"><?php _e( 'Forum Description:', 'bbpress' ); ?></label><br />
    126                                     <textarea id="bbp_forum_content" tabindex="<?php bbp_tab_index(); ?>" name="bbp_forum_content" cols="60" rows="10"><?php bbp_form_forum_content(); ?></textarea>
    127                                 </p>
    128 
    129                             <?php else : ?>
    130 
    131                                 <?php bbp_the_content( array( 'context' => 'forum' ) ); ?>
    132 
    133                             <?php endif; ?>
    134 
    135                             <?php do_action( 'bbp_theme_after_forum_form_content' ); ?>
    136 
    137                             <?php if ( !current_user_can( 'unfiltered_html' ) ) : ?>
    138 
    139                                 <p class="form-allowed-tags">
    140                                     <label><?php _e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br />
    141                                     <code><?php bbp_allowed_tags(); ?></code>
    142                                 </p>
    143 
    144                             <?php endif; ?>
    145 
    146                         </fieldset>
    147 
    148                         <?php do_action( 'bbp_theme_before_forum_form_submit_wrapper' ); ?>
    149 
    150                         <div class="bbp-submit-wrapper">
    151 
    152                             <?php do_action( 'bbp_theme_before_forum_form_submit_button' ); ?>
    153 
    154                             <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_forum_submit" name="bbp_forum_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
    155 
    156                             <?php do_action( 'bbp_theme_after_forum_form_submit_button' ); ?>
    157 
    158                         </div>
    159 
    160                         <?php do_action( 'bbp_theme_after_forum_form_submit_wrapper' ); ?>
     158                        <?php do_action( 'bbp_theme_after_forum_form_submit_button' ); ?>
    161159
    162160                    </div>
    163161
    164                     <?php bbp_forum_form_fields(); ?>
     162                    <?php do_action( 'bbp_theme_after_forum_form_submit_wrapper' ); ?>
    165163
    166                 </fieldset>
     164                </div>
    167165
    168                 <?php do_action( 'bbp_theme_after_forum_form' ); ?>
     166                <?php bbp_forum_form_fields(); ?>
    169167
    170             </form>
     168            </fieldset>
     169
     170            <?php do_action( 'bbp_theme_after_forum_form' ); ?>
     171
     172        </form>
     173    </div>
     174
     175<?php elseif ( bbp_is_forum_closed() ) : ?>
     176
     177    <div id="no-forum-<?php bbp_forum_id(); ?>" class="bbp-no-forum">
     178        <div class="bbp-template-notice">
     179            <p><?php printf( __( 'The forum &#8216;%s&#8217; is closed to new content.', 'bbpress' ), bbp_get_forum_title() ); ?></p>
    171180        </div>
     181    </div>
    172182
    173     <?php elseif ( bbp_is_forum_closed() ) : ?>
     183<?php else : ?>
    174184
    175         <div id="no-forum-<?php bbp_forum_id(); ?>" class="bbp-no-forum">
    176             <div class="bbp-template-notice">
    177                 <p><?php printf( __( 'The forum &#8216;%s&#8217; is closed to new content.', 'bbpress' ), bbp_get_forum_title() ); ?></p>
    178             </div>
     185    <div id="no-forum-<?php bbp_forum_id(); ?>" class="bbp-no-forum">
     186        <div class="bbp-template-notice">
     187            <p><?php is_user_logged_in() ? _e( 'You cannot create new forums at this time.', 'bbpress' ) : _e( 'You must be logged in to create new forums.', 'bbpress' ); ?></p>
    179188        </div>
     189    </div>
    180190
    181     <?php else : ?>
     191<?php endif; ?>
    182192
    183         <div id="no-forum-<?php bbp_forum_id(); ?>" class="bbp-no-forum">
    184             <div class="bbp-template-notice">
    185                 <p><?php is_user_logged_in() ? _e( 'You cannot create new forums at this time.', 'bbpress' ) : _e( 'You must be logged in to create new forums.', 'bbpress' ); ?></p>
    186             </div>
    187         </div>
     193<?php if ( bbp_is_forum_edit() ) : ?>
    188194
    189     <?php endif; ?>
     195</div>
     196
     197<?php endif; ?>
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/form-protected.php

    r3386 r3651  
    1010?>
    1111
     12<div id="bbpress-forums">
    1213    <fieldset class="bbp-form" id="bbp-protected">
    1314        <Legend><?php _e( 'Protected', 'bbpress' ); ?></legend>
     
    1617
    1718    </fieldset>
     19</div>
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/form-reply.php

    r3586 r3651  
    1010?>
    1111
    12     <?php if ( bbp_is_reply_edit() ) : ?>
     12<?php if ( bbp_is_reply_edit() ) : ?>
    1313
    14         <?php bbp_breadcrumb(); ?>
     14<div id="bbpress-forums">
    1515
    16     <?php endif; ?>
     16    <?php bbp_breadcrumb(); ?>
    1717
    18     <?php if ( bbp_current_user_can_access_create_reply_form() ) : ?>
     18<?php endif; ?>
    1919
    20         <div id="new-reply-<?php bbp_topic_id(); ?>" class="bbp-reply-form">
     20<?php if ( bbp_current_user_can_access_create_reply_form() ) : ?>
    2121
    22             <form id="new-post" name="new-post" method="post" action="">
     22    <div id="new-reply-<?php bbp_topic_id(); ?>" class="bbp-reply-form">
    2323
    24                 <?php do_action( 'bbp_theme_before_reply_form' ); ?>
     24        <form id="new-post" name="new-post" method="post" action="">
    2525
    26                 <fieldset class="bbp-form">
    27                     <legend><?php printf( __( 'Reply To: %s', 'bbpress' ), bbp_get_topic_title() ); ?></legend>
     26            <?php do_action( 'bbp_theme_before_reply_form' ); ?>
    2827
    29                     <?php do_action( 'bbp_theme_before_reply_form_notices' ); ?>
     28            <fieldset class="bbp-form">
     29                <legend><?php printf( __( 'Reply To: %s', 'bbpress' ), bbp_get_topic_title() ); ?></legend>
    3030
    31                     <?php if ( !bbp_is_topic_open() && !bbp_is_reply_edit() ) : ?>
     31                <?php do_action( 'bbp_theme_before_reply_form_notices' ); ?>
    3232
    33                         <div class="bbp-template-notice">
    34                             <p><?php _e( 'This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></p>
    35                         </div>
     33                <?php if ( !bbp_is_topic_open() && !bbp_is_reply_edit() ) : ?>
     34
     35                    <div class="bbp-template-notice">
     36                        <p><?php _e( 'This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></p>
     37                    </div>
     38
     39                <?php endif; ?>
     40
     41                <?php if ( current_user_can( 'unfiltered_html' ) ) : ?>
     42
     43                    <div class="bbp-template-notice">
     44                        <p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
     45                    </div>
     46
     47                <?php endif; ?>
     48
     49                <?php do_action( 'bbp_template_notices' ); ?>
     50
     51                <div>
     52
     53                    <?php bbp_get_template_part( 'bbpress/form', 'anonymous' ); ?>
     54
     55                    <?php do_action( 'bbp_theme_before_reply_form_content' ); ?>
     56
     57                    <?php if ( !function_exists( 'wp_editor' ) ) : ?>
     58
     59                        <p>
     60                            <label for="bbp_reply_content"><?php _e( 'Reply:', 'bbpress' ); ?></label><br />
     61                            <textarea id="bbp_reply_content" tabindex="<?php bbp_tab_index(); ?>" name="bbp_reply_content" rows="6"><?php bbp_form_reply_content(); ?></textarea>
     62                        </p>
     63
     64                    <?php else : ?>
     65
     66                        <?php bbp_the_content( array( 'context' => 'reply' ) ); ?>
    3667
    3768                    <?php endif; ?>
    3869
    39                     <?php if ( current_user_can( 'unfiltered_html' ) ) : ?>
     70                    <?php do_action( 'bbp_theme_after_reply_form_content' ); ?>
    4071
    41                         <div class="bbp-template-notice">
    42                             <p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
    43                         </div>
     72                    <?php if ( !current_user_can( 'unfiltered_html' ) ) : ?>
     73
     74                        <p class="form-allowed-tags">
     75                            <label><?php _e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br />
     76                            <code><?php bbp_allowed_tags(); ?></code>
     77                        </p>
    4478
    4579                    <?php endif; ?>
    4680
    47                     <?php do_action( 'bbp_template_notices' ); ?>
     81                    <?php do_action( 'bbp_theme_before_reply_form_tags' ); ?>
    4882
    49                     <div>
     83                    <p>
     84                        <label for="bbp_topic_tags"><?php _e( 'Tags:', 'bbpress' ); ?></label><br />
     85                        <input type="text" value="<?php bbp_form_topic_tags(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> />
     86                    </p>
    5087
    51                         <?php bbp_get_template_part( 'bbpress/form', 'anonymous' ); ?>
     88                    <?php do_action( 'bbp_theme_after_reply_form_tags' ); ?>
    5289
    53                         <?php do_action( 'bbp_theme_before_reply_form_content' ); ?>
     90                    <?php if ( bbp_is_subscriptions_active() && !bbp_is_anonymous() && ( !bbp_is_reply_edit() || ( bbp_is_reply_edit() && !bbp_is_reply_anonymous() ) ) ) : ?>
    5491
    55                         <?php if ( !function_exists( 'wp_editor' ) ) : ?>
    56 
    57                             <p>
    58                                 <label for="bbp_reply_content"><?php _e( 'Reply:', 'bbpress' ); ?></label><br />
    59                                 <textarea id="bbp_reply_content" tabindex="<?php bbp_tab_index(); ?>" name="bbp_reply_content" rows="6"><?php bbp_form_reply_content(); ?></textarea>
    60                             </p>
    61 
    62                         <?php else : ?>
    63 
    64                             <?php bbp_the_content( array( 'context' => 'reply' ) ); ?>
    65                            
    66                         <?php endif; ?>
    67 
    68                         <?php do_action( 'bbp_theme_after_reply_form_content' ); ?>
    69 
    70                         <?php if ( !current_user_can( 'unfiltered_html' ) ) : ?>
    71 
    72                             <p class="form-allowed-tags">
    73                                 <label><?php _e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br />
    74                                 <code><?php bbp_allowed_tags(); ?></code>
    75                             </p>
    76 
    77                         <?php endif; ?>
    78 
    79                         <?php do_action( 'bbp_theme_before_reply_form_tags' ); ?>
     92                        <?php do_action( 'bbp_theme_before_reply_form_subscription' ); ?>
    8093
    8194                        <p>
    82                             <label for="bbp_topic_tags"><?php _e( 'Tags:', 'bbpress' ); ?></label><br />
    83                             <input type="text" value="<?php bbp_form_topic_tags(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> />
     95
     96                            <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php bbp_form_topic_subscribed(); ?> tabindex="<?php bbp_tab_index(); ?>" />
     97
     98                            <?php if ( bbp_is_reply_edit() && $post->post_author != bbp_get_current_user_id() ) : ?>
     99
     100                                <label for="bbp_topic_subscription"><?php _e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label>
     101
     102                            <?php else : ?>
     103
     104                                <label for="bbp_topic_subscription"><?php _e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label>
     105
     106                            <?php endif; ?>
     107
    84108                        </p>
    85109
    86                         <?php do_action( 'bbp_theme_after_reply_form_tags' ); ?>
     110                        <?php do_action( 'bbp_theme_after_reply_form_subscription' ); ?>
    87111
    88                         <?php if ( bbp_is_subscriptions_active() && !bbp_is_anonymous() && ( !bbp_is_reply_edit() || ( bbp_is_reply_edit() && !bbp_is_reply_anonymous() ) ) ) : ?>
     112                    <?php endif; ?>
    89113
    90                             <?php do_action( 'bbp_theme_before_reply_form_subscription' ); ?>
     114                    <?php if ( bbp_allow_revisions() && bbp_is_reply_edit() ) : ?>
    91115
    92                             <p>
     116                        <?php do_action( 'bbp_theme_before_reply_form_revisions' ); ?>
    93117
    94                                 <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php bbp_form_topic_subscribed(); ?> tabindex="<?php bbp_tab_index(); ?>" />
     118                        <fieldset class="bbp-form">
     119                            <legend><?php _e( 'Revision', 'bbpress' ); ?></legend>
     120                            <div>
     121                                <input name="bbp_log_reply_edit" id="bbp_log_reply_edit" type="checkbox" value="1" <?php bbp_form_reply_log_edit(); ?> tabindex="<?php bbp_tab_index(); ?>" />
     122                                <label for="bbp_log_reply_edit"><?php _e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br />
     123                            </div>
    95124
    96                                 <?php if ( bbp_is_reply_edit() && $post->post_author != bbp_get_current_user_id() ) : ?>
     125                            <div>
     126                                <label for="bbp_reply_edit_reason"><?php printf( __( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br />
     127                                <input type="text" value="<?php bbp_form_reply_edit_reason(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_reply_edit_reason" id="bbp_reply_edit_reason" />
     128                            </div>
     129                        </fieldset>
    97130
    98                                     <label for="bbp_topic_subscription"><?php _e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label>
     131                        <?php do_action( 'bbp_theme_after_reply_form_revisions' ); ?>
    99132
    100                                 <?php else : ?>
     133                    <?php else : ?>
    101134
    102                                     <label for="bbp_topic_subscription"><?php _e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label>
     135                        <?php bbp_topic_admin_links(); ?>
    103136
    104                                 <?php endif; ?>
     137                    <?php endif; ?>
    105138
    106                             </p>
     139                    <?php do_action( 'bbp_theme_before_reply_form_submit_wrapper' ); ?>
    107140
    108                             <?php do_action( 'bbp_theme_after_reply_form_subscription' ); ?>
     141                    <div class="bbp-submit-wrapper">
    109142
    110                         <?php endif; ?>
     143                        <?php do_action( 'bbp_theme_before_reply_form_submit_button' ); ?>
    111144
    112                         <?php if ( bbp_allow_revisions() && bbp_is_reply_edit() ) : ?>
     145                        <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_reply_submit" name="bbp_reply_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
    113146
    114                             <?php do_action( 'bbp_theme_before_reply_form_revisions' ); ?>
    115 
    116                             <fieldset class="bbp-form">
    117                                 <legend><?php _e( 'Revision', 'bbpress' ); ?></legend>
    118                                 <div>
    119                                     <input name="bbp_log_reply_edit" id="bbp_log_reply_edit" type="checkbox" value="1" <?php bbp_form_reply_log_edit(); ?> tabindex="<?php bbp_tab_index(); ?>" />
    120                                     <label for="bbp_log_reply_edit"><?php _e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br />
    121                                 </div>
    122 
    123                                 <div>
    124                                     <label for="bbp_reply_edit_reason"><?php printf( __( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br />
    125                                     <input type="text" value="<?php bbp_form_reply_edit_reason(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_reply_edit_reason" id="bbp_reply_edit_reason" />
    126                                 </div>
    127                             </fieldset>
    128 
    129                             <?php do_action( 'bbp_theme_after_reply_form_revisions' ); ?>
    130 
    131                         <?php else : ?>
    132 
    133                             <?php bbp_topic_admin_links(); ?>
    134 
    135                         <?php endif; ?>
    136 
    137                         <?php do_action( 'bbp_theme_before_reply_form_submit_wrapper' ); ?>
    138 
    139                         <div class="bbp-submit-wrapper">
    140 
    141                             <?php do_action( 'bbp_theme_before_reply_form_submit_button' ); ?>
    142 
    143                             <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_reply_submit" name="bbp_reply_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
    144 
    145                             <?php do_action( 'bbp_theme_after_reply_form_submit_button' ); ?>
    146 
    147                         </div>
    148 
    149                         <?php do_action( 'bbp_theme_after_reply_form_submit_wrapper' ); ?>
     147                        <?php do_action( 'bbp_theme_after_reply_form_submit_button' ); ?>
    150148
    151149                    </div>
    152150
    153                     <?php bbp_reply_form_fields(); ?>
     151                    <?php do_action( 'bbp_theme_after_reply_form_submit_wrapper' ); ?>
    154152
    155                 </fieldset>
     153                </div>
    156154
    157                 <?php do_action( 'bbp_theme_after_reply_form' ); ?>
     155                <?php bbp_reply_form_fields(); ?>
    158156
    159             </form>
     157            </fieldset>
     158
     159            <?php do_action( 'bbp_theme_after_reply_form' ); ?>
     160
     161        </form>
     162    </div>
     163
     164<?php elseif ( bbp_is_topic_closed() ) : ?>
     165
     166    <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
     167        <div class="bbp-template-notice">
     168            <p><?php printf( __( 'The topic &#8216;%s&#8217; is closed to new replies.', 'bbpress' ), bbp_get_topic_title() ); ?></p>
    160169        </div>
     170    </div>
    161171
    162     <?php elseif ( bbp_is_topic_closed() ) : ?>
     172<?php elseif ( bbp_is_forum_closed( bbp_get_topic_forum_id() ) ) : ?>
    163173
    164         <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
    165             <div class="bbp-template-notice">
    166                 <p><?php printf( __( 'The topic &#8216;%s&#8217; is closed to new replies.', 'bbpress' ), bbp_get_topic_title() ); ?></p>
    167             </div>
     174    <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
     175        <div class="bbp-template-notice">
     176            <p><?php printf( __( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'bbpress' ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?></p>
    168177        </div>
     178    </div>
    169179
    170     <?php elseif ( bbp_is_forum_closed( bbp_get_topic_forum_id() ) ) : ?>
     180<?php else : ?>
    171181
    172         <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
    173             <div class="bbp-template-notice">
    174                 <p><?php printf( __( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'bbpress' ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?></p>
    175             </div>
     182    <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
     183        <div class="bbp-template-notice">
     184            <p><?php is_user_logged_in() ? _e( 'You cannot reply to this topic.', 'bbpress' ) : _e( 'You must be logged in to reply to this topic.', 'bbpress' ); ?></p>
    176185        </div>
     186    </div>
    177187
    178     <?php else : ?>
     188<?php endif; ?>
    179189
    180         <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
    181             <div class="bbp-template-notice">
    182                 <p><?php is_user_logged_in() ? _e( 'You cannot reply to this topic.', 'bbpress' ) : _e( 'You must be logged in to reply to this topic.', 'bbpress' ); ?></p>
    183             </div>
    184         </div>
     190<?php if ( bbp_is_reply_edit() ) : ?>
    185191
    186     <?php endif; ?>
     192</div>
     193
     194<?php endif; ?>
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/form-topic-merge.php

    r3491 r3651  
    99
    1010?>
     11
     12<div id="bbpress-forums">
    1113
    1214    <?php bbp_breadcrumb(); ?>
     
    103105
    104106    <?php endif; ?>
     107
     108</div>
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/form-topic-split.php

    r3491 r3651  
    99
    1010?>
     11
     12<div id="bbpress-forums">
    1113
    1214    <?php bbp_breadcrumb(); ?>
     
    107109
    108110    <?php endif; ?>
     111
     112</div>
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/form-topic.php

    r3586 r3651  
    1010?>
    1111
    12     <?php if ( !bbp_is_single_forum() ) : ?>
    13 
    14         <?php bbp_breadcrumb(); ?>
    15 
    16     <?php endif; ?>
    17 
    18     <?php if ( bbp_is_topic_edit() ) : ?>
    19 
    20         <?php bbp_topic_tag_list( bbp_get_topic_id() ); ?>
    21 
    22         <?php bbp_single_topic_description( array( 'topic_id' => bbp_get_topic_id() ) ); ?>
    23 
    24     <?php endif; ?>
    25 
    26     <?php if ( bbp_current_user_can_access_create_topic_form() ) : ?>
    27 
    28         <div id="new-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-form">
    29 
    30             <form id="new-post" name="new-post" method="post" action="">
    31 
    32                 <?php do_action( 'bbp_theme_before_topic_form' ); ?>
    33 
    34                 <fieldset class="bbp-form">
    35                     <legend>
    36 
    37                         <?php
    38                             if ( bbp_is_topic_edit() )
    39                                 printf( __( 'Now Editing &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_topic_title() );
    40                             else
    41                                 bbp_is_single_forum() ? printf( __( 'Create New Topic in &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_forum_title() ) : _e( 'Create New Topic', 'bbpress' );
    42                         ?>
    43 
    44                     </legend>
    45 
    46                     <?php do_action( 'bbp_theme_before_topic_form_notices' ); ?>
    47 
    48                     <?php if ( !bbp_is_topic_edit() && bbp_is_forum_closed() ) : ?>
    49 
    50                         <div class="bbp-template-notice">
    51                             <p><?php _e( 'This forum is marked as closed to new topics, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></p>
    52                         </div>
    53 
    54                     <?php endif; ?>
    55 
    56                     <?php if ( current_user_can( 'unfiltered_html' ) ) : ?>
    57 
    58                         <div class="bbp-template-notice">
    59                             <p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
    60                         </div>
    61 
    62                     <?php endif; ?>
    63 
    64                     <?php do_action( 'bbp_template_notices' ); ?>
    65 
    66                     <div>
    67 
    68                         <?php bbp_get_template_part( 'bbpress/form', 'anonymous' ); ?>
    69 
    70                         <?php do_action( 'bbp_theme_before_topic_form_title' ); ?>
    71 
    72                         <p>
    73                             <label for="bbp_topic_title"><?php printf( __( 'Topic Title (Maximum Length: %d):', 'bbpress' ), bbp_get_title_max_length() ); ?></label><br />
    74                             <input type="text" id="bbp_topic_title" value="<?php bbp_form_topic_title(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_title" maxlength="<?php bbp_title_max_length(); ?>" />
    75                         </p>
    76 
    77                         <?php do_action( 'bbp_theme_after_topic_form_title' ); ?>
    78 
    79                         <?php do_action( 'bbp_theme_before_topic_form_content' ); ?>
    80 
    81                         <?php if ( !function_exists( 'wp_editor' ) ) : ?>
    82 
    83                             <p>
    84                                 <label for="bbp_reply_content"><?php _e( 'Reply:', 'bbpress' ); ?></label><br />
    85                                 <textarea id="bbp_topic_content" tabindex="<?php bbp_tab_index(); ?>" name="bbp_topic_content" cols="60" rows="6"><?php bbp_form_topic_content(); ?></textarea>
    86                             </p>
    87 
    88                         <?php else : ?>
    89 
    90                             <?php bbp_the_content( array( 'context' => 'topic' ) ); ?>
    91                            
    92                         <?php endif; ?>
    93 
    94                         <?php do_action( 'bbp_theme_after_topic_form_content' ); ?>
    95 
    96                         <?php if ( !current_user_can( 'unfiltered_html' ) ) : ?>
    97 
    98                             <p class="form-allowed-tags">
    99                                 <label><?php _e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br />
    100                                 <code><?php bbp_allowed_tags(); ?></code>
    101                             </p>
    102 
    103                         <?php endif; ?>
    104 
    105                         <?php do_action( 'bbp_theme_before_topic_form_tags' ); ?>
    106 
    107                         <p>
    108                             <label for="bbp_topic_tags"><?php _e( 'Topic Tags:', 'bbpress' ); ?></label><br />
    109                             <input type="text" value="<?php bbp_form_topic_tags(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> />
    110                         </p>
    111 
    112                         <?php do_action( 'bbp_theme_after_topic_form_tags' ); ?>
    113 
    114                         <?php if ( !bbp_is_single_forum() ) : ?>
    115 
    116                             <?php do_action( 'bbp_theme_before_topic_form_forum' ); ?>
    117 
    118                             <p>
    119                                 <label for="bbp_forum_id"><?php _e( 'Forum:', 'bbpress' ); ?></label><br />
    120                                 <?php bbp_dropdown( array( 'selected' => bbp_get_form_topic_forum() ) ); ?>
    121                             </p>
    122 
    123                             <?php do_action( 'bbp_theme_after_topic_form_forum' ); ?>
    124 
    125                         <?php endif; ?>
    126 
    127                         <?php if ( current_user_can( 'moderate' ) ) : ?>
    128 
    129                             <?php do_action( 'bbp_theme_before_topic_form_type' ); ?>
    130 
    131                             <p>
    132 
    133                                 <label for="bbp_stick_topic"><?php _e( 'Topic Type:', 'bbpress' ); ?></label><br />
    134 
    135                                 <?php bbp_topic_type_select(); ?>
    136 
    137                             </p>
    138 
    139                             <?php do_action( 'bbp_theme_after_topic_form_type' ); ?>
    140 
    141                         <?php endif; ?>
    142 
    143                         <?php if ( bbp_is_subscriptions_active() && !bbp_is_anonymous() && ( !bbp_is_topic_edit() || ( bbp_is_topic_edit() && !bbp_is_topic_anonymous() ) ) ) : ?>
    144 
    145                             <?php do_action( 'bbp_theme_before_topic_form_subscriptions' ); ?>
    146 
    147                             <p>
    148                                 <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe" <?php bbp_form_topic_subscribed(); ?> tabindex="<?php bbp_tab_index(); ?>" />
    149 
    150                                 <?php if ( bbp_is_topic_edit() && ( $post->post_author != bbp_get_current_user_id() ) ) : ?>
    151 
    152                                     <label for="bbp_topic_subscription"><?php _e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label>
    153 
    154                                 <?php else : ?>
    155 
    156                                     <label for="bbp_topic_subscription"><?php _e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label>
    157 
    158                                 <?php endif; ?>
    159                             </p>
    160 
    161                             <?php do_action( 'bbp_theme_after_topic_form_subscriptions' ); ?>
    162 
    163                         <?php endif; ?>
    164 
    165                         <?php if ( bbp_allow_revisions() && bbp_is_topic_edit() ) : ?>
    166 
    167                             <?php do_action( 'bbp_theme_before_topic_form_revisions' ); ?>
    168 
    169                             <fieldset class="bbp-form">
    170                                 <legend><?php _e( 'Revision', 'bbpress' ); ?></legend>
    171                                 <div>
    172                                     <input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" <?php bbp_form_topic_log_edit(); ?> tabindex="<?php bbp_tab_index(); ?>" />
    173                                     <label for="bbp_log_topic_edit"><?php _e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br />
    174                                 </div>
    175 
    176                                 <div>
    177                                     <label for="bbp_topic_edit_reason"><?php printf( __( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br />
    178                                     <input type="text" value="<?php bbp_form_topic_edit_reason(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" />
    179                                 </div>
    180                             </fieldset>
    181 
    182                             <?php do_action( 'bbp_theme_after_topic_form_revisions' ); ?>
    183 
    184                         <?php endif; ?>
    185 
    186                         <?php do_action( 'bbp_theme_before_topic_form_submit_wrapper' ); ?>
    187 
    188                         <div class="bbp-submit-wrapper">
    189 
    190                             <?php do_action( 'bbp_theme_before_topic_form_submit_button' ); ?>
    191 
    192                             <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_topic_submit" name="bbp_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
    193 
    194                             <?php do_action( 'bbp_theme_after_topic_form_submit_button' ); ?>
    195 
    196                         </div>
    197 
    198                         <?php do_action( 'bbp_theme_after_topic_form_submit_wrapper' ); ?>
    199 
     12<?php if ( !bbp_is_single_forum() ) : ?>
     13
     14<div id="bbpress-forums">
     15
     16    <?php bbp_breadcrumb(); ?>
     17
     18<?php endif; ?>
     19
     20<?php if ( bbp_is_topic_edit() ) : ?>
     21
     22    <?php bbp_topic_tag_list( bbp_get_topic_id() ); ?>
     23
     24    <?php bbp_single_topic_description( array( 'topic_id' => bbp_get_topic_id() ) ); ?>
     25
     26<?php endif; ?>
     27
     28<?php if ( bbp_current_user_can_access_create_topic_form() ) : ?>
     29
     30    <div id="new-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-form">
     31
     32        <form id="new-post" name="new-post" method="post" action="">
     33
     34            <?php do_action( 'bbp_theme_before_topic_form' ); ?>
     35
     36            <fieldset class="bbp-form">
     37                <legend>
     38
     39                    <?php
     40                        if ( bbp_is_topic_edit() )
     41                            printf( __( 'Now Editing &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_topic_title() );
     42                        else
     43                            bbp_is_single_forum() ? printf( __( 'Create New Topic in &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_forum_title() ) : _e( 'Create New Topic', 'bbpress' );
     44                    ?>
     45
     46                </legend>
     47
     48                <?php do_action( 'bbp_theme_before_topic_form_notices' ); ?>
     49
     50                <?php if ( !bbp_is_topic_edit() && bbp_is_forum_closed() ) : ?>
     51
     52                    <div class="bbp-template-notice">
     53                        <p><?php _e( 'This forum is marked as closed to new topics, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></p>
    20054                    </div>
    20155
    202                     <?php bbp_topic_form_fields(); ?>
    203 
    204                 </fieldset>
    205 
    206                 <?php do_action( 'bbp_theme_after_topic_form' ); ?>
    207 
    208             </form>
     56                <?php endif; ?>
     57
     58                <?php if ( current_user_can( 'unfiltered_html' ) ) : ?>
     59
     60                    <div class="bbp-template-notice">
     61                        <p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
     62                    </div>
     63
     64                <?php endif; ?>
     65
     66                <?php do_action( 'bbp_template_notices' ); ?>
     67
     68                <div>
     69
     70                    <?php bbp_get_template_part( 'bbpress/form', 'anonymous' ); ?>
     71
     72                    <?php do_action( 'bbp_theme_before_topic_form_title' ); ?>
     73
     74                    <p>
     75                        <label for="bbp_topic_title"><?php printf( __( 'Topic Title (Maximum Length: %d):', 'bbpress' ), bbp_get_title_max_length() ); ?></label><br />
     76                        <input type="text" id="bbp_topic_title" value="<?php bbp_form_topic_title(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_title" maxlength="<?php bbp_title_max_length(); ?>" />
     77                    </p>
     78
     79                    <?php do_action( 'bbp_theme_after_topic_form_title' ); ?>
     80
     81                    <?php do_action( 'bbp_theme_before_topic_form_content' ); ?>
     82
     83                    <?php if ( !function_exists( 'wp_editor' ) ) : ?>
     84
     85                        <p>
     86                            <label for="bbp_reply_content"><?php _e( 'Reply:', 'bbpress' ); ?></label><br />
     87                            <textarea id="bbp_topic_content" tabindex="<?php bbp_tab_index(); ?>" name="bbp_topic_content" cols="60" rows="6"><?php bbp_form_topic_content(); ?></textarea>
     88                        </p>
     89
     90                    <?php else : ?>
     91
     92                        <?php bbp_the_content( array( 'context' => 'topic' ) ); ?>
     93
     94                    <?php endif; ?>
     95
     96                    <?php do_action( 'bbp_theme_after_topic_form_content' ); ?>
     97
     98                    <?php if ( !current_user_can( 'unfiltered_html' ) ) : ?>
     99
     100                        <p class="form-allowed-tags">
     101                            <label><?php _e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br />
     102                            <code><?php bbp_allowed_tags(); ?></code>
     103                        </p>
     104
     105                    <?php endif; ?>
     106
     107                    <?php do_action( 'bbp_theme_before_topic_form_tags' ); ?>
     108
     109                    <p>
     110                        <label for="bbp_topic_tags"><?php _e( 'Topic Tags:', 'bbpress' ); ?></label><br />
     111                        <input type="text" value="<?php bbp_form_topic_tags(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> />
     112                    </p>
     113
     114                    <?php do_action( 'bbp_theme_after_topic_form_tags' ); ?>
     115
     116                    <?php if ( !bbp_is_single_forum() ) : ?>
     117
     118                        <?php do_action( 'bbp_theme_before_topic_form_forum' ); ?>
     119
     120                        <p>
     121                            <label for="bbp_forum_id"><?php _e( 'Forum:', 'bbpress' ); ?></label><br />
     122                            <?php bbp_dropdown( array( 'selected' => bbp_get_form_topic_forum() ) ); ?>
     123                        </p>
     124
     125                        <?php do_action( 'bbp_theme_after_topic_form_forum' ); ?>
     126
     127                    <?php endif; ?>
     128
     129                    <?php if ( current_user_can( 'moderate' ) ) : ?>
     130
     131                        <?php do_action( 'bbp_theme_before_topic_form_type' ); ?>
     132
     133                        <p>
     134
     135                            <label for="bbp_stick_topic"><?php _e( 'Topic Type:', 'bbpress' ); ?></label><br />
     136
     137                            <?php bbp_topic_type_select(); ?>
     138
     139                        </p>
     140
     141                        <?php do_action( 'bbp_theme_after_topic_form_type' ); ?>
     142
     143                    <?php endif; ?>
     144
     145                    <?php if ( bbp_is_subscriptions_active() && !bbp_is_anonymous() && ( !bbp_is_topic_edit() || ( bbp_is_topic_edit() && !bbp_is_topic_anonymous() ) ) ) : ?>
     146
     147                        <?php do_action( 'bbp_theme_before_topic_form_subscriptions' ); ?>
     148
     149                        <p>
     150                            <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe" <?php bbp_form_topic_subscribed(); ?> tabindex="<?php bbp_tab_index(); ?>" />
     151
     152                            <?php if ( bbp_is_topic_edit() && ( $post->post_author != bbp_get_current_user_id() ) ) : ?>
     153
     154                                <label for="bbp_topic_subscription"><?php _e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label>
     155
     156                            <?php else : ?>
     157
     158                                <label for="bbp_topic_subscription"><?php _e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label>
     159
     160                            <?php endif; ?>
     161                        </p>
     162
     163                        <?php do_action( 'bbp_theme_after_topic_form_subscriptions' ); ?>
     164
     165                    <?php endif; ?>
     166
     167                    <?php if ( bbp_allow_revisions() && bbp_is_topic_edit() ) : ?>
     168
     169                        <?php do_action( 'bbp_theme_before_topic_form_revisions' ); ?>
     170
     171                        <fieldset class="bbp-form">
     172                            <legend><?php _e( 'Revision', 'bbpress' ); ?></legend>
     173                            <div>
     174                                <input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" <?php bbp_form_topic_log_edit(); ?> tabindex="<?php bbp_tab_index(); ?>" />
     175                                <label for="bbp_log_topic_edit"><?php _e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br />
     176                            </div>
     177
     178                            <div>
     179                                <label for="bbp_topic_edit_reason"><?php printf( __( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br />
     180                                <input type="text" value="<?php bbp_form_topic_edit_reason(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" />
     181                            </div>
     182                        </fieldset>
     183
     184                        <?php do_action( 'bbp_theme_after_topic_form_revisions' ); ?>
     185
     186                    <?php endif; ?>
     187
     188                    <?php do_action( 'bbp_theme_before_topic_form_submit_wrapper' ); ?>
     189
     190                    <div class="bbp-submit-wrapper">
     191
     192                        <?php do_action( 'bbp_theme_before_topic_form_submit_button' ); ?>
     193
     194                        <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_topic_submit" name="bbp_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
     195
     196                        <?php do_action( 'bbp_theme_after_topic_form_submit_button' ); ?>
     197
     198                    </div>
     199
     200                    <?php do_action( 'bbp_theme_after_topic_form_submit_wrapper' ); ?>
     201
     202                </div>
     203
     204                <?php bbp_topic_form_fields(); ?>
     205
     206            </fieldset>
     207
     208            <?php do_action( 'bbp_theme_after_topic_form' ); ?>
     209
     210        </form>
     211    </div>
     212
     213<?php elseif ( bbp_is_forum_closed() ) : ?>
     214
     215    <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
     216        <div class="bbp-template-notice">
     217            <p><?php printf( __( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'bbpress' ), bbp_get_forum_title() ); ?></p>
    209218        </div>
    210 
    211     <?php elseif ( bbp_is_forum_closed() ) : ?>
    212 
    213         <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
    214             <div class="bbp-template-notice">
    215                 <p><?php printf( __( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'bbpress' ), bbp_get_forum_title() ); ?></p>
    216             </div>
     219    </div>
     220
     221<?php else : ?>
     222
     223    <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
     224        <div class="bbp-template-notice">
     225            <p><?php is_user_logged_in() ? _e( 'You cannot create new topics at this time.', 'bbpress' ) : _e( 'You must be logged in to create new topics.', 'bbpress' ); ?></p>
    217226        </div>
    218 
    219     <?php else : ?>
    220 
    221         <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
    222             <div class="bbp-template-notice">
    223                 <p><?php is_user_logged_in() ? _e( 'You cannot create new topics at this time.', 'bbpress' ) : _e( 'You must be logged in to create new topics.', 'bbpress' ); ?></p>
    224             </div>
    225         </div>
    226 
    227     <?php endif; ?>
     227    </div>
     228
     229<?php endif; ?>
     230
     231<?php if ( !bbp_is_single_forum() ) : ?>
     232
     233</div>
     234
     235<?php endif; ?>
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/form-user-login.php

    r3375 r3651  
    1010?>
    1111
    12     <form method="post" action="<?php bbp_wp_login_action( array( 'context' => 'login_post' ) ); ?>" class="bbp-login-form">
    13         <fieldset class="bbp-form">
    14             <legend><?php _e( 'Log In', 'bbpress' ); ?></legend>
     12<form method="post" action="<?php bbp_wp_login_action( array( 'context' => 'login_post' ) ); ?>" class="bbp-login-form">
     13    <fieldset class="bbp-form">
     14        <legend><?php _e( 'Log In', 'bbpress' ); ?></legend>
    1515
    16             <div class="bbp-username">
    17                 <label for="user_login"><?php _e( 'Username', 'bbpress' ); ?>: </label>
    18                 <input type="text" name="log" value="<?php bbp_sanitize_val( 'user_login', 'text' ); ?>" size="20" id="user_login" tabindex="<?php bbp_tab_index(); ?>" />
    19             </div>
     16        <div class="bbp-username">
     17            <label for="user_login"><?php _e( 'Username', 'bbpress' ); ?>: </label>
     18            <input type="text" name="log" value="<?php bbp_sanitize_val( 'user_login', 'text' ); ?>" size="20" id="user_login" tabindex="<?php bbp_tab_index(); ?>" />
     19        </div>
    2020
    21             <div class="bbp-password">
    22                 <label for="user_pass"><?php _e( 'Password', 'bbpress' ); ?>: </label>
    23                 <input type="password" name="pwd" value="<?php bbp_sanitize_val( 'user_pass', 'password' ); ?>" size="20" id="user_pass" tabindex="<?php bbp_tab_index(); ?>" />
    24             </div>
     21        <div class="bbp-password">
     22            <label for="user_pass"><?php _e( 'Password', 'bbpress' ); ?>: </label>
     23            <input type="password" name="pwd" value="<?php bbp_sanitize_val( 'user_pass', 'password' ); ?>" size="20" id="user_pass" tabindex="<?php bbp_tab_index(); ?>" />
     24        </div>
    2525
    26             <div class="bbp-remember-me">
    27                 <input type="checkbox" name="rememberme" value="forever" <?php checked( bbp_get_sanitize_val( 'rememberme', 'checkbox' ) ); ?> id="rememberme" tabindex="<?php bbp_tab_index(); ?>" />
    28                 <label for="rememberme"><?php _e( 'Keep me signed in', 'bbpress' ); ?></label>
    29             </div>
     26        <div class="bbp-remember-me">
     27            <input type="checkbox" name="rememberme" value="forever" <?php checked( bbp_get_sanitize_val( 'rememberme', 'checkbox' ) ); ?> id="rememberme" tabindex="<?php bbp_tab_index(); ?>" />
     28            <label for="rememberme"><?php _e( 'Keep me signed in', 'bbpress' ); ?></label>
     29        </div>
    3030
    31             <div class="bbp-submit-wrapper">
     31        <div class="bbp-submit-wrapper">
    3232
    33                 <?php do_action( 'login_form' ); ?>
     33            <?php do_action( 'login_form' ); ?>
    3434
    35                 <input type="submit" name="user-submit" value="<?php _e( 'Log In', 'bbpress' ); ?>" tabindex="<?php bbp_tab_index(); ?>" class="user-submit" />
     35            <input type="submit" name="user-submit" value="<?php _e( 'Log In', 'bbpress' ); ?>" tabindex="<?php bbp_tab_index(); ?>" class="user-submit" />
    3636
    37                 <?php bbp_user_login_fields(); ?>
     37            <?php bbp_user_login_fields(); ?>
    3838
    39             </div>
    40         </fieldset>
    41     </form>
     39        </div>
     40    </fieldset>
     41</form>
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/form-user-lost-pass.php

    r3207 r3651  
    1010?>
    1111
    12     <form method="post" action="<?php bbp_wp_login_action( array( 'action' => 'lostpassword', 'context' => 'login_post' ) ); ?>" class="bbp-user-register">
    13         <fieldset class="bbp-form">
    14             <legend><?php _e( 'Lost Password', 'bbpress' ); ?></legend>
     12<form method="post" action="<?php bbp_wp_login_action( array( 'action' => 'lostpassword', 'context' => 'login_post' ) ); ?>" class="bbp-user-register">
     13    <fieldset class="bbp-form">
     14        <legend><?php _e( 'Lost Password', 'bbpress' ); ?></legend>
    1515
    16             <div class="bbp-username">
    17                 <p>
    18                     <label for="user_login" class="hide"><?php _e( 'Username or Email', 'bbpress' ); ?>: </label>
    19                     <input type="text" name="user_login" value="" size="20" id="user_login" tabindex="<?php bbp_tab_index(); ?>" />
    20                 </p>
    21             </div>
     16        <div class="bbp-username">
     17            <p>
     18                <label for="user_login" class="hide"><?php _e( 'Username or Email', 'bbpress' ); ?>: </label>
     19                <input type="text" name="user_login" value="" size="20" id="user_login" tabindex="<?php bbp_tab_index(); ?>" />
     20            </p>
     21        </div>
    2222
    23             <div class="bbp-submit-wrapper">
     23        <div class="bbp-submit-wrapper">
    2424
    25                 <?php do_action( 'login_form', 'resetpass' ); ?>
     25            <?php do_action( 'login_form', 'resetpass' ); ?>
    2626
    27                 <input type="submit" name="user-submit" value="<?php _e( 'Reset my password', 'bbpress' ); ?>" class="user-submit" tabindex="<?php bbp_tab_index(); ?>" />
     27            <input type="submit" name="user-submit" value="<?php _e( 'Reset my password', 'bbpress' ); ?>" class="user-submit" tabindex="<?php bbp_tab_index(); ?>" />
    2828
    29                 <?php bbp_user_lost_pass_fields(); ?>
     29            <?php bbp_user_lost_pass_fields(); ?>
    3030
    31             </div>
    32         </fieldset>
    33     </form>
     31        </div>
     32    </fieldset>
     33</form>
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/form-user-register.php

    r3491 r3651  
    1010?>
    1111
    12     <form method="post" action="<?php bbp_wp_login_action( array( 'context' => 'login_post' ) ); ?>" class="bbp-login-form">
    13         <fieldset class="bbp-form">
    14             <legend><?php _e( 'Create an Account', 'bbpress' ); ?></legend>
     12<form method="post" action="<?php bbp_wp_login_action( array( 'context' => 'login_post' ) ); ?>" class="bbp-login-form">
     13    <fieldset class="bbp-form">
     14        <legend><?php _e( 'Create an Account', 'bbpress' ); ?></legend>
    1515
    16             <div class="bbp-template-notice">
    17                 <p><?php _e( 'Your username must be unique, and cannot be changed later.', 'bbpress' ) ?></p>
    18                 <p><?php _e( 'We use your email address to email you a secure password and verify your account.', 'bbpress' ) ?></p>
     16        <div class="bbp-template-notice">
     17            <p><?php _e( 'Your username must be unique, and cannot be changed later.', 'bbpress' ) ?></p>
     18            <p><?php _e( 'We use your email address to email you a secure password and verify your account.', 'bbpress' ) ?></p>
    1919
    20             </div>
     20        </div>
    2121
    22             <div class="bbp-username">
    23                 <label for="user_login"><?php _e( 'Username', 'bbpress' ); ?>: </label>
    24                 <input type="text" name="user_login" value="<?php bbp_sanitize_val( 'user_login' ); ?>" size="20" id="user_login" tabindex="<?php bbp_tab_index(); ?>" />
    25             </div>
     22        <div class="bbp-username">
     23            <label for="user_login"><?php _e( 'Username', 'bbpress' ); ?>: </label>
     24            <input type="text" name="user_login" value="<?php bbp_sanitize_val( 'user_login' ); ?>" size="20" id="user_login" tabindex="<?php bbp_tab_index(); ?>" />
     25        </div>
    2626
    27             <div class="bbp-email">
    28                 <label for="user_email"><?php _e( 'Email', 'bbpress' ); ?>: </label>
    29                 <input type="text" name="user_email" value="<?php bbp_sanitize_val( 'user_email' ); ?>" size="20" id="user_email" tabindex="<?php bbp_tab_index(); ?>" />
    30             </div>
     27        <div class="bbp-email">
     28            <label for="user_email"><?php _e( 'Email', 'bbpress' ); ?>: </label>
     29            <input type="text" name="user_email" value="<?php bbp_sanitize_val( 'user_email' ); ?>" size="20" id="user_email" tabindex="<?php bbp_tab_index(); ?>" />
     30        </div>
    3131
    32             <?php do_action( 'register_form' ); ?>
     32        <?php do_action( 'register_form' ); ?>
    3333
    34             <div class="bbp-submit-wrapper">
     34        <div class="bbp-submit-wrapper">
    3535
    36                 <button type="submit" name="user-submit" tabindex="<?php bbp_tab_index(); ?>" class="button submit user-submit"><?php _e( 'Register', 'bbpress' ); ?></button>
     36            <button type="submit" name="user-submit" tabindex="<?php bbp_tab_index(); ?>" class="button submit user-submit"><?php _e( 'Register', 'bbpress' ); ?></button>
    3737
    38                 <?php bbp_user_register_fields(); ?>
     38            <?php bbp_user_register_fields(); ?>
    3939
    40             </div>
    41         </fieldset>
    42     </form>
     40        </div>
     41    </fieldset>
     42</form>
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/loop-forums.php

    r3634 r3651  
    1010?>
    1111
    12     <div id="bbpress-forums">
     12<?php do_action( 'bbp_template_before_forums_loop' ); ?>
    1313
    14         <?php do_action( 'bbp_template_before_forums_loop' ); ?>
     14<ul id="forums-list-<?php bbp_forum_id(); ?>" class="bbp-forums">
    1515
    16         <ul id="forums-list" class="forums bbp-forums">
     16    <li class="bbp-header">
    1717
    18             <li class="bbp-header">
     18        <ul class="forum-titles">
     19            <li class="bbp-forum-info"><?php _e( 'Forum', 'bbpress' ); ?></li>
     20            <li class="bbp-forum-topic-count"><?php _e( 'Topics', 'bbpress' ); ?></li>
     21            <li class="bbp-forum-reply-count"><?php bbp_show_lead_topic() ? _e( 'Replies', 'bbpress' ) : _e( 'Posts', 'bbpress' ); ?></li>
     22            <li class="bbp-forum-freshness"><?php _e( 'Freshness', 'bbpress' ); ?></li>
     23        </ul>
    1924
    20                 <ul class="forum-titles">
    21                     <li class="bbp-forum-info"><?php _e( 'Forum', 'bbpress' ); ?></li>
    22                     <li class="bbp-forum-topic-count"><?php _e( 'Topics', 'bbpress' ); ?></li>
    23                     <li class="bbp-forum-reply-count"><?php bbp_show_lead_topic() ? _e( 'Replies', 'bbpress' ) : _e( 'Posts', 'bbpress' ); ?></li>
    24                     <li class="bbp-forum-freshness"><?php _e( 'Freshness', 'bbpress' ); ?></li>
    25                 </ul>
     25    </li><!-- .bbp-header -->
    2626
    27             </li><!-- .bbp-header -->
     27    <li class="bbp-body">
    2828
    29             <li class="bbp-body">
     29        <?php while ( bbp_forums() ) : bbp_the_forum(); ?>
    3030
    31                 <?php while ( bbp_forums() ) : bbp_the_forum(); ?>
     31            <?php bbp_get_template_part( 'bbpress/loop', 'single-forum' ); ?>
    3232
    33                     <?php bbp_get_template_part( 'bbpress/loop', 'single-forum' ); ?>
     33        <?php endwhile; ?>
    3434
    35                 <?php endwhile; ?>
     35    </li><!-- .bbp-body -->
    3636
    37             </li><!-- .bbp-body -->
     37    <li class="bbp-footer">
    3838
    39             <li class="bbp-footer">
     39        <div class="tr">
     40            <p class="td colspan4">&nbsp;</p>
     41        </div><!-- .tr -->
    4042
    41                 <div class="tr">
    42                     <p class="td colspan4">&nbsp;</p>
    43                 </div><!-- .tr -->
     43    </li><!-- .bbp-footer -->
    4444
    45             </li><!-- .bbp-footer -->
     45</ul><!-- .forums-directory -->
    4646
    47         </ul><!-- .forums-directory -->
    48 
    49         <?php do_action( 'bbp_template_after_forums_loop' ); ?>
    50 
    51     </div><!-- #bbpress-forums -->
     47<?php do_action( 'bbp_template_after_forums_loop' ); ?>
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/loop-replies.php

    r3634 r3651  
    1010?>
    1111
    12     <div id="bbpress-forums">
     12<?php do_action( 'bbp_template_before_replies_loop' ); ?>
    1313
    14         <?php do_action( 'bbp_template_before_replies_loop' ); ?>
     14<ul id="topic-<?php bbp_topic_id(); ?>-replies" class="forums bbp-replies">
    1515
    16         <ul id="topic-<?php bbp_topic_id(); ?>-replies" class="forums bbp-replies">
     16    <li class="bbp-header">
    1717
    18             <li class="bbp-header">
     18        <div class="bbp-reply-author"><?php  _e( 'Author',  'bbpress' ); ?></div><!-- .bbp-reply-author -->
    1919
    20                 <div class="bbp-reply-author"><?php  _e( 'Author',  'bbpress' ); ?></div><!-- .bbp-reply-author -->
     20        <div class="bbp-reply-content">
    2121
    22                 <div class="bbp-reply-content">
     22            <?php if ( !bbp_show_lead_topic() ) : ?>
    2323
    24                     <?php if ( !bbp_show_lead_topic() ) : ?>
     24                <?php _e( 'Posts', 'bbpress' ); ?>
    2525
    26                         <?php _e( 'Posts', 'bbpress' ); ?>
     26                <?php bbp_user_subscribe_link(); ?>
    2727
    28                         <?php bbp_user_subscribe_link(); ?>
     28                <?php bbp_user_favorites_link(); ?>
    2929
    30                         <?php bbp_user_favorites_link(); ?>
     30            <?php else : ?>
    3131
    32                     <?php else : ?>
     32                <?php _e( 'Replies', 'bbpress' ); ?>
    3333
    34                         <?php _e( 'Replies', 'bbpress' ); ?>
     34            <?php endif; ?>
    3535
    36                     <?php endif; ?>
     36        </div><!-- .bbp-reply-content -->
    3737
    38                 </div><!-- .bbp-reply-content -->
     38    </li><!-- .bbp-header -->
    3939
    40             </li><!-- .bbp-header -->
     40    <li class="bbp-body">
    4141
    42             <li class="bbp-body">
     42        <?php while ( bbp_replies() ) : bbp_the_reply(); ?>
    4343
    44                 <?php while ( bbp_replies() ) : bbp_the_reply(); ?>
     44            <?php bbp_get_template_part( 'bbpress/loop', 'single-reply' ); ?>
    4545
    46                     <?php bbp_get_template_part( 'bbpress/loop', 'single-reply' ); ?>
     46        <?php endwhile; ?>
    4747
    48                 <?php endwhile; ?>
     48    </li><!-- .bbp-body -->
    4949
    50             </li><!-- .bbp-body -->
     50    <li class="bbp-footer">
    5151
    52             <li class="bbp-footer">
     52        <div class="bbp-reply-author"><?php  _e( 'Author',  'bbpress' ); ?></div>
    5353
    54                 <div class="bbp-reply-author"><?php  _e( 'Author',  'bbpress' ); ?></div>
     54        <div class="bbp-reply-content">
    5555
    56                 <div class="bbp-reply-content">
     56            <?php if ( !bbp_show_lead_topic() ) : ?>
    5757
    58                     <?php if ( !bbp_show_lead_topic() ) : ?>
     58                <?php _e( 'Posts', 'bbpress' ); ?>
    5959
    60                         <?php _e( 'Posts', 'bbpress' ); ?>
     60            <?php else : ?>
    6161
    62                     <?php else : ?>
     62                <?php _e( 'Replies', 'bbpress' ); ?>
    6363
    64                         <?php _e( 'Replies', 'bbpress' ); ?>
     64            <?php endif; ?>
    6565
    66                     <?php endif; ?>
     66        </div><!-- .bbp-reply-content -->
    6767
    68                 </div><!-- .bbp-reply-content -->
     68    </li>
    6969
    70             </li>
     70</ul><!-- #topic-<?php bbp_topic_id(); ?>-replies -->
    7171
    72         </ul><!-- #topic-<?php bbp_topic_id(); ?>-replies -->
    73 
    74         <?php do_action( 'bbp_template_after_replies_loop' ); ?>
    75 
    76     </div><!-- #bbpress-forums -->
    77 
     72<?php do_action( 'bbp_template_after_replies_loop' ); ?>
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/loop-single-forum.php

    r3634 r3651  
    1010?>
    1111
    12     <ul id="bbp-forum-<?php bbp_forum_id(); ?>" <?php bbp_forum_class(); ?>>
     12<ul id="bbp-forum-<?php bbp_forum_id(); ?>" <?php bbp_forum_class(); ?>>
    1313
    14         <li class="bbp-forum-info">
     14    <li class="bbp-forum-info">
    1515
    16             <?php do_action( 'bbp_theme_before_forum_title' ); ?>
     16        <?php do_action( 'bbp_theme_before_forum_title' ); ?>
    1717
    18             <a class="bbp-forum-title" href="<?php bbp_forum_permalink(); ?>" title="<?php bbp_forum_title(); ?>"><?php bbp_forum_title(); ?></a>
     18        <a class="bbp-forum-title" href="<?php bbp_forum_permalink(); ?>" title="<?php bbp_forum_title(); ?>"><?php bbp_forum_title(); ?></a>
    1919
    20             <?php do_action( 'bbp_theme_after_forum_title' ); ?>
     20        <?php do_action( 'bbp_theme_after_forum_title' ); ?>
    2121
    22             <?php do_action( 'bbp_theme_before_forum_sub_forums' ); ?>
     22        <?php do_action( 'bbp_theme_before_forum_sub_forums' ); ?>
    2323
    24             <?php bbp_list_forums(); ?>
     24        <?php bbp_list_forums(); ?>
    2525
    26             <?php do_action( 'bbp_theme_after_forum_sub_forums' ); ?>
     26        <?php do_action( 'bbp_theme_after_forum_sub_forums' ); ?>
    2727
    28             <?php do_action( 'bbp_theme_before_forum_description' ); ?>
     28        <?php do_action( 'bbp_theme_before_forum_description' ); ?>
    2929
    30             <div class="bbp-forum-description"><?php the_content(); ?></div>
     30        <div class="bbp-forum-description"><?php the_content(); ?></div>
    3131
    32             <?php do_action( 'bbp_theme_after_forum_description' ); ?>
     32        <?php do_action( 'bbp_theme_after_forum_description' ); ?>
    3333
    34         </li>
     34    </li>
    3535
    36         <li class="bbp-forum-topic-count"><?php bbp_forum_topic_count(); ?></li>
     36    <li class="bbp-forum-topic-count"><?php bbp_forum_topic_count(); ?></li>
    3737
    38         <li class="bbp-forum-reply-count"><?php bbp_show_lead_topic() ? bbp_forum_reply_count() : bbp_forum_post_count(); ?></li>
     38    <li class="bbp-forum-reply-count"><?php bbp_show_lead_topic() ? bbp_forum_reply_count() : bbp_forum_post_count(); ?></li>
    3939
    40         <li class="bbp-forum-freshness">
     40    <li class="bbp-forum-freshness">
    4141
    42             <?php do_action( 'bbp_theme_before_forum_freshness_link' ); ?>
     42        <?php do_action( 'bbp_theme_before_forum_freshness_link' ); ?>
    4343
    44             <?php bbp_forum_freshness_link(); ?>
     44        <?php bbp_forum_freshness_link(); ?>
    4545
    46             <?php do_action( 'bbp_theme_after_forum_freshness_link' ); ?>
     46        <?php do_action( 'bbp_theme_after_forum_freshness_link' ); ?>
    4747
    48             <p class="bbp-topic-meta">
     48        <p class="bbp-topic-meta">
    4949
    50                 <?php do_action( 'bbp_theme_before_topic_author' ); ?>
     50            <?php do_action( 'bbp_theme_before_topic_author' ); ?>
    5151
    52                 <span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_forum_last_active_id(), 'size' => 14 ) ); ?></span>
     52            <span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_forum_last_active_id(), 'size' => 14 ) ); ?></span>
    5353
    54                 <?php do_action( 'bbp_theme_after_topic_author' ); ?>
     54            <?php do_action( 'bbp_theme_after_topic_author' ); ?>
    5555
    56             </p>
    57         </li>
     56        </p>
     57    </li>
    5858
    59     </ul><!-- #bbp-forum-<?php bbp_forum_id(); ?> -->
     59</ul><!-- #bbp-forum-<?php bbp_forum_id(); ?> -->
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/loop-single-reply.php

    r3634 r3651  
    1010?>
    1111
    12     <div class="bbp-reply-header">
    13    
    14         <div class="bbp-meta">
     12<div class="bbp-reply-header">
    1513
    16             <?php printf( __( '%1$s at %2$s', 'bbpress' ), get_the_date(), esc_attr( get_the_time() ) ); ?>
     14    <div class="bbp-meta">
    1715
    18             <a href="<?php bbp_reply_url(); ?>" title="<?php bbp_reply_title(); ?>" class="bbp-reply-permalink">#<?php bbp_reply_id(); ?></a>
     16        <?php printf( __( '%1$s at %2$s', 'bbpress' ), get_the_date(), esc_attr( get_the_time() ) ); ?>
    1917
    20             <?php do_action( 'bbp_theme_before_reply_admin_links' ); ?>
     18        <a href="<?php bbp_reply_url(); ?>" title="<?php bbp_reply_title(); ?>" class="bbp-reply-permalink">#<?php bbp_reply_id(); ?></a>
    2119
    22             <?php bbp_reply_admin_links(); ?>
     20        <?php do_action( 'bbp_theme_before_reply_admin_links' ); ?>
    2321
    24             <?php do_action( 'bbp_theme_after_reply_admin_links' ); ?>
     22        <?php bbp_reply_admin_links(); ?>
    2523
    26         </div><!-- .bbp-meta -->
    27        
    28     </div><!-- .bbp-reply-header -->
     24        <?php do_action( 'bbp_theme_after_reply_admin_links' ); ?>
    2925
    30     <div id="post-<?php bbp_reply_id(); ?>" <?php bbp_reply_class(); ?>>
     26    </div><!-- .bbp-meta -->
    3127
    32         <div class="bbp-reply-author">
     28</div><!-- .bbp-reply-header -->
    3329
    34             <?php do_action( 'bbp_theme_before_reply_author_details' ); ?>
     30<div id="post-<?php bbp_reply_id(); ?>" <?php bbp_reply_class(); ?>>
    3531
    36             <?php bbp_reply_author_link( array( 'sep' => '<br />' ) ); ?>
     32    <div class="bbp-reply-author">
    3733
    38             <?php if ( is_super_admin() ) : ?>
     34        <?php do_action( 'bbp_theme_before_reply_author_details' ); ?>
    3935
    40                 <?php do_action( 'bbp_theme_before_reply_author_admin_details' ); ?>
     36        <?php bbp_reply_author_link( array( 'sep' => '<br />' ) ); ?>
    4137
    42                 <div class="bbp-reply-ip"><?php bbp_author_ip( bbp_get_reply_id() ); ?></div>
     38        <?php if ( is_super_admin() ) : ?>
    4339
    44                 <?php do_action( 'bbp_theme_after_reply_author_admin_details' ); ?>
     40            <?php do_action( 'bbp_theme_before_reply_author_admin_details' ); ?>
    4541
    46             <?php endif; ?>
     42            <div class="bbp-reply-ip"><?php bbp_author_ip( bbp_get_reply_id() ); ?></div>
    4743
    48             <?php do_action( 'bbp_theme_after_reply_author_details' ); ?>
     44            <?php do_action( 'bbp_theme_after_reply_author_admin_details' ); ?>
    4945
    50         </div><!-- .bbp-reply-author -->
     46        <?php endif; ?>
    5147
    52         <div class="bbp-reply-content">
     48        <?php do_action( 'bbp_theme_after_reply_author_details' ); ?>
    5349
    54             <?php do_action( 'bbp_theme_after_reply_content' ); ?>
     50    </div><!-- .bbp-reply-author -->
    5551
    56             <?php bbp_reply_content(); ?>
     52    <div class="bbp-reply-content">
    5753
    58             <?php do_action( 'bbp_theme_before_reply_content' ); ?>
     54        <?php do_action( 'bbp_theme_after_reply_content' ); ?>
    5955
    60         </div><!-- .bbp-reply-content -->
     56        <?php bbp_reply_content(); ?>
    6157
    62     </div><!-- #post-<?php bbp_topic_id(); ?> -->
     58        <?php do_action( 'bbp_theme_before_reply_content' ); ?>
     59
     60    </div><!-- .bbp-reply-content -->
     61
     62</div><!-- #post-<?php bbp_topic_id(); ?> -->
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/loop-single-topic.php

    r3634 r3651  
    1010?>
    1111
    12     <ul id="topic-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>>
     12<ul id="topic-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>>
    1313
    14         <li class="bbp-topic-title">
     14    <li class="bbp-topic-title">
    1515
    16             <?php do_action( 'bbp_theme_before_topic_title' ); ?>
     16        <?php do_action( 'bbp_theme_before_topic_title' ); ?>
    1717
    18             <a href="<?php bbp_topic_permalink(); ?>" title="<?php bbp_topic_title(); ?>"><?php bbp_topic_title(); ?></a>
     18        <a href="<?php bbp_topic_permalink(); ?>" title="<?php bbp_topic_title(); ?>"><?php bbp_topic_title(); ?></a>
    1919
    20             <?php do_action( 'bbp_theme_after_topic_title' ); ?>
     20        <?php do_action( 'bbp_theme_after_topic_title' ); ?>
    2121
    22             <?php bbp_topic_pagination(); ?>
     22        <?php bbp_topic_pagination(); ?>
    2323
    24             <?php do_action( 'bbp_theme_before_topic_meta' ); ?>
     24        <?php do_action( 'bbp_theme_before_topic_meta' ); ?>
    2525
    26             <p class="bbp-topic-meta">
     26        <p class="bbp-topic-meta">
    2727
    28                 <?php do_action( 'bbp_theme_before_topic_started_by' ); ?>
     28            <?php do_action( 'bbp_theme_before_topic_started_by' ); ?>
    2929
    30                 <span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></span>
     30            <span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></span>
    3131
    32                 <?php do_action( 'bbp_theme_after_topic_started_by' ); ?>
     32            <?php do_action( 'bbp_theme_after_topic_started_by' ); ?>
    3333
    34                 <?php if ( !bbp_is_single_forum() || ( bbp_get_topic_forum_id() != bbp_get_forum_id() ) ) : ?>
     34            <?php if ( !bbp_is_single_forum() || ( bbp_get_topic_forum_id() != bbp_get_forum_id() ) ) : ?>
    3535
    36                     <?php do_action( 'bbp_theme_before_topic_started_in' ); ?>
     36                <?php do_action( 'bbp_theme_before_topic_started_in' ); ?>
    3737
    38                     <span class="bbp-topic-started-in"><?php printf( __( 'in: <a href="%1$s">%2$s</a>', 'bbpress' ), bbp_get_forum_permalink( bbp_get_topic_forum_id() ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?></span>
     38                <span class="bbp-topic-started-in"><?php printf( __( 'in: <a href="%1$s">%2$s</a>', 'bbpress' ), bbp_get_forum_permalink( bbp_get_topic_forum_id() ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?></span>
    3939
    40                     <?php do_action( 'bbp_theme_after_topic_started_in' ); ?>
    41 
    42                 <?php endif; ?>
    43 
    44             </p>
    45 
    46             <?php do_action( 'bbp_theme_after_topic_meta' ); ?>
    47 
    48         </li>
    49 
    50         <li class="bbp-topic-voice-count"><?php bbp_topic_voice_count(); ?></li>
    51 
    52         <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() ? bbp_topic_reply_count() : bbp_topic_post_count(); ?></li>
    53 
    54         <li class="bbp-topic-freshness">
    55 
    56             <?php do_action( 'bbp_theme_before_topic_freshness_link' ); ?>
    57 
    58             <?php bbp_topic_freshness_link(); ?>
    59 
    60             <?php do_action( 'bbp_theme_after_topic_freshness_link' ); ?>
    61 
    62             <p class="bbp-topic-meta">
    63 
    64                 <?php do_action( 'bbp_theme_before_topic_freshness_author' ); ?>
    65 
    66                 <span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'size' => 14 ) ); ?></span>
    67 
    68                 <?php do_action( 'bbp_theme_after_topic_freshness_author' ); ?>
    69 
    70             </p>
    71         </li>
    72 
    73         <?php if ( bbp_is_user_home() ) : ?>
    74 
    75             <?php if ( bbp_is_favorites() ) : ?>
    76 
    77                 <li class="bbp-topic-action">
    78 
    79                     <?php do_action( 'bbp_theme_before_topic_favorites_action' ); ?>
    80 
    81                     <?php bbp_user_favorites_link( array( 'mid' => '+', 'post' => '' ), array( 'pre' => '', 'mid' => '&times;', 'post' => '' ) ); ?>
    82 
    83                     <?php do_action( 'bbp_theme_after_topic_favorites_action' ); ?>
    84 
    85                 </li>
    86 
    87             <?php elseif ( bbp_is_subscriptions() ) : ?>
    88 
    89                 <li class="bbp-topic-action">
    90 
    91                     <?php do_action( 'bbp_theme_before_topic_subscription_action' ); ?>
    92 
    93                     <?php bbp_user_subscribe_link( array( 'before' => '', 'subscribe' => '+', 'unsubscribe' => '&times;' ) ); ?>
    94 
    95                     <?php do_action( 'bbp_theme_after_topic_subscription_action' ); ?>
    96 
    97                 </li>
     40                <?php do_action( 'bbp_theme_after_topic_started_in' ); ?>
    9841
    9942            <?php endif; ?>
    10043
     44        </p>
     45
     46        <?php do_action( 'bbp_theme_after_topic_meta' ); ?>
     47
     48    </li>
     49
     50    <li class="bbp-topic-voice-count"><?php bbp_topic_voice_count(); ?></li>
     51
     52    <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() ? bbp_topic_reply_count() : bbp_topic_post_count(); ?></li>
     53
     54    <li class="bbp-topic-freshness">
     55
     56        <?php do_action( 'bbp_theme_before_topic_freshness_link' ); ?>
     57
     58        <?php bbp_topic_freshness_link(); ?>
     59
     60        <?php do_action( 'bbp_theme_after_topic_freshness_link' ); ?>
     61
     62        <p class="bbp-topic-meta">
     63
     64            <?php do_action( 'bbp_theme_before_topic_freshness_author' ); ?>
     65
     66            <span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'size' => 14 ) ); ?></span>
     67
     68            <?php do_action( 'bbp_theme_after_topic_freshness_author' ); ?>
     69
     70        </p>
     71    </li>
     72
     73    <?php if ( bbp_is_user_home() ) : ?>
     74
     75        <?php if ( bbp_is_favorites() ) : ?>
     76
     77            <li class="bbp-topic-action">
     78
     79                <?php do_action( 'bbp_theme_before_topic_favorites_action' ); ?>
     80
     81                <?php bbp_user_favorites_link( array( 'mid' => '+', 'post' => '' ), array( 'pre' => '', 'mid' => '&times;', 'post' => '' ) ); ?>
     82
     83                <?php do_action( 'bbp_theme_after_topic_favorites_action' ); ?>
     84
     85            </li>
     86
     87        <?php elseif ( bbp_is_subscriptions() ) : ?>
     88
     89            <li class="bbp-topic-action">
     90
     91                <?php do_action( 'bbp_theme_before_topic_subscription_action' ); ?>
     92
     93                <?php bbp_user_subscribe_link( array( 'before' => '', 'subscribe' => '+', 'unsubscribe' => '&times;' ) ); ?>
     94
     95                <?php do_action( 'bbp_theme_after_topic_subscription_action' ); ?>
     96
     97            </li>
     98
    10199        <?php endif; ?>
    102100
    103     </ul><!-- #topic-<?php bbp_topic_id(); ?> -->
     101    <?php endif; ?>
     102
     103</ul><!-- #topic-<?php bbp_topic_id(); ?> -->
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/loop-topics.php

    r3634 r3651  
    1010?>
    1111
    12     <div id="bbpress-forums">
     12<?php do_action( 'bbp_template_before_topics_loop' ); ?>
    1313
    14         <?php do_action( 'bbp_template_before_topics_loop' ); ?>
     14<ul id="bbp-forum-<?php bbp_forum_id(); ?>" class="bbp-topics">
    1515
    16         <ul id="bbp-forum-<?php bbp_forum_id(); ?>" class="forums bbp-topics">
     16    <li class="bbp-header">
    1717
    18             <li class="bbp-header">
     18        <ul class="forum-titles">
    1919
    20                 <ul class="forum-titles">
     20            <li class="bbp-topic-title"><?php _e( 'Topic', 'bbpress' ); ?></li>
     21            <li class="bbp-topic-voice-count"><?php _e( 'Voices', 'bbpress' ); ?></li>
     22            <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() ? _e( 'Replies', 'bbpress' ) : _e( 'Posts', 'bbpress' ); ?></li>
     23            <li class="bbp-topic-freshness"><?php _e( 'Freshness', 'bbpress' ); ?></li>
     24            <?php if ( ( bbp_is_user_home() && ( bbp_is_favorites() || bbp_is_subscriptions() ) ) ) : ?><li class="bbp-topic-action"><?php _e( 'Remove', 'bbpress' ); ?></li><?php endif; ?>
    2125
    22                     <li class="bbp-topic-title"><?php _e( 'Topic', 'bbpress' ); ?></li>
    23                     <li class="bbp-topic-voice-count"><?php _e( 'Voices', 'bbpress' ); ?></li>
    24                     <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() ? _e( 'Replies', 'bbpress' ) : _e( 'Posts', 'bbpress' ); ?></li>
    25                     <li class="bbp-topic-freshness"><?php _e( 'Freshness', 'bbpress' ); ?></li>
    26                     <?php if ( ( bbp_is_user_home() && ( bbp_is_favorites() || bbp_is_subscriptions() ) ) ) : ?><li class="bbp-topic-action"><?php _e( 'Remove', 'bbpress' ); ?></li><?php endif; ?>
     26        </ul>
    2727
    28                 </ul>
     28    </li>
    2929
    30             </li>
     30    <li class="bbp-body">
    3131
    32             <li class="bbp-body">
     32        <?php while ( bbp_topics() ) : bbp_the_topic(); ?>
    3333
    34                 <?php while ( bbp_topics() ) : bbp_the_topic(); ?>
     34            <?php bbp_get_template_part( 'bbpress/loop', 'single-topic' ); ?>
    3535
    36                     <?php bbp_get_template_part( 'bbpress/loop', 'single-topic' ); ?>
     36        <?php endwhile; ?>
    3737
    38                 <?php endwhile; ?>
     38    </li>
    3939
    40             </li>
     40    <li class="bbp-footer">
    4141
    42             <li class="bbp-footer">
     42        <div class="tr">
     43            <p>
     44                <span class="td colspan<?php echo ( bbp_is_user_home() && ( bbp_is_favorites() || bbp_is_subscriptions() ) ) ? '5' : '4'; ?>">&nbsp;</span>
     45            </p>
     46        </div><!-- .tr -->
    4347
    44                 <div class="tr">
    45                     <p>
    46                         <span class="td colspan<?php echo ( bbp_is_user_home() && ( bbp_is_favorites() || bbp_is_subscriptions() ) ) ? '5' : '4'; ?>">&nbsp;</span>
    47                     </p>
    48                 </div><!-- .tr -->
     48    </li>
    4949
    50             </li>
     50</ul><!-- #bbp-forum-<?php bbp_forum_id(); ?> -->
    5151
    52         </ul><!-- #bbp-forum-<?php bbp_forum_id(); ?> -->
    53 
    54         <?php do_action( 'bbp_template_after_topics_loop' ); ?>
    55 
    56     </div><!-- #bbpress-forums -->
     52<?php do_action( 'bbp_template_after_topics_loop' ); ?>
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/pagination-replies.php

    r3311 r3651  
    1010?>
    1111
    12     <?php do_action( 'bbp_template_before_pagination_loop' ); ?>
     12<?php do_action( 'bbp_template_before_pagination_loop' ); ?>
    1313
    14     <div class="bbp-pagination">
    15         <div class="bbp-pagination-count">
     14<div class="bbp-pagination">
     15    <div class="bbp-pagination-count">
    1616
    17             <?php bbp_topic_pagination_count(); ?>
     17        <?php bbp_topic_pagination_count(); ?>
    1818
    19         </div>
    20 
    21         <div class="bbp-pagination-links">
    22 
    23             <?php bbp_topic_pagination_links(); ?>
    24 
    25         </div>
    2619    </div>
    2720
    28     <?php do_action( 'bbp_template_after_pagination_loop' ); ?>
     21    <div class="bbp-pagination-links">
     22
     23        <?php bbp_topic_pagination_links(); ?>
     24
     25    </div>
     26</div>
     27
     28<?php do_action( 'bbp_template_after_pagination_loop' ); ?>
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/pagination-topics.php

    r3311 r3651  
    1010?>
    1111
    12     <?php do_action( 'bbp_template_before_pagination_loop' ); ?>
     12<?php do_action( 'bbp_template_before_pagination_loop' ); ?>
    1313
    14     <div class="bbp-pagination">
    15         <div class="bbp-pagination-count">
     14<div class="bbp-pagination">
     15    <div class="bbp-pagination-count">
    1616
    17             <?php bbp_forum_pagination_count(); ?>
     17        <?php bbp_forum_pagination_count(); ?>
    1818
    19         </div>
    20 
    21         <div class="bbp-pagination-links">
    22 
    23             <?php bbp_forum_pagination_links(); ?>
    24 
    25         </div>
    2619    </div>
    2720
    28     <?php do_action( 'bbp_template_after_pagination_loop' ); ?>
     21    <div class="bbp-pagination-links">
     22
     23        <?php bbp_forum_pagination_links(); ?>
     24
     25    </div>
     26</div>
     27
     28<?php do_action( 'bbp_template_after_pagination_loop' ); ?>
  • branches/plugin/bbp-themes/bbp-twentyten/css/bbpress-rtl.css

    r3647 r3651  
    1919
    2020#bbpress-forums {
    21     background: #ffffff;
    22     border: 1px solid #eeeeee;
     21    background: transparent;
    2322    clear: both;
    2423    margin-bottom: 20px;
     
    6160}
    6261
     62#bbpress-forums ul.bbp-lead-topic,
    6363#bbpress-forums ul.bbp-topics,
    6464#bbpress-forums ul.bbp-forums,
    65 #bbpress-forums ul.bbp-replies{
     65#bbpress-forums ul.bbp-replies {
    6666    font-size: 12px;
    6767    overflow: hidden;
    68     width: 100%;
     68    border: 1px solid #eee;
     69    margin-bottom: 20px;
    6970}
    7071
     
    7879#bbpress-forums li.bbp-footer {
    7980    background: #f3f3f3;
    80     border-top: 1px solid #eeeeee;
     81    border-top: 1px solid #eee;
    8182    font-weight: bold;
    8283    padding: 8px;
    8384    text-align: center;
     85    clear: both;
    8486}
    8587
     
    136138#bbpress-forums li.bbp-body ul.forum,
    137139#bbpress-forums li.bbp-body ul.topic {
    138     border-bottom: 1px solid #eeeeee;
     140    border-bottom: 1px solid #eee;
    139141    overflow: hidden;
    140142    padding: 8px;
    141143}
    142144
     145div.bbp-topic-author,
    143146div.bbp-reply-author {
    144147    float: right;
     
    146149}
    147150
     151div.bbp-topic-content,
    148152div.bbp-reply-content {
    149153    margin-right: 140px;
     
    151155}
    152156
     157li.bbp-header div.bbp-topic-content span#subscription-toggle,
     158li.bbp-header div.bbp-topic-content span#favorite-toggle,
    153159li.bbp-header div.bbp-reply-content span#subscription-toggle,
    154160li.bbp-header div.bbp-reply-content span#favorite-toggle {
     
    156162}
    157163
     164li.bbp-body div.bbp-topic-author,
    158165li.bbp-body div.bbp-reply-author {
    159166    padding: 12px;
     
    161168}
    162169
     170li.bbp-body div.bbp-topic-content,
    163171li.bbp-body div.bbp-reply-content {
    164172    padding: 12px 12px 12px 0px;
     
    166174}
    167175
     176div.bbp-topic-header,
    168177div.bbp-reply-header,
    169178li.bbp-body div.hentry {
     
    173182}
    174183
     184div.bbp-topic-header,
    175185div.bbp-reply-header {
    176     border-top: 1px solid #cccccc;
    177     border-bottom: 1px solid #eeeeee;
     186    border-top: 1px solid #ccc;
     187    border-bottom: 1px solid #eee;
    178188    clear: both;
    179189}
     
    350360    border: 1px solid #eee;
    351361    padding: 10px 20px;
     362    margin-bottom: 10px;
    352363}
    353364
  • branches/plugin/bbp-themes/bbp-twentyten/css/bbpress.css

    r3637 r3651  
    1818}
    1919
    20 #bbpress-forums {
    21     background: #ffffff;
    22     border: 1px solid #eeeeee;
     20#bbpress-forums {
     21    background: transparent;
    2322    clear: both;
    2423    margin-bottom: 20px;
     
    5554}
    5655
    57 #bbpress-forums ul { 
     56#bbpress-forums ul {
    5857    list-style: none;
    5958    margin: 0px;
     
    6160}
    6261
     62#bbpress-forums ul.bbp-lead-topic,
    6363#bbpress-forums ul.bbp-topics,
    6464#bbpress-forums ul.bbp-forums,
    65 #bbpress-forums ul.bbp-replies{
     65#bbpress-forums ul.bbp-replies {
    6666    font-size: 12px;
    6767    overflow: hidden;
    68     width: 100%;
     68    border: 1px solid #eee;
     69    margin-bottom: 20px;
     70    clear: both;
    6971}
    7072
     
    7678
    7779#bbpress-forums li.bbp-header,
    78 #bbpress-forums li.bbp-footer { 
     80#bbpress-forums li.bbp-footer {
    7981    background: #f3f3f3;
    80     border-top: 1px solid #eeeeee;
     82    border-top: 1px solid #eee;
    8183    font-weight: bold;
    8284    padding: 8px;
     
    8486}
    8587
    86 #bbpress-forums li.bbp-header { 
    87     background: #eaeaea; 
    88 }
    89 
    90 #bbpress-forums li.bbp-header ul { 
    91     overflow: hidden; 
     88#bbpress-forums li.bbp-header {
     89    background: #eaeaea;
     90}
     91
     92#bbpress-forums li.bbp-header ul {
     93    overflow: hidden;
    9294}
    9395
    9496#bbpress-forums li.bbp-header li,
    95 #bbpress-forums li.bbp-footer li { 
    96     float: left; 
     97#bbpress-forums li.bbp-footer li {
     98    float: left;
    9799}
    98100
    99101#content .bbp-forum-description p,
    100 #bbpress-forums li.bbp-footer p { 
    101     margin-bottom: 0px; 
     102#bbpress-forums li.bbp-footer p {
     103    margin-bottom: 0px;
    102104}
    103105
     
    113115
    114116li.bbp-forum-info,
    115 li.bbp-topic-title { 
     117li.bbp-topic-title {
    116118    float: left;
    117119    text-align: left;
    118     width: 55%; 
    119 }
    120 li.bbp-forum-topic-count, 
     120    width: 55%;
     121}
     122li.bbp-forum-topic-count,
    121123li.bbp-topic-voice-count,
    122 li.bbp-forum-reply-count, 
    123 li.bbp-topic-reply-count{ 
     124li.bbp-forum-reply-count,
     125li.bbp-topic-reply-count{
    124126    float: left;
    125127    text-align: center;
     
    128130
    129131li.bbp-forum-freshness,
    130 li.bbp-topic-freshness{ 
     132li.bbp-topic-freshness{
    131133    text-align: center;
    132134    float: left;
     
    136138#bbpress-forums li.bbp-body ul.forum,
    137139#bbpress-forums li.bbp-body ul.topic {
    138     border-bottom: 1px solid #eeeeee;
     140    border-bottom: 1px solid #eee;
    139141    overflow: hidden;
    140142    padding: 8px;
    141143}
    142144
     145div.bbp-topic-author,
    143146div.bbp-reply-author {
    144147    float: left;
     
    146149}
    147150
    148 div.bbp-reply-content {
    149     margin-left: 140px;
     151div.bbp-topic-content,
     152div.bbp-reply-content {
     153    margin-left: 140px;
    150154    text-align: left;
    151155}
    152156
     157li.bbp-header div.bbp-topic-content span#subscription-toggle,
     158li.bbp-header div.bbp-topic-content span#favorite-toggle,
    153159li.bbp-header div.bbp-reply-content span#subscription-toggle,
    154160li.bbp-header div.bbp-reply-content span#favorite-toggle {
     
    156162}
    157163
    158 li.bbp-body div.bbp-reply-author {
     164li.bbp-body div.bbp-topic-author,
     165li.bbp-body div.bbp-reply-author {
    159166    padding: 12px;
    160167    vertical-align: top;
    161168}
    162169
    163 li.bbp-body div.bbp-reply-content {
     170li.bbp-body div.bbp-topic-content,
     171li.bbp-body div.bbp-reply-content {
    164172    padding: 12px 12px 12px 0px;
    165173    vertical-align: top;
    166174}
    167175
     176div.bbp-topic-header,
    168177div.bbp-reply-header,
    169 li.bbp-body div.hentry { 
     178li.bbp-body div.hentry {
    170179    margin-bottom: 0px;
    171180    overflow: hidden;
    172     padding: 8px;
    173 }
    174 
     181    padding: 8px;
     182}
     183
     184div.bbp-topic-header,
    175185div.bbp-reply-header {
    176     border-top: 1px solid #cccccc;
    177     border-bottom: 1px solid #eeeeee;
     186    border-top: 1px solid #ccc;
     187    border-bottom: 1px solid #eee;
    178188    clear: both;
    179189}
     
    350360    border: 1px solid #eee;
    351361    padding: 10px 20px;
     362    margin-bottom: 10px;
    352363}
    353364
  • branches/plugin/bbp-themes/bbp-twentyten/page-forum-statistics.php

    r3349 r3651  
    2929                            <?php get_the_content() ? the_content() : _e( '<p>Here are the statistics and popular topics of our forums.</p>', 'bbpress' ); ?>
    3030
    31                             <dl role="main">
     31                            <div id="bbpress-forums">
    3232
    33                                 <?php do_action( 'bbp_before_statistics' ); ?>
     33                                <dl role="main">
    3434
    35                                 <dt><?php _e( 'Registered Users', 'bbpress' ); ?></dt>
    36                                 <dd>
    37                                     <strong><?php echo $user_count; ?></strong>
    38                                 </dd>
     35                                    <?php do_action( 'bbp_before_statistics' ); ?>
    3936
    40                                 <dt><?php _e( 'Forums', 'bbpress' ); ?></dt>
    41                                 <dd>
    42                                     <strong><?php echo $forum_count; ?></strong>
    43                                 </dd>
     37                                    <dt><?php _e( 'Registered Users', 'bbpress' ); ?></dt>
     38                                    <dd>
     39                                        <strong><?php echo $user_count; ?></strong>
     40                                    </dd>
    4441
    45                                 <dt><?php _e( 'Topics', 'bbpress' ); ?></dt>
    46                                 <dd>
    47                                     <strong><?php echo $topic_count; ?></strong>
    48                                 </dd>
     42                                    <dt><?php _e( 'Forums', 'bbpress' ); ?></dt>
     43                                    <dd>
     44                                        <strong><?php echo $forum_count; ?></strong>
     45                                    </dd>
    4946
    50                                 <dt><?php _e( 'Replies', 'bbpress' ); ?></dt>
    51                                 <dd>
    52                                     <strong><?php echo $reply_count; ?></strong>
    53                                 </dd>
     47                                    <dt><?php _e( 'Topics', 'bbpress' ); ?></dt>
     48                                    <dd>
     49                                        <strong><?php echo $topic_count; ?></strong>
     50                                    </dd>
    5451
    55                                 <dt><?php _e( 'Topic Tags', 'bbpress' ); ?></dt>
    56                                 <dd>
    57                                     <strong><?php echo $topic_tag_count; ?></strong>
    58                                 </dd>
     52                                    <dt><?php _e( 'Replies', 'bbpress' ); ?></dt>
     53                                    <dd>
     54                                        <strong><?php echo $reply_count; ?></strong>
     55                                    </dd>
    5956
    60                                 <?php if ( !empty( $empty_topic_tag_count ) ) : ?>
     57                                    <dt><?php _e( 'Topic Tags', 'bbpress' ); ?></dt>
     58                                    <dd>
     59                                        <strong><?php echo $topic_tag_count; ?></strong>
     60                                    </dd>
    6161
    62                                     <dt><?php _e( 'Empty Topic Tags', 'bbpress' ); ?></dt>
    63                                     <dd>
    64                                         <strong><?php echo $empty_topic_tag_count; ?></strong>
    65                                     </dd>
     62                                    <?php if ( !empty( $empty_topic_tag_count ) ) : ?>
     63
     64                                        <dt><?php _e( 'Empty Topic Tags', 'bbpress' ); ?></dt>
     65                                        <dd>
     66                                            <strong><?php echo $empty_topic_tag_count; ?></strong>
     67                                        </dd>
     68
     69                                    <?php endif; ?>
     70
     71                                    <?php if ( !empty( $topic_count_hidden ) ) : ?>
     72
     73                                        <dt><?php _e( 'Hidden Topics', 'bbpress' ); ?></dt>
     74                                        <dd>
     75                                            <strong>
     76                                                <abbr title="<?php echo esc_attr( $hidden_topic_title ); ?>"><?php echo $topic_count_hidden; ?></abbr>
     77                                            </strong>
     78                                        </dd>
     79
     80                                    <?php endif; ?>
     81
     82                                    <?php if ( !empty( $reply_count_hidden ) ) : ?>
     83
     84                                        <dt><?php _e( 'Hidden Replies', 'bbpress' ); ?></dt>
     85                                        <dd>
     86                                            <strong>
     87                                                <abbr title="<?php echo esc_attr( $hidden_reply_title ); ?>"><?php echo $reply_count_hidden; ?></abbr>
     88                                            </strong>
     89                                        </dd>
     90
     91                                    <?php endif; ?>
     92
     93                                    <?php do_action( 'bbp_after_statistics' ); ?>
     94
     95                                </dl>
     96
     97                                <?php do_action( 'bbp_before_popular_topics' ); ?>
     98
     99                                <?php bbp_set_query_name( 'bbp_popular_topics' ); ?>
     100
     101                                <?php if ( bbp_has_topics( array( 'meta_key' => '_bbp_reply_count', 'posts_per_page' => 15, 'max_num_pages' => 1, 'orderby' => 'meta_value_num', 'show_stickies' => false ) ) ) : ?>
     102
     103                                    <h2 class="entry-title"><?php _e( 'Popular Topics', 'bbpress' ); ?></h2>
     104
     105                                    <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>
     106
     107                                    <?php bbp_get_template_part( 'bbpress/loop',       'topics' ); ?>
     108
     109                                    <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>
    66110
    67111                                <?php endif; ?>
    68112
    69                                 <?php if ( !empty( $topic_count_hidden ) ) : ?>
     113                                <?php bbp_reset_query_name(); ?>
    70114
    71                                     <dt><?php _e( 'Hidden Topics', 'bbpress' ); ?></dt>
    72                                     <dd>
    73                                         <strong>
    74                                             <abbr title="<?php echo esc_attr( $hidden_topic_title ); ?>"><?php echo $topic_count_hidden; ?></abbr>
    75                                         </strong>
    76                                     </dd>
     115                                <?php do_action( 'bbp_after_popular_topics' ); ?>
    77116
    78                                 <?php endif; ?>
    79 
    80                                 <?php if ( !empty( $reply_count_hidden ) ) : ?>
    81 
    82                                     <dt><?php _e( 'Hidden Replies', 'bbpress' ); ?></dt>
    83                                     <dd>
    84                                         <strong>
    85                                             <abbr title="<?php echo esc_attr( $hidden_reply_title ); ?>"><?php echo $reply_count_hidden; ?></abbr>
    86                                         </strong>
    87                                     </dd>
    88 
    89                                 <?php endif; ?>
    90 
    91                                 <?php do_action( 'bbp_after_statistics' ); ?>
    92 
    93                             </dl>
    94 
    95                             <?php do_action( 'bbp_before_popular_topics' ); ?>
    96 
    97                             <?php bbp_set_query_name( 'bbp_popular_topics' ); ?>
    98 
    99                             <?php if ( bbp_has_topics( array( 'meta_key' => '_bbp_reply_count', 'posts_per_page' => 15, 'max_num_pages' => 1, 'orderby' => 'meta_value_num', 'show_stickies' => false ) ) ) : ?>
    100 
    101                                 <h2 class="entry-title"><?php _e( 'Popular Topics', 'bbpress' ); ?></h2>
    102 
    103                                 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>
    104 
    105                                 <?php bbp_get_template_part( 'bbpress/loop',       'topics' ); ?>
    106 
    107                                 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>
    108 
    109                             <?php endif; ?>
    110 
    111                             <?php bbp_reset_query_name(); ?>
    112 
    113                             <?php do_action( 'bbp_after_popular_topics' ); ?>
    114 
     117                            </div>
    115118                        </div>
    116119                    </div><!-- #bbp-statistics -->
  • branches/plugin/bbp-themes/bbp-twentyten/page-topic-tags.php

    r3348 r3651  
    2525                            <?php get_the_content() ? the_content() : _e( '<p>This is a collection of tags that are currently popular on our forums.</p>', 'bbpress' ); ?>
    2626
    27                             <?php bbp_breadcrumb(); ?>
     27                            <div id="bbpress-forums">
    2828
    29                             <div id="bbp-topic-hot-tags">
     29                                <?php bbp_breadcrumb(); ?>
    3030
    31                                 <?php wp_tag_cloud( array( 'smallest' => 9, 'largest' => 38, 'number' => 80, 'taxonomy' => bbp_get_topic_tag_tax_id() ) ); ?>
     31                                <div id="bbp-topic-hot-tags">
    3232
     33                                    <?php wp_tag_cloud( array( 'smallest' => 9, 'largest' => 38, 'number' => 80, 'taxonomy' => bbp_get_topic_tag_tax_id() ) ); ?>
     34
     35                                </div>
    3336                            </div>
    34 
    3537                        </div>
    3638                    </div><!-- #bbp-topic-tags -->
  • branches/plugin/bbp-themes/bbp-twentyten/page-topics-no-replies.php

    r3302 r3651  
    2525                            <?php the_content(); ?>
    2626
    27                             <?php bbp_breadcrumb(); ?>
     27                            <div id="bbpress-forums">
    2828
    29                             <?php bbp_set_query_name( 'bbp_no_replies' ); ?>
     29                                <?php bbp_breadcrumb(); ?>
    3030
    31                             <?php if ( bbp_has_topics( array( 'meta_key' => '_bbp_reply_count', 'meta_value' => '1', 'meta_compare' => '<', 'orderby' => 'date', 'show_stickies' => false ) ) ) : ?>
     31                                <?php bbp_set_query_name( 'bbp_no_replies' ); ?>
    3232
    33                                 <?php bbp_get_template_part( 'bbpress/pagination', 'topics'    ); ?>
     33                                <?php if ( bbp_has_topics( array( 'meta_key' => '_bbp_reply_count', 'meta_value' => '1', 'meta_compare' => '<', 'orderby' => 'date', 'show_stickies' => false ) ) ) : ?>
    3434
    35                                 <?php bbp_get_template_part( 'bbpress/loop',      'topics'    ); ?>
     35                                    <?php bbp_get_template_part( 'bbpress/pagination', 'topics'    ); ?>
    3636
    37                                 <?php bbp_get_template_part( 'bbpress/pagination', 'topics'    ); ?>
     37                                    <?php bbp_get_template_part( 'bbpress/loop',      'topics'    ); ?>
    3838
    39                             <?php else : ?>
     39                                    <?php bbp_get_template_part( 'bbpress/pagination', 'topics'    ); ?>
    4040
    41                                 <?php bbp_get_template_part( 'bbpress/feedback',   'no-topics' ); ?>
     41                                <?php else : ?>
    4242
    43                             <?php endif; ?>
     43                                    <?php bbp_get_template_part( 'bbpress/feedback',   'no-topics' ); ?>
    4444
    45                             <?php bbp_reset_query_name(); ?>
     45                                <?php endif; ?>
    4646
     47                                <?php bbp_reset_query_name(); ?>
     48
     49                            </div>
    4750                        </div>
    4851                    </div><!-- #topics-front -->
  • branches/plugin/bbp-themes/bbp-twentyten/page-user-login.php

    r3241 r3651  
    2727                            <?php the_content(); ?>
    2828
    29                             <?php bbp_breadcrumb(); ?>
     29                            <div id="bbpress-forums">
    3030
    31                             <?php bbp_get_template_part( 'bbpress/form', 'user-login' ); ?>
     31                                <?php bbp_breadcrumb(); ?>
    3232
     33                                <?php bbp_get_template_part( 'bbpress/form', 'user-login' ); ?>
     34
     35                            </div>
    3336                        </div>
    3437                    </div><!-- #bbp-login -->
  • branches/plugin/bbp-themes/bbp-twentyten/page-user-lost-pass.php

    r3241 r3651  
    2727                            <?php the_content(); ?>
    2828
    29                             <?php bbp_breadcrumb(); ?>
     29                            <div id="bbpress-forums">
    3030
    31                             <?php bbp_get_template_part( 'bbpress/form', 'user-lost-pass' ); ?>
     31                                <?php bbp_breadcrumb(); ?>
    3232
     33                                <?php bbp_get_template_part( 'bbpress/form', 'user-lost-pass' ); ?>
     34
     35                            </div>
    3336                        </div>
    3437                    </div><!-- #bbp-lost-pass -->
  • branches/plugin/bbp-themes/bbp-twentyten/page-user-register.php

    r3241 r3651  
    2727                            <?php the_content(); ?>
    2828
    29                             <?php bbp_breadcrumb(); ?>
     29                            <div id="bbpress-forums">
    3030
    31                             <?php bbp_get_template_part( 'bbpress/form', 'user-register' ); ?>
     31                                <?php bbp_breadcrumb(); ?>
    3232
     33                                <?php bbp_get_template_part( 'bbpress/form', 'user-register' ); ?>
     34
     35                            </div>
    3336                        </div>
    3437                    </div><!-- #bbp-register -->
Note: See TracChangeset for help on using the changeset viewer.