Changeset 3132
- Timestamp:
- 05/10/2011 06:46:55 AM (15 years ago)
- Location:
- branches/plugin/bbp-includes
- Files:
-
- 2 edited
-
bbp-general-template.php (modified) (1 diff)
-
bbp-shortcodes.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-general-template.php
r3130 r3132 2136 2136 2137 2137 } elseif ( get_query_var( 'bbp_topic_tag' ) ) { 2138 $new_content = $bbp->shortcodes->display_topic _tag( array( 'id' => bbp_get_topic_tag_id() ) );2138 $new_content = $bbp->shortcodes->display_topics_of_tag( array( 'id' => bbp_get_topic_tag_id() ) ); 2139 2139 2140 2140 /** Forums/Topics/Replies *********************************************/ -
branches/plugin/bbp-includes/bbp-shortcodes.php
r3131 r3132 43 43 44 44 // Forum Index 45 add_shortcode( 'bbp-forum-index', array( $this, 'display_forum_index' ) );45 add_shortcode( 'bbp-forum-index', array( $this, 'display_forum_index' ) ); 46 46 47 47 // Specific forum - pass an 'id' attribute 48 add_shortcode( 'bbp- forum',array( $this, 'display_forum' ) );48 add_shortcode( 'bbp-single-forum', array( $this, 'display_forum' ) ); 49 49 50 50 /** Topics ************************************************************/ 51 51 52 52 // Topic index 53 add_shortcode( 'bbp-topic-index', array( $this, 'display_topic_index' ) );53 add_shortcode( 'bbp-topic-index', array( $this, 'display_topic_index' ) ); 54 54 55 55 // Topic form 56 add_shortcode( 'bbp-topic-form', array( $this, 'display_topic_form' ) );56 add_shortcode( 'bbp-topic-form', array( $this, 'display_topic_form' ) ); 57 57 58 58 // Specific topic - pass an 'id' attribute 59 add_shortcode( 'bbp-topic', array( $this, 'display_topic' ) ); 59 add_shortcode( 'bbp-single-topic', array( $this, 'display_topic' ) ); 60 61 /** Topic Tags ********************************************************/ 62 63 // All topic tags in a cloud 64 add_shortcode( 'bbp-topic-tags', array( $this, 'display_topic_tags' ) ); 65 66 // Topics of tag Tag 67 add_shortcode( 'bbp-topic-tag', array( $this, 'display_topics_of_tag' ) ); 60 68 61 69 /** Replies ***********************************************************/ … … 443 451 444 452 /** 453 * Display a tag cloud of all topic tags in an output buffer and return to 454 * ensure that post/page contents are displayed first. 455 * 456 * @since bbPress (r3110) 457 * 458 * @global bbPress $bbp 459 * 460 * @return string 461 */ 462 function display_topic_tags() { 463 global $bbp; 464 465 // Unset globals 466 $this->_unset_globals(); 467 468 // Start output buffer 469 $this->_ob_start(); 470 471 // Output the topic tags 472 wp_tag_cloud( array( 473 'smallest' => 9, 474 'largest' => 38, 475 'number' => 80, 476 'taxonomy' => $bbp->topic_tag_id 477 ) ); 478 479 // Return contents of output buffer 480 return $this->_ob_end(); 481 } 482 483 /** 445 484 * Display the contents of a specific topic tag in an output buffer 446 485 * and return to ensure that post/page contents are displayed first. … … 456 495 * @return string 457 496 */ 458 function display_topic _tag( $attr, $content = '' ) {497 function display_topics_of_tag( $attr, $content = '' ) { 459 498 global $bbp; 460 499
Note: See TracChangeset
for help on using the changeset viewer.