',
esc_url(get_the_post_thumbnail_url())
);
}
} else {
if ('on' === $show_icon) {
$figure = sprintf(
'
%1$s
',
$list_icon
);
}
}
if ('on' === $show_author) {
$author = sprintf(
'
By %1$s
',
get_the_author()
);
}
if ('on' === $show_date) {
$date = sprintf(
'
%1$s
',
get_the_time($date_format)
);
}
if ('on' === $show_author && 'on' === $show_date) {
$separator = '|';
}
if ('on' === $show_excerpt) {
$excerpt = sprintf(
'%1$s
',
BaPostHelper::get_post_excerpt($excerpt_length)
);
}
if ('on' === $show_author || 'on' === $show_date) {
$meta = sprintf(
'
%1$s %2$s %3$s
',
$author,
$separator,
$date
);
}
printf(
'
%5$s
%2$s
%3$s
%4$s
',
esc_url(get_the_permalink()),
et_core_intentionally_unescaped(get_the_title(), 'html'),
et_core_intentionally_unescaped($meta, 'html'),
et_core_intentionally_unescaped($excerpt, 'html'),
et_core_intentionally_unescaped($figure, 'html')
);