Changeset 4722
- Timestamp:
- 01/18/2017 07:25:51 PM (8 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support
- Files:
-
- 2 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 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/sidebar.php
r4720 r4722 28 28 <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/?type=topic"><?php _e( 'Recent Topics', 'wporg-forums' ); ?></a></li> 29 29 <?php if ( bbp_current_user_can_access_create_topic_form() ) : ?> 30 <li class="create-topic"><a href="#new-post"><?php _e( 'Create Topic', 'wporg-forums' ); ?></a></li> 30 <li class="create-topic"><a href="#new-post"><?php _e( 'Create Topic', 'wporg-forums' ); ?></a></li> 31 <?php endif; ?> 32 <?php if ( is_user_logged_in() ) : ?> 33 <li class="forum-subscribe"><?php bbp_forum_subscription_link( array( 'forum_id' => $forum_id ) ); ?></li> 31 34 <?php endif; ?> 32 35 </ul>
Note: See TracChangeset
for help on using the changeset viewer.