';
// head
$output .= '
';
// meta
$show_meta = false;
$list_meta = mfn_opts_get( 'blog-meta' );
if( is_array( $list_meta ) ){
if( isset( $list_meta['author'] ) || isset( $list_meta['date'] ) || isset( $list_meta['categories'] ) ){
$show_meta = true;
}
}
if( $show_meta ){
$output .= '
';
$output .= '
';
if( isset( $list_meta['author'] ) ){
$output .= '
';
$output .= ''. esc_html($translate['published']) .' ';
$output .= ' ';
$output .= ''. esc_html(get_the_author_meta('display_name')) .'';
$output .= ' ';
}
if( isset( $list_meta['date'] ) ){
$output .= '
';
if( isset( $list_meta['author'] ) ){
$output .= ''. esc_html($translate['at']) .' ';
}
$output .= ' ';
$output .= ''. esc_html(get_the_date()) .'';
$output .= '';
}
// .post-comments | style: Masonry Tiles
if( 'masonry tiles' == $style && comments_open() && mfn_opts_get( 'blog-comments' ) ){
$output .= '
';
$output .= ' ';
$output .= '
';
}
$output .= '
';
if( isset( $list_meta['categories'] ) ){
$output .= '
';
$output .= '
'. esc_html($translate['categories']) .' ';
$output .= '
'. get_the_category_list() .'
';
$output .= '
';
}
$output .= '
';
}
// .post-footer | style: Photo
if( 'photo' == $style ){
$output .= '';
}
$output .= '
';
// title
$output .= '
';
if( get_post_format() == 'quote' ){
// quote
$output .= '
'. wp_kses(get_the_title(), mfn_allowed_html()) .'
';
} elseif( get_post_format() == 'link' ){
// link
$link = get_post_meta(get_the_ID(), 'mfn-post-link', true);
$output .= '
';
$output .= '
';
$output .= '
'. wp_kses(get_the_title(), mfn_allowed_html()) .'
';
$output .= '
'. esc_html($link) .'';
$output .= '
';
} else {
// default
if( ! $title_tag ){
$title_tag = mfn_opts_get('blog-title-tag', 2);
}
if( is_numeric($title_tag) ) $title_tag = 'h'.$title_tag; // numeric is from theme options
$output .= '<'. esc_attr($title_tag) .' class="entry-title" itemprop="headline">
'. wp_kses(get_the_title(), mfn_allowed_html()) .''. esc_attr($title_tag) .'>';
}
$output .= '
';
// content
if( $excerpt ){
$output .= '
'. get_the_excerpt() .'
';
}
// .post-footer | style NOT: Photo, Masonry Tiles
if( ! in_array( $style, array('photo','photo2','masonry tiles') ) && ( !empty(mfn_love()) || ( comments_open() && mfn_opts_get( 'blog-comments' ) ) || !empty($attr['more']) ) ){
$output .= '';
}
// .post-footer | style: Photo 2
if( 'photo2' == $style ){
if( isset( $list_meta['author'] ) || isset( $list_meta['date'] ) ){
$output .= '';
}
}
$output .= '