%2$s'; if (get_the_time('U') !== get_the_modified_time('U')) { $time_string = ''; } $time_string = sprintf( $time_string, esc_attr(get_the_date(DATE_W3C)), esc_html(get_the_date()), esc_attr(get_the_modified_date(DATE_W3C)), esc_html(get_the_modified_date()) ); echo '' . $time_string . ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } endif; if (!function_exists('albatross_posted_by')) : /** * Prints HTML with meta information for the current author. */ function albatross_posted_by() { $byline = sprintf( /* translators: %s: post author. */ esc_html_x('by %s', 'post author', 'albatross'), '' ); echo ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } endif; if (!function_exists('albatross_post_categories')) : /** * Prints HTML with categories for the current post. */ function albatross_post_categories() { /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list(' '); if ($categories_list) { /* translators: 1: list of categories. */ echo '' . $categories_list . ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } } endif; if (!function_exists('albatross_post_tags')) : /** * Prints HTML with tags for the current post. */ function albatross_post_tags() { /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list('', esc_html_x(', ', 'list item separator', 'albatross')); if ($tags_list) { /* translators: 1: list of tags. */ printf('', $tags_list); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } } endif; if (!function_exists('albatross_entry_footer')) : /** * Prints HTML with meta information for the categories, tags and comments. */ function albatross_entry_footer() { // Hide category and tag text for pages. if ('post' === get_post_type()) { albatross_posted_by(); albatross_post_categories(); ?>