Changeset 3302
- Timestamp:
- 06/05/2011 05:04:17 PM (15 years ago)
- Location:
- branches/plugin
- Files:
-
- 1 added
- 11 edited
- 3 moved
-
bbp-includes/bbp-core-shortcodes.php (modified) (8 diffs)
-
bbp-themes/bbp-twentyten/archive-forum.php (modified) (1 diff)
-
bbp-themes/bbp-twentyten/archive-topic.php (modified) (1 diff)
-
bbp-themes/bbp-twentyten/bbpress/feedback-logged-in.php (added)
-
bbp-themes/bbp-twentyten/bbpress/feedback-no-access.php (moved) (moved from branches/plugin/bbp-themes/bbp-twentyten/bbpress/no-access.php)
-
bbp-themes/bbp-twentyten/bbpress/feedback-no-forums.php (moved) (moved from branches/plugin/bbp-themes/bbp-twentyten/bbpress/no-forums.php)
-
bbp-themes/bbp-twentyten/bbpress/feedback-no-topics.php (moved) (moved from branches/plugin/bbp-themes/bbp-twentyten/bbpress/no-topics.php)
-
bbp-themes/bbp-twentyten/bbpress/single-forum.php (modified) (2 diffs)
-
bbp-themes/bbp-twentyten/bbpress/view.php (modified) (1 diff)
-
bbp-themes/bbp-twentyten/page-front-forums.php (modified) (1 diff)
-
bbp-themes/bbp-twentyten/page-front-topics.php (modified) (1 diff)
-
bbp-themes/bbp-twentyten/page-topics-no-replies.php (modified) (1 diff)
-
bbp-themes/bbp-twentyten/single-forum.php (modified) (2 diffs)
-
bbp-themes/bbp-twentyten/single-topic.php (modified) (1 diff)
-
bbp-themes/bbp-twentyten/taxonomy-topic-tag.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-core-shortcodes.php
r3301 r3302 86 86 87 87 // All topic tags in a cloud 88 'bbp-topic-tags' => array( $this, 'display_topic_tags' ),88 'bbp-topic-tags' => array( $this, 'display_topic_tags' ), 89 89 90 90 // Topics of tag Tag 91 'bbp- topic-tag'=> array( $this, 'display_topics_of_tag' ),91 'bbp-single-topic-tag' => array( $this, 'display_topics_of_tag' ), 92 92 93 93 /** Replies *******************************************************/ 94 94 95 95 // Reply form 96 'bbp-reply-form' => array( $this, 'display_reply_form'),96 'bbp-reply-form' => array( $this, 'display_reply_form' ), 97 97 98 98 /** Views *********************************************************/ 99 99 100 100 // Single view 101 'bbp-single-view' => array( $this, 'display_view' ) 101 'bbp-single-view' => array( $this, 'display_view' ), 102 103 /** Account *******************************************************/ 104 105 // Login 106 'bbp-login' => array( $this, 'display_login' ), 107 108 // Register 109 'bbp-register' => array( $this, 'display_register' ), 110 111 // LOst Password 112 'bbp-lost-pass' => array( $this, 'display_lost_pass' ), 102 113 103 114 ) ); … … 214 225 // Load the forums index 215 226 if ( bbp_has_forums() ) 216 bbp_get_template_part( 'bbpress/loop', 'forums');227 bbp_get_template_part( 'bbpress/loop', 'forums' ); 217 228 218 229 // No forums 219 230 else 220 bbp_get_template_part( 'bbpress/ no', 'forums' );231 bbp_get_template_part( 'bbpress/feedback', 'no-forums' ); 221 232 222 233 // Return contents of output buffer … … 308 319 // Load the topic index 309 320 if ( bbp_has_topics( $topics_query ) ) { 310 bbp_get_template_part( 'bbpress/pagination', 'topics' );311 bbp_get_template_part( 'bbpress/loop', 'topics' );312 bbp_get_template_part( 'bbpress/pagination', 'topics' );313 bbp_get_template_part( 'bbpress/form', 'topic' );321 bbp_get_template_part( 'bbpress/pagination', 'topics' ); 322 bbp_get_template_part( 'bbpress/loop', 'topics' ); 323 bbp_get_template_part( 'bbpress/pagination', 'topics' ); 324 bbp_get_template_part( 'bbpress/form', 'topic' ); 314 325 315 326 // No topics 316 327 } else { 317 bbp_get_template_part( 'bbpress/ no', 'topics' );318 bbp_get_template_part( 'bbpress/form', 'topic');328 bbp_get_template_part( 'bbpress/feedback', 'no-topics' ); 329 bbp_get_template_part( 'bbpress/form', 'topic' ); 319 330 } 320 331 } … … 322 333 // Forum is private and user does not have caps 323 334 } elseif ( bbp_is_forum_private( $forum_id, false ) ) { 324 bbp_get_template_part( 'bbpress/ no', 'access' );335 bbp_get_template_part( 'bbpress/feedback', 'no-access' ); 325 336 } 326 337 } … … 366 377 // Load the topic index 367 378 if ( bbp_has_topics( $topics_query ) ) { 368 bbp_get_template_part( 'bbpress/pagination', 'topics' );369 bbp_get_template_part( 'bbpress/loop', 'topics' );370 bbp_get_template_part( 'bbpress/pagination', 'topics' );379 bbp_get_template_part( 'bbpress/pagination', 'topics' ); 380 bbp_get_template_part( 'bbpress/loop', 'topics' ); 381 bbp_get_template_part( 'bbpress/pagination', 'topics' ); 371 382 372 383 // No topics 373 384 } else { 374 bbp_get_template_part( 'bbpress/ no', 'topics' );385 bbp_get_template_part( 'bbpress/feedback', 'no-topics' ); 375 386 } 376 387 … … 474 485 // Forum is private and user does not have caps 475 486 } elseif ( bbp_is_forum_private( $forum_id, false ) ) { 476 bbp_get_template_part( 'bbpress/ no', 'access' );487 bbp_get_template_part( 'bbpress/feedback', 'no-access' ); 477 488 } 478 489 } … … 632 643 // No topics 633 644 } else { 634 bbp_get_template_part( 'bbpress/ no', 'topics' );645 bbp_get_template_part( 'bbpress/feedback', 'no-topics' ); 635 646 } 636 647 … … 687 698 // Load the topic index 688 699 if ( bbp_view_query( $view_id ) ) { 689 bbp_get_template_part( 'bbpress/pagination', 'topics' );690 bbp_get_template_part( 'bbpress/loop', 'topics' );691 bbp_get_template_part( 'bbpress/pagination', 'topics' );700 bbp_get_template_part( 'bbpress/pagination', 'topics' ); 701 bbp_get_template_part( 'bbpress/loop', 'topics' ); 702 bbp_get_template_part( 'bbpress/pagination', 'topics' ); 692 703 693 704 // No topics 694 705 } else { 695 bbp_get_template_part( 'bbpress/ no', 'topics' );706 bbp_get_template_part( 'bbpress/feedback', 'no-topics' ); 696 707 } 697 708 } 709 710 // Return contents of output buffer 711 return $this->_ob_end(); 712 } 713 714 /** Account ***************************************************************/ 715 716 /** 717 * Display a login form 718 * 719 * @since bbPress (r3302) 720 * 721 * @global bbPress $bbp 722 * 723 * @return string 724 */ 725 function display_login() { 726 global $bbp; 727 728 // Unset globals 729 $this->_unset_globals(); 730 731 // Start output buffer 732 $this->_ob_start(); 733 734 // Output templates 735 if ( !is_user_logged_in() ) 736 bbp_get_template_part( 'bbpress/form', 'user-login' ); 737 else 738 bbp_get_template_part( 'bbpress/feedback', 'logged-in' ); 739 740 // Return contents of output buffer 741 return $this->_ob_end(); 742 } 743 744 /** 745 * Display a register form 746 * 747 * @since bbPress (r3302) 748 * 749 * @global bbPress $bbp 750 * 751 * @return string 752 */ 753 function display_register() { 754 global $bbp; 755 756 // Unset globals 757 $this->_unset_globals(); 758 759 // Start output buffer 760 $this->_ob_start(); 761 762 // Output templates 763 if ( !is_user_logged_in() ) 764 bbp_get_template_part( 'bbpress/form', 'user-register' ); 765 else 766 bbp_get_template_part( 'bbpress/feedback', 'logged-in' ); 767 768 // Return contents of output buffer 769 return $this->_ob_end(); 770 } 771 772 /** 773 * Display a lost password form 774 * 775 * @since bbPress (r3302) 776 * 777 * @global bbPress $bbp 778 * 779 * @return string 780 */ 781 function display_lost_pass() { 782 global $bbp; 783 784 // Unset globals 785 $this->_unset_globals(); 786 787 // Start output buffer 788 $this->_ob_start(); 789 790 // Output templates 791 if ( !is_user_logged_in() ) 792 bbp_get_template_part( 'bbpress/form', 'user-lost-pass' ); 793 else 794 bbp_get_template_part( 'bbpress/feedback', 'logged-in' ); 795 796 // Return contents of output buffer 797 return $this->_ob_end(); 798 } 799 800 /** Other *****************************************************************/ 801 802 /** 803 * Display a breadcrumb 804 * 805 * @since bbPress (r3302) 806 * 807 * @global bbPress $bbp 808 * 809 * @return string 810 */ 811 function display_breadcrumb() { 812 813 // Unset globals 814 $this->_unset_globals(); 815 816 // Start output buffer 817 $this->_ob_start(); 818 819 // Output breadcrumb 820 bbp_breadcrumb(); 698 821 699 822 // Return contents of output buffer -
branches/plugin/bbp-themes/bbp-twentyten/archive-forum.php
r3250 r3302 27 27 <?php if ( bbp_has_forums() ) : ?> 28 28 29 <?php bbp_get_template_part( 'bbpress/loop', 'forums'); ?>29 <?php bbp_get_template_part( 'bbpress/loop', 'forums' ); ?> 30 30 31 31 <?php else : ?> 32 32 33 <?php bbp_get_template_part( 'bbpress/ no', 'forums' ); ?>33 <?php bbp_get_template_part( 'bbpress/feedback', 'no-forums' ); ?> 34 34 35 35 <?php endif; ?> -
branches/plugin/bbp-themes/bbp-twentyten/archive-topic.php
r3250 r3302 27 27 <?php if ( bbp_has_topics() ) : ?> 28 28 29 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>29 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?> 30 30 31 <?php bbp_get_template_part( 'bbpress/loop', 'topics' ); ?>31 <?php bbp_get_template_part( 'bbpress/loop', 'topics' ); ?> 32 32 33 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>33 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?> 34 34 35 35 <?php else : ?> 36 36 37 <?php bbp_get_template_part( 'bbpress/ no', 'topics' ); ?>37 <?php bbp_get_template_part( 'bbpress/feedback', 'no-topics' ); ?> 38 38 39 39 <?php endif; ?> -
branches/plugin/bbp-themes/bbp-twentyten/bbpress/single-forum.php
r3241 r3302 28 28 <?php if ( !bbp_is_forum_category() && bbp_has_topics() ) : ?> 29 29 30 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>30 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?> 31 31 32 <?php bbp_get_template_part( 'bbpress/loop', 'topics' ); ?>32 <?php bbp_get_template_part( 'bbpress/loop', 'topics' ); ?> 33 33 34 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>34 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?> 35 35 36 <?php bbp_get_template_part( 'bbpress/form', 'topic' ); ?>36 <?php bbp_get_template_part( 'bbpress/form', 'topic' ); ?> 37 37 38 38 <?php endif; ?> … … 40 40 <?php elseif ( bbp_is_forum_private( bbp_get_forum_id(), false ) ) : ?> 41 41 42 <?php bbp_get_template_part( 'bbpress/ no', 'access'); ?>42 <?php bbp_get_template_part( 'bbpress/feedback', 'no-access' ); ?> 43 43 44 44 <?php endif; ?> -
branches/plugin/bbp-themes/bbp-twentyten/bbpress/view.php
r3248 r3302 27 27 <?php if ( bbp_view_query() ) : ?> 28 28 29 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>29 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?> 30 30 31 <?php bbp_get_template_part( 'bbpress/loop', 'topics' ); ?>31 <?php bbp_get_template_part( 'bbpress/loop', 'topics' ); ?> 32 32 33 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>33 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?> 34 34 35 35 <?php else : ?> 36 36 37 <?php bbp_get_template_part( 'bbpress/ no', 'topics' ); ?>37 <?php bbp_get_template_part( 'bbpress/feedback', 'no-topics' ); ?> 38 38 39 39 <?php endif; ?> -
branches/plugin/bbp-themes/bbp-twentyten/page-front-forums.php
r3130 r3302 29 29 <?php if ( bbp_has_forums() ) : ?> 30 30 31 <?php bbp_get_template_part( 'bbpress/loop', 'forums'); ?>31 <?php bbp_get_template_part( 'bbpress/loop', 'forums' ); ?> 32 32 33 33 <?php else : ?> 34 34 35 <?php bbp_get_template_part( 'bbpress/ no', 'forums' ); ?>35 <?php bbp_get_template_part( 'bbpress/feedback', 'no-forums' ); ?> 36 36 37 37 <?php endif; ?> -
branches/plugin/bbp-themes/bbp-twentyten/page-front-topics.php
r3241 r3302 31 31 <?php if ( bbp_has_topics() ) : ?> 32 32 33 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>33 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?> 34 34 35 <?php bbp_get_template_part( 'bbpress/loop', 'topics' ); ?>35 <?php bbp_get_template_part( 'bbpress/loop', 'topics' ); ?> 36 36 37 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>37 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?> 38 38 39 39 <?php else : ?> 40 40 41 <?php bbp_get_template_part( 'bbpress/ no', 'topics' ); ?>41 <?php bbp_get_template_part( 'bbpress/feedback', 'no-topics' ); ?> 42 42 43 43 <?php endif; ?> -
branches/plugin/bbp-themes/bbp-twentyten/page-topics-no-replies.php
r3241 r3302 31 31 <?php if ( bbp_has_topics( array( 'meta_key' => '_bbp_reply_count', 'meta_value' => '1', 'meta_compare' => '<', 'orderby' => 'date', 'show_stickies' => false ) ) ) : ?> 32 32 33 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>33 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?> 34 34 35 <?php bbp_get_template_part( 'bbpress/loop', 'topics' ); ?>35 <?php bbp_get_template_part( 'bbpress/loop', 'topics' ); ?> 36 36 37 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>37 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?> 38 38 39 39 <?php else : ?> 40 40 41 <?php bbp_get_template_part( 'bbpress/ no', 'topics' ); ?>41 <?php bbp_get_template_part( 'bbpress/feedback', 'no-topics' ); ?> 42 42 43 43 <?php endif; ?> -
branches/plugin/bbp-themes/bbp-twentyten/single-forum.php
r3241 r3302 43 43 <?php if ( !bbp_is_forum_category() && bbp_has_topics() ) : ?> 44 44 45 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>45 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?> 46 46 47 <?php bbp_get_template_part( 'bbpress/loop', 'topics' ); ?>47 <?php bbp_get_template_part( 'bbpress/loop', 'topics' ); ?> 48 48 49 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>49 <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?> 50 50 51 <?php bbp_get_template_part( 'bbpress/form', 'topic' ); ?>51 <?php bbp_get_template_part( 'bbpress/form', 'topic' ); ?> 52 52 53 53 <?php elseif( !bbp_is_forum_category() ) : ?> 54 54 55 <?php bbp_get_template_part( 'bbpress/ no', 'topics' ); ?>55 <?php bbp_get_template_part( 'bbpress/feedback', 'no-topics' ); ?> 56 56 57 <?php bbp_get_template_part( 'bbpress/form', 'topic' ); ?>57 <?php bbp_get_template_part( 'bbpress/form', 'topic' ); ?> 58 58 59 59 <?php endif; ?> … … 66 66 <?php else : // Forum exists, user no access ?> 67 67 68 <?php bbp_get_template_part( 'bbpress/ no', 'access' ); ?>68 <?php bbp_get_template_part( 'bbpress/feedback', 'no-access' ); ?> 69 69 70 70 <?php endif; ?> -
branches/plugin/bbp-themes/bbp-twentyten/single-topic.php
r3241 r3302 62 62 <?php elseif ( bbp_is_forum_private( bbp_get_topic_forum_id(), false ) ) : ?> 63 63 64 <?php bbp_get_template_part( 'bbpress/ no', 'access' ); ?>64 <?php bbp_get_template_part( 'bbpress/feedback', 'no-access' ); ?> 65 65 66 66 <?php endif; ?> -
branches/plugin/bbp-themes/bbp-twentyten/taxonomy-topic-tag.php
r3241 r3302 40 40 <?php else : ?> 41 41 42 <?php bbp_get_template_part( 'bbpress/ no', 'topics' ); ?>42 <?php bbp_get_template_part( 'bbpress/feedback', 'no-topics' ); ?> 43 43 44 44 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.