Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce files from https://github.com/carstingaxion/additional-adva… #962

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

carstingaxion
Copy link
Collaborator

…nced-query-loops/tree/gatherpress-query-loop (#599)

Description of the Change

Closes #

How to test the Change

Changelog Entry

Added - New feature
Changed - Existing functionality
Deprecated - Soon-to-be removed feature
Removed - Feature
Fixed - Bug fix
Security - Vulnerability

Credits

Props @username, @username2, ...

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

Copy link

what-the-diff bot commented Nov 19, 2024

PR Summary

  • Introduction of Event Query Class: A new Event_Query class has been incorporated. It caters to the Event Query block functionality, allowing the system to manage events more systematically. This class encompasses methods for pre-rendering blocks, querying events, and filtering collection parameters, fostering overall control over event execution and management.

  • Creation of New React Components for Event Queries: New React components have been developed specifically for the event query interface. These controls provide users with control over various aspects of event management like setting the event count, excluding or including certain events, managing the event offset, and selecting the order of the events.

  • File controls.js Addition: A new file termed controls.js has been created, which observes post type changes and dynamically adjusts attributes for event queries.

  • File index.js Creation: This new file registers the "Event Query" block variation. It sets out the structure regarding attributes and inner block, enhancing the versatility of event queries.

  • Page Navigation through pagination.js: This new feature focuses on previous and next events, giving a more event-oriented feel to it rather than a generalized post.

  • Addition of 'Gpql-controls' Files: Two new files have been added that house components for custom controls specific to inherited queries and general controls.

  • Creation of Template Structures through templates.js: To handle situations where no results are found, specific templates have been designed. These specialized templates are tailored for event-related queries.

Copy link

Preview changes with Playground

You can preview the recent changes for PR#962 with the following PHP versions:

PHP Version 8.3

PHP Version 7.4

Download .zip with build changes

Made with 💙 from GatherPress & a little bit of WordPress Playground. Changes will not persist between sessions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant