ucsc / ucsc-2022

Official WordPress theme for UC Santa Cruz
6 stars 0 forks source link

feat: 🎉 UCSC Grid Query Loop pattern #342

Open Herm71 opened 2 weeks ago

Herm71 commented 2 weeks ago

What does this do?

Creates a new "UCSC Grid" pattern for the Query Loop block using the existing "Query Loop Card" pattern. This adds a pattern to the blue "Choose" button in the Query Loop block, which currently only includes default WordPress patterns.

This PR also registers a new pattern category, Query Loop (query_loop), which allows us to create additional query patterns in the future and find them in one place. This grid query pattern and the query loop card pattern were added to the new category.

query-loop-options

QA

Links to relevant issues

Screenshots:

New UCSC Grid pattern:

query-loop-choser

Editor View:

editor-view

Front-end View:

ucsc-grid-front

New pattern category:

query-loop-category

Tests

Does this have tests?