@@ -234,35 +234,35 @@ |
||
234 | 234 | */ |
235 | 235 | public static function get_archives_title() { |
236 | 236 | $textdomain = Classy::textdomain(); |
237 | - $archives_title = ''; |
|
237 | + $archives_title = ''; |
|
238 | 238 | |
239 | - if ( is_category() ) { |
|
240 | - $archives_title = single_cat_title( '', false ); |
|
241 | - } else if ( is_tag() ) { |
|
242 | - $archives_title = 'Tag: ' . single_tag_title( '', false ); |
|
243 | - } else if ( is_author() ) { |
|
244 | - if ( have_posts() ) { |
|
245 | - the_post(); |
|
246 | - $archives_title = 'Author: ' . get_the_author(); |
|
247 | - } |
|
239 | + if ( is_category() ) { |
|
240 | + $archives_title = single_cat_title( '', false ); |
|
241 | + } else if ( is_tag() ) { |
|
242 | + $archives_title = 'Tag: ' . single_tag_title( '', false ); |
|
243 | + } else if ( is_author() ) { |
|
244 | + if ( have_posts() ) { |
|
245 | + the_post(); |
|
246 | + $archives_title = 'Author: ' . get_the_author(); |
|
247 | + } |
|
248 | 248 | |
249 | - rewind_posts(); |
|
250 | - } else if ( is_search() ) { |
|
251 | - $archives_title = sprintf( __( 'Search Results for: %s', $textdomain ), '<span>' . get_search_query() . '</span>' ); |
|
252 | - } else if ( is_archive() ) { |
|
253 | - if ( is_day() ) { |
|
254 | - $archives_title = get_the_date(); |
|
255 | - } elseif ( is_month() ) { |
|
256 | - $archives_title = get_the_date( _x( 'F Y', 'monthly archives date format', $textdomain ) ); |
|
257 | - } elseif ( is_year() ) { |
|
258 | - $archives_title = get_the_date( _x( 'Y', 'yearly archives date format', $textdomain ) ); |
|
259 | - } else { |
|
260 | - $archives_title = 'Archives'; |
|
261 | - } |
|
249 | + rewind_posts(); |
|
250 | + } else if ( is_search() ) { |
|
251 | + $archives_title = sprintf( __( 'Search Results for: %s', $textdomain ), '<span>' . get_search_query() . '</span>' ); |
|
252 | + } else if ( is_archive() ) { |
|
253 | + if ( is_day() ) { |
|
254 | + $archives_title = get_the_date(); |
|
255 | + } elseif ( is_month() ) { |
|
256 | + $archives_title = get_the_date( _x( 'F Y', 'monthly archives date format', $textdomain ) ); |
|
257 | + } elseif ( is_year() ) { |
|
258 | + $archives_title = get_the_date( _x( 'Y', 'yearly archives date format', $textdomain ) ); |
|
259 | + } else { |
|
260 | + $archives_title = 'Archives'; |
|
261 | + } |
|
262 | 262 | } else { |
263 | - $archives_title = 'Archives'; |
|
264 | - } |
|
263 | + $archives_title = 'Archives'; |
|
264 | + } |
|
265 | 265 | |
266 | - return $archives_title; |
|
266 | + return $archives_title; |
|
267 | 267 | } |
268 | 268 | } |