Changeset 607
- Timestamp:
- 12/04/2008 08:32:44 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-templatetags.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-templatetags.php
r597 r607 199 199 } 200 200 201 function bp_post_author_avatar() { 202 global $post; 203 204 var_dump($post); 205 206 if ( function_exists('bp_core_get_avatar') ) { 207 echo bp_core_get_avatar( $post->post_author, 1 ); 208 } else if ( function_exists('get_avatar') ) { 209 get_avatar(); 210 } 211 } 212 201 213 function bp_loggedinuser_avatar( $width = false, $height = false ) { 202 214 global $bp; … … 386 398 } 387 399 400 function bp_is_page($page) { 401 global $bp; 402 403 if ( $bp['current_userid'] ) 404 return false; 405 406 if ( $page == $bp['current_component'] || $page == 'home' && $bp['current_component'] == $bp['default_component'] ) 407 return true; 408 409 return false; 410 } 411 388 412 /* Template functions for fetching globals, without querying the DB again 389 413 also means we dont have to use the $bp variable in the template (looks messy) */
Note: See TracChangeset
for help on using the changeset viewer.