';
return true;
}
return false;
}
}
if (! function_exists( 'lc_flock_archive_posts_count' ) ) {
/**
* Prints a one-liner summary of the number of posts contained
* in the current archive page.
*
* @since 1.0
*/
function lc_flock_archive_posts_count() {
global $wp_query;
$posts_count = (int) $wp_query->found_posts;
echo '
';
if ( is_author() ) {
printf( esc_html__( '%s has published %d posts to date.', 'flock' ), get_the_author(), $posts_count );
}
else {
$taxonomy_labels = get_taxonomy_labels( get_taxonomy( get_queried_object()->taxonomy ) );
$taxonomy_name = strtolower( $taxonomy_labels->singular_name );
printf( esc_html__( '%d posts have been filed under this %s.', 'flock' ), $posts_count, $taxonomy_name );
}
echo '
';
}
}
if (! function_exists( 'lc_flock_search_results_title' ) ) {
/**
* Prints the title of search results pages.
*
* @since 1.0
*/
function lc_flock_search_results_title() {
echo '