Changeset 4126
- Timestamp:
- 09/24/2016 06:16:41 AM (8 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/bbpress/content-single-topic-lead.php
r4124 r4126 28 28 <p class="bbp-topic-post-date"><a href="<?php bbp_topic_permalink(); ?>" title="#<?php bbp_topic_id(); ?>" class="bbp-topic-permalink"><?php bbp_topic_post_date( bbp_get_topic_id(), true ); ?></a></p> 29 29 30 <?php if ( current_user_can( 'moderate', bbp_ topic_id() ) ) : ?>30 <?php if ( current_user_can( 'moderate', bbp_get_topic_id() ) ) : ?> 31 31 32 32 <?php do_action( 'bbp_theme_before_topic_author_admin_details' ); ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/functions.php
r4100 r4126 181 181 /* translators: registration date format, see https://secure.php.net/date */ 182 182 return mysql2date( __( 'F jS, Y', 'wporg-forums' ), $user->user_registered ); 183 } 184 185 /** 186 * Check if the current page is a single review. 187 */ 188 function wporg_support_is_single_review() { 189 if ( ! class_exists( 'WordPressdotorg\Forums\Plugin' ) || ! bbp_is_single_topic() ) { 190 return false; 191 } 192 193 return ( WordPressdotorg\Forums\Plugin::REVIEWS_FORUM_ID == bbp_get_topic_forum_id() ); 183 194 } 184 195 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/sidebar.php
r4099 r4126 39 39 40 40 <div> 41 <h3><?php _e( 'Topic Info', 'wporg-forums' ); ?></h3> 41 <?php if ( wporg_support_is_single_review() ) : ?> 42 <h3><?php _e( 'Review Info', 'wporg-forums' ); ?></h3> 43 <?php else : ?> 44 <h3><?php _e( 'Topic Info', 'wporg-forums' ); ?></h3> 45 <?php endif; ?> 46 42 47 <ul class="topic-info"> 43 48 <?php bb_base_single_topic_description(); ?>
Note: See TracChangeset
for help on using the changeset viewer.