%2$s%3$s',
esc_attr__( 'Featured', 'bloghash' ),
bloghash()->icons->get_svg(
'pin',
array(
'class' => 'top-icon',
'aria-hidden' => 'true',
)
),
bloghash()->icons->get_svg( 'pin', array( 'aria-hidden' => 'true' ) )
);
} elseif ( 'video' === $bloghash_post_format ) {
$bloghash_icon = sprintf(
'%1$s%2$s',
bloghash()->icons->get_svg(
'play-2',
array(
'class' => 'top-icon',
'aria-hidden' => 'true',
)
),
bloghash()->icons->get_svg( 'play-2', array( 'aria-hidden' => 'true' ) )
);
} elseif ( 'link' === $bloghash_post_format ) {
$bloghash_icon = sprintf(
'%2$s%3$s',
esc_url( bloghash_entry_get_permalink() ),
bloghash()->icons->get_svg(
'external-link',
array(
'class' => 'top-icon',
'aria-hidden' => 'true',
)
),
bloghash()->icons->get_svg( 'external-link', array( 'aria-hidden' => 'true' ) )
);
}
$bloghash_icon = apply_filters( 'bloghash_post_format_media_icon', $bloghash_icon, $bloghash_post_format );
$bloghash_media = sprintf(
'%2$s%3$s',
esc_url( bloghash_entry_get_permalink() ),
$bloghash_media,
$bloghash_icon
);
}
$bloghash_media = apply_filters( 'bloghash_post_thumbnail', $bloghash_media );
// Print the post thumbnail.
echo wp_kses(
sprintf(
'%1$s
',
$bloghash_media
),
bloghash_get_allowed_html_tags()
);