';
switch ($_post_format) {
case "video":
$_video_type = get_post_meta(get_the_ID(), "video_format_choose", true);
if($_video_type == "youtube") {
$html .= '
';
} elseif ($_video_type == "vimeo"){
$html .= '
';
} elseif ($_video_type == "self"){
$html .= '
';
$html .= '
';
$html .= '
';
$html .= '
';
$html .= '
';
}
break;
case "audio":
$html .= '
';
break;
case "gallery":
$html .= '
';
$html .= '
';
$html .= '
';
break;
default:
if(!empty($featured_image_array)){
$html .= '
';
$html .= '
';
$html .= '';
}
break;
}
$html .= '
';
$html .= '';
$html .= '<'.$title_tag.' itemprop="name" class="q_masonry_blog_title entry_title">
' . get_the_title() . ''.$title_tag.'>';
$excerpt = ($text_length > 0) ? substr(get_the_excerpt(), 0, intval($text_length)) : get_the_excerpt();
$html .= '
'.$excerpt.'...
';
$html .= '
';
if ($display_time != "0") {
$html .= ''. get_the_time('d F, Y') .'';
}
if ($blog_hide_comments != "yes" && $display_comments == "1") {
$comments_count = get_comments_number();
switch ($comments_count) {
case 0:
$comments_count_text = __('No comment', 'qode');
break;
case 1:
$comments_count_text = $comments_count . ' ' . __('Comment', 'qode');
break;
default:
$comments_count_text = $comments_count . ' ' . __('Comments', 'qode');
break;
}
$html .= ' / ';//close post_comments
}
$html .= '
';
$html .= '
';
} else {
$html .= '';
$html .= '
';
if ($display_time != "0") {
$html .= ''. get_the_time('d F, Y') .'';
}
if ($blog_hide_comments != "yes" && $display_comments == "1") {
$comments_count = get_comments_number();
switch ($comments_count) {
case 0:
$comments_count_text = __('No comment', 'qode');
break;
case 1:
$comments_count_text = $comments_count . ' ' . __('Comment', 'qode');
break;
default:
$comments_count_text = $comments_count . ' ' . __('Comments', 'qode');
break;
}
$html .= ' / ';//close post_comments
}
$html .= '
';
if($_post_format == "quote") {
$html .= '
';
}else{
$html .= '
';
}
$html .= '
';
if($_post_format == "quote") {
$html .= '
' . get_post_meta(get_the_ID(), "quote_format", true) . '
';
$html .= '
—' . get_the_title() . '';
} else {
$html .= '
' . get_the_title() . '
';
}
$html .= '
';
}
$html .= '