Changeset 2810
- Timestamp:
- 01/17/2011 05:26:05 AM (14 years ago)
- Location:
- branches/plugin
- Files:
-
- 2 added
- 33 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-general-functions.php
r2790 r2810 669 669 // Editing a topic 670 670 } elseif ( bbp_is_topic_edit() ) { 671 $template = array( ' page-bbp_edit.php', 'single-' . $bbp->topic_id, 'single.php', 'index.php' );671 $template = array( 'action-bbp_edit.php', 'single-' . $bbp->topic_id, 'single.php', 'index.php' ); 672 672 673 673 if ( !empty( $_GET['action'] ) && in_array( $_GET['action'], array( 'merge', 'split' ) ) ) 674 array_unshift( $template, ' page-bbp_split-merge.php' );674 array_unshift( $template, 'action-bbp_split-merge.php' ); 675 675 676 676 // Editing a reply 677 677 } elseif ( bbp_is_reply_edit() ) { 678 $template = array( ' page-bbp_edit.php', 'single-' . $bbp->reply_id, 'single.php', 'index.php' );678 $template = array( 'action-bbp_edit.php', 'single-' . $bbp->reply_id, 'single.php', 'index.php' ); 679 679 } 680 680 -
branches/plugin/bbp-includes/bbp-general-template.php
r2804 r2810 322 322 323 323 /** START Form Functions ******************************************************/ 324 325 /** 326 * Output the current tab index of a given form 327 * 328 * Use this function to handle the tab indexing of user facing forms within a 329 * template file. Calling this function will automatically increment the global 330 * tab index by default. 331 * 332 * @param int $auto_increment Optional Default true. Set to false to prevent ++ 333 */ 334 function bbp_tab_index( $auto_increment = true) { 335 echo bbp_get_tab_index( $auto_increment ); 336 } 337 338 /** 339 * Output the current tab index of a given form 340 * 341 * Use this function to handle the tab indexing of user facing forms within a 342 * template file. Calling this function will automatically increment the global 343 * tab index by default. 344 * 345 * @uses apply_filters Allows return value to be filtered 346 * @param int $auto_increment Optional Default true. Set to false to prevent ++ 347 * @return int $bbp->tab_index The global tab index 348 */ 349 function bbp_get_tab_index( $auto_increment = true ) { 350 global $bbp; 351 352 if ( true === $auto_increment ) 353 ++$bbp->tab_index; 354 355 return apply_filters( 'bbp_get_tab_index', (int) $bbp->tab_index ); 356 } 324 357 325 358 /** … … 393 426 // Output-related 394 427 'select_id' => 'bbp_forum_id', 395 'tab' => false,428 'tab' => bbp_get_tab_index(), 396 429 'options_only' => false, 397 430 'show_none' => false, -
branches/plugin/bbp-includes/bbp-topic-template.php
r2809 r2810 2185 2185 'super_text' => __( 'Super Sticky', 'bbpress' ), 2186 2186 'select_id' => 'bbp_stick_topic', 2187 'tab' => 0,2187 'tab' => bbp_get_tab_index(), 2188 2188 'topic_id' => 0 2189 2189 ); -
branches/plugin/bbp-themes/bbp-twentyten/action-bbp_edit.php
r2779 r2810 1 1 <?php 2 2 3 /** 3 * Edit topic/reply page4 * Edit handler for topics and replies 4 5 * 5 6 * @package bbPress 6 * @subpackage Theme s7 * @subpackage Theme 7 8 */ 9 8 10 ?> 11 9 12 <?php get_header(); ?> 10 13 -
branches/plugin/bbp-themes/bbp-twentyten/action-bbp_split-merge.php
r2779 r2810 5 5 * 6 6 * @package bbPress 7 * @subpackage Theme s7 * @subpackage Theme 8 8 */ 9 9 10 10 ?> 11 11 12 <?php get_header(); ?> 12 13 -
branches/plugin/bbp-themes/bbp-twentyten/css/bbpress.css
r2785 r2810 340 340 -------------------------------------------------------------- */ 341 341 342 tr.super-sticky td,342 .bbp-topics-front tr.super-sticky td, 343 343 .bbp-forum-info tr.sticky td { 344 344 background-color: #ffffe0 !important; -
branches/plugin/bbp-themes/bbp-twentyten/form-bbp_anonymous.php
r2753 r2810 1 1 <?php 2 2 3 /** 3 * Anonymous user form4 * Anonymous User 4 5 * 5 6 * @package bbPress 6 * @subpackage Theme s7 * @subpackage Theme 7 8 */ 9 8 10 ?> 11 9 12 <?php if ( bbp_is_anonymous() || ( bbp_is_topic_edit() && bbp_is_topic_anonymous() ) || ( bbp_is_reply_edit() && bbp_is_reply_anonymous() ) ) : ?> 10 13 … … 13 16 <p> 14 17 <label for="bbp_anonymous_author"><?php _e( 'Name (required):', 'bbpress' ); ?></label><br /> 15 <input type="text" id="bbp_anonymous_author" value="<?php bbp_is_topic_edit() ? bbp_topic_author() : bbp_is_reply_edit() ? bbp_reply_author() : bbp_current_anonymous_user_data( 'name' ); ?>" tabindex=" 4" size="40" name="bbp_anonymous_name" />18 <input type="text" id="bbp_anonymous_author" value="<?php bbp_is_topic_edit() ? bbp_topic_author() : bbp_is_reply_edit() ? bbp_reply_author() : bbp_current_anonymous_user_data( 'name' ); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_anonymous_name" /> 16 19 </p> 17 20 18 21 <p> 19 22 <label for="bbp_anonymous_email"><?php _e( 'Mail (will not be published) (required):', 'bbpress' ); ?></label><br /> 20 <input type="text" id="bbp_anonymous_email" value="<?php echo ( bbp_is_topic_edit() || bbp_is_reply_edit() ) ? get_post_meta( $post->ID, '_bbp_anonymous_email', true ) : bbp_get_current_anonymous_user_data( 'email' ); ?>" tabindex=" 6" size="40" name="bbp_anonymous_email" />23 <input type="text" id="bbp_anonymous_email" value="<?php echo ( bbp_is_topic_edit() || bbp_is_reply_edit() ) ? get_post_meta( $post->ID, '_bbp_anonymous_email', true ) : bbp_get_current_anonymous_user_data( 'email' ); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_anonymous_email" /> 21 24 </p> 22 25 23 26 <p> 24 27 <label for="bbp_anonymous_website"><?php _e( 'Website:', 'bbpress' ); ?></label><br /> 25 <input type="text" id="bbp_anonymous_website" value="<?php bbp_is_topic_edit() ? bbp_topic_author_url() : bbp_is_reply_edit() ? bbp_reply_author_url() : bbp_current_anonymous_user_data( 'website' ); ?>" tabindex=" 8" size="40" name="bbp_anonymous_website" />28 <input type="text" id="bbp_anonymous_website" value="<?php bbp_is_topic_edit() ? bbp_topic_author_url() : bbp_is_reply_edit() ? bbp_reply_author_url() : bbp_current_anonymous_user_data( 'website' ); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_anonymous_website" /> 26 29 </p> 27 30 </fieldset> -
branches/plugin/bbp-themes/bbp-twentyten/form-bbp_merge.php
r2758 r2810 2 2 3 3 /** 4 * Merge topic form4 * Merge Topic 5 5 * 6 6 * @package bbPress 7 * @subpackage Theme s7 * @subpackage Theme 8 8 */ 9 9 … … 43 43 <?php 44 44 global $bbp; 45 bbp_dropdown( array( 'post_type' => $bbp->topic_id, 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 'selected' => -1, 'exclude' => bbp_get_topic_id(), 'select_id' => 'bbp_destination_topic', ' tab' => 4, 'none_found' => __( 'No topics were found to which the topic could be merged to!', 'bbpress' ) ) );45 bbp_dropdown( array( 'post_type' => $bbp->topic_id, 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 'selected' => -1, 'exclude' => bbp_get_topic_id(), 'select_id' => 'bbp_destination_topic', 'none_found' => __( 'No topics were found to which the topic could be merged to!', 'bbpress' ) ) ); 46 46 ?> 47 47 </div> … … 55 55 <?php if ( bbp_is_subscriptions_active() ) : ?> 56 56 57 <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" tabindex=" 6" />57 <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>" /> 58 58 <label for="bbp_topic_subscribers"><?php _e( 'Merge topic subscribers', 'bbpress' ); ?></label><br /> 59 59 60 60 <?php endif; ?> 61 61 62 <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" tabindex=" 8" />62 <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>" /> 63 63 <label for="bbp_topic_favoriters"><?php _e( 'Merge topic favoriters', 'bbpress' ); ?></label><br /> 64 64 65 <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" tabindex=" 10" />65 <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>" /> 66 66 <label for="bbp_topic_tags"><?php _e( 'Merge topic tags', 'bbpress' ); ?></label><br /> 67 67 … … 70 70 71 71 <p id="bbp_topic_submit_container"> 72 <button type="submit" tabindex=" 12" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit"><?php _e( 'Submit', 'bbpress' ); ?></button>72 <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit"><?php _e( 'Submit', 'bbpress' ); ?></button> 73 73 </p> 74 74 </div> -
branches/plugin/bbp-themes/bbp-twentyten/form-bbp_reply.php
r2782 r2810 1 1 <?php 2 2 3 /** 3 * New/ edit bbPress reply form4 * New/Edit Reply 4 5 * 5 6 * @package bbPress 6 * @subpackage Theme s7 * @subpackage Theme 7 8 */ 9 8 10 ?> 11 9 12 <?php if ( bbp_is_reply_edit() || bbp_is_topic_open() || current_user_can( 'edit_topic', bbp_get_topic_id() ) ) : ?> 10 13 … … 30 33 31 34 <?php bbp_is_reply_edit() ? bbp_reply_author_avatar( bbp_get_reply_id(), 80 ) : bbp_current_user_avatar( 80 ); ?> 35 32 36 </div> 33 37 … … 38 42 <p> 39 43 <label for="bbp_reply_content"><?php _e( 'Reply:', 'bbpress' ); ?></label><br /> 40 <textarea id="bbp_reply_content" tabindex=" 8" name="bbp_reply_content" cols="52" rows="6"><?php echo ( bbp_is_reply_edit() && !empty( $post->post_content ) ) ? $post->post_content : ''; ?></textarea>44 <textarea id="bbp_reply_content" tabindex="<?php bbp_tab_index(); ?>" name="bbp_reply_content" cols="52" rows="6"><?php echo ( bbp_is_reply_edit() && !empty( $post->post_content ) ) ? $post->post_content : ''; ?></textarea> 41 45 </p> 42 46 … … 51 55 <p> 52 56 <label for="bbp_topic_tags"><?php _e( 'Tags:', 'bbpress' ); ?></label><br /> 53 <input id="bbp_topic_tags" type="text" value="" tabindex=" 10" size="40" name="bbp_topic_tags" />57 <input id="bbp_topic_tags" type="text" value="" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_tags" /> 54 58 </p> 55 59 … … 61 65 <p> 62 66 <?php if ( bbp_is_reply_edit() && $post->post_author != bbp_get_current_user_id() ) : ?> 63 <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php checked( true, bbp_is_user_subscribed( $post->post_author, bbp_get_reply_topic_id() ) ); ?> tabindex=" 12" />67 <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php checked( true, bbp_is_user_subscribed( $post->post_author, bbp_get_reply_topic_id() ) ); ?> tabindex="<?php bbp_tab_index(); ?>" /> 64 68 <label for="bbp_topic_subscription"><?php _e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label> 65 69 66 70 <?php else : ?> 67 <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php checked( true, bbp_is_user_subscribed( bbp_get_user_id( 0, false, true ), bbp_get_reply_topic_id() ) ); ?> tabindex=" 12" />71 <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php checked( true, bbp_is_user_subscribed( bbp_get_user_id( 0, false, true ), bbp_get_reply_topic_id() ) ); ?> tabindex="<?php bbp_tab_index(); ?>" /> 68 72 <label for="bbp_topic_subscription"><?php _e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label> 69 73 … … 78 82 <legend><?php _e( 'Revision', 'bbpress' ); ?></legend> 79 83 <div> 80 <input name="bbp_log_reply_edit" id="bbp_log_reply_edit" type="checkbox" value="1" checked="checked" tabindex=" 14" />84 <input name="bbp_log_reply_edit" id="bbp_log_reply_edit" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>" /> 81 85 <label for="bbp_log_reply_edit"><?php _e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br /> 82 86 </div> … … 84 88 <div> 85 89 <label for="bbp_reply_edit_reason"><?php printf( __( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br /> 86 <input type="text" value="" tabindex=" 16" size="40" name="bbp_reply_edit_reason" id="bbp_reply_edit_reason" />90 <input type="text" value="" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_reply_edit_reason" id="bbp_reply_edit_reason" /> 87 91 </div> 88 92 </fieldset> … … 91 95 92 96 <p id="bbp_reply_submit_container"> 93 <button type="submit" tabindex=" 18" id="bbp_reply_submit" name="bbp_reply_submit"><?php _e( 'Submit', 'bbpress' ); ?></button>97 <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_reply_submit" name="bbp_reply_submit"><?php _e( 'Submit', 'bbpress' ); ?></button> 94 98 </p> 95 99 </div> -
branches/plugin/bbp-themes/bbp-twentyten/form-bbp_split.php
r2758 r2810 2 2 3 3 /** 4 * Split topic form4 * Split Topic 5 5 * 6 6 * @package bbPress 7 * @subpackage Theme s7 * @subpackage Theme 8 8 */ 9 9 10 10 ?> 11 11 12 <?php if ( is_user_logged_in() && current_user_can( 'edit_topic', bbp_get_topic_id() ) ) : ?> 12 13 … … 31 32 </div> 32 33 33 <?php // @todo Make a codex and add the merge topic docs. ?> 34 <?php // printf( __( 'For more information, check <a href="%s">this documentation.', 'bbpress' ), 'http://codex.bbpress.org/Merge_Topics' ); ?> 34 <?php 35 /** 36 * @todo Make a codex and add the merge topic docs. 37 * printf( __( 'For more information, check <a href="%s">this documentation.', 'bbpress' ), 'http://codex.bbpress.org/Merge_Topics' ); 38 */ 39 ?> 35 40 36 41 <fieldset> … … 38 43 39 44 <div> 40 <input name="bbp_topic_split_option" id="bbp_topic_split_option_reply" type="radio" checked="checked" value="reply" tabindex=" 10" />45 <input name="bbp_topic_split_option" id="bbp_topic_split_option_reply" type="radio" checked="checked" value="reply" tabindex="<?php bbp_tab_index(); ?>" /> 41 46 <label for="bbp_topic_split_option_reply"><?php _e( 'Creating a new topic in this forum:', 'bbpress' ); ?></label> 42 <input type="text" id="bbp_topic_split_destination_title" value="<?php bbp_topic_title(); ?>" tabindex=" 12" size="40" name="bbp_topic_split_destination_title" /><br />47 <input type="text" id="bbp_topic_split_destination_title" value="<?php bbp_topic_title(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_split_destination_title" /><br /> 43 48 44 <input name="bbp_topic_split_option" id="bbp_topic_split_option_existing" type="radio" value="existing" tabindex=" 14" />49 <input name="bbp_topic_split_option" id="bbp_topic_split_option_existing" type="radio" value="existing" tabindex="<?php bbp_tab_index(); ?>" /> 45 50 <label for="bbp_topic_split_option_existing"><?php _e( 'Use an existing topic in this forum:', 'bbpress' ); ?></label> 46 51 47 52 <?php 48 53 global $bbp; 49 bbp_dropdown( array( 'post_type' => $bbp->topic_id, 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 'selected' => -1, 'exclude' => bbp_get_topic_id(), 'select_id' => 'bbp_destination_topic', ' tab' => 16, 'none_found' => __( 'No topics were found to which the topic could be split to!', 'bbpress' ) ) );54 bbp_dropdown( array( 'post_type' => $bbp->topic_id, 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 'selected' => -1, 'exclude' => bbp_get_topic_id(), 'select_id' => 'bbp_destination_topic', 'none_found' => __( 'No topics were found to which the topic could be split to!', 'bbpress' ) ) ); 50 55 ?> 51 56 … … 60 65 <?php if ( bbp_is_subscriptions_active() ) : ?> 61 66 62 <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" tabindex=" 4" />67 <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>" /> 63 68 <label for="bbp_topic_subscribers"><?php _e( 'Copy subscribers to the new topic', 'bbpress' ); ?></label><br /> 64 69 65 70 <?php endif; ?> 66 71 67 <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" tabindex=" 6" />72 <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>" /> 68 73 <label for="bbp_topic_favoriters"><?php _e( 'Copy favoriters to the new topic', 'bbpress' ); ?></label><br /> 69 74 70 <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" tabindex=" 8" />75 <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>" /> 71 76 <label for="bbp_topic_tags"><?php _e( 'Copy topic tags to the new topic', 'bbpress' ); ?></label><br /> 72 77 … … 75 80 76 81 <p id="bbp_topic_submit_container"> 77 <button type="submit" tabindex=" 18" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit"><?php _e( 'Submit', 'bbpress' ); ?></button>82 <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit"><?php _e( 'Submit', 'bbpress' ); ?></button> 78 83 </p> 79 84 </div> -
branches/plugin/bbp-themes/bbp-twentyten/form-bbp_topic.php
r2784 r2810 1 1 <?php 2 2 3 /** 3 * New/ edit bbPress topic forum4 * New/Edit Topic 4 5 * 5 6 * @package bbPress 6 * @subpackage Theme s7 * @subpackage Theme 7 8 */ 9 8 10 ?> 11 9 12 <?php if ( ( bbp_is_topic_edit() && current_user_can( 'edit_topic', bbp_get_topic_id() ) ) || current_user_can( 'publish_topics' ) || bbp_allow_anonymous() ) : ?> 10 13 … … 48 51 <p> 49 52 <label for="bbp_topic_title"><?php _e( 'Title:', 'bbpress' ); ?></label><br /> 50 <input type="text" id="bbp_topic_title" value="<?php echo ( bbp_is_topic_edit() && !empty( $post->post_title ) ) ? $post->post_title : ''; ?>" tabindex=" 8" size="40" name="bbp_topic_title" />53 <input type="text" id="bbp_topic_title" value="<?php echo ( bbp_is_topic_edit() && !empty( $post->post_title ) ) ? $post->post_title : ''; ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_title" /> 51 54 </p> 52 55 53 56 <p> 54 57 <label for="bbp_topic_content"><?php _e( 'Topic:', 'bbpress' ); ?></label><br /> 55 <textarea id="bbp_topic_content" tabindex=" 10" name="bbp_topic_content" cols="52" rows="6"><?php echo ( bbp_is_topic_edit() && !empty( $post->post_content ) ) ? $post->post_content : ''; ?></textarea>58 <textarea id="bbp_topic_content" tabindex="<?php bbp_tab_index(); ?>" name="bbp_topic_content" cols="52" rows="6"><?php echo ( bbp_is_topic_edit() && !empty( $post->post_content ) ) ? $post->post_content : ''; ?></textarea> 56 59 </p> 57 60 … … 65 68 <p> 66 69 <label for="bbp_topic_tags"><?php _e( 'Tags:', 'bbpress' ); ?></label><br /> 67 <input type="text" value="" tabindex=" 12" size="40" name="bbp_topic_tags" id="bbp_topic_tags" />70 <input type="text" value="" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" /> 68 71 </p> 69 72 … … 74 77 <p> 75 78 <label for="bbp_forum_id"><?php _e( 'Forum:', 'bbpress' ); ?></label><br /> 76 <?php bbp_dropdown( array( ' tab' => 14, 'selected' => bbp_is_topic_edit() ? bbp_get_topic_forum_id() : 0 ) ); ?>79 <?php bbp_dropdown( array( 'selected' => bbp_is_topic_edit() ? bbp_get_topic_forum_id() : 0 ) ); ?> 77 80 </p> 78 81 … … 85 88 <label for="bbp_stick_topic"><?php _e( 'Topic Type:', 'bbpress' ); ?></label><br /> 86 89 87 <?php bbp_topic_type_select( array( 'tab' => 16 )); ?>90 <?php bbp_topic_type_select(); ?> 88 91 89 92 </p> … … 96 99 <?php if ( bbp_is_topic_edit() && $post->post_author != bbp_get_current_user_id() ) : ?> 97 100 98 <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php checked( true, bbp_is_user_subscribed( $post->post_author ) ); ?> tabindex=" 18" />101 <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php checked( true, bbp_is_user_subscribed( $post->post_author ) ); ?> tabindex="<?php bbp_tab_index(); ?>" /> 99 102 <label for="bbp_topic_subscription"><?php _e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label> 100 103 101 104 <?php else : ?> 102 105 103 <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php checked( true, bbp_is_user_subscribed( bbp_get_user_id( 0, false, true ) ) ); ?> tabindex=" 18" />106 <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php checked( true, bbp_is_user_subscribed( bbp_get_user_id( 0, false, true ) ) ); ?> tabindex="<?php bbp_tab_index(); ?>" /> 104 107 <label for="bbp_topic_subscription"><?php _e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label> 105 108 … … 114 117 <legend><?php _e( 'Revision', 'bbpress' ); ?></legend> 115 118 <div> 116 <input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" checked="checked" tabindex=" 20" />119 <input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>" /> 117 120 <label for="bbp_log_topic_edit"><?php _e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br /> 118 121 </div> … … 120 123 <div> 121 124 <label for="bbp_topic_edit_reason"><?php printf( __( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br /> 122 <input type="text" value="" tabindex=" 22" size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" />125 <input type="text" value="" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" /> 123 126 </div> 124 127 </fieldset> … … 127 130 128 131 <p id="bbp_topic_submit_container"> 129 <button type="submit" tabindex=" 24" id="bbp_topic_submit" name="bbp_topic_submit"><?php _e( 'Submit', 'bbpress' ); ?></button>132 <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_topic_submit" name="bbp_topic_submit"><?php _e( 'Submit', 'bbpress' ); ?></button> 130 133 </p> 131 134 </div> -
branches/plugin/bbp-themes/bbp-twentyten/form-bbp_topic_tag.php
r2768 r2810 2 2 3 3 /** 4 * Edit bbPress Topic Tag Form4 * Edit Topic Tag 5 5 * 6 6 * @package bbPress 7 * @subpackage Theme s7 * @subpackage Theme 8 8 */ 9 9 10 //@todo - remove $term variable references 10 11 $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); 11 12 12 13 ?> 13 14 14 <?php if ( current_user_can( 'edit_topic_tags' ) ) : ?> 15 15 … … 36 36 <div class="alignleft"> 37 37 <label for="tag-name"><?php _e( 'Name:', 'bbpress' ); ?></label> 38 <input type="text" name="tag-name" size="20" maxlength="40" tabindex=" 2" value="<?php echo esc_attr( $term->name ); ?>" />38 <input type="text" name="tag-name" size="20" maxlength="40" tabindex="<?php bbp_tab_index(); ?>" value="<?php echo esc_attr( $term->name ); ?>" /> 39 39 </div> 40 40 41 41 <div class="alignleft"> 42 42 <label for="tag-name"><?php _e( 'Slug:', 'bbpress' ); ?></label> 43 <input type="text" name="tag-slug" size="20" maxlength="40" tabindex=" 4" value="<?php echo esc_attr( apply_filters( 'editable_slug', $term->slug ) ); ?>" />43 <input type="text" name="tag-slug" size="20" maxlength="40" tabindex="<?php bbp_tab_index(); ?>" value="<?php echo esc_attr( apply_filters( 'editable_slug', $term->slug ) ); ?>" /> 44 44 </div> 45 45 46 46 <div class="alignright"> 47 <input type="submit" name="submit" tabindex=" 6" value="<?php esc_attr_e( 'Update', 'bbpress' ); ?>" /><br />47 <input type="submit" name="submit" tabindex="<?php bbp_tab_index(); ?>" value="<?php esc_attr_e( 'Update', 'bbpress' ); ?>" /><br /> 48 48 49 49 <input type="hidden" name="tag-id" value="<?php echo esc_attr( $term->term_id ); ?>" /> … … 69 69 <div class="alignleft"> 70 70 <label for="tag-name"><?php _e( 'Existing tag:', 'bbpress' ); ?></label> 71 <input type="text" name="tag-name" size="22" tabindex=" 8" maxlength="40" />71 <input type="text" name="tag-name" size="22" tabindex="<?php bbp_tab_index(); ?>" maxlength="40" /> 72 72 </div> 73 73 74 74 <div class="alignright"> 75 <input type="submit" name="submit" tabindex=" 10" value="<?php esc_attr_e( 'Merge', 'bbpress' ); ?>"75 <input type="submit" name="submit" tabindex="<?php bbp_tab_index(); ?>" value="<?php esc_attr_e( 'Merge', 'bbpress' ); ?>" 76 76 onclick="return confirm('<?php echo esc_js( sprintf( __( 'Are you sure you want to merge the "%s" tag into the tag you specified?', 'bbpress' ), $term->name ) ); ?>');" /> 77 77 … … 102 102 103 103 <div class="alignright"> 104 <input type="submit" name="submit" tabindex=" 12" value="<?php _e( 'Delete', 'bbpress' ); ?>"104 <input type="submit" name="submit" tabindex="<?php bbp_tab_index(); ?>" value="<?php _e( 'Delete', 'bbpress' ); ?>" 105 105 onclick="return confirm('<?php echo esc_js( sprintf( __( 'Are you sure you want to delete the "%s" tag? This is permanent and cannot be undone.', 'bbpress' ), $term->name ) ); ?>');" /> 106 106 -
branches/plugin/bbp-themes/bbp-twentyten/functions.php
r2787 r2810 200 200 } 201 201 202 / * Actions */202 // Actions 203 203 add_action( 'init', 'bbp_twentyten_enqueue_styles' ); 204 204 add_action( 'wp_ajax_dim-favorite', 'bbp_twentyten_dim_favorite' ); -
branches/plugin/bbp-themes/bbp-twentyten/loop-bbp_forums.php
r2758 r2810 2 2 3 3 /** 4 * The loop that displays bbPress forums.4 * Forums Loop 5 5 * 6 6 * @package bbPress 7 * @subpackage Theme s7 * @subpackage Theme 8 8 */ 9 9 -
branches/plugin/bbp-themes/bbp-twentyten/loop-bbp_replies.php
r2780 r2810 2 2 3 3 /** 4 * The loop that displays bbPress replies.4 * Replies Loop 5 5 * 6 6 * @package bbPress 7 * @subpackage Themes 8 * 9 * @todo - Not use table rows 7 * @subpackage Theme 10 8 */ 11 9 -
branches/plugin/bbp-themes/bbp-twentyten/loop-bbp_topics.php
r2758 r2810 2 2 3 3 /** 4 * T he loop that displays bbPress topics.4 * Topics Loop 5 5 * 6 6 * @package bbPress 7 * @subpackage Theme s7 * @subpackage Theme 8 8 */ 9 9 10 if ( bbp_get_query_name() || bbp_has_topics() ) : ?> 10 ?> 11 12 <?php if ( bbp_get_query_name() || bbp_has_topics() ) : ?> 11 13 12 14 <?php get_template_part( 'pagination', 'bbp_topics' ); ?> -
branches/plugin/bbp-themes/bbp-twentyten/page-bbp_front.php
r2758 r2810 2 2 3 3 /** 4 * Template Name: bbPress - Forum Index4 * Template Name: bbPress - Forums (Index) 5 5 * 6 6 * @package bbPress -
branches/plugin/bbp-themes/bbp-twentyten/page-bbp_statistics.php
r2769 r2810 5 5 * 6 6 * @package bbPress 7 * @subpackage Theme s7 * @subpackage Theme 8 8 */ 9 9 10 /** Get the statistics and extract them for later use in this template */ 10 // Get the statistics and extract them for later use in this template 11 // @todo - remove variable references 11 12 extract( bbp_get_statistics(), EXTR_SKIP ); 12 13 -
branches/plugin/bbp-themes/bbp-twentyten/page-bbp_topics.php
r2758 r2810 2 2 3 3 /** 4 * Template Name: bbPress - Topic Index4 * Template Name: bbPress - Topics (Newest) 5 5 * 6 6 * @package bbPress 7 * @subpackage Theme s7 * @subpackage Theme 8 8 */ 9 9 -
branches/plugin/bbp-themes/bbp-twentyten/pagination-bbp_replies.php
r2758 r2810 5 5 * 6 6 * @package bbPress 7 * @subpackage Theme s7 * @subpackage Theme 8 8 */ 9 9 -
branches/plugin/bbp-themes/bbp-twentyten/pagination-bbp_topics.php
r2758 r2810 5 5 * 6 6 * @package bbPress 7 * @subpackage Theme s7 * @subpackage Theme 8 8 */ 9 9 -
branches/plugin/bbp-themes/bbp-twentyten/single-bbp_forum.php
r2758 r2810 2 2 3 3 /** 4 * bbPressSingle Forum4 * Single Forum 5 5 * 6 6 * @package bbPress 7 * @subpackage Theme s7 * @subpackage Theme 8 8 */ 9 9 -
branches/plugin/bbp-themes/bbp-twentyten/single-bbp_reply.php
r2780 r2810 2 2 3 3 /** 4 * bbPressSingle Reply4 * Single Reply 5 5 * 6 6 * @package bbPress 7 * @subpackage Theme s7 * @subpackage Theme 8 8 */ 9 9 -
branches/plugin/bbp-themes/bbp-twentyten/single-bbp_topic.php
r2780 r2810 2 2 3 3 /** 4 * bbPressSingle Topic4 * Single Topic 5 5 * 6 6 * @package bbPress 7 * @subpackage Theme s7 * @subpackage Theme 8 8 */ 9 9 -
branches/plugin/bbp-themes/bbp-twentyten/style.css
r2679 r2810 10 10 ** 11 11 * 12 * This file intentionally left blank. Styles are enqueued in functions.php 12 * This file intentionally left blank. Styles are enqueued in functions.php in 13 * the order you see listed below: 13 14 * 14 * Please see:15 15 * 16 * -/css/twentyten.css16 * 1 - ./css/twentyten.css 17 17 * 18 * -/css/bbpress.css18 * 2 - ./css/bbpress.css 19 19 * 20 20 **/ -
branches/plugin/bbp-themes/bbp-twentyten/taxonomy-bbp_topic_tag.php
r2768 r2810 2 2 3 3 /** 4 * bbPressTopic Tag4 * Topic Tag 5 5 * 6 6 * @package bbPress 7 * @subpackage Theme s7 * @subpackage Theme 8 8 */ 9 9 10 10 //@todo - remove $term variable references 11 11 $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); 12 12 -
branches/plugin/bbp-themes/bbp-twentyten/user-bbp_details.php
r2758 r2810 2 2 3 3 /** 4 * User details4 * User Details 5 5 * 6 6 * @package bbPress 7 * @subpackage Theme s7 * @subpackage Theme 8 8 */ 9 9 10 10 ?> 11 11 12 <span class="page-title author"> 13 12 14 <?php printf( __( 'Profile: %s', 'bbpress' ), "<span class='vcard'><a class='url fn n' href='" . bbp_get_user_profile_url() . "' title='" . esc_attr( bbp_get_displayed_user_field( 'display_name' ) ) . "' rel='me'>" . bbp_get_displayed_user_field( 'display_name' ) . "</a></span>" ); ?> 13 15 -
branches/plugin/bbp-themes/bbp-twentyten/user-bbp_favorites.php
r2758 r2810 2 2 3 3 /** 4 * User favorites loop4 * User Favorites 5 5 * 6 6 * @package bbPress 7 * @subpackage Theme s7 * @subpackage Theme 8 8 */ 9 9 10 10 ?> 11 11 12 <?php bbp_set_query_name( 'bbp_user_profile_favorites' ); ?> 12 13 -
branches/plugin/bbp-themes/bbp-twentyten/user-bbp_subscriptions.php
r2758 r2810 2 2 3 3 /** 4 * User subscriptions loop4 * User Sbscriptions 5 5 * 6 6 * @package bbPress 7 * @subpackage Theme s7 * @subpackage Theme 8 8 */ 9 9 10 10 ?> 11 11 12 <?php if ( bbp_is_subscriptions_active() ) : ?> 12 13 -
branches/plugin/bbp-themes/bbp-twentyten/user-bbp_topics_created.php
r2758 r2810 2 2 3 3 /** 4 * User topics created loop4 * User Topics Created 5 5 * 6 6 * @package bbPress 7 * @subpackage Theme s7 * @subpackage Theme 8 8 */ 9 9 10 10 ?> 11 11 12 <?php bbp_set_query_name( 'bbp_user_profile_topics_created' ); ?> 12 13 -
branches/plugin/bbp-themes/bbp-twentyten/user-edit.php
r2758 r2810 5 5 * 6 6 * @package bbPress 7 * @subpackage Theme s7 * @subpackage Theme 8 8 */ 9 9 … … 104 104 <?php 105 105 106 // Handle address change requests 106 107 $new_email = get_option( bbp_get_displayed_user_id() . '_new_email' ); 107 108 if ( $new_email && $new_email != bbp_get_displayed_user_field( 'user_email' ) ) : ?> … … 109 110 <span class="updated inline"> 110 111 111 <?php printf( __( 'There is a pending change of your e-mailto <code>%1$s</code>. <a href="%2$s">Cancel</a>', 'bbpress' ), $new_email['newemail'], esc_url( self_admin_url( 'user.php?dismiss=' . bbp_get_current_user_id() . '_new_email' ) ) ); ?>112 <?php printf( __( 'There is a pending email address change to <code>%1$s</code>. <a href="%2$s">Cancel</a>', 'bbpress' ), $new_email['newemail'], esc_url( self_admin_url( 'user.php?dismiss=' . bbp_get_current_user_id() . '_new_email' ) ) ); ?> 112 113 113 114 </span> -
branches/plugin/bbp-themes/bbp-twentyten/user-posts.php
r2758 r2810 2 2 3 3 /** 4 * User blog posts loop4 * User blog posts 5 5 * 6 6 * @package bbPress 7 * @subpackage Theme s7 * @subpackage Theme 8 8 */ 9 9 10 10 ?> 11 11 12 <div id="bbp-author-blog-posts" class="bbp-author-blog-posts"> 12 13 <hr /> -
branches/plugin/bbp-themes/bbp-twentyten/user.php
r2758 r2810 2 2 3 3 /** 4 * bbPress user profile4 * User Profile 5 5 * 6 6 * @package bbPress 7 * @subpackage Theme s7 * @subpackage Theme 8 8 */ 9 9 -
branches/plugin/bbp-themes/bbp-twentyten/view.php
r2789 r2810 2 2 3 3 /** 4 * View Page4 * View Handler 5 5 * 6 6 * @package bbPress -
branches/plugin/bbpress.php
r2790 r2810 1 1 <?php 2 2 3 /** 3 4 * The bbPress Plugin … … 15 16 * Author: The bbPress Community 16 17 * Author URI: http://bbpress.org 17 * Version: plugin- bleeding18 * Version: plugin-alpha 18 19 */ 19 20 20 21 /** 21 * bbPress ve sion22 * bbPress version 22 23 * 23 24 * Set the version early so other plugins have an inexpensive way to check if 24 25 * bbPress is already loaded. 25 26 * 26 * Note: Loaded does NOT mean initialized. 27 * Note: Checking for defined( 'BBP_VERSION' ) in your code does NOT 28 * guarantee bbPress is initialized and listening. 27 29 */ 28 define( 'BBP_VERSION', 'plugin- bleeding' );30 define( 'BBP_VERSION', 'plugin-alpha' ); 29 31 30 32 if ( !class_exists( 'bbPress' ) ) : … … 35 37 * 36 38 * @since bbPress (r2464) 39 * @todo Use BP_Component class 37 40 */ 38 41 class bbPress { 39 42 40 / / Post type43 /** Post type *************************************************************/ 41 44 42 45 /** … … 55 58 var $reply_id; 56 59 57 / / Post status identifiers60 /** Post status ***********************************************************/ 58 61 59 62 /** … … 77 80 var $trash_status_id; 78 81 79 / / Slugs82 /** Slugs *****************************************************************/ 80 83 81 84 /** … … 109 112 var $view_slug; 110 113 111 / / Absolute Paths114 /** Paths *****************************************************************/ 112 115 113 116 /** … … 121 124 var $themes_dir; 122 125 123 / / URLs126 /** URLs ******************************************************************/ 124 127 125 128 /** … … 138 141 var $themes_url; 139 142 140 / / Current identifiers143 /** Current ID's **********************************************************/ 141 144 142 145 /** … … 155 158 var $current_reply_id; 156 159 157 / / User objects160 /** User ******************************************************************/ 158 161 159 162 /** … … 167 170 var $displayed_user; 168 171 169 / / Query objects172 /** Query *****************************************************************/ 170 173 171 174 /** … … 184 187 var $reply_query; 185 188 186 / / Arrays189 /** Arrays ****************************************************************/ 187 190 188 191 /** … … 191 194 var $sub_forums; 192 195 193 / / Errors196 /** Errors ****************************************************************/ 194 197 195 198 /** … … 198 201 var $errors; 199 202 200 / / Views203 /** Views *****************************************************************/ 201 204 202 205 /** … … 204 207 */ 205 208 var $views; 209 210 /** Forms *****************************************************************/ 211 212 /** 213 * @var int The current tab index for form building 214 */ 215 var $tab_index; 216 206 217 207 218 /**
Note: See TracChangeset
for help on using the changeset viewer.