settings->get( 'blog_layout' ); if ( is_archive() ) { $layout = Avada()->settings->get( 'blog_archive_layout' ); } elseif ( is_search() ) { if ( ! Avada()->settings->get( 'search_featured_images' ) ) { return; } $layout = Avada()->settings->get( 'search_layout' ); } $featured_image_width = fusion_data()->post_meta( $post->ID )->get( 'fimg[width]', true ); $featured_image_height = fusion_data()->post_meta( $post->ID )->get( 'fimg[height]', true ); if ( 'grid' !== $layout && 'masonry' !== $layout && 'timeline' !== $layout ) { $styles = ''; if ( $featured_image_width && 'auto' !== $featured_image_width ) { $styles .= '#post-' . $post->ID . ' .fusion-post-slideshow { max-width:' . $featured_image_width . ' !important;}'; } if ( $featured_image_height && 'auto' !== $featured_image_height ) { $styles .= '#post-' . $post->ID . ' .fusion-post-slideshow, #post-' . $post->ID . ' .fusion-post-slideshow .fusion-image-wrapper img { max-height:' . $featured_image_height . ' !important;}'; } if ( $featured_image_width && 'auto' === $featured_image_width ) { $styles .= '#post-' . $post->ID . ' .fusion-post-slideshow .fusion-image-wrapper img {width:auto;}'; } if ( $featured_image_height && 'auto' === $featured_image_height ) { $styles .= '#post-' . $post->ID . ' .fusion-post-slideshow .fusion-image-wrapper img {height:auto;}'; } if ( $featured_image_height && $featured_image_width && 'auto' !== $featured_image_height && 'auto' !== $featured_image_width ) { $styles .= '@media only screen and (max-width: 479px){#post-' . $post->ID . ' .fusion-post-slideshow, #post-' . $post->ID . ' .fusion-post-slideshow .fusion-image-wrapper img{width:auto !important; height:auto !important; } }'; } if ( $styles ) { echo ''; // phpcs:ignore WordPress.Security.EscapeOutput } } $permalink = get_permalink( $post->ID ); if ( is_archive() ) { $size = ( 'None' === Avada()->settings->get( 'blog_archive_sidebar' ) && 'None' === Avada()->settings->get( 'blog_archive_sidebar_2' ) ) ? 'full' : 'blog-large'; } else { $size = ( ! AWB_Widget_Framework()->has_sidebar() ) ? 'full' : 'blog-large'; } $size = ( 'medium' === $layout || 'medium alternate' === $layout ) ? 'blog-medium' : $size; $size = ( $featured_image_height && $featured_image_width && 'auto' !== $featured_image_height && 'auto' !== $featured_image_width ) ? 'full' : $size; $size = ( 'auto' === $featured_image_height || 'auto' === $featured_image_width ) ? 'full' : $size; $size = ( 'grid' === $layout || 'masonry' === $layout || 'timeline' === $layout ) ? 'full' : $size; $video = apply_filters( 'privacy_iframe_embed', fusion_get_page_option( 'video', get_the_ID() ) ); ?>