Changeset 3651
- Timestamp:
- 12/28/2011 07:37:22 PM (14 years ago)
- Location:
- branches/plugin/bbp-themes/bbp-twentyten
- Files:
-
- 35 edited
-
bbpress/content-archive-forum.php (modified) (2 diffs)
-
bbpress/content-archive-topic.php (modified) (2 diffs)
-
bbpress/content-single-forum.php (modified) (2 diffs)
-
bbpress/content-single-reply.php (modified) (2 diffs)
-
bbpress/content-single-topic-lead.php (modified) (1 diff)
-
bbpress/content-single-topic.php (modified) (2 diffs)
-
bbpress/content-single-user-edit.php (modified) (1 diff)
-
bbpress/content-single-user.php (modified) (1 diff)
-
bbpress/content-single-view.php (modified) (2 diffs)
-
bbpress/content-topic-tag-edit.php (modified) (2 diffs)
-
bbpress/form-forum.php (modified) (1 diff)
-
bbpress/form-protected.php (modified) (2 diffs)
-
bbpress/form-reply.php (modified) (1 diff)
-
bbpress/form-topic-merge.php (modified) (2 diffs)
-
bbpress/form-topic-split.php (modified) (2 diffs)
-
bbpress/form-topic.php (modified) (1 diff)
-
bbpress/form-user-login.php (modified) (1 diff)
-
bbpress/form-user-lost-pass.php (modified) (1 diff)
-
bbpress/form-user-register.php (modified) (1 diff)
-
bbpress/loop-forums.php (modified) (1 diff)
-
bbpress/loop-replies.php (modified) (1 diff)
-
bbpress/loop-single-forum.php (modified) (1 diff)
-
bbpress/loop-single-reply.php (modified) (1 diff)
-
bbpress/loop-single-topic.php (modified) (1 diff)
-
bbpress/loop-topics.php (modified) (1 diff)
-
bbpress/pagination-replies.php (modified) (1 diff)
-
bbpress/pagination-topics.php (modified) (1 diff)
-
css/bbpress-rtl.css (modified) (11 diffs)
-
css/bbpress.css (modified) (11 diffs)
-
page-forum-statistics.php (modified) (1 diff)
-
page-topic-tags.php (modified) (1 diff)
-
page-topics-no-replies.php (modified) (1 diff)
-
page-user-login.php (modified) (1 diff)
-
page-user-lost-pass.php (modified) (1 diff)
-
page-user-register.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-themes/bbp-twentyten/bbpress/content-archive-forum.php
r3312 r3651 9 9 10 10 ?> 11 12 <div id="bbpress-forums"> 11 13 12 14 <?php bbp_breadcrumb(); ?> … … 25 27 26 28 <?php do_action( 'bbp_template_after_forums_index' ); ?> 29 30 </div> -
branches/plugin/bbp-themes/bbp-twentyten/bbpress/content-archive-topic.php
r3634 r3651 9 9 10 10 ?> 11 12 <div id="bbpress-forums"> 11 13 12 14 <?php bbp_breadcrumb(); ?> … … 31 33 32 34 <?php do_action( 'bbp_template_after_topics_index' ); ?> 35 36 </div> -
branches/plugin/bbp-themes/bbp-twentyten/bbpress/content-single-forum.php
r3312 r3651 9 9 10 10 ?> 11 12 <div id="bbpress-forums"> 11 13 12 14 <?php bbp_breadcrumb(); ?> … … 45 47 46 48 <?php endif; ?> 49 50 </div> -
branches/plugin/bbp-themes/bbp-twentyten/bbpress/content-single-reply.php
r3634 r3651 9 9 10 10 ?> 11 12 <div id="bbpress-forums"> 11 13 12 14 <?php bbp_breadcrumb(); ?> … … 25 27 26 28 <?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 10 10 ?> 11 11 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' ); ?> 17 13 18 <?php _e( 'Topic', 'bbpress' ); ?>14 <ul id="bbp-topic-<?php bbp_topic_id(); ?>-lead" class="bbp-lead-topic"> 19 15 20 <?php bbp_user_subscribe_link(); ?>16 <li class="bbp-header"> 21 17 22 <?php bbp_user_favorites_link(); ?>18 <div class="bbp-topic-author"><?php _e( 'Creator', 'bbpress' ); ?></div><!-- .bbp-topic-author --> 23 19 24 </th> 25 </tr> 26 </thead> 20 <div class="bbp-topic-content"> 27 21 28 <tfoot> 29 <tr> 30 <td colspan="2"> 22 <?php _e( 'Topic', 'bbpress' ); ?> 31 23 32 <?php bbp_topic_admin_links(); ?>24 <?php bbp_user_subscribe_link(); ?> 33 25 34 </td> 35 </tr> 36 </tfoot> 26 <?php bbp_user_favorites_link(); ?> 37 27 38 < tbody>28 </div><!-- .bbp-topic-content --> 39 29 40 <tr class="bbp-topic-header"> 41 <td colspan="2"> 30 </li><!-- .bbp-header --> 42 31 43 <?php printf( __( '%1$s at %2$s', 'bbpress' ), get_the_date(), esc_attr( get_the_time() ) ); ?>32 <li class="bbp-body"> 44 33 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"> 46 35 47 </td> 48 </tr> 36 <div class="bbp-meta"> 49 37 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() ) ); ?> 51 39 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> 53 41 54 <?php bbp_topic_author_link( array( 'sep' => '<br />' )); ?>42 <?php do_action( 'bbp_theme_before_topic_admin_links' ); ?> 55 43 56 <?php if ( is_super_admin() ) :?>44 <?php bbp_topic_admin_links(); ?> 57 45 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' ); ?> 59 47 60 <?php endif; ?>48 </div><!-- .bbp-meta --> 61 49 62 </td>50 </div><!-- .bbp-topic-header --> 63 51 64 <td class="bbp-topic-content">52 <div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>> 65 53 66 <?php bbp_topic_content(); ?>54 <div class="bbp-topic-author"> 67 55 68 < /td>56 <?php do_action( 'bbp_theme_before_topic_author_details' ); ?> 69 57 70 </tr><!-- #post-<?php bbp_topic_id(); ?> -->58 <?php bbp_topic_author_link( array( 'sep' => '<br />' ) ); ?> 71 59 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 9 9 10 10 ?> 11 12 <div id="bbpress-forums"> 11 13 12 14 <?php bbp_breadcrumb(); ?> … … 45 47 46 48 <?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 10 10 ?> 11 11 12 <?php do_action( 'bbp_template_notices' ); 12 <div id="bbpress-forums"> 13 13 14 // Profile details 15 bbp_get_template_part( 'bbpress/user', 'details' ); 14 <?php do_action( 'bbp_template_notices' ); ?> 16 15 17 // User edit form 18 bbp_get_template_part( 'bbpress/form', 'user-edit' ); 16 <?php bbp_get_template_part( 'bbpress/user', 'details' ); ?> 19 17 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 10 10 ?> 11 11 12 <div id="bbpress-forums"> 13 12 14 <?php do_action( 'bbp_template_notices' ); ?> 13 15 14 <?php bbp_get_template_part( 'bbpress/user', 'details' ); ?>16 <?php bbp_get_template_part( 'bbpress/user', 'details' ); ?> 15 17 16 18 <hr /> 17 19 18 <?php bbp_get_template_part( 'bbpress/user', 'subscriptions' ); ?>20 <?php bbp_get_template_part( 'bbpress/user', 'subscriptions' ); ?> 19 21 20 22 <hr /> 21 23 22 <?php bbp_get_template_part( 'bbpress/user', 'favorites' ); ?>24 <?php bbp_get_template_part( 'bbpress/user', 'favorites' ); ?> 23 25 24 26 <hr /> 25 27 26 <?php bbp_get_template_part( 'bbpress/user', 'topics-created' ); 28 <?php bbp_get_template_part( 'bbpress/user', 'topics-created' ); ?> 27 29 28 ?>30 </div> -
branches/plugin/bbp-themes/bbp-twentyten/bbpress/content-single-view.php
r3331 r3651 9 9 10 10 ?> 11 12 <div id="bbpress-forums"> 11 13 12 14 <?php bbp_breadcrumb(); ?> … … 29 31 30 32 <?php bbp_reset_query_name(); ?> 33 34 </div> -
branches/plugin/bbp-themes/bbp-twentyten/bbpress/content-topic-tag-edit.php
r3634 r3651 10 10 ?> 11 11 12 <div id="bbpress-forums"> 13 12 14 <?php bbp_breadcrumb(); ?> 13 15 … … 19 21 20 22 <?php do_action( 'bbp_template_after_topic_tag_edit' ); ?> 23 24 </div> -
branches/plugin/bbp-themes/bbp-twentyten/bbpress/form-forum.php
r3586 r3651 10 10 ?> 11 11 12 <?php if ( bbp_is_forum_edit() ) : ?>12 <?php if ( bbp_is_forum_edit() ) : ?> 13 13 14 <?php bbp_breadcrumb(); ?>14 <div id="bbpress-forums"> 15 15 16 <?php bbp_single_forum_description( array( 'forum_id' => bbp_get_forum_id() )); ?>16 <?php bbp_breadcrumb(); ?> 17 17 18 <?php endif; ?>18 <?php bbp_single_forum_description( array( 'forum_id' => bbp_get_forum_id() ) ); ?> 19 19 20 <?php if ( bbp_current_user_can_access_create_forum_form() ) :?>20 <?php endif; ?> 21 21 22 <div id="new-forum-<?php bbp_forum_id(); ?>" class="bbp-forum-form">22 <?php if ( bbp_current_user_can_access_create_forum_form() ) : ?> 23 23 24 <form id="new-post" name="new-post" method="post" action="">24 <div id="new-forum-<?php bbp_forum_id(); ?>" class="bbp-forum-form"> 25 25 26 <?php do_action( 'bbp_theme_before_forum_form' ); ?>26 <form id="new-post" name="new-post" method="post" action=""> 27 27 28 <fieldset class="bbp-form"> 29 <legend> 28 <?php do_action( 'bbp_theme_before_forum_form' ); ?> 30 29 31 <?php 32 if ( bbp_is_forum_edit() ) 33 printf( __( 'Now Editing “%s”', 'bbpress' ), bbp_get_forum_title() ); 34 else 35 bbp_is_single_forum() ? printf( __( 'Create New Forum in “%s”', 'bbpress' ), bbp_get_forum_title() ) : _e( 'Create New Forum', 'bbpress' ); 36 ?> 30 <fieldset class="bbp-form"> 31 <legend> 37 32 38 </legend> 33 <?php 34 if ( bbp_is_forum_edit() ) 35 printf( __( 'Now Editing “%s”', 'bbpress' ), bbp_get_forum_title() ); 36 else 37 bbp_is_single_forum() ? printf( __( 'Create New Forum in “%s”', 'bbpress' ), bbp_get_forum_title() ) : _e( 'Create New Forum', 'bbpress' ); 38 ?> 39 39 40 <?php do_action( 'bbp_theme_before_forum_form_notices' ); ?>40 </legend> 41 41 42 <?php if ( !bbp_is_forum_edit() && bbp_is_forum_closed() ) :?>42 <?php do_action( 'bbp_theme_before_forum_form_notices' ); ?> 43 43 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() ) : ?> 47 45 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> 49 49 50 <?php if ( current_user_can( 'unfiltered_html' ) ) :?>50 <?php endif; ?> 51 51 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' ) ) : ?> 55 53 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> 57 57 58 <?php do_action( 'bbp_template_notices' ); ?>58 <?php endif; ?> 59 59 60 <div>60 <?php do_action( 'bbp_template_notices' ); ?> 61 61 62 <fieldset class="bbp-form bbp-forum-form-attributes"> 63 <legend><?php _e( 'Forum Attributes', 'bbpress' ); ?></legend> 62 <div> 64 63 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' ); ?> 66 99 67 100 <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() ) ); ?> 70 103 </p> 71 104 72 <?php do_action( 'bbp_theme_after_forum_form_ type' ); ?>105 <?php do_action( 'bbp_theme_after_forum_form_parent' ); ?> 73 106 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' ) ) : ?> 75 125 76 126 <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> 79 129 </p> 80 130 81 <?php do_action( 'bbp_theme_after_forum_form_status' );?>131 <?php else : ?> 82 132 83 <?php do_action( 'bbp_theme_before_forum_form_status'); ?>133 <?php bbp_the_content( array( 'context' => 'forum' ) ); ?> 84 134 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> 88 144 </p> 89 145 90 <?php do_action( 'bbp_theme_after_forum_visibility_status' ); ?>146 <?php endif; ?> 91 147 92 <?php if ( !bbp_is_single_forum() ) : ?>148 </fieldset> 93 149 94 <hr />150 <?php do_action( 'bbp_theme_before_forum_form_submit_wrapper' ); ?> 95 151 96 <?php do_action( 'bbp_theme_before_forum_form_parent' ); ?>152 <div class="bbp-submit-wrapper"> 97 153 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' ); ?> 102 155 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> 104 157 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' ); ?> 161 159 162 160 </div> 163 161 164 <?php bbp_forum_form_fields(); ?>162 <?php do_action( 'bbp_theme_after_forum_form_submit_wrapper' ); ?> 165 163 166 </ fieldset>164 </div> 167 165 168 <?php do_action( 'bbp_theme_after_forum_form'); ?>166 <?php bbp_forum_form_fields(); ?> 169 167 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 ‘%s’ is closed to new content.', 'bbpress' ), bbp_get_forum_title() ); ?></p> 171 180 </div> 181 </div> 172 182 173 <?php elseif ( bbp_is_forum_closed() ): ?>183 <?php else : ?> 174 184 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 ‘%s’ 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> 179 188 </div> 189 </div> 180 190 181 <?php else :?>191 <?php endif; ?> 182 192 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() ) : ?> 188 194 189 <?php endif; ?> 195 </div> 196 197 <?php endif; ?> -
branches/plugin/bbp-themes/bbp-twentyten/bbpress/form-protected.php
r3386 r3651 10 10 ?> 11 11 12 <div id="bbpress-forums"> 12 13 <fieldset class="bbp-form" id="bbp-protected"> 13 14 <Legend><?php _e( 'Protected', 'bbpress' ); ?></legend> … … 16 17 17 18 </fieldset> 19 </div> -
branches/plugin/bbp-themes/bbp-twentyten/bbpress/form-reply.php
r3586 r3651 10 10 ?> 11 11 12 <?php if ( bbp_is_reply_edit() ) : ?>12 <?php if ( bbp_is_reply_edit() ) : ?> 13 13 14 <?php bbp_breadcrumb(); ?>14 <div id="bbpress-forums"> 15 15 16 <?php endif; ?>16 <?php bbp_breadcrumb(); ?> 17 17 18 <?php if ( bbp_current_user_can_access_create_reply_form() ) :?>18 <?php endif; ?> 19 19 20 <div id="new-reply-<?php bbp_topic_id(); ?>" class="bbp-reply-form">20 <?php if ( bbp_current_user_can_access_create_reply_form() ) : ?> 21 21 22 <form id="new-post" name="new-post" method="post" action="">22 <div id="new-reply-<?php bbp_topic_id(); ?>" class="bbp-reply-form"> 23 23 24 <?php do_action( 'bbp_theme_before_reply_form' ); ?>24 <form id="new-post" name="new-post" method="post" action=""> 25 25 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' ); ?> 28 27 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> 30 30 31 <?php if ( !bbp_is_topic_open() && !bbp_is_reply_edit() ) :?>31 <?php do_action( 'bbp_theme_before_reply_form_notices' ); ?> 32 32 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' ) ); ?> 36 67 37 68 <?php endif; ?> 38 69 39 <?php if ( current_user_can( 'unfiltered_html' ) ) :?>70 <?php do_action( 'bbp_theme_after_reply_form_content' ); ?> 40 71 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> 44 78 45 79 <?php endif; ?> 46 80 47 <?php do_action( 'bbp_t emplate_notices' ); ?>81 <?php do_action( 'bbp_theme_before_reply_form_tags' ); ?> 48 82 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> 50 87 51 <?php bbp_get_template_part( 'bbpress/form', 'anonymous' ); ?>88 <?php do_action( 'bbp_theme_after_reply_form_tags' ); ?> 52 89 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() ) ) ) : ?> 54 91 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' ); ?> 80 93 81 94 <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 84 108 </p> 85 109 86 <?php do_action( 'bbp_theme_after_reply_form_ tags' ); ?>110 <?php do_action( 'bbp_theme_after_reply_form_subscription' ); ?> 87 111 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; ?> 89 113 90 <?php do_action( 'bbp_theme_before_reply_form_subscription' );?>114 <?php if ( bbp_allow_revisions() && bbp_is_reply_edit() ) : ?> 91 115 92 <p>116 <?php do_action( 'bbp_theme_before_reply_form_revisions' ); ?> 93 117 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> 95 124 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> 97 130 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' ); ?> 99 132 100 <?php else : ?>133 <?php else : ?> 101 134 102 <label for="bbp_topic_subscription"><?php _e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label>135 <?php bbp_topic_admin_links(); ?> 103 136 104 <?php endif; ?>137 <?php endif; ?> 105 138 106 </p>139 <?php do_action( 'bbp_theme_before_reply_form_submit_wrapper' ); ?> 107 140 108 <?php do_action( 'bbp_theme_after_reply_form_subscription' ); ?>141 <div class="bbp-submit-wrapper"> 109 142 110 <?php endif; ?>143 <?php do_action( 'bbp_theme_before_reply_form_submit_button' ); ?> 111 144 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> 113 146 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' ); ?> 150 148 151 149 </div> 152 150 153 <?php bbp_reply_form_fields(); ?>151 <?php do_action( 'bbp_theme_after_reply_form_submit_wrapper' ); ?> 154 152 155 </ fieldset>153 </div> 156 154 157 <?php do_action( 'bbp_theme_after_reply_form'); ?>155 <?php bbp_reply_form_fields(); ?> 158 156 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 ‘%s’ is closed to new replies.', 'bbpress' ), bbp_get_topic_title() ); ?></p> 160 169 </div> 170 </div> 161 171 162 <?php elseif ( bbp_is_topic_closed() ) : ?>172 <?php elseif ( bbp_is_forum_closed( bbp_get_topic_forum_id() ) ) : ?> 163 173 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 ‘%s’ 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 ‘%s’ is closed to new topics and replies.', 'bbpress' ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?></p> 168 177 </div> 178 </div> 169 179 170 <?php elseif ( bbp_is_forum_closed( bbp_get_topic_forum_id() ) ): ?>180 <?php else : ?> 171 181 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 ‘%s’ 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> 176 185 </div> 186 </div> 177 187 178 <?php else :?>188 <?php endif; ?> 179 189 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() ) : ?> 185 191 186 <?php endif; ?> 192 </div> 193 194 <?php endif; ?> -
branches/plugin/bbp-themes/bbp-twentyten/bbpress/form-topic-merge.php
r3491 r3651 9 9 10 10 ?> 11 12 <div id="bbpress-forums"> 11 13 12 14 <?php bbp_breadcrumb(); ?> … … 103 105 104 106 <?php endif; ?> 107 108 </div> -
branches/plugin/bbp-themes/bbp-twentyten/bbpress/form-topic-split.php
r3491 r3651 9 9 10 10 ?> 11 12 <div id="bbpress-forums"> 11 13 12 14 <?php bbp_breadcrumb(); ?> … … 107 109 108 110 <?php endif; ?> 111 112 </div> -
branches/plugin/bbp-themes/bbp-twentyten/bbpress/form-topic.php
r3586 r3651 10 10 ?> 11 11 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 “%s”', 'bbpress' ), bbp_get_topic_title() ); 40 else 41 bbp_is_single_forum() ? printf( __( 'Create New Topic in “%s”', '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 “%s”', 'bbpress' ), bbp_get_topic_title() ); 42 else 43 bbp_is_single_forum() ? printf( __( 'Create New Topic in “%s”', '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> 200 54 </div> 201 55 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 ‘%s’ is closed to new topics and replies.', 'bbpress' ), bbp_get_forum_title() ); ?></p> 209 218 </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 ‘%s’ 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> 217 226 </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 10 10 ?> 11 11 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> 15 15 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> 20 20 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> 25 25 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> 30 30 31 <div class="bbp-submit-wrapper">31 <div class="bbp-submit-wrapper"> 32 32 33 <?php do_action( 'login_form' ); ?>33 <?php do_action( 'login_form' ); ?> 34 34 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" /> 36 36 37 <?php bbp_user_login_fields(); ?>37 <?php bbp_user_login_fields(); ?> 38 38 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 10 10 ?> 11 11 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> 15 15 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> 22 22 23 <div class="bbp-submit-wrapper">23 <div class="bbp-submit-wrapper"> 24 24 25 <?php do_action( 'login_form', 'resetpass' ); ?>25 <?php do_action( 'login_form', 'resetpass' ); ?> 26 26 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(); ?>" /> 28 28 29 <?php bbp_user_lost_pass_fields(); ?>29 <?php bbp_user_lost_pass_fields(); ?> 30 30 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 10 10 ?> 11 11 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> 15 15 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> 19 19 20 </div>20 </div> 21 21 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> 26 26 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> 31 31 32 <?php do_action( 'register_form' ); ?>32 <?php do_action( 'register_form' ); ?> 33 33 34 <div class="bbp-submit-wrapper">34 <div class="bbp-submit-wrapper"> 35 35 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> 37 37 38 <?php bbp_user_register_fields(); ?>38 <?php bbp_user_register_fields(); ?> 39 39 40 </div>41 </fieldset>42 </form>40 </div> 41 </fieldset> 42 </form> -
branches/plugin/bbp-themes/bbp-twentyten/bbpress/loop-forums.php
r3634 r3651 10 10 ?> 11 11 12 <div id="bbpress-forums">12 <?php do_action( 'bbp_template_before_forums_loop' ); ?> 13 13 14 <?php do_action( 'bbp_template_before_forums_loop' ); ?>14 <ul id="forums-list-<?php bbp_forum_id(); ?>" class="bbp-forums"> 15 15 16 <ul id="forums-list" class="forums bbp-forums">16 <li class="bbp-header"> 17 17 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> 19 24 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 --> 26 26 27 </li><!-- .bbp-header -->27 <li class="bbp-body"> 28 28 29 <li class="bbp-body">29 <?php while ( bbp_forums() ) : bbp_the_forum(); ?> 30 30 31 <?php while ( bbp_forums() ) : bbp_the_forum(); ?>31 <?php bbp_get_template_part( 'bbpress/loop', 'single-forum' ); ?> 32 32 33 <?php bbp_get_template_part( 'bbpress/loop', 'single-forum' ); ?>33 <?php endwhile; ?> 34 34 35 <?php endwhile; ?>35 </li><!-- .bbp-body --> 36 36 37 </li><!-- .bbp-body -->37 <li class="bbp-footer"> 38 38 39 <li class="bbp-footer"> 39 <div class="tr"> 40 <p class="td colspan4"> </p> 41 </div><!-- .tr --> 40 42 41 <div class="tr"> 42 <p class="td colspan4"> </p> 43 </div><!-- .tr --> 43 </li><!-- .bbp-footer --> 44 44 45 </li><!-- .bbp-footer-->45 </ul><!-- .forums-directory --> 46 46 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 10 10 ?> 11 11 12 <div id="bbpress-forums">12 <?php do_action( 'bbp_template_before_replies_loop' ); ?> 13 13 14 <?php do_action( 'bbp_template_before_replies_loop' ); ?>14 <ul id="topic-<?php bbp_topic_id(); ?>-replies" class="forums bbp-replies"> 15 15 16 <ul id="topic-<?php bbp_topic_id(); ?>-replies" class="forums bbp-replies">16 <li class="bbp-header"> 17 17 18 <li class="bbp-header">18 <div class="bbp-reply-author"><?php _e( 'Author', 'bbpress' ); ?></div><!-- .bbp-reply-author --> 19 19 20 <div class="bbp-reply-author"><?php _e( 'Author', 'bbpress' ); ?></div><!-- .bbp-reply-author -->20 <div class="bbp-reply-content"> 21 21 22 <div class="bbp-reply-content">22 <?php if ( !bbp_show_lead_topic() ) : ?> 23 23 24 <?php if ( !bbp_show_lead_topic() ) :?>24 <?php _e( 'Posts', 'bbpress' ); ?> 25 25 26 <?php _e( 'Posts', 'bbpress'); ?>26 <?php bbp_user_subscribe_link(); ?> 27 27 28 <?php bbp_user_subscribe_link(); ?>28 <?php bbp_user_favorites_link(); ?> 29 29 30 <?php bbp_user_favorites_link();?>30 <?php else : ?> 31 31 32 <?php else :?>32 <?php _e( 'Replies', 'bbpress' ); ?> 33 33 34 <?php _e( 'Replies', 'bbpress' ); ?>34 <?php endif; ?> 35 35 36 <?php endif; ?>36 </div><!-- .bbp-reply-content --> 37 37 38 </div><!-- .bbp-reply-content-->38 </li><!-- .bbp-header --> 39 39 40 </li><!-- .bbp-header -->40 <li class="bbp-body"> 41 41 42 <li class="bbp-body">42 <?php while ( bbp_replies() ) : bbp_the_reply(); ?> 43 43 44 <?php while ( bbp_replies() ) : bbp_the_reply(); ?>44 <?php bbp_get_template_part( 'bbpress/loop', 'single-reply' ); ?> 45 45 46 <?php bbp_get_template_part( 'bbpress/loop', 'single-reply' ); ?>46 <?php endwhile; ?> 47 47 48 <?php endwhile; ?>48 </li><!-- .bbp-body --> 49 49 50 </li><!-- .bbp-body -->50 <li class="bbp-footer"> 51 51 52 <li class="bbp-footer">52 <div class="bbp-reply-author"><?php _e( 'Author', 'bbpress' ); ?></div> 53 53 54 <div class="bbp-reply-author"><?php _e( 'Author', 'bbpress' ); ?></div>54 <div class="bbp-reply-content"> 55 55 56 <div class="bbp-reply-content">56 <?php if ( !bbp_show_lead_topic() ) : ?> 57 57 58 <?php if ( !bbp_show_lead_topic() ) :?>58 <?php _e( 'Posts', 'bbpress' ); ?> 59 59 60 <?php _e( 'Posts', 'bbpress' );?>60 <?php else : ?> 61 61 62 <?php else :?>62 <?php _e( 'Replies', 'bbpress' ); ?> 63 63 64 <?php _e( 'Replies', 'bbpress' ); ?>64 <?php endif; ?> 65 65 66 <?php endif; ?>66 </div><!-- .bbp-reply-content --> 67 67 68 </div><!-- .bbp-reply-content -->68 </li> 69 69 70 </li>70 </ul><!-- #topic-<?php bbp_topic_id(); ?>-replies --> 71 71 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 10 10 ?> 11 11 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(); ?>> 13 13 14 <li class="bbp-forum-info">14 <li class="bbp-forum-info"> 15 15 16 <?php do_action( 'bbp_theme_before_forum_title' ); ?>16 <?php do_action( 'bbp_theme_before_forum_title' ); ?> 17 17 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> 19 19 20 <?php do_action( 'bbp_theme_after_forum_title' ); ?>20 <?php do_action( 'bbp_theme_after_forum_title' ); ?> 21 21 22 <?php do_action( 'bbp_theme_before_forum_sub_forums' ); ?>22 <?php do_action( 'bbp_theme_before_forum_sub_forums' ); ?> 23 23 24 <?php bbp_list_forums(); ?>24 <?php bbp_list_forums(); ?> 25 25 26 <?php do_action( 'bbp_theme_after_forum_sub_forums' ); ?>26 <?php do_action( 'bbp_theme_after_forum_sub_forums' ); ?> 27 27 28 <?php do_action( 'bbp_theme_before_forum_description' ); ?>28 <?php do_action( 'bbp_theme_before_forum_description' ); ?> 29 29 30 <div class="bbp-forum-description"><?php the_content(); ?></div>30 <div class="bbp-forum-description"><?php the_content(); ?></div> 31 31 32 <?php do_action( 'bbp_theme_after_forum_description' ); ?>32 <?php do_action( 'bbp_theme_after_forum_description' ); ?> 33 33 34 </li>34 </li> 35 35 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> 37 37 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> 39 39 40 <li class="bbp-forum-freshness">40 <li class="bbp-forum-freshness"> 41 41 42 <?php do_action( 'bbp_theme_before_forum_freshness_link' ); ?>42 <?php do_action( 'bbp_theme_before_forum_freshness_link' ); ?> 43 43 44 <?php bbp_forum_freshness_link(); ?>44 <?php bbp_forum_freshness_link(); ?> 45 45 46 <?php do_action( 'bbp_theme_after_forum_freshness_link' ); ?>46 <?php do_action( 'bbp_theme_after_forum_freshness_link' ); ?> 47 47 48 <p class="bbp-topic-meta">48 <p class="bbp-topic-meta"> 49 49 50 <?php do_action( 'bbp_theme_before_topic_author' ); ?>50 <?php do_action( 'bbp_theme_before_topic_author' ); ?> 51 51 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> 53 53 54 <?php do_action( 'bbp_theme_after_topic_author' ); ?>54 <?php do_action( 'bbp_theme_after_topic_author' ); ?> 55 55 56 </p>57 </li>56 </p> 57 </li> 58 58 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 10 10 ?> 11 11 12 <div class="bbp-reply-header"> 13 14 <div class="bbp-meta"> 12 <div class="bbp-reply-header"> 15 13 16 <?php printf( __( '%1$s at %2$s', 'bbpress' ), get_the_date(), esc_attr( get_the_time() ) ); ?>14 <div class="bbp-meta"> 17 15 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() ) ); ?> 19 17 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> 21 19 22 <?php bbp_reply_admin_links(); ?>20 <?php do_action( 'bbp_theme_before_reply_admin_links' ); ?> 23 21 24 <?php do_action( 'bbp_theme_after_reply_admin_links'); ?>22 <?php bbp_reply_admin_links(); ?> 25 23 26 </div><!-- .bbp-meta --> 27 28 </div><!-- .bbp-reply-header --> 24 <?php do_action( 'bbp_theme_after_reply_admin_links' ); ?> 29 25 30 < div id="post-<?php bbp_reply_id(); ?>" <?php bbp_reply_class(); ?>>26 </div><!-- .bbp-meta --> 31 27 32 <div class="bbp-reply-author">28 </div><!-- .bbp-reply-header --> 33 29 34 <?php do_action( 'bbp_theme_before_reply_author_details' ); ?>30 <div id="post-<?php bbp_reply_id(); ?>" <?php bbp_reply_class(); ?>> 35 31 36 <?php bbp_reply_author_link( array( 'sep' => '<br />' ) ); ?>32 <div class="bbp-reply-author"> 37 33 38 <?php if ( is_super_admin() ) :?>34 <?php do_action( 'bbp_theme_before_reply_author_details' ); ?> 39 35 40 <?php do_action( 'bbp_theme_before_reply_author_admin_details'); ?>36 <?php bbp_reply_author_link( array( 'sep' => '<br />' ) ); ?> 41 37 42 <div class="bbp-reply-ip"><?php bbp_author_ip( bbp_get_reply_id() ); ?></div>38 <?php if ( is_super_admin() ) : ?> 43 39 44 <?php do_action( 'bbp_theme_after_reply_author_admin_details' ); ?>40 <?php do_action( 'bbp_theme_before_reply_author_admin_details' ); ?> 45 41 46 < ?php endif; ?>42 <div class="bbp-reply-ip"><?php bbp_author_ip( bbp_get_reply_id() ); ?></div> 47 43 48 <?php do_action( 'bbp_theme_after_reply_author_ details' ); ?>44 <?php do_action( 'bbp_theme_after_reply_author_admin_details' ); ?> 49 45 50 < /div><!-- .bbp-reply-author -->46 <?php endif; ?> 51 47 52 < div class="bbp-reply-content">48 <?php do_action( 'bbp_theme_after_reply_author_details' ); ?> 53 49 54 <?php do_action( 'bbp_theme_after_reply_content' ); ?>50 </div><!-- .bbp-reply-author --> 55 51 56 <?php bbp_reply_content(); ?>52 <div class="bbp-reply-content"> 57 53 58 <?php do_action( 'bbp_theme_before_reply_content' ); ?>54 <?php do_action( 'bbp_theme_after_reply_content' ); ?> 59 55 60 < /div><!-- .bbp-reply-content -->56 <?php bbp_reply_content(); ?> 61 57 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 10 10 ?> 11 11 12 <ul id="topic-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>>12 <ul id="topic-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>> 13 13 14 <li class="bbp-topic-title">14 <li class="bbp-topic-title"> 15 15 16 <?php do_action( 'bbp_theme_before_topic_title' ); ?>16 <?php do_action( 'bbp_theme_before_topic_title' ); ?> 17 17 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> 19 19 20 <?php do_action( 'bbp_theme_after_topic_title' ); ?>20 <?php do_action( 'bbp_theme_after_topic_title' ); ?> 21 21 22 <?php bbp_topic_pagination(); ?>22 <?php bbp_topic_pagination(); ?> 23 23 24 <?php do_action( 'bbp_theme_before_topic_meta' ); ?>24 <?php do_action( 'bbp_theme_before_topic_meta' ); ?> 25 25 26 <p class="bbp-topic-meta">26 <p class="bbp-topic-meta"> 27 27 28 <?php do_action( 'bbp_theme_before_topic_started_by' ); ?>28 <?php do_action( 'bbp_theme_before_topic_started_by' ); ?> 29 29 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> 31 31 32 <?php do_action( 'bbp_theme_after_topic_started_by' ); ?>32 <?php do_action( 'bbp_theme_after_topic_started_by' ); ?> 33 33 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() ) ) : ?> 35 35 36 <?php do_action( 'bbp_theme_before_topic_started_in' ); ?>36 <?php do_action( 'bbp_theme_before_topic_started_in' ); ?> 37 37 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> 39 39 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' => '×', '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' => '×' ) ); ?> 94 95 <?php do_action( 'bbp_theme_after_topic_subscription_action' ); ?> 96 97 </li> 40 <?php do_action( 'bbp_theme_after_topic_started_in' ); ?> 98 41 99 42 <?php endif; ?> 100 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' => '×', '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' => '×' ) ); ?> 94 95 <?php do_action( 'bbp_theme_after_topic_subscription_action' ); ?> 96 97 </li> 98 101 99 <?php endif; ?> 102 100 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 10 10 ?> 11 11 12 <div id="bbpress-forums">12 <?php do_action( 'bbp_template_before_topics_loop' ); ?> 13 13 14 <?php do_action( 'bbp_template_before_topics_loop' ); ?>14 <ul id="bbp-forum-<?php bbp_forum_id(); ?>" class="bbp-topics"> 15 15 16 <ul id="bbp-forum-<?php bbp_forum_id(); ?>" class="forums bbp-topics">16 <li class="bbp-header"> 17 17 18 <li class="bbp-header">18 <ul class="forum-titles"> 19 19 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; ?> 21 25 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> 27 27 28 </ul>28 </li> 29 29 30 </li>30 <li class="bbp-body"> 31 31 32 <li class="bbp-body">32 <?php while ( bbp_topics() ) : bbp_the_topic(); ?> 33 33 34 <?php while ( bbp_topics() ) : bbp_the_topic(); ?>34 <?php bbp_get_template_part( 'bbpress/loop', 'single-topic' ); ?> 35 35 36 <?php bbp_get_template_part( 'bbpress/loop', 'single-topic' ); ?>36 <?php endwhile; ?> 37 37 38 <?php endwhile; ?>38 </li> 39 39 40 </li>40 <li class="bbp-footer"> 41 41 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'; ?>"> </span> 45 </p> 46 </div><!-- .tr --> 43 47 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'; ?>"> </span> 47 </p> 48 </div><!-- .tr --> 48 </li> 49 49 50 </li>50 </ul><!-- #bbp-forum-<?php bbp_forum_id(); ?> --> 51 51 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 10 10 ?> 11 11 12 <?php do_action( 'bbp_template_before_pagination_loop' ); ?>12 <?php do_action( 'bbp_template_before_pagination_loop' ); ?> 13 13 14 <div class="bbp-pagination">15 <div class="bbp-pagination-count">14 <div class="bbp-pagination"> 15 <div class="bbp-pagination-count"> 16 16 17 <?php bbp_topic_pagination_count(); ?>17 <?php bbp_topic_pagination_count(); ?> 18 18 19 </div>20 21 <div class="bbp-pagination-links">22 23 <?php bbp_topic_pagination_links(); ?>24 25 </div>26 19 </div> 27 20 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 10 10 ?> 11 11 12 <?php do_action( 'bbp_template_before_pagination_loop' ); ?>12 <?php do_action( 'bbp_template_before_pagination_loop' ); ?> 13 13 14 <div class="bbp-pagination">15 <div class="bbp-pagination-count">14 <div class="bbp-pagination"> 15 <div class="bbp-pagination-count"> 16 16 17 <?php bbp_forum_pagination_count(); ?>17 <?php bbp_forum_pagination_count(); ?> 18 18 19 </div>20 21 <div class="bbp-pagination-links">22 23 <?php bbp_forum_pagination_links(); ?>24 25 </div>26 19 </div> 27 20 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 19 19 20 20 #bbpress-forums { 21 background: #ffffff; 22 border: 1px solid #eeeeee; 21 background: transparent; 23 22 clear: both; 24 23 margin-bottom: 20px; … … 61 60 } 62 61 62 #bbpress-forums ul.bbp-lead-topic, 63 63 #bbpress-forums ul.bbp-topics, 64 64 #bbpress-forums ul.bbp-forums, 65 #bbpress-forums ul.bbp-replies {65 #bbpress-forums ul.bbp-replies { 66 66 font-size: 12px; 67 67 overflow: hidden; 68 width: 100%; 68 border: 1px solid #eee; 69 margin-bottom: 20px; 69 70 } 70 71 … … 78 79 #bbpress-forums li.bbp-footer { 79 80 background: #f3f3f3; 80 border-top: 1px solid #eee eee;81 border-top: 1px solid #eee; 81 82 font-weight: bold; 82 83 padding: 8px; 83 84 text-align: center; 85 clear: both; 84 86 } 85 87 … … 136 138 #bbpress-forums li.bbp-body ul.forum, 137 139 #bbpress-forums li.bbp-body ul.topic { 138 border-bottom: 1px solid #eee eee;140 border-bottom: 1px solid #eee; 139 141 overflow: hidden; 140 142 padding: 8px; 141 143 } 142 144 145 div.bbp-topic-author, 143 146 div.bbp-reply-author { 144 147 float: right; … … 146 149 } 147 150 151 div.bbp-topic-content, 148 152 div.bbp-reply-content { 149 153 margin-right: 140px; … … 151 155 } 152 156 157 li.bbp-header div.bbp-topic-content span#subscription-toggle, 158 li.bbp-header div.bbp-topic-content span#favorite-toggle, 153 159 li.bbp-header div.bbp-reply-content span#subscription-toggle, 154 160 li.bbp-header div.bbp-reply-content span#favorite-toggle { … … 156 162 } 157 163 164 li.bbp-body div.bbp-topic-author, 158 165 li.bbp-body div.bbp-reply-author { 159 166 padding: 12px; … … 161 168 } 162 169 170 li.bbp-body div.bbp-topic-content, 163 171 li.bbp-body div.bbp-reply-content { 164 172 padding: 12px 12px 12px 0px; … … 166 174 } 167 175 176 div.bbp-topic-header, 168 177 div.bbp-reply-header, 169 178 li.bbp-body div.hentry { … … 173 182 } 174 183 184 div.bbp-topic-header, 175 185 div.bbp-reply-header { 176 border-top: 1px solid #ccc ccc;177 border-bottom: 1px solid #eee eee;186 border-top: 1px solid #ccc; 187 border-bottom: 1px solid #eee; 178 188 clear: both; 179 189 } … … 350 360 border: 1px solid #eee; 351 361 padding: 10px 20px; 362 margin-bottom: 10px; 352 363 } 353 364 -
branches/plugin/bbp-themes/bbp-twentyten/css/bbpress.css
r3637 r3651 18 18 } 19 19 20 #bbpress-forums { 21 background: #ffffff; 22 border: 1px solid #eeeeee; 20 #bbpress-forums { 21 background: transparent; 23 22 clear: both; 24 23 margin-bottom: 20px; … … 55 54 } 56 55 57 #bbpress-forums ul { 56 #bbpress-forums ul { 58 57 list-style: none; 59 58 margin: 0px; … … 61 60 } 62 61 62 #bbpress-forums ul.bbp-lead-topic, 63 63 #bbpress-forums ul.bbp-topics, 64 64 #bbpress-forums ul.bbp-forums, 65 #bbpress-forums ul.bbp-replies {65 #bbpress-forums ul.bbp-replies { 66 66 font-size: 12px; 67 67 overflow: hidden; 68 width: 100%; 68 border: 1px solid #eee; 69 margin-bottom: 20px; 70 clear: both; 69 71 } 70 72 … … 76 78 77 79 #bbpress-forums li.bbp-header, 78 #bbpress-forums li.bbp-footer { 80 #bbpress-forums li.bbp-footer { 79 81 background: #f3f3f3; 80 border-top: 1px solid #eee eee;82 border-top: 1px solid #eee; 81 83 font-weight: bold; 82 84 padding: 8px; … … 84 86 } 85 87 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; 92 94 } 93 95 94 96 #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; 97 99 } 98 100 99 101 #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; 102 104 } 103 105 … … 113 115 114 116 li.bbp-forum-info, 115 li.bbp-topic-title { 117 li.bbp-topic-title { 116 118 float: left; 117 119 text-align: left; 118 width: 55%; 119 } 120 li.bbp-forum-topic-count, 120 width: 55%; 121 } 122 li.bbp-forum-topic-count, 121 123 li.bbp-topic-voice-count, 122 li.bbp-forum-reply-count, 123 li.bbp-topic-reply-count{ 124 li.bbp-forum-reply-count, 125 li.bbp-topic-reply-count{ 124 126 float: left; 125 127 text-align: center; … … 128 130 129 131 li.bbp-forum-freshness, 130 li.bbp-topic-freshness{ 132 li.bbp-topic-freshness{ 131 133 text-align: center; 132 134 float: left; … … 136 138 #bbpress-forums li.bbp-body ul.forum, 137 139 #bbpress-forums li.bbp-body ul.topic { 138 border-bottom: 1px solid #eee eee;140 border-bottom: 1px solid #eee; 139 141 overflow: hidden; 140 142 padding: 8px; 141 143 } 142 144 145 div.bbp-topic-author, 143 146 div.bbp-reply-author { 144 147 float: left; … … 146 149 } 147 150 148 div.bbp-reply-content { 149 margin-left: 140px; 151 div.bbp-topic-content, 152 div.bbp-reply-content { 153 margin-left: 140px; 150 154 text-align: left; 151 155 } 152 156 157 li.bbp-header div.bbp-topic-content span#subscription-toggle, 158 li.bbp-header div.bbp-topic-content span#favorite-toggle, 153 159 li.bbp-header div.bbp-reply-content span#subscription-toggle, 154 160 li.bbp-header div.bbp-reply-content span#favorite-toggle { … … 156 162 } 157 163 158 li.bbp-body div.bbp-reply-author { 164 li.bbp-body div.bbp-topic-author, 165 li.bbp-body div.bbp-reply-author { 159 166 padding: 12px; 160 167 vertical-align: top; 161 168 } 162 169 163 li.bbp-body div.bbp-reply-content { 170 li.bbp-body div.bbp-topic-content, 171 li.bbp-body div.bbp-reply-content { 164 172 padding: 12px 12px 12px 0px; 165 173 vertical-align: top; 166 174 } 167 175 176 div.bbp-topic-header, 168 177 div.bbp-reply-header, 169 li.bbp-body div.hentry { 178 li.bbp-body div.hentry { 170 179 margin-bottom: 0px; 171 180 overflow: hidden; 172 padding: 8px; 173 } 174 181 padding: 8px; 182 } 183 184 div.bbp-topic-header, 175 185 div.bbp-reply-header { 176 border-top: 1px solid #ccc ccc;177 border-bottom: 1px solid #eee eee;186 border-top: 1px solid #ccc; 187 border-bottom: 1px solid #eee; 178 188 clear: both; 179 189 } … … 350 360 border: 1px solid #eee; 351 361 padding: 10px 20px; 362 margin-bottom: 10px; 352 363 } 353 364 -
branches/plugin/bbp-themes/bbp-twentyten/page-forum-statistics.php
r3349 r3651 29 29 <?php get_the_content() ? the_content() : _e( '<p>Here are the statistics and popular topics of our forums.</p>', 'bbpress' ); ?> 30 30 31 <d l role="main">31 <div id="bbpress-forums"> 32 32 33 < ?php do_action( 'bbp_before_statistics' ); ?>33 <dl role="main"> 34 34 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' ); ?> 39 36 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> 44 41 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> 49 46 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> 54 51 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> 59 56 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> 61 61 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' ); ?> 66 110 67 111 <?php endif; ?> 68 112 69 <?php if ( !empty( $topic_count_hidden ) ) :?>113 <?php bbp_reset_query_name(); ?> 70 114 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' ); ?> 77 116 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> 115 118 </div> 116 119 </div><!-- #bbp-statistics --> -
branches/plugin/bbp-themes/bbp-twentyten/page-topic-tags.php
r3348 r3651 25 25 <?php get_the_content() ? the_content() : _e( '<p>This is a collection of tags that are currently popular on our forums.</p>', 'bbpress' ); ?> 26 26 27 < ?php bbp_breadcrumb(); ?>27 <div id="bbpress-forums"> 28 28 29 <div id="bbp-topic-hot-tags">29 <?php bbp_breadcrumb(); ?> 30 30 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"> 32 32 33 <?php wp_tag_cloud( array( 'smallest' => 9, 'largest' => 38, 'number' => 80, 'taxonomy' => bbp_get_topic_tag_tax_id() ) ); ?> 34 35 </div> 33 36 </div> 34 35 37 </div> 36 38 </div><!-- #bbp-topic-tags --> -
branches/plugin/bbp-themes/bbp-twentyten/page-topics-no-replies.php
r3302 r3651 25 25 <?php the_content(); ?> 26 26 27 < ?php bbp_breadcrumb(); ?>27 <div id="bbpress-forums"> 28 28 29 <?php bbp_set_query_name( 'bbp_no_replies'); ?>29 <?php bbp_breadcrumb(); ?> 30 30 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' ); ?> 32 32 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 ) ) ) : ?> 34 34 35 <?php bbp_get_template_part( 'bbpress/loop','topics' ); ?>35 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?> 36 36 37 <?php bbp_get_template_part( 'bbpress/pagination','topics' ); ?>37 <?php bbp_get_template_part( 'bbpress/loop', 'topics' ); ?> 38 38 39 <?php else :?>39 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?> 40 40 41 <?php bbp_get_template_part( 'bbpress/feedback', 'no-topics' );?>41 <?php else : ?> 42 42 43 <?php endif; ?>43 <?php bbp_get_template_part( 'bbpress/feedback', 'no-topics' ); ?> 44 44 45 <?php bbp_reset_query_name(); ?>45 <?php endif; ?> 46 46 47 <?php bbp_reset_query_name(); ?> 48 49 </div> 47 50 </div> 48 51 </div><!-- #topics-front --> -
branches/plugin/bbp-themes/bbp-twentyten/page-user-login.php
r3241 r3651 27 27 <?php the_content(); ?> 28 28 29 < ?php bbp_breadcrumb(); ?>29 <div id="bbpress-forums"> 30 30 31 <?php bbp_get_template_part( 'bbpress/form', 'user-login'); ?>31 <?php bbp_breadcrumb(); ?> 32 32 33 <?php bbp_get_template_part( 'bbpress/form', 'user-login' ); ?> 34 35 </div> 33 36 </div> 34 37 </div><!-- #bbp-login --> -
branches/plugin/bbp-themes/bbp-twentyten/page-user-lost-pass.php
r3241 r3651 27 27 <?php the_content(); ?> 28 28 29 < ?php bbp_breadcrumb(); ?>29 <div id="bbpress-forums"> 30 30 31 <?php bbp_get_template_part( 'bbpress/form', 'user-lost-pass'); ?>31 <?php bbp_breadcrumb(); ?> 32 32 33 <?php bbp_get_template_part( 'bbpress/form', 'user-lost-pass' ); ?> 34 35 </div> 33 36 </div> 34 37 </div><!-- #bbp-lost-pass --> -
branches/plugin/bbp-themes/bbp-twentyten/page-user-register.php
r3241 r3651 27 27 <?php the_content(); ?> 28 28 29 < ?php bbp_breadcrumb(); ?>29 <div id="bbpress-forums"> 30 30 31 <?php bbp_get_template_part( 'bbpress/form', 'user-register'); ?>31 <?php bbp_breadcrumb(); ?> 32 32 33 <?php bbp_get_template_part( 'bbpress/form', 'user-register' ); ?> 34 35 </div> 33 36 </div> 34 37 </div><!-- #bbp-register -->
Note: See TracChangeset
for help on using the changeset viewer.