image; $retina = $preview->getUrl(Image::SIZE_500x282,"webp"); $normal = $preview->getUrl(Image::SIZE_320x180,"webp"); $bad = $preview->getUrl(Image::SIZE_320x180,'jpg'); $bad = $bad?$bad:'/images/default.jpg'; if( $retina === false || $normal === false ){ $normal = $bad; $retina = $bad; } $preview = $post->preview; ?>