Skip to content

Register Tour Operator Patterns #363

@ashleyshaw

Description

@ashleyshaw

Description

We need to register all block-based templates and patterns within the Tour Operator Plugin as per the requirements from the 2.0 Development Spec and the Figma Prototype documents. The focus is on creating patterns that will enhance the user experience when creating and managing content for tours, accommodations, and destinations. All patterns have been built in the Demo Site, and code for them can be retrieved from there under My Patterns.

Tasks

  • Patterns should be allocated to a pattern category: Backend - Site Editor - Patterns - Register Custom Pattern Category: Tour Operator #404
  • Patterns should be registered for specific block types as well as post types.
  • Full-page patterns will be made up of smaller patterns
  • Define the full list of patterns below.
  • Register patterns to utilize specific block types
  • Register patterns to use specific post types only.
  • Allocate patterns to appropriate pattern categories for improved organization.
  • Define whether to include pattern previews OR design preview images for a better user experience.

Patterns to Register

  1. Card Patterns

    • Tour Card
    • Accommodation Card
    • Destination Card
    • Archive Card
    • Specials Card
  2. Section Patterns

    • Featured Tours
    • Featured Accommodation
    • Featured Destination
    • Reviews Section
  3. CTA

    • Centered Banner CTA
    • Offset CTA

Full Page Layout Patterns

  • Homepage
  • About
  • Tour Archive Page
  • Single Tour Layout
  • Accommodation Archive Page
  • Single Accommodation Layout
  • Destinations Landing Page

Requirements

  • All patterns should be registered using the register_block_pattern() function.
  • Patterns should be responsive and customizable.
  • Ensure compatibility with the block editor and the existing LSX Design theme.
  • Test installation on fresh WordPress setups to confirm proper pattern loading.

Developer Resources

Additional Notes

  • Follow proper naming conventions for ease of access in the editor.
  • Provide basic instructions for using patterns in the WordPress block editor.

Metadata

Metadata

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions