Changeset 5059 for sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-theme-directory-compat.php
- Timestamp:
- 03/03/2017 06:37:50 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-theme-directory-compat.php
r5058 r5059 15 15 16 16 function compat_views() { 17 return array( self::COMPAT, 'reviews', 'active' );17 return array( self::COMPAT, 'reviews', 'active', 'unresolved' ); 18 18 } 19 19 … … 31 31 /* translators: %s: theme title */ 32 32 return sprintf( _x( '[%s] Recent Activity', 'theme', 'wporg-forums' ), $this->title() ); 33 } 34 35 function unresolved_title() { 36 /* translators: %s: theme title */ 37 return sprintf( _x( '[%s] Unresolved Topics', 'theme', 'wporg-forums' ), $this->title() ); 33 38 } 34 39 … … 84 89 85 90 public function do_topic_sidebar() { 86 $theme = sprintf( '<a href="//wordpress.org/themes/%s/">%s</a>', esc_attr( $this->slug() ), esc_html( $this->theme->post_title ) ); 87 $support = sprintf( '<a href="//wordpress.org/support/theme/%s/">%s</a>', esc_attr( $this->slug() ), __( 'Support Threads', 'wporg-forums' ) ); 88 $active = sprintf( '<a href="//wordpress.org/support/theme/%s/active/">%s</a>', esc_attr( $this->slug() ), __( 'Active Topics', 'wporg-forums' ) ); 89 $reviews = sprintf( '<a href="//wordpress.org/support/theme/%s/reviews/">%s</a>', esc_attr( $this->slug() ), __( 'Reviews', 'wporg-forums' ) ); 90 $create = ''; 91 $theme = sprintf( '<a href="//wordpress.org/themes/%s/">%s</a>', esc_attr( $this->slug() ), esc_html( $this->theme->post_title ) ); 92 $support = sprintf( '<a href="//wordpress.org/support/theme/%s/">%s</a>', esc_attr( $this->slug() ), __( 'Support Threads', 'wporg-forums' ) ); 93 $active = sprintf( '<a href="//wordpress.org/support/theme/%s/active/">%s</a>', esc_attr( $this->slug() ), __( 'Active Topics', 'wporg-forums' ) ); 94 $unresolved = sprintf( '<a href="//wordpress.org/support/theme/%s/unresolved/">%s</a>', esc_attr( $this->slug() ), __( 'Unresolved Topics', 'wporg-forums' ) ); 95 $reviews = sprintf( '<a href="//wordpress.org/support/theme/%s/reviews/">%s</a>', esc_attr( $this->slug() ), __( 'Reviews', 'wporg-forums' ) ); 96 $create = ''; 91 97 92 98 $create_label = ''; … … 108 114 <li><?php echo $support; ?></li> 109 115 <li><?php echo $active; ?></li> 116 <li><?php echo $unresolved; ?></li> 110 117 <li><?php echo $reviews; ?></li> 111 118 <?php if ( $create ) : ?>
Note:
See TracChangeset
for help on using the changeset viewer.