';
}
// Construct the date html fragment if option to show date is set.
if ( ! empty( $blogcentral_layout_opts['show_date'] ) ) {
$date_icon = '';
if ( ! empty( $blogcentral_layout_opts['show_icons'] ) && ! empty( $blogcentral_layout_opts['date_icon'] ) ) {
$date_icon = '';
}
$date_format = esc_html( get_the_date() );
$date_frag = '
' . $date_icon . '
';
}
// Construct the post content html fragment if option to show content is set.
if ( ! empty( $blogcentral_layout_opts['show_content'] ) ) {
global $more;
ob_start();
if ( $single ) {
$more = 1;
} else {
$more = 0;
}
$format = get_post_format();
// Get the excerpt or content.
if ( ! $single && has_excerpt() || 'quote' === $format ) {
the_excerpt();
} else {
the_content();
}
if ( $single ) {
wp_link_pages(array(
'before' => '
';
}
// Construct the social share html fragment if option to show share is set
if ( ! empty( $blogcentral_layout_opts['show_social'] ) ) {
$share_title = '';
if ( ! empty( $blogcentral_layout_opts['show_icons'] ) && ! empty( $blogcentral_layout_opts['share_title'] ) ) {
$share_title = '' . esc_html( $blogcentral_layout_opts['share_title'] ) . '';
}
$share_frag = '