';
}
// 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 ) {
the_excerpt();
} else {
the_content();
}
$content_frag = '
';
// If post format quote and the layout is 2, then output the content in a link.
if ( ! $single && 'quote' === get_post_format() && isset( $blogcentral_layout_opts['quote_layout'] ) &&
'2' === $blogcentral_layout_opts['quote_layout'] ) {
$content_frag .= ob_get_clean() . '
';
} else {
$content_frag .= ob_get_clean() . '';
}
}
// Construct the comments fragment if option to show stats is set.
if ( ! empty( $blogcentral_layout_opts['show_stats'] ) ) {
$comments_icon = '';
if ( ! empty( $blogcentral_layout_opts['show_icons'] ) && ! empty( $blogcentral_layout_opts['comments_icon'] ) ) {
$comments_icon = '';
}
ob_start();
comments_popup_link( '' . __( '0', BLOGCENTRAL_TXT_DOMAIN ) . '',
_x( '1', 'comments number', BLOGCENTRAL_TXT_DOMAIN ), _x( '%', 'comments number', BLOGCENTRAL_TXT_DOMAIN ),
'comments-link' );
$stats_frag = '
';
}
// 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 = '