' . get_the_author() . ''
);
echo '' . amzpress_time_link() . ' ' . $byline . '';
}
endif;
if ( ! function_exists( 'amzpress_time_link' ) ) :
/**
* Gets a nicely formatted string for the published date.
*/
function amzpress_time_link() {
$time_string = '';
$time_string = sprintf(
$time_string,
get_the_date( DATE_W3C ),
get_the_date(),
get_the_modified_date( DATE_W3C ),
get_the_modified_date()
);
return sprintf(
/* translators: %s: Post date. */
__( 'Posted on %s', 'amzpress' ),
'' . $time_string . ''
);
}
endif;
if ( ! function_exists( 'amzpress_entry_category' ) ) :
function amzpress_entry_category() {
// 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_meta = __( ' , ', 'amzpress' );
$categories_list = get_the_category_list( $categories_meta );
if ( $categories_list ) {
/* translators: 1: list of categories. */
printf( ' ' . $categories_list . '' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
}
}
endif;
if ( ! function_exists( 'amzpress_entry_footer' ) ) :
/**
* Prints HTML with meta information for the categories, tags and comments.
*/
function amzpress_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__( ', ', 'amzpress' ) );
if ( $categories_list ) {
/* translators: 1: list of categories. */
printf( '' . ' ' . esc_html__( 'Category: %1$s', 'amzpress' ) . '', $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', 'amzpress' ) );
if ( $tags_list ) {
/* translators: 1: list of tags. */
printf( '' . ' ' . esc_html__( 'Tagged: %1$s', 'amzpress' ) . '', $tags_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
}
if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
echo '';
}
edit_post_link(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Edit %s', 'amzpress' ),
array(
'span' => array(
'class' => array(),
),
)
),
wp_kses_post( get_the_title() )
),
'',
''
);
}
endif;
if ( ! function_exists( 'amzpress_post_thumbnail' ) ) :
/**
* Displays an optional post thumbnail.
*/
function amzpress_post_thumbnail() {
if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) {
return;
}
if ( is_singular() ) :
?>
the_title_attribute(
array(
'echo' => false,
)
),
)
);
?>
%3$s',
the_title_attribute( 'echo=0' ),
esc_url( get_permalink( get_the_ID() ) ),
__( 'Read more', 'amzpress' ),
sprintf(
_x( 'More on %s', 'more on post title', 'amzpress' ),
the_title_attribute( 'echo=0' )
)
)
);
}
}