Skip to content

Commit 0e414f1

Browse files
tibiiikrugazul
andauthored
Enhance check-in and check-out blocks with meta and post types (#645)
* Enhance check-in and check-out blocks with descriptions, examples, and improved registration logic * Update check-in and check-out time content to reflect correct times * Fix check-in time block variation description and update version number * Fixing the incorrect content Model path for the vendor. * Adding in the phpcs ignore. * Improve registration logic to show in accommodation related templates as well * Localise all strings * Update changelog with recent feature additions Added icon block icons for checkin/checkout times and a filter for relevant post types. Updated changelog with recent changes and integrations. Signed-off-by: Tibi Buzdugan <buzdugan.tiberiu@gmail.com> --------- Signed-off-by: Tibi Buzdugan <buzdugan.tiberiu@gmail.com> Co-authored-by: Warwick <krugazul@gmail.com>
1 parent 7cc0a02 commit 0e414f1

File tree

12 files changed

+889
-143
lines changed

12 files changed

+889
-143
lines changed
Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,44 @@
11
{
22
"$schema": "https://schemas.wp.org/trunk/block.json",
33
"apiVersion": 3,
4+
"textdomain": "tour-operator",
45
"name": "lsx-tour-operator/checkin-time",
56
"title": "Check In Time",
67
"category": "lsx-tour-operator",
7-
"editorScript": "file:index.js"
8+
"editorScript": "file:index.js",
9+
"description": "Show accommodation check-in time and procedures.",
10+
"icon": "clock",
11+
"keywords": [
12+
"checkin",
13+
"time",
14+
"arrival"
15+
],
16+
"example": {
17+
"attributes": {
18+
"metadata": {
19+
"name": "Check In Time"
20+
}
21+
},
22+
"innerBlocks": [
23+
[
24+
"core/group",
25+
{},
26+
[
27+
[
28+
"core/heading",
29+
{
30+
"content": "Check In Time",
31+
"level": 3
32+
}
33+
],
34+
[
35+
"core/paragraph",
36+
{
37+
"content": "11:00 AM"
38+
}
39+
]
40+
]
41+
]
42+
]
43+
}
844
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array(), 'version' => '406ed9016c7d326389a3');
1+
<?php return array('dependencies' => array('wp-i18n'), 'version' => '3482e7fb705aff9b948a');

build/blocks/checkin-time/index.js

Lines changed: 216 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,44 @@
11
{
22
"$schema": "https://schemas.wp.org/trunk/block.json",
33
"apiVersion": 3,
4+
"textdomain": "tour-operator",
45
"name": "lsx-tour-operator/checkout-time",
56
"title": "Check Out Time",
67
"category": "lsx-tour-operator",
7-
"editorScript": "file:index.js"
8+
"editorScript": "file:index.js",
9+
"description": "Show accommodation check-out time and procedures.",
10+
"icon": "clock",
11+
"keywords": [
12+
"checkout",
13+
"time",
14+
"departure"
15+
],
16+
"example": {
17+
"attributes": {
18+
"metadata": {
19+
"name": "Check Out Time"
20+
}
21+
},
22+
"innerBlocks": [
23+
[
24+
"core/group",
25+
{},
26+
[
27+
[
28+
"core/heading",
29+
{
30+
"content": "Check Out Time",
31+
"level": 3
32+
}
33+
],
34+
[
35+
"core/paragraph",
36+
{
37+
"content": "3:00 PM"
38+
}
39+
]
40+
]
41+
]
42+
]
43+
}
844
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array(), 'version' => '4601e6fbbe46cdc44d44');
1+
<?php return array('dependencies' => array('wp-i18n'), 'version' => '83eae5d69a3519ae7fbc');

0 commit comments

Comments
 (0)