', esc_url( get_permalink() ), $time_string ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
endif;
if ( ! function_exists( 'business_aarambha_posted_by' ) ) :
/**
* Prints HTML with meta information for the current author.
*/
function business_aarambha_posted_by() {
$byline = sprintf(
/* translators: %s: post author. */
esc_html_x( 'by %s', 'post author', 'business-aarambha' ),
'' . esc_html( get_the_author() ) . ''
);
printf( '
%1$s
', $byline ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
endif;
if ( ! function_exists( 'business_aarambha_comment_count' ) ) :
/**
* Prints HTML with the comment count for the current post.
*/
function business_aarambha_comment_count() {
if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
echo '
';
/* translators: %s: Post title. Only visible to screen readers. */
comments_popup_link( sprintf( __( 'Leave a comment on %s', 'business-aarambha' ), get_the_title() ) );
echo '
';
}
}
endif;
if ( ! function_exists( 'business_aarambha_posted_cats' ) ) :
/**
* Prints HTML with meta information for the current categories.
*/
function business_aarambha_posted_cats() {
// 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( ' ' );
if ( $categories_list ) {
/* translators: 1: list of categories. */
printf( '
%1$s
', $categories_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
}
}
endif;
if ( ! function_exists( 'business_aarambha_posted_tags' ) ) :
/**
* Prints HTML with meta information for the current tags.
*/
function business_aarambha_posted_tags() {
// Hide category and tag text for pages.
if ( 'post' === get_post_type() ) {
/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'business-aarambha' ) );
if ( $tags_list ) {
/* translators: 1: list of tags. */
printf( '
%1$s
', $tags_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
}
}
endif;
if ( ! function_exists( 'business_aarambha_entry_footer' ) ) :
/**
* Footer edit post content
*/
function business_aarambha_entry_footer() {
edit_post_link(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Edit %s', 'business-aarambha' ),
array(
'span' => array(
'class' => array(),
),
)
),
wp_kses_post( get_the_title() )
),
'',
''
);
}
endif;
if ( ! function_exists( 'business_aarambha_singular_post_thumbnail' ) ) :
/**
* Displays singular an optional post thumbnail.
*
* @param string $size
* @param string $ratio
* Wraps the post thumbnail in an anchor element on index views, or a div
* element when on single views.
*/
function business_aarambha_singular_post_thumbnail( $size = 'full', $ratio = '16x9', $post = null ) {
if ( post_password_required() || is_attachment() ) {
return;
}
if ( has_post_thumbnail() ) : ?>
the_title_attribute(
array(
'echo' => false,
)
),
)
);
?>
the_title_attribute(
array(
'echo' => false,
)
),
)
);
?>