Changeset 4722 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php
- Timestamp:
- 01/18/2017 07:25:51 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php
r4720 r4722 445 445 ?></li> 446 446 <?php endif; ?> 447 <?php if ( ! empty( $wp_version ) ) : ?> 448 <li class="wp-version"><?php echo esc_html( $wp_version ); ?></li> 449 <?php endif; ?> 450 <?php if ( function_exists( 'WordPressdotorg\Forums\Topic_Resolution\get_topic_resolution_form' ) ) : ?> 451 <?php if ( WordPressdotorg\Forums\Topic_Resolution\Plugin::get_instance()->is_enabled_on_forum() ) : ?> 452 <li class="topic-resolved"><?php WordPressdotorg\Forums\Topic_Resolution\get_topic_resolution_form( $topic_id ); ?></li> 453 <?php endif; ?> 454 <?php endif; ?> 455 <?php if ( bbp_current_user_can_access_create_reply_form() /*bbp_is_topic_open( $_topic_id )*/ ) : ?> 456 <li class="create-reply"><a href="#new-post"><?php _e( 'Reply to Topic', 'wporg-forums' ); ?></a></li> 457 <?php endif; ?> 447 458 <?php if ( is_user_logged_in() ) : ?> 448 459 <?php $_topic_id = bbp_is_reply_edit() ? bbp_get_reply_topic_id() : $topic_id; ?> 449 460 <li class="topic-subscribe"><?php bbp_topic_subscription_link( array( 'before' => '', 'topic_id' => $_topic_id ) ); ?></li> 450 461 <li class="topic-favorite"><?php bbp_topic_favorite_link( array( 'topic_id' => $_topic_id ) ); ?></li> 451 <?php endif; ?>452 <?php if ( ! empty( $wp_version ) ) : ?>453 <li class="wp-version"><?php echo esc_html( $wp_version ); ?></li>454 <?php endif; ?>455 <?php if ( function_exists( 'WordPressdotorg\Forums\Topic_Resolution\get_topic_resolution_form' ) ) : ?>456 <?php if ( WordPressdotorg\Forums\Topic_Resolution\Plugin::get_instance()->is_enabled_on_forum() ) : ?>457 <li class="topic-resolved"><?php WordPressdotorg\Forums\Topic_Resolution\get_topic_resolution_form( $topic_id ); ?></li>458 <?php endif; ?>459 <?php endif; ?>460 <?php if ( bbp_current_user_can_access_create_reply_form() /*bbp_is_topic_open( $_topic_id )*/ ) : ?>461 <li class="create-reply"><a href="#new-post"><?php _e( 'Reply to Topic', 'wporg-forums' ); ?></a></li>462 462 <?php endif; ?> 463 463 … … 524 524 printf( __( 'Last activity: %s', 'wporg-forums' ), $time_since ); 525 525 ?></li> 526 <?php endif; ?>527 <?php if ( is_user_logged_in() ) : ?>528 <li class="forum-subscribe"><?php bbp_forum_subscription_link( array( 'forum_id' => $forum_id ) ); ?></li>529 526 <?php endif; 530 527 }
Note: See TracChangeset
for help on using the changeset viewer.