-
' . esc_html( get_the_author_meta( 'display_name' ) ) . ''
);
?>
-
-
-
%2$s';
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
$time_string = '';
}
$time_string = sprintf(
$time_string,
esc_attr( get_the_date( DATE_W3C ) ),
esc_html( get_the_date() ),
esc_attr( get_the_modified_date( DATE_W3C ) ),
esc_html( get_the_modified_date() )
);
$posted_on = sprintf(
/* translators: %s: post date. */
esc_html_x( 'Posted on %s', 'post date', 'bizness' ),
'' . $time_string . ''
);
echo '' . $posted_on . ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
endif;
if ( ! function_exists( 'bizness_posted_by' ) ) :
/**
* Prints HTML with meta information for the current author.
*/
function bizness_posted_by() {
$byline = sprintf(
/* translators: %s: post author. */
esc_html_x( '%1$s %2$s', 'post author', 'bizness' ),
'',
'' . esc_html( get_the_author() ) . ''
);
echo ' ' . $byline . ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
endif;
if ( ! function_exists( 'bizness_entry_footer' ) ) :
/**
* Prints HTML with meta information for the categories, tags and comments.
*/
function bizness_entry_footer() {
edit_post_link(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Edit %s', 'bizness' ),
array(
'span' => array(
'class' => array(),
),
)
),
wp_kses_post( get_the_title() )
),
'',
''
);
}
endif;
if ( ! function_exists( 'wp_body_open' ) ) :
/**
* Shim for sites older than 5.2.
*
* @link https://core.trac.wordpress.org/ticket/12563
*/
function wp_body_open() {
do_action( 'wp_body_open' );
}
endif;
if ( ! function_exists( 'bizness_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.
*
* @param $size string
*/
function bizness_post_thumbnail($size='thumbnail') {
if ( post_password_required() || is_attachment() || ! post_type_supports( get_post_type(), 'thumbnail' ) ) {
return;
}
if ( is_singular() ) : ?>
the_title_attribute(
array(
'echo' => false,
)
),
)
);
}
elseif (get_theme_mod('single_post_image_placeholder_enable',false) && is_single() ) {
bizness_image_placeholder('large');
}
elseif (get_theme_mod('single_page_image_placeholder_enable',false) && is_page() ) {
bizness_image_placeholder('large');
}
?>
the_title_attribute(
array(
'echo' => false,
)
),
)
);
}
elseif (get_theme_mod('blog_post_image_placeholder_enable',false)) {
bizness_image_placeholder('large');
}
?>
', '' . esc_attr($html_tag) . '>' );
else :
$html_tag = get_theme_mod('blog_post_title_html_tag','h2');
the_title( '<' . esc_attr($html_tag) . ' class="entry-title">', '' . esc_attr($html_tag) . '>' );
endif;
}
endif;