"; if ( $catIcon ) { $catHtml .= ""; } $catHtml .= "{$categories}"; } if ( in_array( 'post_date', $items ) && $date ) { $metaHtmltop .= ""; if ( $metaIcon ) { $metaHtmltop .= ""; } $metaHtmltop .= "{$date}"; } if ( in_array( 'author', $items ) ) { $metaHtmltop .= ""; if ( $metaIcon ) { $metaHtmltop .= ""; } $metaHtmltop .= "{$author}"; } $metaHtmltop .= $catHtml; if ( in_array( 'tags', $items ) && $tags ) { $metaHtmltop .= ""; if ( $metaIcon ) { $metaHtmltop .= ""; } $metaHtmltop .= "{$tags}"; } $num_comments = get_comments_number(); // get_comments_number returns only a numeric value if ( in_array( 'comment_count', $items ) && $comment ) { $metaHtmltop .= ''; if ( $metaIcon ) { $metaHtmltop .= ""; } $metaHtmltop .= $num_comments . ''; } if ( ! empty( $metaHtmltop ) && $metaPosition == 'above_title' ) { $titleHtml .= "
$metaHtmltop
"; } if ( in_array( 'title', $items ) ) { $titleHtml .= sprintf( '<%1$s class="entry-title">%6$s', $title_tag, $pID, $anchorClass, $pLink, $link_target, $title ); } $postMetaBottom = null; if ( in_array( 'read_more', $items ) ) { $postMetaBottom .= "{$read_more_text}"; } $html .= sprintf( '
', esc_attr( implode( ' ', [ $grid, $class ] ) ), $pID ); $html .= sprintf( '
', $tpg_title_position ? ' rt-with-title-' . $tpg_title_position : null ); if ( $tpg_title_position == 'above' ) { $html .= sprintf( '
%s
', $titleHtml ); } if ( $imgSrc ) { $html .= '
'; $html .= "{$imgSrc}"; $html .= '
'; } $html .= "
"; if ( $tpg_title_position == 'below' ) { $html .= $titleHtml; } if ( ! empty( $metaHtmltop ) && ( empty( $metaPosition ) || $metaPosition == 'above_excerpt' ) ) { $html .= ""; } if ( ! $tpg_title_position ) { $html .= $titleHtml; } if ( in_array( 'excerpt', $items ) ) { $html .= "
{$excerpt}
"; } if ( ! empty( $metaHtmltop ) && $metaPosition == 'below_excerpt' ) { $html .= ""; } if ( ! empty( $postMetaBottom ) ) { $html .= ""; } $html .= '
'; $html .= '
'; $html .= '
'; Fns::print_html( $html );