function get_the_archive_title() { $title =
__( 'Archives'
);
$prefix = '';
if ( is_category() ) { $title =
single_cat_title( '', false
);
$prefix =
_x( 'Category:', 'category archive title prefix'
);
} elseif ( is_tag() ) { $title =
single_tag_title( '', false
);
$prefix =
_x( 'Tag:', 'tag archive title prefix'
);
} elseif ( is_author() ) { $title =
get_the_author();
$prefix =
_x( 'Author:', 'author archive title prefix'
);
} elseif ( is_year() ) { $title =
get_the_date( _x( 'Y', 'yearly archives date format'
) );
$prefix =
_x( 'Year:', 'date archive title prefix'
);
} elseif ( is_month() ) { $title =
get_the_date( _x( 'F Y', 'monthly archives date format'
) );
$prefix =
_x( 'Month:', 'date archive title prefix'
);
} elseif ( is_day() ) {