Changeset 2626 for trunk/bp-forums/bp-forums-templatetags.php
- Timestamp:
- 02/08/2010 01:26:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-templatetags.php
r2594 r2626 523 523 } 524 524 525 function bp_the_topic_time_since_last_post( $deprecated = true) {525 function bp_the_topic_time_since_last_post() { 526 526 global $forum_template; 527 527 528 if ( !$deprecated ) 529 return bp_get_the_topic_time_since_last_post(); 530 else 531 echo bp_get_the_topic_time_since_last_post(); 528 echo bp_get_the_topic_time_since_last_post(); 532 529 } 533 530 function bp_get_the_topic_time_since_last_post() { … … 879 876 } 880 877 881 function bp_the_topic_post_poster_name( $deprecated = true ) { 882 if ( !$deprecated ) 883 return bp_get_the_topic_post_poster_name(); 884 else 885 echo bp_get_the_topic_post_poster_name(); 878 function bp_the_topic_post_poster_name() { 879 echo bp_get_the_topic_post_poster_name(); 886 880 } 887 881 function bp_get_the_topic_post_poster_name() { 888 882 global $topic_template; 889 883 890 if ( !$ name = bp_core_get_userlink( $topic_template->post->poster_id) )884 if ( !$link = bp_core_get_user_domain( $topic_template->post->poster_id, $topic_template->post->poster_nicename, $topic_template->post->poster_login ) ) 891 885 return __( 'Deleted User', 'buddypress' ); 892 886 893 return apply_filters( 'bp_get_the_topic_post_poster_name', bp_core_get_userlink( $topic_template->post->poster_id ) ); 894 } 895 896 function bp_the_topic_post_time_since( $deprecated = true ) { 897 if ( !$deprecated ) 898 return bp_get_the_topic_post_time_since(); 899 else 900 echo bp_get_the_topic_post_time_since(); 887 return apply_filters( 'bp_get_the_topic_post_poster_name', '<a href="' . $link . '" title="' . $topic_template->post->poster_name . '">' . $topic_template->post->poster_name . '</a>' ); 888 } 889 890 function bp_the_topic_post_poster_link() { 891 echo bp_get_the_topic_post_poster_link(); 892 } 893 function bp_get_the_topic_post_poster_link() { 894 global $topic_template; 895 896 return apply_filters( 'bp_get_the_topic_post_poster_name', bp_core_get_user_domain( $topic_template->post->poster_id, $topic_template->post->poster_nicename, $topic_template->post->poster_login ) ); 897 } 898 899 function bp_the_topic_post_time_since() { 900 echo bp_get_the_topic_post_time_since(); 901 901 } 902 902 function bp_get_the_topic_post_time_since() {
Note: See TracChangeset
for help on using the changeset viewer.