/home/techb158/balacoffee.com/wp-content/plugins/coming-soon/resources/post
Edit: /home/techb158/balacoffee.com/wp-content/plugins/coming-soon/resources/post/full_content.php (4034B)
';
// Show featured image.
if ( 'true' === $shortcode_args['show_featured_image'] ) {
$featured_img_url = get_the_post_thumbnail_url( $id, 'full' );
if ( $featured_img_url ) {
$render .= '
';
}
}
// Show title.
if ( 'true' === $shortcode_args['show_title'] ) {
$render .= '
';
$render .= '';
$render .= '<' . esc_html( $shortcode_args['title_html_tag'] ) . ' class="sp-pt-2 sp-posts-block-title">';
$render .= $title;
$render .= '' . esc_html( $shortcode_args['title_html_tag'] ) . '>';
$render .= '
';
$render .= '';
}
// Show meta data.
if ( 'true' === $shortcode_args['show_meta_options'] ) {
$render .= '
';
if ( 'true' === $shortcode_args['show_date_modified_meta'] ) {
$render .= esc_html( $modified_date );
}
if ( 'true' === $shortcode_args['show_author_meta'] ) {
if ( 'true' === $shortcode_args['show_date_modified_meta'] ) {
$render .= ' ' . esc_html( $shortcode_args['meta_separator'] ) . ' ';
}
$render .= esc_html( $author );
}
if ( 'true' === $shortcode_args['show_date_meta'] ) {
if ( 'true' === $shortcode_args['show_author_meta'] || 'true' === $shortcode_args['show_date_modified_meta'] ) {
$render .= ' ' . esc_html( $shortcode_args['meta_separator'] ) . ' ';
}
$render .= esc_html( $date );
}
if ( 'true' === $shortcode_args['show_time_meta'] ) {
if ( 'true' === $shortcode_args['show_author_meta'] || 'true' === $shortcode_args['show_date_modified_meta'] || 'true' === $shortcode_args['show_date_meta'] ) {
$render .= ' ' . esc_html( $shortcode_args['meta_separator'] ) . ' ';
}
$render .= esc_html( $time );
}
if ( 'true' === $shortcode_args['show_comment_count_meta'] ) {
if ( 'true' === $shortcode_args['show_author_meta'] || 'true' === $shortcode_args['show_date_modified_meta'] || 'true' === $shortcode_args['show_date_meta'] || 'true' === $shortcode_args['show_time_meta'] ) {
$render .= ' ' . esc_html( $shortcode_args['meta_separator'] ) . ' ';
}
if ( 1 > $comments_number ) {
$render .= esc_html( 'No comments' );
} elseif ( 1 === $comments_number ) {
$render .= esc_html( $comments_number . ' Comment' );
} elseif ( 2 <= $comments_number ) {
$render .= esc_html( $comments_number . 'Comments' );
}
}
$render .= '
';
}
// Show post content.
if ( 'true' === $shortcode_args['show_excerpt'] ) {
if ( ! empty( $excerpt ) ) {
$render .= '
';
$render .= esc_html( wp_trim_words( $excerpt, (int) $shortcode_args['excerpt_length'], null ) );
$render .= '
';
} elseif ( 0 < strlen( $content ) ) {
$render .= '
';
$render .= esc_html( wp_trim_words( $content, (int) $shortcode_args['excerpt_length'], null ) );
$render .= '
';
}
}
// Show read more button.
if ( 'true' === $shortcode_args['show_read_more'] ) {
$render .= '
';
}
$render .= '
';
echo wp_kses_post( $render );