%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())
);
$posted_on = sprintf(
/* translators: %s: post date. */
esc_html_x('%s', 'post date', 'byvex'),
'' . $time_string . ''
);
echo '' . $posted_on . ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
endif;
if (!function_exists('byvex_posted_by')) :
/**
* Prints HTML with meta information for the current author.
*/
function byvex_posted_by()
{
$byline = sprintf(
/* translators: %s: post author. */
esc_html_x('%s', 'post author', 'byvex'),
'' . esc_html(get_the_author()) . ''
);
echo $byline; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
endif;
if (!function_exists('byvex_entry_footer')) :
/**
* Prints HTML with meta information for the categories, tags and comments.
*/
function byvex_entry_footer()
{
// Hide category and tag text for pages.
if ('post' === get_post_type()) {
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list(esc_html__(' ', 'byvex'));
if ($categories_list) {
/* translators: 1: list of categories. */
printf('' . esc_html__('%1$s', 'byvex') . '', $categories_list); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list('', esc_html_x(' ', 'list item separator', 'byvex'));
if ($tags_list) {
/* translators: 1: list of tags. */
printf('' . esc_html__('%1$s', 'byvex') . '', $tags_list); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
}
}
endif;
// Print the next and previous posts navigation.
if (!function_exists('byvex_the_post_navigation')) {
function byvex_the_post_navigation()
{
the_post_navigation(
array(
'prev_text' => '' . esc_html__('< ', 'byvex') . '%title',
'next_text' => '%title' . esc_html__(' >', 'byvex') . '',
)
);
}
}
// Print numbered pagination
if (!function_exists('byvex_the_posts_pagination')) {
/**
* Print the next and previous posts navigation.
*
* @return void
*/
function byvex_the_posts_pagination()
{
the_posts_pagination(
array(
'type' => 'list',
'class' => 'my-2',
'mid_size' => 1,
'end_size' => 2,
)
);
}
}