%2$s%3$s',
esc_attr__( 'Featured', 'blogun' ),
blogun()->icons->get_svg(
'star',
array(
'class' => 'top-icon',
'aria-hidden' => 'true',
)
),
blogun()->icons->get_svg( 'star', array( 'aria-hidden' => 'true' ) )
);
} elseif ( 'video' === $blogun_post_format ) {
$blogun_icon = sprintf(
'%1$s%2$s',
blogun()->icons->get_svg(
'play',
array(
'class' => 'top-icon',
'aria-hidden' => 'true',
)
),
blogun()->icons->get_svg( 'play', array( 'aria-hidden' => 'true' ) )
);
} elseif ( 'link' === $blogun_post_format ) {
$blogun_icon = sprintf(
'%2$s%3$s',
esc_url( blogun_entry_get_permalink() ),
blogun()->icons->get_svg(
'external-link',
array(
'class' => 'top-icon',
'aria-hidden' => 'true',
)
),
blogun()->icons->get_svg( 'external-link', array( 'aria-hidden' => 'true' ) )
);
}
$blogun_icon = apply_filters( 'blogun_post_format_media_icon', $blogun_icon, $blogun_post_format );
$blogun_media = sprintf(
'%2$s%3$s',
esc_url( blogun_entry_get_permalink() ),
$blogun_media,
$blogun_icon
);
}
$blogun_media = apply_filters( 'blogun_post_thumbnail', $blogun_media );
// Print the post thumbnail.
echo wp_kses(
sprintf(
'%1$s
',
$blogun_media
),
blogun_get_allowed_html_tags()
);