Changeset 4127 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/functions.php
- Timestamp:
- 09/24/2016 06:51:44 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/functions.php
r4126 r4127 324 324 ?> 325 325 326 <li class="topic-forum">In: <a href="<?php bbp_forum_permalink( bbp_get_topic_forum_id() ); ?>"><?php bbp_topic_forum_title(); ?></a></li> 327 <?php if ( !empty( $reply_count ) ) : ?><li class="reply-count"><?php echo $reply_count; ?></li><?php endif; ?> 328 <?php if ( !empty( $voice_count ) ) : ?><li class="voice-count"><?php echo $voice_count; ?></li><?php endif; ?> 326 <li class="topic-forum"><?php 327 /* translators: %s: forum title */ 328 printf( __( 'In: %s', 'wporg-forums' ), 329 sprintf( '<a href="%s">%s</a>', 330 esc_url( bbp_get_forum_permalink( bbp_get_topic_forum_id() ) ), 331 bbp_get_topic_forum_title() 332 ) 333 ); 334 ?></li> 335 <?php if ( !empty( $reply_count ) ) : ?> 336 <li class="reply-count"><?php echo $reply_count; ?></li> 337 <?php endif; ?> 338 <?php if ( !empty( $voice_count ) ) : ?> 339 <li class="voice-count"><?php echo $voice_count; ?></li> 340 <?php endif; ?> 329 341 <?php if ( !empty( $last_reply ) ) : ?> 330 <li class="topic-freshness-author"><?php printf( __( 'Last reply from: %s', 'wporg-forums' ), bbp_get_author_link( array( 'type' => 'name', 'post_id' => $last_reply, 'size' => '15' ) ) ); ?></li> 331 <?php endif; ?> 332 <?php if ( !empty( $time_since ) ) : ?><li class="topic-freshness-time"><?php printf( __( 'Last activity: %s', 'wporg-forums' ), $time_since ); ?></li><?php endif; ?> 342 <li class="topic-freshness-author"><?php 343 /* translators: %s: reply author link */ 344 printf( __( 'Last reply from: %s', 'wporg-forums' ), 345 bbp_get_author_link( array( 'type' => 'name', 'post_id' => $last_reply, 'size' => '15' ) ) 346 ); 347 ?></li> 348 <?php endif; ?> 349 <?php if ( !empty( $time_since ) ) : ?> 350 <li class="topic-freshness-time"><?php 351 /* translators: %s: date/time link to the latest post */ 352 printf( __( 'Last activity: %s', 'wporg-forums' ), $time_since ); 353 ?></li> 354 <?php endif; ?> 333 355 <?php if ( is_user_logged_in() ) : ?> 334 356 <?php $_topic_id = bbp_is_reply_edit() ? bbp_get_reply_topic_id() : $topic_id; ?> … … 377 399 ?> 378 400 379 <?php if ( bbp_get_forum_parent_id() ) : ?><li class="topic-parent">In: <a href="<?php bbp_forum_permalink( bbp_get_forum_parent_id() ); ?>"><?php bbp_forum_title( bbp_get_forum_parent_id() ); ?></a></li><?php endif; ?> 380 <?php if ( !empty( $topic_count ) ) : ?><li class="topic-count"><?php echo $topic_text; ?></li><?php endif; ?> 381 <?php if ( !empty( $reply_count ) ) : ?><li class="reply-count"><?php echo $reply_text; ?></li><?php endif; ?> 401 <?php if ( bbp_get_forum_parent_id() ) : ?> 402 <li class="topic-parent"><?php 403 /* translators: %s: forum title */ 404 printf( __( 'In: %s', 'wporg-forums' ), 405 sprintf( '<a href="%s">%s</a>', 406 esc_url( bbp_get_forum_permalink( bbp_get_forum_parent_id() ) ), 407 bbp_get_forum_title( bbp_get_forum_parent_id() ) 408 ) 409 ); 410 ?></li> 411 <?php endif; ?> 412 <?php if ( !empty( $topic_count ) ) : ?> 413 <li class="topic-count"><?php echo $topic_text; ?></li> 414 <?php endif; ?> 415 <?php if ( !empty( $reply_count ) ) : ?> 416 <li class="reply-count"><?php echo $reply_text; ?></li> 417 <?php endif; ?> 382 418 <?php if ( !empty( $last_active ) ) : ?> 383 <li class="forum-freshness-author"><?php printf( __( 'Last post by: %s', 'wporg-forums' ), bbp_get_author_link( array( 'type' => 'name', 'post_id' => $last_active ) ) ); ?></li> 384 <?php endif; ?> 385 <?php if ( !empty( $time_since ) ) : ?><li class="forum-freshness-time"><?php printf( __( 'Last activity: %s', 'wporg-forums' ), $time_since ); ?></li><?php endif; ?> 419 <li class="forum-freshness-author"><?php 420 /* translators: %s: post author link */ 421 printf( __( 'Last post by: %s', 'wporg-forums' ), 422 bbp_get_author_link( array( 'type' => 'name', 'post_id' => $last_active ) ) 423 ); 424 ?></li> 425 <?php endif; ?> 426 <?php if ( !empty( $time_since ) ) : ?> 427 <li class="forum-freshness-time"><?php 428 /* translators: %s: date/time link to the latest post */ 429 printf( __( 'Last activity: %s', 'wporg-forums' ), $time_since ); 430 ?></li> 431 <?php endif; ?> 386 432 <?php if ( is_user_logged_in() ) : ?> 387 433 <li class="forum-subscribe"><?php bbp_forum_subscription_link( array( 'forum_id' => $forum_id ) ); ?></li>
Note: See TracChangeset
for help on using the changeset viewer.