Releases: Clark-Nikdel-Powell/WordPress-Pattern-Library
Fix image CSS class, adjust search
Forgot a search update from a while ago. Also added a fix for the image CSS class-- it can be tripped up if we're using an ImageBackground Atom (which extends Image), because for some reason there are 2 of the same CSS class name coming in. Rather than figure out what's causing that, I used array_unique before we convert the CSS classes to a string to filter out duplicates.
Initial release
Figured it was about time to just go with v1.0, since we're about to phase this thing out anyway.
Includes fix
v0.18.0 Forgot to update the includes file
Added new BackgroundVideo, BackgroundVideoVide, ImageBackground, PostParentLink atoms
Updated the category list for a list with no links as well.
Updated Search Excerpt
v0.17.7 Adjust length parameter
Add Atom Class Shorthand, Post Loop Properties
AtomTemplate needed a class shorthand, so that classes from Sections from ACF Flex Layouts could get in there.
The loop_posts method in OrganismTemplate got beefed up: it now supports passing in different a post structure based on the post index, and adding markup before/after specific posts. Some examples would be:
$this->post_0_structure$this->post_3_structure$this->post_last_structure$this->post_odd_structure$this->post_even_before$this->post_4_after$this->post_last_after
There's also a filter for individual post structure, in case you need to test against something else, like a meta field.
"Loop" atom if check fix
Was checking against $data instead of $this.
Minor bugfixes
Better check for attachment ID in the Image, post in the Post Author Link, and a check in Taxonomy List in case there are no terms.
Refactored posts loop
v0.17.1 Updated author atoms
Added an Atom Properties filter
v0.17.0 Added a non-negotiable properties filter, much like the OrganismTempl…