'; // WPCS: XSS OK.
}
endif;
if ( ! function_exists( 'appzend_posted_by' ) ) :
/**
* Prints HTML with meta information for the current author.
*/
function appzend_posted_by() {
$byline = sprintf(
/* translators: %s: post author. */
//esc_html_x( 'by %s', 'post author', 'appzend' ),
'' . esc_html( get_the_author() ) . ''
);
echo '
' . $byline . '
'; // WPCS: XSS OK.
}
endif;
if ( ! function_exists( 'appzend_comments' ) ) :
/**
* Prints HTML with meta information for the current author.
*/
function appzend_comments() {
echo '
';
comments_popup_link(
sprintf(
wp_kses(
/* translators: %s: post title */
__( 'Leave a Comment on %s', 'appzend' ),
array(
'span' => array(
'class' => array(),
),
)
),
get_the_title()
)
);
echo '
'; // WPCS: XSS OK.
}
endif;
if ( ! function_exists( 'appzend_category_list' ) ) :
/**
* Prints HTML with meta information for the current author.
*/
function appzend_category_list() {
$categories_list = get_the_category_list( esc_html__( ', ', 'appzend' ) );
if ( $categories_list ) {
/* translators: 1: list of categories. */
printf( '
' . esc_html__( 'in %1$s', 'appzend' ) . '
', $categories_list ); // WPCS: XSS OK.
} // WPCS: XSS OK.
}
endif;
if ( ! function_exists( 'appzend_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.
*/
function appzend_post_thumbnail() {
if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) {
return;
}
if ( is_singular() ) : ?>