Releases: lightspeedwp/tour-operator
Releases · lightspeedwp/tour-operator
2.1.1
Immutable
release. Only release title and notes can be modified.
- Sticky Menu Block Filter File in Production - Renamed
render.phptofilters.phpin sticky-menu block and configured webpack to copy it to build folder using CopyWebpackPlugin. This ensures the mobile section headers filter is available in production releases (which only include the build/ folder). Addedfunction_exists()check to prevent redeclaration errors - PR #834
v2.1
Added
Build & Pattern Infrastructure
- Pattern Registration Infrastructure - Established directory structure and registration system for tour operator patterns with proper categorization and template support - PR#803, Issue #795
- Spacing Variables with Theme Inheritance - Added CSS spacing variables (
--wp--preset--spacing--10through--wp--preset--spacing--80) with zero-specificity fallbacks using:where()selector to ensure theme values take precedence while providing consistent rem-based fallback values for patterns and templates when theme doesn't define them PR #818
Patterns
- Section Header Pattern - Added reusable section header pattern (
lsx-tour-operator/section-header) with centered heading text flanked by horizontal separators for consistent section dividers across templates. Includes pattern overrides binding for easy customization - #809, Issue #796 - Review Card Pattern - Added review card pattern for displaying review content with quotation icons and consistent formatting - Issue #798, PR #814
Template Parts
- Template Parts Infrastructure - Added
Template_Partsregistration class for auto-discovery and registration of template parts from theparts/directory with proper metadata, i18n support, and area assignment - #809, Issue #796 - Fast Facts Template Parts - Created fast facts template parts for tour, accommodation, and destination single templates with comprehensive information display including duration, price, facilities, location, and quick reference details - #809, Issue #796
fast-facts-tour.html- Tour information including duration, price, group size, booking validity, destinations, travel styles, and enquiry buttonfast-facts-accommodation.html- Accommodation details including rating, number of rooms, facilities, check-in/out times, location, and accommodation typefast-facts-destination.html- Destination overview including country, travel styles, and best time to visit
- Modal Template Parts - Created modal template parts for preview functionality across tour operator post types with customizable content display - #809, Issue #796
modal-tour.html- Tour preview modal with featured image, title, tagline, excerpt, and destinationsmodal-accommodation.html- Accommodation preview modal with featured image, title, tagline, excerpt, location, and facilitiesmodal-destination.html- Destination preview modal with featured image, title, and excerptmodal-enquiry.html- Enquiry form modal placeholder for contact functionality
New Blocks
- Icons Block - Added new icons block for improved icon management and display capabilities - #547, Issue #548
- Banner Cover Block - New block that pulls the image set in the Banner Image custom field for dynamic banner display - #604
- Tagline Block - New block that pulls text from the Tagline custom field for consistent branding - #604
- Sticky Menu Block - Added sticky navigation menu block with desktop and mobile navigation support for single post templates, includes anchor support and section group functionality - #684, Issue #496
- TO Videos Block - Added YouTube video gallery block for displaying videos on tours, accommodation, and destination templates in a professional gallery layout - #598, Issue #397
- Check-in/Checkout Time Icon Blocks - Added icon-based blocks (replacing images) for check-in and checkout times with filters to display only on relevant post types (accommodation) and related templates - #645
- Unit Blocks - Added comprehensive unit blocks functionality with refined assets and WordPress coding standards alignment - #815
Features & Integrations
- Tour Expiration with Action Scheduler - Integrated Action Scheduler to automatically expire tours and set them to draft status. Works with any plugin using Action Scheduler as a vendor including WooCommerce, PublishPress, and Action Scheduler plugin - #490
- Modal Support for Blocks - Added modal functionality support to various blocks for enhanced user interaction - Issue #488
- Related Post Connections - Added CMB2 metaboxes for related post connections to single posts, enabling better content relationships - #596, Issue #595
- Terms Query Block - Allowing the use of the permalink and featured image blocks inside the Terms Query - - #776
Filters & Extensibility
- Core Featured Image Block Integration - Added comprehensive filtering system for core/post-featured-image block to support taxonomy images. New filters:
lsx_to_taxonomy_images_featured_image_id,lsx_to_taxonomy_images_featured_image_size,lsx_to_taxonomy_images_featured_image_attr, andlsx_to_taxonomy_images_featured_image_htmlto enable complete customization of taxonomy-based featured image display with support for term meta 'thumbnail' field - #776 - Destinations Filtering - Added filter
lsx_to_{$key}_include_destinationsto allow disabling of destinations when searching for related content - BH-74 - Facility Block Links Control - Added filter
lsx_to_accommodation_facilities_should_linkto optionally disable facility block links - #608 - Query Block Ordering - Added filter to allow ordering of query blocks by
post__inparameter for custom content ordering - #653, Issue #123 - Travel Information Filters - Added filter
lsx_travel_information_excerpt_lengthto control character length for travel information excerpts - #663 - Travel Information Modal Control - Added filter
lsx_travel_information_modal_enableto optionally disable travel information modal functionality - #663 - Query Loop Arguments - Added filter
lsx_to_query_loop_query_args_{$key}to allow third-party plugins and themes to alter query arguments in Query_Loop class - #675
Enhancements
Template Refactoring
- Complete Template System Modernization - Refactored all archive and single templates to use patterns and template parts instead of hardcoded HTML, enabling full Site Editor customization - Issue #798, PR #814
- Updated
single-tour.htmlwith pattern-based sections (sticky menu, itinerary, gallery, reviews) - Updated
single-accommodation.htmlwith pattern-based layout (units, gallery sections) - Updated
single-destination.htmlwith travel information and gallery patterns - Updated
single-country.htmlandsingle-region.htmltemplates - Updated all archive templates (
archive-tour.html,archive-accommodation.html,archive-destination.html,archive-review.html) - Replaced hardcoded inline styles with WordPress CSS variables (
var(--wp--preset--*)) - Implemented responsive spacing using WordPress spacing scale
- Added placeholder image fallback for posts without featured images
- Improved sticky menu behavior with proper sticky positioning
- Fixed travel information section visibility (hides when no cards are visible)
- Cleaned up queryIDs and local development paths from templates
- Updated
Block System Improvements
- Fast-Facts Meta Display Enhancement - Implemented single-line display for fast-facts and meta data blocks with bold prefixes for improved clarity. Enhanced 20+ blocks including duration, travel styles, accommodation type, check-in/out times, ratings, and language blocks with consistent prefix formatting and responsive layout improvements - #802, Issue #514, Issue #433
- Sticky Menu Mobile UX - Improved mobile user experience by opening the first sect...
2.0.2
Added
- The Itinerary Included and Excluded field handling and block output.
lsx_to_wetu_map_url_paramsfilter to allow 3rd party plugins to change the WETU map attributes and what shows.- Permalink Settings fields, to allow the URL change for Travel Styles, Accommodation Type, and Brands.
- The user can now alter the taxonomy slugs using the "Permalink" settings in WordPress.
Fixed
- Fixed the output of the Special Interests - BH-77
- Drinks Basis labels outputting "Drinks Basis" - BH-80
- The Archive redirects and single redirects now use the correct post type arg parameters to disable the relevant option. #367
- The version number display on the welcome page. - #482
Enhancements Added
lsx_to_wetu_map_url_paramsfilter to allow 3rd party plugins to change the WETU map attributes. 7364e48
- Adding in a "none" option for the "Special Interests" and the "Friendly" custom field selections. edd55f3
Additional
- Removed commented out code.
- Removed unused template tags.
- Changed the label "LSX Tour Operator" to "Tour Operator" in all files.
Security
- Tested with WordPress 6.8.1
Pull Requests
- Content modal update by @krugazul in #480
- 2.0.2 bugfixes 1 by @krugazul in #483
- 2.0.2 - Archive Redirects + Taxonomy Slugs by @krugazul in #484
- 2.0.2 Update by @krugazul in #485
Full Changelog: 2.0.1...2.0.2
2.0.1
What's Changed
- 2.0.1 travel info modals by @krugazul in #465
- Styled and adjusted functionality of the Travel info modals by @ZaredRogers in #467
- 2.0.1 Parents only query args by @krugazul in #466
- 2.0.1 related connection fixes by @krugazul in #476
- 2.0.1 map enhancements by @krugazul in #477
- Commit of Template updates - Google Maps block by @Justinabes007 in #478
- Version 2.0.1 by @krugazul in #479
Full Changelog: here
2.0.0
What's Changed
- Bump wp-coding-standards/wpcs from 2.3.0 to 3.0.0 by @dependabot in #312
- Bump wpackagist-plugin/wordpress-seo from 20.13 to 21.0 by @dependabot in #313
- Bump npm from 9.8.1 to 10.0.0 by @dependabot in #314
- Bump wpackagist-plugin/wordpress-seo from 21.0 to 21.1 by @dependabot in #315
- Bump wp-coding-standards/wpcs from 3.0.0 to 3.0.1 by @dependabot in #316
- Bump wpackagist-plugin/wordpress-seo from 21.1 to 21.2 by @dependabot in #317
- Bump phpunit/phpunit from 8.5.33 to 8.5.34 by @dependabot in #318
- Bump styfle/cancel-workflow-action from 0.11.0 to 0.12.0 by @dependabot in #319
- Bump wpackagist-plugin/wordpress-seo from 21.2 to 21.3 by @dependabot in #320
- Bump wpackagist-plugin/wordpress-seo from 21.3 to 21.4 by @dependabot in #321
- Bump wpackagist-plugin/wordpress-seo from 21.4 to 21.5 by @dependabot in #322
- Bump gulp-autoprefixer from 8.0.0 to 9.0.0 by @dependabot in #323
- Bump mem from 9.0.2 to 10.0.0 by @dependabot in #324
- Bump wpackagist-plugin/wordpress-seo from 21.5 to 21.6 by @dependabot in #325
- Bump phpunit/phpunit from 8.5.34 to 8.5.36 by @dependabot in #326
- Bump actions/stale from 8 to 9 by @dependabot in #327
- Bump styfle/cancel-workflow-action from 0.12.0 to 0.12.1 by @dependabot in #328
- Bump gulp from 4.0.2 to 5.0.0 by @dependabot in #329
- Fixed the multiple select2 box bloat, causing slow pageloads. by @krugazul in #330
- Settings Restructure and Refactoring by @krugazul in #332
- 2.0.0/custom fields by @krugazul in #336
- 2.0.0/custom fields - Additional Fields by @krugazul in #337
- Itinerary Block and Pattern by @krugazul in #340
- Adding in the accommodation unit block and field handling by @krugazul in #341
- Initial Gallery Block by @krugazul in #343
- Bump actions/labeler from 4 to 5 by @dependabot in #408
- 2.0.0 - Post Meta Updates + Price Block Variation by @krugazul in #421
- Create Content Model integration. by @krugazul in #423
- 2.0-Registering-Block-Templates by @ZaredRogers in #427
- Add link capability to Cover block by @ZaredRogers in #428
- 2.0/bug fixes by @krugazul in #429
- 2.0 - block visibility by @krugazul in #430
- 2.0.0 / Bug Fixes + Block Variations Updates by @krugazul in #434
- Meta-field-block-variation-registration by @ZaredRogers in #435
- 2.0.0 Block Updates by @krugazul in #436
- 2.0 WETU map embed block by @krugazul in #437
- Read more block, visibility fixes and slider trigger by @krugazul in #438
- Registering query loop variations by @ZaredRogers in #439
- 431 query loop variations arguments by @krugazul in #440
- Fixing the Travel info read more. by @krugazul in #441
- 2.0 Beta 1 by @krugazul in #442
- Beta 2 bugfixes by @krugazul in #445
- Beta 2 bugfixes 2 by @krugazul in #446
- Beta 2 bugfixes 3 by @krugazul in #447
- Bump gulp-sass from 5.1.0 to 6.0.0 by @dependabot in #448
- Beta 2 - Bugfixes Round 3 by @krugazul in #450
- 2.0 Beta 2 by @krugazul in #451
- 2.0 beta 3 enhancements 1 by @krugazul in #452
- Commit of LightBox fixes by @Justinabes007 in #453
- Pattern + Block Updates by @krugazul in #454
- 2.0 code cleanup by @krugazul in #456
- TO - Additional Info Read More JS by @Justinabes007 in #457
- Collapsible Sections by @Justinabes007 in #455
- Bump npm from 10.9.2 to 11.0.0 by @dependabot in #459
- Travel Information Slider by @Justinabes007 in #458
- Dashicons - Custom Icons for Custom Blocks by @Justinabes007 in #460
- Collapsible sections by @krugazul in #461
- PHPCS Fixes and Collapsable section updates. by @krugazul in #462
- Template updates for Tour Operator Plugin by @Justinabes007 in #463
- 2.0.0 by @krugazul in #464
New Contributors
- @ZaredRogers made their first contribution in #427
- @Justinabes007 made their first contribution in #453
Full Changelog: 1.4.9...2.0.0
2.0 Beta 2
Description
The following PR were concluded to close off Bugherd and Issues list in the Tour Operator Project.
Pull Requests
- Fixing the breadcrumbs - BH 62,72,55
- Updating the Read more Javascript with the Read Less text
- Fixing the Special Interesets Wrapper
- Adding in a function to load the block tempalte only when its a block
- Making sure the trashed items are not used, BH 64,BH 77, BH 63
- Moving the render block function
- Updating the visibility for the featured and related blocks - #431
- Fixing the output of the tour custom field blocks.
- Fixing the price includes and excludes innerBlock Structure
- Fixing the display of the currencies 97
- Fixing the php warnings
- Updating the description if there is an empty departure day
- Updating the Price filters to work on the single supplement as well BH 92.
- Fixing the layout of the facilities BH-68
- Fixing the rating image BH-51
- Fixing the itinerary Image not showing. BH-45
- Fixing the target issues #342
- Fixing the gallery images BH-56
- Fixing the drinks and room basis fields BH-87
- Removing the unused frontend functions
-
- Layout Functions
-
- Compatability checks for LSX
-
- Template Tags
- Registered the Images sizes via the plugin #392
- Added in the itinerary read more #338
- Last of the meta field updates #424
- Adding in the gallery pattern with the wrapper CSS to achieve the block visibility 48ca233ee
- Fixing the currency display for the accommodation and tour cards.
- Fixing the currency display of the Accommodation Units.
Summary by CodeRabbit
- New Feature: Introduced a new block template for a gallery in the Tour Operator project, enhancing image display within a gallery wrapper.
- Refactor: Streamlined CSS by removing unused code and updating class names for better styling. Improved HTML structure for displaying accommodation facilities.
- Refactor: Updated block variations with new icons, categories, and attributes. Enhanced robustness by adding conditional checks before function calls.
- Refactor: Modified currency retrieval logic and rating display in the
price_filterandratingfunctions. Removed redundant arrays from theTourclass. - Refactor: Updated options for "Drinks Basis" and "Room Basis" fields in itinerary settings.
- Chore: Removed build script commands and redundant lines of code in the
add_tagline_form_fieldfunction. - Style: Removed LSX Customizer integration code related to color schemes, impacting color customization for LSX Tour Operator.
- Documentation: Updated plugin metadata such as contributors, tested version, and stable tag.
What's Changed
- Updating the version number for WP 6.3 release by @krugazul in #309
- Fixing the Single Specials "read more" spacing. by @krugazul in #310
- Fixed the multiple select2 box bloat, causing slow pageloads. by @krugazul in #330
- Bump actions/labeler from 4 to 5 by @dependabot in #408
- 2.0 Beta 1 by @krugazul in #442
- Beta 2 bugfixes by @krugazul in #445
- Beta 2 bugfixes 2 by @krugazul in #446
- Beta 2 bugfixes 3 by @krugazul in #447
- Bump gulp-sass from 5.1.0 to 6.0.0 by @dependabot in #448
- Beta 2 - Bugfixes Round 3 by @krugazul in #450
- 2.0 Beta 2 by @krugazul in #451
Full Changelog: 2.0-beta-1...2.0-beta-2
2.0 Beta 1
Changelog for Tour Operator Plugin v2.0.0 Beta 1
Description
The following release marks the first block-based version of the plugin, introducing a wide range of custom blocks and block variations for Tours, Accommodation, and Destinations post types. This release also includes significant improvements to the block editor experience, frontend functionality, and admin settings. Key highlights include:
- Block visibility controls to hide empty custom fields.
- New block variations for custom fields across all post types.
- Enhanced settings side panels for improved editing workflows.
- Functional updates such as clickable cover blocks, Wetu map embeds, and currency labels on all templates.
- Comprehensive query loop variations for featured and related content.
Issues Closed
Block Visibility #372
- Added block variations for:
- Tours:
- price, duration, travel-style, destination-to-tour, departs-from, ends-in, gallery, itinerary, single-supplement, group-size, best-time-to-visit, booking-validity-start, included, not-included
- Accommodation:
- price, rating, number-of-rooms, check-in-time, check-out-time, minimum-child-age, destination-to-accommodation, spoken-languages, travel-style, accommodation-type, suggested-visitor-types, special-interests, gallery, rooms, included, not-included, facilities, single-supplement
- Destinations:
- travel-style, best-time-to-visit, electricity, banking, cuisine, climate, transport, dress, health, safety, visa, general, gallery
- Tours:
PRs:
- Bug Fixes + Block Variations Updates #434
- Block Visibility #430
- Meta-field Block Variation Registration #435
Backend - Block Options #349
- Generate a settings side panel for:
- General Settings:
- Disable Singles, Price, Single Supplement, Duration
- Custom Fields:
- Spoken Languages, Special Interests, Friendly, Best Time to Visit, Sticky Posts
- General Settings:
PRs:
Display Currency Label on all Templates #376
- Display currency label next to all price fields across post type archives and single templates.
PR:
Setting Featured Image on Custom Taxonomies Not Working #419
- Fixed issues with setting featured images for Accommodation Types, Travel Styles, and Continents.
PR:
Wetu Map Embed Block #365
- Added a block to embed Wetu maps in the Single Tour template.
PR:
Frontend - Block Functions #353
- Added block visibility controls and CSS classes for hiding empty custom fields.
- Implemented filters for itinerary, images, price, and location formatting.
PR:
Wetu Importer - Settings #173
- Simplified settings options, updated styling, and added controls for image sizing and sync options.
Clickable Cover Block Variation #422
- Created a block variation for WordPress Cover block to make the entire block clickable.
PR:
Pull Requests from ongoing Issues
- Read More Block, Visibility Fixes, and Slider Trigger #438
- Added a More Button variation (frontend JS requires work).
- Included/Excluded - Block Visibility #372.
- Query Loop slider panel with checkbox (CSS adjustments needed).
- Bugherd fixes for itinerary visibility, gallery, connections list, unit images, and facility visibility.
- Fixing Travel Info Read More #441
- Resolved issues with the read more functionality in Travel Itineraries.
- Query Loop Variations Arguments #440
- Added query arguments for featured and related variations.
- Adjusted block slugs for various query loops.
- Registering Query Loop Variations #439
- Added query loops for featured and related content blocks.
- Bug Fixes + Block Variations Updates #434
- Consolidated block renders, reverted currency icon styles, fixed term lists in the editor, and started Top Rated Destinations variation.
1.4.9
1.4.8
1.4.7
Added
- A parameter to the
to_banner_navigationshortcode to allow changing the element selector. - A filter to allowing the overwritting of the
banner_navigationshortcode.to_banner_navigation_atts - Added in an option to switch the itinerary to the destination images instead of the accommodation images.
- A filter to allow the use of destination pins in the map, for rail and boat tours.
lsx_to_get_itinerary_ids_meta_key - A function to allow you to include the parent images in the itinerary pool.
lsx_to_itinerary_append_parent_destinations
Fixed
- The banner easing navigation.
- The output of the Mobile Tours destinations.
- A fatal error with maps outputting on the travel style archives.
Security
- General testing to ensure compatibility with latest WordPress version (6.1.1).