v0.6.0
Mark Root-Wiley, MRW Web Design
A variation of the Media & Text block that creates a "Card" with stacked media and content. Adds support for the aspect ratio of the image to allow for nice, balanced layouts.
Since it is a block variation rather than a standalone block, uninstalling the plugin will just have the cards fall back to Media & Text blocks, preserving all content.
- Add block link style
- Don't show "Aspect Ratio" setting if "Crop to Fill" is false
- Change "Original" to "Default" is Aspect Ratio setting to reflect that there will always be an aspect ratio applied if the "Crop to Fill" option is set
- Fix media placeholder style error
- Fix missing textdomain
- Load Github updater on
admin_inithook to prevent "_load_textdomain_just_in_timewas called incorrectly" error introduced with WordPress 6.7 - Remove duplicate require_once statement loading Github updater
- Add support for new
.is-image-fill-elementclass introduced in WordPress 6.7
- Fix support for "Original" aspect ratio
- Fix card block when used in Grid Group block variation
- Add support for aspect ratios using WordPress defaults or whatever is defined in theme.json
- Change default min-height for image to 0px so aspect ratios always work. Can set easily in CSS with
--mrw-card--min-heightcustom property - Remove gulp build process and replace with wp-scripts
- Now requires PHP 7.0 and WordPress 6.6+ (currently in Beta 3)
- Use custom properties for styling for easier overrides
- Use spacing scale (40) for content area padding of the block, if it's set. Fall back to 8% if not.
- Redo build process to fix dependency issues in Widget Editor and Site Editor and use wp-scripts. Drops SASS build process entirely.
- Hide image drag handle that won't do anything
- First version