', esc_url( get_permalink() ), $time_string ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
endif;
if ( ! function_exists( 'aarambha_real_estate_posted_by' ) ) :
/**
* Prints HTML with meta information for the current author.
*/
function aarambha_real_estate_posted_by() {
$byline = sprintf(
/* translators: %s: post author. */
esc_html_x( 'by %s', 'post author', 'aarambha-real-estate' ),
'' . esc_html( get_the_author() ) . ''
);
printf( '
%1$s
', $byline ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
endif;
if ( ! function_exists( 'aarambha_real_estate_posted_cats' ) ) :
/**
* Prints HTML with meta information for the current categories.
*/
function aarambha_real_estate_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( 'aarambha_real_estate_posted_tags' ) ) :
/**
* Prints HTML with meta information for the current tags.
*/
function aarambha_real_estate_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', 'aarambha-real-estate' ) );
if ( $tags_list ) {
// /* translators: 1: list of tags. */
// if ( is_singular() ) {
// printf( '', $tags_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
// }
// else {
// printf( '%1$s', $tags_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
// }
/* translators: 1: list of tags. */
printf(
/* translators: 1: SVG icon. 2: Posted in label, only visible to screen readers. 3: List of tags. */
'%1$s %2$s',
esc_html__( 'Tags:', 'aarambha-real-estate' ),
$tags_list
); // WPCS: XSS OK.
}
}
}
endif;
if ( ! function_exists( 'aarambha_real_estate_entry_footer' ) ) :
/**
* Footer edit post content
*/
function aarambha_real_estate_entry_footer() {
edit_post_link(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Edit %s', 'aarambha-real-estate' ),
array(
'span' => array(
'class' => array(),
),
)
),
wp_kses_post( get_the_title() )
),
'',
''
);
}
endif;
if ( ! function_exists( 'aarambha_real_estate_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 aarambha_real_estate_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,
)
),
)
);
?>