Skip to content

Commit 32ab6b7

Browse files
authored
feat: Complete Template Refactoring with Patterns, Template Parts, and WordPress Design Tokens (#814)
* Add quotation icon for reviews * Add new pattern for review cards * Make sure template-parts are registered for the current theme * Use wp variable names for colors * Fix sticky menu colors * Add sticky behaviour to sticky menu * Refactor single tour template with patterns and template parts * Remove border-radius from card images * Remove section wrapper from travel-information, keep just the content cards * Refactor single destination template with patterns and template parts * Remove fallback values, they were breaking the editor rendering * Don't hide itinerary and units field if they exist * Show placeholder image if not featured image is set * Update placeholder path * Hide travel information section when no card is visible * Fix spacings in single destination, refactor country and region singles * Refactor single accommodation template with patterns and template parts * Show price info only when price set and different than 0 * Add better defaults, fix variables * Refactor archive templates with patterns and template parts * Remove sticky header, use defaults * Remove queryIDs and local paths * Remove the search page template as it was not working * Update changelog * Remove debug logging from template parts registration and creation * Remove registration of deleted template * Implement coderabbit feedback * Update changelog * Minor fixes * Fix caret's position on expand * Add missing wrapper classes, fix html tag * Remove trailing space and duplicate css class
1 parent 7148c78 commit 32ab6b7

37 files changed

+1177
-2937
lines changed

build/blocks/icons/index.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '727a3fe22556bd2d666b');
1+
<?php return array('dependencies' => array('react', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => 'd9fe694a87a741e153ac');

build/blocks/icons/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/blocks/sticky-menu/block.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,30 @@
3535
"menuItems": {
3636
"type": "array",
3737
"default": []
38+
},
39+
"activeBackgroundColor": {
40+
"type": "string"
41+
},
42+
"customActiveBackgroundColor": {
43+
"type": "string"
44+
},
45+
"activeTextColor": {
46+
"type": "string"
47+
},
48+
"customActiveTextColor": {
49+
"type": "string"
50+
},
51+
"hoverBackgroundColor": {
52+
"type": "string"
53+
},
54+
"customHoverBackgroundColor": {
55+
"type": "string"
56+
},
57+
"hoverTextColor": {
58+
"type": "string"
59+
},
60+
"customHoverTextColor": {
61+
"type": "string"
3862
}
3963
},
4064
"textdomain": "tour-operator",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '885677a62f42945e8b69');
1+
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '13d96dfe8887ae4aa73f');

build/blocks/sticky-menu/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)