%2$s%3$s',
esc_attr__( 'Featured', 'hester' ),
hester()->icons->get_svg(
'star',
array(
'class' => 'top-icon',
'aria-hidden' => 'true',
)
),
hester()->icons->get_svg( 'star', array( 'aria-hidden' => 'true' ) )
);
} elseif ( 'video' === $hester_post_format ) {
$hester_icon = sprintf(
'%1$s%2$s',
hester()->icons->get_svg(
'play',
array(
'class' => 'top-icon',
'aria-hidden' => 'true',
)
),
hester()->icons->get_svg( 'play', array( 'aria-hidden' => 'true' ) )
);
} elseif ( 'link' === $hester_post_format ) {
$hester_icon = sprintf(
'%2$s%3$s',
esc_url( hester_entry_get_permalink() ),
hester()->icons->get_svg(
'external-link',
array(
'class' => 'top-icon',
'aria-hidden' => 'true',
)
),
hester()->icons->get_svg( 'external-link', array( 'aria-hidden' => 'true' ) )
);
}
$hester_icon = apply_filters( 'hester_post_format_media_icon', $hester_icon, $hester_post_format );
$hester_media = sprintf(
'%2$s%3$s',
esc_url( hester_entry_get_permalink() ),
$hester_media,
$hester_icon
);
}
$hester_media = apply_filters( 'hester_post_thumbnail', $hester_media );
// Print the post thumbnail.
echo wp_kses(
sprintf(
'%1$s
',
$hester_media
),
hester_get_allowed_html_tags()
);