';
}
}
if ( ! function_exists( 'aqwa_post_thumbnail' ) ) {
/**
* Displays an optional post thumbnail.
*
* Wraps the post thumbnail in an anchor element on index views, or a div
* element when on single views.
*
* @since Aqwa 1.0
*
* @return void
*/
function aqwa_post_thumbnail() {
if ( ! aqwa_can_show_post_thumbnail() ) {
return;
}
?>
';
/* translators: used between list items, there is a space after the comma. */
$categories_list = get_the_category_list( __( ', ', 'aqwa' ) );
if ( $categories_list ) {
printf('' . esc_html__( '%s', 'aqwa' ) . ' ',
$categories_list // phpcs:ignore WordPress.Security.EscapeOutput
);
}
/* translators: used between list items, there is a space after the comma. */
$tags_list = get_the_tag_list( '', __( ', ', 'aqwa' ) );
if ( $tags_list ) {
printf(
/* translators: %s: list of tags. */
'' . esc_html__( '%s', 'aqwa' ) . '',
$tags_list // phpcs:ignore WordPress.Security.EscapeOutput
);
}
echo '
';
/* translators: used between list items, there is a space after the comma. */
$categories_list = get_the_category_list( __( ', ', 'aqwa' ) );
if ( $categories_list ) {
printf('' . esc_html__( '%s', 'aqwa' ) . ' ',
$categories_list // phpcs:ignore WordPress.Security.EscapeOutput
);
}
/* translators: used between list items, there is a space after the comma. */
$tags_list = get_the_tag_list( '', __( ', ', 'aqwa' ) );
if ( $tags_list ) {
printf(
/* translators: %s: list of tags. */
'' . esc_html__( '%s', 'aqwa' ) . '',
$tags_list // phpcs:ignore WordPress.Security.EscapeOutput
);
}
echo '
';
}
}
}
}
if ( ! function_exists( 'aqwa_posted_on' ) ) {
/**
* Prints HTML with meta information for the current post-date/time.
*
*/
function aqwa_posted_on() {
$time_string = '';
$time_string = sprintf(
$time_string,
esc_attr( get_the_date( DATE_W3C ) ),
esc_html( get_the_date('j') ),
esc_html( get_the_date('F') ),
esc_html( get_the_date('Y') )
);
echo '