Changeset 9577
- Timestamp:
- 11/08/2008 11:27:49 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-content/themes/default/archive.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/default/archive.php
r9234 r9577 56 56 <?php else : 57 57 58 if ( is_category())// If this is a category archive58 if ( is_category() ) { // If this is a category archive 59 59 printf("<h2 class='center'>Sorry, but there aren't any posts in the %s category yet.</h2>", single_cat_title('',false)); 60 else if (is_date())// If this is a date archive60 } else if ( is_date() ) { // If this is a date archive 61 61 echo("<h2>Sorry, but there aren't any posts with this date.</h2>"); 62 else if (is_author()) // If this is a category archive 63 printf("<h2 class='center'>Sorry, but there aren't any posts by %s yet.</h2>", get_userdatabylogin(get_query_var('author_name'))->display_name); 64 else 62 } else if ( is_author() ) { // If this is a category archive 63 $userdata = get_userdatabylogin(get_query_var('author_name')); 64 printf("<h2 class='center'>Sorry, but there aren't any posts by %s yet.</h2>", $userdata->display_name); 65 } else { 65 66 echo("<h2 class='center'>No posts found.</h2>"); 67 } 66 68 get_search_form(); 67 69
Note: See TracChangeset
for help on using the changeset viewer.