Changeset 2720
- Timestamp:
- 12/13/2010 03:31:07 AM (12 years ago)
- Location:
- branches/plugin
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-reply-template.php
r2702 r2720 21 21 $default = array( 22 22 // Narrow query down to bbPress topics 23 'post_type' 23 'post_type' => $bbp->reply_id, 24 24 25 25 // Forum ID 26 'post_parent' 26 'post_parent' => isset( $_REQUEST['topic_id'] ) ? $_REQUEST['topic_id'] : bbp_get_topic_id(), 27 27 28 28 //'author', 'date', 'title', 'modified', 'parent', rand', 29 'orderby' => isset( $_REQUEST['orderby'] ) ? $_REQUEST['orderby']: 'date',29 'orderby' => isset( $_REQUEST['orderby'] ) ? $_REQUEST['orderby'] : 'date', 30 30 31 31 // 'ASC', 'DESC' 32 'order' => isset( $_REQUEST['order'] ) ? $_REQUEST['order']: 'ASC',32 'order' => isset( $_REQUEST['order'] ) ? $_REQUEST['order'] : 'ASC', 33 33 34 34 // @todo replace 15 with setting 35 'posts_per_page' => isset( $_REQUEST['posts'] ) ? $_REQUEST['posts'] : 15, 35 'posts_per_page' => isset( $_REQUEST['posts'] ) ? $_REQUEST['posts'] : 15, 36 37 // Reply Search 38 's' => !empty( $_REQUEST['rs'] ) ? $_REQUEST['rs'] : '', 36 39 37 40 // Page Number 38 'paged' => bbp_get_paged(), 39 40 // Reply Search 41 's' => empty( $_REQUEST['rs'] ) ? '' : $_REQUEST['rs'], 41 'paged' => bbp_get_paged(), 42 42 ); 43 43 … … 51 51 // Add pagination values to query object 52 52 $bbp->reply_query->posts_per_page = $posts_per_page; 53 $bbp->reply_query->paged = $paged;53 $bbp->reply_query->paged = $paged; 54 54 55 55 // Only add pagination if query returned results 56 if ( (int) $bbp->reply_query->found_posts && (int)$bbp->reply_query->posts_per_page ) {56 if ( (int) $bbp->reply_query->found_posts && (int) $bbp->reply_query->posts_per_page ) { 57 57 58 58 // If pretty permalinks are enabled, make our pagination pretty … … 66 66 'base' => $base, 67 67 'format' => '', 68 'total' => ceil( (int) $bbp->reply_query->found_posts / (int)$posts_per_page ),69 'current' => (int) $bbp->reply_query->paged,68 'total' => ceil( (int) $bbp->reply_query->found_posts / (int) $posts_per_page ), 69 'current' => (int) $bbp->reply_query->paged, 70 70 'prev_text' => '←', 71 71 'next_text' => '→', … … 396 396 $author = get_the_author(); 397 397 else 398 $author = get_post_meta( $ topic_id, '_bbp_anonymous_name', true );398 $author = get_post_meta( $reply_id, '_bbp_anonymous_name', true ); 399 399 400 400 return apply_filters( 'bbp_get_reply_author', $author ); … … 474 474 $author_name = get_post_meta( $reply_id, '_bbp_anonymous_name', true ); 475 475 476 return apply_filters( 'bbp_get_reply_author_ id', esc_attr( $author_name ) );476 return apply_filters( 'bbp_get_reply_author_display_name', esc_attr( $author_name ) ); 477 477 } 478 478 … … 487 487 * @param int $reply_id optional 488 488 * 489 * @uses bbp_get_reply_author ()489 * @uses bbp_get_reply_author_avatar() 490 490 */ 491 491 function bbp_reply_author_avatar ( $reply_id = 0, $size = 40 ) { … … 504 504 * @param int $reply_id optional 505 505 * 506 * @return string A uthor ofreply506 * @return string Avatar of author of the reply 507 507 */ 508 508 function bbp_get_reply_author_avatar ( $reply_id = 0, $size = 40 ) { 509 509 $reply_id = bbp_get_reply_id( $reply_id ); 510 510 511 return apply_filters( 'bbp_get_reply_author_avatar', get_avatar( get_post_field( 'post_author', $reply_id ), $size ) );512 }513 514 /**515 * bbp_reply_author_url ()516 *517 * Output the author url of the reply in the loop518 *519 * @package bbPress520 * @subpackage Template Tags521 * @since bbPress (r2667)522 * @param int $reply_id optional523 *524 * @uses bbp_get_reply_author_url()525 */526 function bbp_reply_author_url ( $reply_id = 0 ) {527 echo bbp_get_reply_author_url( $reply_id );528 }529 /**530 * bbp_get_reply_author_url ()531 *532 * Return the author url of the reply in the loop533 *534 * @package bbPress535 * @subpackage Template Tags536 * @since bbPress (r2667)537 *538 * @uses apply_filters539 * @param int $reply_id optional540 *541 * @return string Author URL of reply542 */543 function bbp_get_reply_author_url ( $reply_id = 0 ) {544 $reply_id = bbp_get_reply_id( $reply_id );545 546 511 // Check for anonymous user 547 512 if ( $author_id = get_post_field( 'post_author', $reply_id ) ) 548 $author_url = bbp_get_user_profile_url( $author_id ); 549 else 550 $author_url = get_post_meta( $reply_id, '_bbp_anonymous_website', true ); 551 552 return apply_filters( 'bbp_get_reply_author_url', $author_url ); 553 } 513 $author_avatar = get_avatar( $author_id ); 514 else 515 $author_avatar = get_avatar( get_post_meta( $reply_id, '_bbp_anonymous_email', true ) ); 516 517 return apply_filters( 'bbp_get_reply_author_avatar', $author_avatar, $reply_id, $size ); 518 } 519 520 /** 521 * bbp_reply_author_link () 522 * 523 * Output the author link of the reply in the loop 524 * 525 * @package bbPress 526 * @subpackage Template Tags 527 * @since bbPress (r2717) 528 * 529 * @param mixed|int $args If it is an integer, it is used as reply_id. Optional. 530 * @uses bbp_get_reply_author_link() 531 */ 532 function bbp_reply_author_link ( $args = '' ) { 533 echo bbp_get_reply_author_link( $args ); 534 } 535 /** 536 * bbp_get_reply_author_link () 537 * 538 * Return the author link of the reply in the loop 539 * 540 * @package bbPress 541 * @subpackage Template Tags 542 * @since bbPress (r2717) 543 * 544 * @uses bbp_get_reply_author_url() 545 * @uses bbp_get_reply_author() 546 * 547 * @param mixed|int $args If it is an integer, it is used as reply_id. Optional. 548 * @return string Author link of reply 549 */ 550 function bbp_get_reply_author_link ( $args = '' ) { 551 // Used as reply_id 552 if ( is_int( $args ) ) { 553 $reply_id = bbp_get_reply_id( $args ); 554 } else { 555 $defaults = array ( 556 'reply_id' => 0, 557 'link_title' => '', 558 'link_text' => '' 559 ); 560 561 $r = wp_parse_args( $args, $defaults ); 562 extract( $r ); 563 } 564 565 if ( empty( $reply_id ) ) 566 $reply_id = bbp_get_reply_id( $reply_id ); 567 568 if ( empty( $link_title ) && ( bbp_is_topic() || bbp_is_reply() ) ) 569 $link_title = sprintf( get_the_author_meta( 'ID' ) ? __( 'View %s\'s profile', 'bbpress' ) : __( 'Visit %s\'s website', 'bbpress' ), bbp_get_reply_author( $reply_id ) ); 570 571 if ( empty( $link_text ) && ( bbp_is_topic() || bbp_is_reply() ) ) 572 $link_text = bbp_get_reply_author_avatar( $reply_id, 80 ); 573 else 574 $link_text = bbp_get_reply_author( $reply_id ); 575 576 $link_title = !empty( $link_title ) ? ' title="' . $link_title . '"' : ''; 577 578 // Check for anonymous user 579 if ( $author_url = bbp_get_reply_author_url( $reply_id ) ) 580 $author_link = sprintf( '<a href="%1$s"%2$s>%3$s</a>', $author_url, $link_title, $link_text ); 581 else 582 $author_link = $link_text; // Still return $link_text 583 584 return apply_filters( 'bbp_get_reply_author_link', $author_link, $args ); 585 } 586 587 /** 588 * bbp_reply_author_url () 589 * 590 * Output the author url of the reply in the loop 591 * 592 * @package bbPress 593 * @subpackage Template Tags 594 * @since bbPress (r2667) 595 * @param int $reply_id optional 596 * 597 * @uses bbp_get_reply_author_url() 598 */ 599 function bbp_reply_author_url ( $reply_id = 0 ) { 600 echo bbp_get_reply_author_url( $reply_id ); 601 } 602 /** 603 * bbp_get_reply_author_url () 604 * 605 * Return the author url of the reply in the loop 606 * 607 * @package bbPress 608 * @subpackage Template Tags 609 * @since bbPress (r22667) 610 * 611 * @uses bbp_get_user_profile_url() 612 * @uses get_post_meta() 613 * 614 * @param int $reply_id optional 615 * @return string Author URL of reply 616 */ 617 function bbp_get_reply_author_url ( $reply_id = 0 ) { 618 $reply_id = bbp_get_reply_id( $reply_id ); 619 620 // Check for anonymous user 621 if ( $author_id = get_post_field( 'post_author', $reply_id ) ) 622 $author_url = bbp_get_user_profile_url( $author_id ); 623 else 624 if ( !$author_url = get_post_meta( $reply_id, '_bbp_anonymous_website', true ) ) 625 $author_url = ''; 626 627 return apply_filters( 'bbp_get_reply_author_url', $author_url, $reply_id ); 628 } 554 629 555 630 /** … … 730 805 global $bbp; 731 806 732 $alternate = $bbp->reply_query->current_post % 2 ? 'even' : 'odd'; 807 $count = isset( $bbp->reply_query->current_post ) ? $bbp->reply_query->current_post : 1; 808 $alternate = (int) $count % 2 ? 'even' : 'odd'; 733 809 $status = 'status-' . bbp_get_reply_status(); 734 810 $post = post_class( array( $alternate, $status ) ); -
branches/plugin/bbp-includes/bbp-topic-template.php
r2715 r2720 21 21 $default = array ( 22 22 // Narrow query down to bbPress topics 23 'post_type' 23 'post_type' => $bbp->topic_id, 24 24 25 25 // Forum ID 26 'post_parent' 26 'post_parent' => isset( $_REQUEST['forum_id'] ) ? $_REQUEST['forum_id'] : bbp_get_forum_id(), 27 27 28 28 // Make sure topic has some last activity time 29 'meta_key' 29 'meta_key' => '_bbp_topic_last_active', 30 30 31 31 //'author', 'date', 'title', 'modified', 'parent', rand', 32 'orderby' => isset( $_REQUEST['orderby'] ) ? $_REQUEST['orderby']: 'meta_value',32 'orderby' => isset( $_REQUEST['orderby'] ) ? $_REQUEST['orderby'] : 'meta_value', 33 33 34 34 // 'ASC', 'DESC' 35 'order' => isset( $_REQUEST['order'] ) ? $_REQUEST['order']: 'DESC',35 'order' => isset( $_REQUEST['order'] ) ? $_REQUEST['order'] : 'DESC', 36 36 37 37 // @todo replace 15 with setting 38 'posts_per_page' => isset( $_REQUEST['posts'] ) ? $_REQUEST['posts'] : 15, 38 'posts_per_page' => isset( $_REQUEST['posts'] ) ? $_REQUEST['posts'] : 15, 39 40 // Topic Search 41 's' => !empty( $_REQUEST['ts'] ) ? $_REQUEST['ts'] : '', 39 42 40 43 // Page Number 41 'paged' => bbp_get_paged(), 42 43 // Topic Search 44 's' => empty( $_REQUEST['ts'] ) ? '' : $_REQUEST['ts'], 44 'paged' => bbp_get_paged(), 45 45 ); 46 46 … … 428 428 * @param int $topic_id optional 429 429 * 430 * @uses bbp_get_topic_author ()430 * @uses bbp_get_topic_author_avatar() 431 431 */ 432 432 function bbp_topic_author_avatar ( $topic_id = 0, $size = 40 ) { … … 442 442 * @since bbPress (r2590) 443 443 * 444 * @uses apply_filters 444 * @uses get_avatar() 445 * @uses get_post_meta() 446 * 445 447 * @param int $topic_id optional 446 * 447 * @return string Author of topic 448 * @return string Avatar of the author of the topic 448 449 */ 449 450 function bbp_get_topic_author_avatar ( $topic_id = 0, $size = 40 ) { 450 $topic_id = bbp_get_topic_id( $topic_id );451 452 return apply_filters( 'bbp_get_topic_author_avatar', get_avatar( get_post_field( 'post_author', $topic_id ), $size ) );453 }454 455 /**456 * bbp_topic_author_avatar ()457 *458 * Output the author avatar of the topic in the loop459 *460 * @package bbPress461 * @subpackage Template Tags462 * @since bbPress (r2590)463 * @param int $topic_id optional464 *465 * @uses bbp_get_topic_author()466 */467 function bbp_topic_author_url ( $topic_id = 0 ) {468 echo bbp_get_topic_author_url( $topic_id );469 }470 /**471 * bbp_get_topic_author_url ()472 *473 * Return the author url of the topic in the loop474 *475 * @package bbPress476 * @subpackage Template Tags477 * @since bbPress (r2590)478 *479 * @uses apply_filters480 * @param int $topic_id optional481 *482 * @return string Author URL of topic483 */484 function bbp_get_topic_author_url ( $topic_id = 0 ) {485 451 $topic_id = bbp_get_topic_id( $topic_id ); 486 452 487 453 // Check for anonymous user 488 454 if ( $author_id = get_post_field( 'post_author', $topic_id ) ) 489 $author_ url = bbp_get_user_profile_url( $author_id );455 $author_avatar = get_avatar( $author_id ); 490 456 else 491 $author_url = get_post_meta( $topic_id, '_bbp_anonymous_website', true ); 492 493 return apply_filters( 'bbp_get_topic_author_url', $author_url ); 494 } 457 $author_avatar = get_avatar( get_post_meta( $topic_id, '_bbp_anonymous_email', true ) ); 458 459 return apply_filters( 'bbp_get_topic_author_avatar', $author_avatar, $topic_id, $size ); 460 } 461 462 /** 463 * bbp_topic_author_link () 464 * 465 * Output the author link of the topic in the loop 466 * 467 * @package bbPress 468 * @subpackage Template Tags 469 * @since bbPress (r2717) 470 * 471 * @param mixed|int $args If it is an integer, it is used as topic_id. Optional. 472 * @uses bbp_get_topic_author_link() 473 */ 474 function bbp_topic_author_link ( $args = '' ) { 475 echo bbp_get_topic_author_link( $args ); 476 } 477 /** 478 * bbp_get_topic_author_link () 479 * 480 * Return the author link of the topic in the loop 481 * 482 * @package bbPress 483 * @subpackage Template Tags 484 * @since bbPress (r2717) 485 * 486 * @uses bbp_get_topic_author_url() 487 * @uses bbp_get_topic_author() 488 * 489 * @param mixed|int $args If it is an integer, it is used as topic_id. Optional. 490 * @return string Author link of topic 491 */ 492 function bbp_get_topic_author_link ( $args = '' ) { 493 // Used as topic_id 494 if ( is_int( $args ) ) { 495 $topic_id = bbp_get_topic_id( $args ); 496 } else { 497 $defaults = array ( 498 'topic_id' => 0, 499 'link_title' => '', 500 'link_text' => '' 501 ); 502 503 $r = wp_parse_args( $args, $defaults ); 504 extract( $r ); 505 } 506 507 if ( empty( $topic_id ) ) 508 $topic_id = bbp_get_topic_id( $topic_id ); 509 510 if ( empty( $link_title ) && ( bbp_is_topic() || bbp_is_topic() ) ) 511 $link_title = sprintf( get_the_author_meta( 'ID' ) ? __( 'View %s\'s profile', 'bbpress' ) : __( 'Visit %s\'s website', 'bbpress' ), bbp_get_topic_author( $topic_id ) ); 512 513 if ( empty( $link_text ) && ( bbp_is_topic() || bbp_is_topic() ) ) 514 $link_text = bbp_get_topic_author_avatar( $topic_id, 80 ); 515 else 516 $link_text = bbp_get_topic_author( $topic_id ); 517 518 $link_title = !empty( $link_title ) ? ' title="' . $link_title . '"' : ''; 519 520 // Check for anonymous user 521 if ( $author_url = bbp_get_topic_author_url( $topic_id ) ) 522 $author_link = sprintf( '<a href="%1$s"%2$s>%3$s</a>', $author_url, $link_title, $link_text ); 523 else 524 $author_link = $link_text; 525 526 return apply_filters( 'bbp_get_topic_author_link', $author_link, $topic_id ); 527 } 528 529 /** 530 * bbp_topic_author_url () 531 * 532 * Output the author url of the topic in the loop 533 * 534 * @package bbPress 535 * @subpackage Template Tags 536 * @since bbPress (r2590) 537 * @param int $topic_id optional 538 * 539 * @uses bbp_get_topic_author_url() 540 */ 541 function bbp_topic_author_url ( $topic_id = 0 ) { 542 echo bbp_get_topic_author_url( $topic_id ); 543 } 544 /** 545 * bbp_get_topic_author_url () 546 * 547 * Return the author url of the topic in the loop 548 * 549 * @package bbPress 550 * @subpackage Template Tags 551 * @since bbPress (r2590) 552 * 553 * @uses bbp_get_user_profile_url() 554 * @uses get_post_meta() 555 * 556 * @param int $topic_id optional 557 * @return string Author URL of topic 558 */ 559 function bbp_get_topic_author_url ( $topic_id = 0 ) { 560 $topic_id = bbp_get_topic_id( $topic_id ); 561 562 // Check for anonymous user 563 if ( $author_id = get_post_field( 'post_author', $topic_id ) ) 564 $author_url = bbp_get_user_profile_url( $author_id ); 565 else 566 if ( !$author_url = get_post_meta( $topic_id, '_bbp_anonymous_website', true ) ) 567 $author_url = ''; 568 569 return apply_filters( 'bbp_get_topic_author_url', $author_url, $topic_id ); 570 } 495 571 496 572 /** … … 859 935 860 936 // Look for existing count, and populate if does not exist 861 if ( !$voices = get_post_meta( $topic_id, '_bbp_topic_voice_count', true ) )937 if ( !$voices = get_post_meta( $topic_id, '_bbp_topic_voice_count', true ) ) 862 938 $voices = bbp_update_topic_voice_count( $topic_id ); 863 939 -
branches/plugin/bbp-themes/bbp-twentyten/loop-bbp_replies.php
r2714 r2720 41 41 <a href="<?php bbp_reply_url(); ?>" title="<?php bbp_reply_title(); ?>">#</a> 42 42 43 <?php 44 // @todo - abstract 45 printf( __( 'Posted on %2$s at %3$s', 'bbpress' ), 46 'meta-prep meta-prep-author', 47 get_the_date(), 48 esc_attr( get_the_time() ) 49 ); 50 ?> 43 <?php printf( __( 'Posted on %1$s at %2$s', 'bbpress' ), get_the_date(), esc_attr( get_the_time() ) ); ?> 51 44 52 45 <span><?php bbp_reply_admin_links(); ?></span> … … 56 49 <tr id="reply-<?php bbp_reply_id(); ?>" <?php bbp_reply_class(); ?>> 57 50 58 <td class="bbp-reply-author"> 59 <?php 60 // @todo - abstract 61 printf ( 62 '<a href="%1$s" title="%2$s">%3$s</a>', 63 bbp_get_reply_author_url(), 64 sprintf( get_the_author_meta( 'ID' ) ? __( 'View %s\'s profile', 'bbpress' ) : __( 'Visit %s\'s Website' ), bbp_get_reply_author_display_name() ), 65 bbp_get_reply_author_avatar( 0, 80 ) 66 ); 67 ?> 68 </td> 51 <td class="bbp-reply-author"><?php bbp_reply_author_link(); ?></td> 69 52 70 53 <td class="bbp-reply-content"> 71 54 72 <?php the_content(); // @todo - bbp_reply_content();?>55 <?php the_content(); ?> 73 56 74 57 </td> -
branches/plugin/bbp-themes/bbp-twentyten/loop-bbp_topics.php
r2695 r2720 37 37 <p class="bbp-topic-meta"> 38 38 39 <?php printf( 'Started by: <a href="%1$s">%2$s</a>', bbp_get_topic_author_url(), bbp_get_topic_author() ); ?>39 <?php printf( __( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link() ); ?> 40 40 41 <?php if ( !bbp_is_forum() ) printf( 'in: <a href="%1$s">%2$s</a>', bbp_get_forum_permalink( bbp_get_topic_forum_id() ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?>41 <?php if ( !bbp_is_forum() ) printf( __( 'in: <a href="%1$s">%2$s</a>', 'bbpress' ), bbp_get_forum_permalink( bbp_get_topic_forum_id() ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?> 42 42 43 43 </p> -
branches/plugin/bbp-themes/bbp-twentyten/single-bbp_reply.php
r2714 r2720 12 12 <div id="container"> 13 13 <div id="content" role="main"> 14 <div id="bbp-reply-wrapper-<?php bbp_reply_id(); ?>" class="bbp-reply-wrapper">15 <div class="entry-content">16 14 17 <?php get_template_part( 'loop', 'bbp_replies'); ?>15 <?php while ( have_posts() ) : the_post(); ?> 18 16 19 </div><!-- .entry-content --> 20 </div><!-- #bbp-reply-wrapper-<?php bbp_reply_id(); ?> --> 17 <div id="bbp-reply-wrapper-<?php bbp_reply_id(); ?>" class="bbp-reply-wrapper"> 18 <h1 class="entry-title"><?php bbp_title_breadcrumb(); ?></h1> 19 <div class="entry-content"> 20 21 <table class="bbp-replies" id="topic-<?php bbp_topic_id(); ?>-replies"> 22 <thead> 23 <tr> 24 <th class="bbp-reply-author"><?php _e( 'Author', 'bbpress' ); ?></th> 25 <th class="bbp-reply-content"><?php _e( 'Replies', 'bbpress' ); ?></th> 26 </tr> 27 </thead> 28 29 <tfoot> 30 <tr> 31 <td colspan="2"><?php bbp_topic_admin_links(); ?></td> 32 </tr> 33 </tfoot> 34 35 <tbody> 36 <tr class="bbp-reply-header"> 37 <td class="bbp-reply-author"> 38 39 <?php bbp_reply_author_display_name(); ?> 40 41 </td> 42 <td class="bbp-reply-content"> 43 <a href="<?php bbp_reply_url(); ?>" title="<?php bbp_reply_title(); ?>">#</a> 44 45 <?php printf( __( 'Posted on %1$s at %2$s', 'bbpress' ), get_the_date(), esc_attr( get_the_time() ) ); ?> 46 47 <span><?php bbp_reply_admin_links(); ?></span> 48 </td> 49 </tr> 50 51 <tr id="reply-<?php bbp_reply_id(); ?>" <?php bbp_reply_class(); ?>> 52 53 <td class="bbp-reply-author"><?php bbp_reply_author_link(); ?></td> 54 55 <td class="bbp-reply-content"> 56 57 <?php the_content(); ?> 58 59 </td> 60 61 </tr><!-- #topic-<?php bbp_topic_id(); ?>-replies --> 62 </tbody> 63 </table> 64 65 </div><!-- .entry-content --> 66 </div><!-- #bbp-reply-wrapper-<?php bbp_reply_id(); ?> --> 67 68 <?php endwhile; ?> 69 21 70 </div><!-- #content --> 22 71 </div><!-- #container --> -
branches/plugin/bbp-themes/bbp-twentyten/single-bbp_topic.php
r2679 r2720 28 28 <th class="bbp-topic-author"><?php _e( 'Creator', 'bbpress' ); ?></th> 29 29 <th class="bbp-topic-content"> 30 30 31 <?php _e( 'Topic', 'bbpress' ); ?> 32 31 33 <?php bbp_user_subscribe_link(); ?> 34 32 35 <?php bbp_user_favorites_link(); ?> 36 33 37 </th> 34 38 </tr> … … 44 48 45 49 <tr class="bbp-topic-header"> 46 <td class="bbp-topic-author"> 50 <td class="bbp-topic-author"><?php bbp_topic_author_display_name(); ?></td> 47 51 48 <?php bbp_topic_author_display_name(); ?>49 50 </td>51 52 <td class="bbp-topic-content"> 52 53 <a href="#bbp-topic-<?php bbp_topic_id(); ?>" title="<?php bbp_topic_title(); ?>">#</a> 53 54 54 <?php 55 // @todo - abstract 56 printf( __( 'Posted on %2$s at %3$s', 'bbpress' ), 57 'meta-prep meta-prep-author', 58 get_the_date(), 59 esc_attr( get_the_time() ) 60 ); 61 ?> 55 <?php printf( __( 'Posted on %1$s at %2$s', 'bbpress' ), get_the_date(), esc_attr( get_the_time() ) ); ?> 62 56 63 57 </td> … … 66 60 <tr id="reply-<?php bbp_topic_id(); ?>" <?php post_class( 'bbp-forum-topic' ); ?>> 67 61 68 <td class="bbp-topic-author"> 69 70 <?php 71 // @todo - abstract 72 printf ( 73 '<a href="%1$s" title="%2$s">%3$s</a>', 74 bbp_get_topic_author_url(), 75 sprintf( get_the_author_meta( 'ID' ) ? __( 'View %s\'s profile', 'bbpress' ) : __( 'Visit %s\'s Website' ), bbp_get_topic_author_display_name() ), 76 bbp_get_topic_author_avatar( 0, 100 ) 77 ); 78 ?> 79 80 </td> 62 <td class="bbp-topic-author"><?php bbp_topic_author_link(); ?></td> 81 63 82 64 <td class="bbp-topic-content">
Note: See TracChangeset
for help on using the changeset viewer.