";
if ( $show_image == 'yes' ) {
$out .= "";
}
$out .= "
";
$out .= "";
$out .= "
";
$out .= "";
if ( $show_title == 'yes' && $title_over_image == '' ) {
ob_start();
the_title( '<'.esc_attr($title_typography_html_tag).' class="'.esc_attr( $widget_class . '__post-title' ).'">', ''.esc_attr($title_typography_html_tag).'>' );
$out .= ob_get_clean();
}
if (!empty($show_meta)){
$out .= "
";
if ( $show_content == 'yes' ) {
$out .= "";
if (in_array("date", $show_meta)){
$archive_year = get_the_time('Y');
$archive_month = get_the_time('m');
$archive_day = get_the_time('d');
$out .= "";
$out .= "";
$out .= "";
}
if (in_array("author", $show_meta)){
$out .= in_array("date", $show_meta) ? "".esc_html($meta_fields_divider)."" : '';
$out .= "
";
}
$out .= "";
$out .= "";
$out .= esc_html( get_the_author() );
$out .= "";
$out .= "
";
}
if (in_array("categories", $show_meta)){
$out .= (in_array("date", $show_meta) || in_array("author", $show_meta)) ? "".esc_html($meta_fields_divider)."" : '';
$out .= "";
$out .= get_the_category_list(', ');
$out .= "
";
}
if (in_array("comments", $show_meta)){
$out .= (in_array("date", $show_meta) || in_array("author", $show_meta) || in_array("categories", $show_meta)) ? "".esc_html($meta_fields_divider)."" : '';
$out .= "";
}
$out .= "";
if ( $show_excerpt == 'yes' ) {
if ( $excerpt_length ) {
\Stratum\Excerpt_Helper::get_instance()->setExcerptLength( $excerpt_length );
add_filter( 'excerpt_length', array( 'Stratum\Excerpt_Helper', 'excerpt_length' ), 999 );
}
$out .= get_the_excerpt();
remove_filter( 'excerpt_length', array( 'Stratum\Excerpt_Helper', 'excerpt_length' ), 999 );
} else {
ob_start();
the_content();
$out .= ob_get_clean();
}
$out .= "
";
}
if ( $show_read_more == 'yes' ) {
$out .= "";
$out .= "
";
}
$out .= "";
$out .= "";
$out .= esc_html($read_more_text);
$out .= "";
$out .= "
";
$out .= "