v2.0.3
Enhancements
- Added new
$sizeattr toUCF_Post_List_Common::get_image_or_fallback, which allows you to specify the image size to retrieve. This defaults tolargeto accommodate for sites that depend on the function previously (incorrectly) returning full-sized images, while still avoiding returning huge images at least. - Added
UCF_Post_List_Common::get_image_srcset, which returns a srcset attribute to use for post list layouts that support thumbnails. The srcset generated will still depend on the uploaded image size not being enormous, but should still help reduce requested filesizes overall, particularly for mobile devices. - Updated the
cardlayout to use a srcset attribute.
Other
- Fixed typo for
tax_TAXSLUG__fieldparam in readme