Changeset 2448
- Timestamp:
- 01/25/2010 02:16:32 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-templatetags.php
r2378 r2448 24 24 $this->pag_page = isset( $_REQUEST['p'] ) ? intval( $_REQUEST['p'] ) : $page; 25 25 $this->pag_num = isset( $_REQUEST['n'] ) ? intval( $_REQUEST['n'] ) : $per_page; 26 $this->type = $type; 27 $this->search_terms = $search_terms; 26 28 27 29 /* Only show stickies if we are viewing a single group forum, otherwise we could end up with hundreds globally */ … … 177 179 178 180 /* If we're viewing a tag in the directory, let's auto set the filter to the tag name */ 179 if ( $bp->is_directory && 'tag' == $type && !empty( $bp->action_variables[0] ) )181 if ( 'tag' == $bp->current_action && !empty( $bp->action_variables[0] ) ) { 180 182 $search_terms = $bp->action_variables[0]; 183 $type = 'tags'; 184 } 181 185 182 186 /* If $_GET['fs'] is set, let's auto populate the search_terms var */ … … 654 658 $total = bp_core_number_format( $forum_template->total_topic_count ); 655 659 656 echo apply_filters( 'bp_forum_pagination_count', sprintf( __( 'Viewing topic %s to %s (%s total topics)', 'buddypress' ), $from_num, $to_num, $total ) ); 660 $pag_filter = false; 661 if ( 'tags' == $forum_template->type && !empty( $forum_template->search_terms ) ) 662 $pag_filter = sprintf( __( ' matching tag "%s"', 'buddypress' ), $forum_template->search_terms ); 663 664 echo apply_filters( 'bp_forum_pagination_count', sprintf( __( 'Viewing topic %s to %s (%s total topics%s)', 'buddypress' ), $from_num, $to_num, $total, $pag_filter ) ); 657 665 ?> 658 666 <span class="ajax-loader"></span> -
trunk/bp-themes/bp-default/_inc/ajax.php
r2424 r2448 39 39 $bp->ajax_querystring .= '&search_terms=' . $search_terms; 40 40 41 if ( $scope != 'all' || $bp->displayed_user->id ) {41 if ( $scope == 'personal' || $bp->displayed_user->id ) { 42 42 $user_id = ( $bp->displayed_user->id ) ? $bp->displayed_user->id : $bp->loggedin_user->id; 43 43 $bp->ajax_querystring .= '&user_id=' . $user_id; -
trunk/bp-themes/bp-default/_inc/css/default.css
r2446 r2448 251 251 margin-left: 38px; 252 252 font-size: 11px; 253 } 254 255 div#sidebar div.tags div#tag-text { 256 font-size: 1.4em; 257 line-height: 140%; 258 padding-top: 10px; 253 259 } 254 260 -
trunk/bp-themes/bp-default/_inc/global.js
r2436 r2448 718 718 }); 719 719 720 /* Clicking a forum tag */ 721 j('div#forum-directory-tags a').click( function() { 722 bp_filter_request( 'forums', 'tags', j.cookie('bp-forums-scope'), 'div.forums', j(this).html(), 1 ); 723 return false; 724 }); 725 720 726 /** Invite Friends Interface ****************************************/ 721 727 -
trunk/bp-themes/bp-default/blogs/index.php
r2428 r2448 19 19 20 20 <?php if ( is_user_logged_in() && bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) ) : ?> 21 <li id="blogs- myblogs"><a href="<?php echo bp_loggedin_user_domain() . BP_BLOGS_SLUG . '/my-blogs/' ?>"><?php printf( __( 'My Blogs (%s)', 'buddypress' ), bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) ) ?></a></li>21 <li id="blogs-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_BLOGS_SLUG . '/my-blogs/' ?>"><?php printf( __( 'My Blogs (%s)', 'buddypress' ), bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) ) ?></a></li> 22 22 <?php endif; ?> 23 23 -
trunk/bp-themes/bp-default/forums/index.php
r2428 r2448 73 73 74 74 <?php if ( is_user_logged_in() && bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ) : ?> 75 <li id="forums- mytopics"><a href="<?php echo bp_loggedin_user_domain() . BP_GROUPS_SLUG . '/' ?>"><?php printf( __( 'My Topics (%s)', 'buddypress' ), bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ) ?></a></li>75 <li id="forums-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_GROUPS_SLUG . '/' ?>"><?php printf( __( 'My Topics (%s)', 'buddypress' ), bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ) ?></a></li> 76 76 <?php endif; ?> 77 77 -
trunk/bp-themes/bp-default/groups/index.php
r2428 r2448 18 18 19 19 <?php if ( is_user_logged_in() && bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?> 20 <li id="groups- mygroups"><a href="<?php echo bp_loggedin_user_domain() . BP_GROUPS_SLUG . '/my-groups/' ?>"><?php printf( __( 'My Groups (%s)', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ?></a></li>20 <li id="groups-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_GROUPS_SLUG . '/my-groups/' ?>"><?php printf( __( 'My Groups (%s)', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ?></a></li> 21 21 <?php endif; ?> 22 22 -
trunk/bp-themes/bp-default/members/index.php
r2428 r2448 19 19 20 20 <?php if ( is_user_logged_in() && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?> 21 <li id="members- friends"><a href="<?php echo bp_loggedin_user_domain() . BP_FRIENDS_SLUG . '/my-friends/' ?>"><?php printf( __( 'My Friends (%s)', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?></a></li>21 <li id="members-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_FRIENDS_SLUG . '/my-friends/' ?>"><?php printf( __( 'My Friends (%s)', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?></a></li> 22 22 <?php endif; ?> 23 23 -
trunk/bp-themes/bp-default/sidebar.php
r2441 r2448 46 46 <?php endif; ?> 47 47 48 <?php /* Show forum tags on the forums directory */ 49 if ( BP_FORUMS_SLUG == bp_current_component() && bp_is_directory() ) : ?> 50 <div id="forum-directory-tags" class="widget tags"> 48 51 49 <?php if ( !dynamic_sidebar( 'sidebar' ) ) : ?> 52 <h3 class="widgettitle"><?php _e( 'Forum Topic Tags', 'buddypress' ) ?></h3> 53 <?php if ( function_exists('bp_forums_tag_heat_map') ) : ?> 54 <div id="tag-text"><?php bp_forums_tag_heat_map(); ?></div> 55 <?php endif; ?> 56 </div> 57 <?php endif; ?> 50 58 51 52 <?php endif; ?> 59 <?php dynamic_sidebar( 'sidebar' ) ?> 53 60 54 61 <?php do_action( 'bp_inside_after_sidebar' ) ?>
Note: See TracChangeset
for help on using the changeset viewer.