';
if (!empty($featured_embed)) {
echo sprintf('
%s
', do_shortcode(webgame_esc_html($featured_embed)));
} else {
$format_item = '
%s
';
$format_image = '

';
$width = apply_filters('webgame_featured_image_width', webgame_get_setting('post_thumbnail_width'));
$height = apply_filters('webgame_featured_image_height', webgame_get_setting('post_thumbnail_height'));
$size = apply_filters('webgame_featured_image_height', webgame_get_setting('post_thumbnail_size', 'full'));
$resize_image = array();
if(empty($size) && !empty($width) && !empty($height)) {
$resize_image = array(
'width' => $width,
'height' => $height
);
}
$images = array();
$number_featured = absint(webgame_config('featured-images.number'));
$key_featured = webgame_config('featured-images.key');
if (has_post_thumbnail($post->ID)) {
$thumbnail = webgame_attachment_image_url(get_post_thumbnail_id($post->ID), $size, $resize_image);
if(!empty($thumbnail)) {
$images[] = sprintf($format_item, '', sprintf($format_image, $thumbnail));
}
}
else {?>
 . '/assets/img/mask-thumbnail.png' ?>)
';