Skip to content

Releases: Clark-Nikdel-Powell/WordPress-Pattern-Library

Fix image CSS class, adjust search

05 Oct 19:38

Choose a tag to compare

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

27 Mar 14:50

Choose a tag to compare

Figured it was about time to just go with v1.0, since we're about to phase this thing out anyway.

Includes fix

27 Mar 14:50

Choose a tag to compare

v0.18.0

Forgot to update the includes file

Added new BackgroundVideo, BackgroundVideoVide, ImageBackground, PostParentLink atoms

27 Mar 14:41

Choose a tag to compare

Updated the category list for a list with no links as well.

Updated Search Excerpt

06 Jan 16:30

Choose a tag to compare

v0.17.7

Adjust length parameter

Add Atom Class Shorthand, Post Loop Properties

28 Oct 14:39

Choose a tag to compare

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

03 Oct 14:34

Choose a tag to compare

Was checking against $data instead of $this.

Minor bugfixes

19 Sep 20:08

Choose a tag to compare

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

17 Sep 15:30

Choose a tag to compare

v0.17.1

Updated author atoms

Added an Atom Properties filter

09 Sep 18:33

Choose a tag to compare

v0.17.0

Added a non-negotiable properties filter, much like the OrganismTempl…