Changeset 2379 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/functions.php
- Timestamp:
- 01/27/2016 07:11:20 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/functions.php
r2376 r2379 142 142 143 143 <?php if ( is_search() ) : ?> 144 <?php printf( __( '» Search for: %s', 'wporg-showcase' ), get_search_query() ); ?> 144 <?php 145 /* translators: %s: search query */ 146 printf( __( '» Search for: %s', 'wporg-showcase' ), get_search_query() ); 147 ?> 145 148 <?php elseif ( strstr( $_SERVER['REQUEST_URI'], '/showcase/archives' ) ) : ?> 146 149 <?php _e( '» Archives', 'wporg-showcase' ); ?> … … 152 155 <?php endif; // is_category ?> 153 156 154 <?php printf( __( '» %s', 'wporg-showcase' ), wp_get_document_title() ); ?> 157 <?php 158 /* translators: %s: document title */ 159 printf( __( '» %s', 'wporg-showcase' ), wp_get_document_title() ); 160 ?> 155 161 <?php endif; // is_search ?> 156 162 … … 175 181 foreach ( $posttags as $tag ) { 176 182 if ( $tag->count > 1 && !is_tag($tag->slug) ) { 177 $tag_link = '<a href="' . get_term_link($tag, 'post_tag') . '" rel="tag">' . sprintf( _x( '%1$s (%2$s)', 'Tag name (tag count)', 'wporg-showcase' ), $tag->name, $tag->count ) . '</a>'; 183 $tag_link = sprintf( '<a href="%s" rel="tag">%s</a>', 184 get_term_link( $tag, 'post_tag' ), 185 /* translators: 1: tag name, 2: tag count */ 186 sprintf( __( '%1$s (%2$s)', 'wporg-showcase' ), $tag->name, $tag->count ) 187 ); 178 188 } else { 179 189 $tag_link = $tag->name; … … 249 259 } elseif ( is_category() ) { 250 260 // Prepend 'Flavor: ' to category document titles. 261 /* translators: %s: category name */ 251 262 $parts['title'] = sprintf( __( 'Flavor: %s', 'wporg-showcase' ) . $parts['title'] ); 252 263 } elseif ( is_tag() ) { 253 264 // Prepend 'Tag: ' to tag document titles. 265 /* translators: %s: tag name */ 254 266 $parts['title'] = sprintf( __( 'Tag: %s', 'wporg-showcase' ) . $parts['title'] ); 255 267 }
Note: See TracChangeset
for help on using the changeset viewer.