Skip to content

Commit b2f55f1

Browse files
committed
Standardize accommodation block titles and descriptions for consistency, replace image icon with block icon
1 parent 8de4e9a commit b2f55f1

8 files changed

Lines changed: 66 additions & 64 deletions

File tree

src/blocks/accommodation-related-accommodation/block.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"apiVersion": 3,
44
"textdomain": "tour-operator",
55
"name": "lsx-tour-operator/accommodation-related-accommodation",
6-
"title": "Related Accommodation - Accommodation",
6+
"title": "Related accommodation - accommodation",
77
"category": "lsx-tour-operator",
88
"editorScript": "file:index.js",
99
"description": "Displays other accommodation in the area.",
@@ -16,7 +16,7 @@
1616
"example": {
1717
"attributes": {
1818
"metadata": {
19-
"name": "Related Accommodation"
19+
"name": "Related accommodation"
2020
}
2121
},
2222
"innerBlocks": [
@@ -27,7 +27,7 @@
2727
[
2828
"core/heading",
2929
{
30-
"content": "Related Accommodation",
30+
"content": "Related accommodation",
3131
"textAlign": "center"
3232
}
3333
],

src/blocks/accommodation-related-accommodation/index.js

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
wp.domReady( () => {
2+
const { __ } = wp.i18n;
23
wp.blocks.registerBlockVariation( 'core/group', {
34
name: 'lsx-tour-operator/accommodation-related-accommodation',
4-
title: 'Related Accommodation - Accommodation',
5+
title: __( 'Related accommodation - accommodation', 'tour-operator' ),
56
icon: 'admin-multisite',
6-
description: 'Displays other accommodation in the area.',
7+
description: __( 'Displays other accommodation in the area.', 'tour-operator' ),
78
category: 'lsx-tour-operator',
89
attributes: {
910
metadata: {
10-
name: 'Related Accommodation - Accommodation',
11+
name: __( 'Related accommodation - accommodation', 'tour-operator' ),
1112
},
1213
className: 'lsx-accommodation-related-accommodation-query-wrapper',
1314
align: 'full',
@@ -36,7 +37,7 @@ wp.domReady( () => {
3637
'core/heading',
3738
{
3839
textAlign: 'center',
39-
content: 'Related Accommodation',
40+
content: __( 'Related Accommodation', 'tour-operator' ),
4041
},
4142
],
4243
[
@@ -57,7 +58,7 @@ wp.domReady( () => {
5758
'core/query',
5859
{
5960
metadata: {
60-
name: 'Related Accommodation Query',
61+
name: __( 'Related Accommodation Query', 'tour-operator' ),
6162
},
6263
query: {
6364
perPage: 8,
@@ -98,7 +99,7 @@ wp.domReady( () => {
9899
example: {
99100
attributes: {
100101
metadata: {
101-
name: 'Related Accommodation',
102+
name: __( 'Related Accommodation', 'tour-operator' ),
102103
},
103104
},
104105
innerBlocks: [
@@ -109,7 +110,7 @@ wp.domReady( () => {
109110
[
110111
'core/heading',
111112
{
112-
content: 'Related Accommodation',
113+
content: __( 'Related Accommodation', 'tour-operator' ),
113114
textAlign: 'center',
114115
},
115116
],
@@ -142,8 +143,8 @@ wp.domReady( () => {
142143
}
143144
},
144145
[
145-
[ 'core/heading', { content: 'Luxury Beach Resort', level: 3 } ],
146-
[ 'core/paragraph', { content: 'Experience ultimate comfort at our beachfront resort with stunning ocean views and world-class amenities.' } ]
146+
[ 'core/heading', { content: __( 'Luxury Beach Resort', 'tour-operator' ), level: 3 } ],
147+
[ 'core/paragraph', { content: __( 'Experience ultimate comfort at our beachfront resort with stunning ocean views and world-class amenities.', 'tour-operator' ) } ]
147148
]
148149
],
149150
[
@@ -161,8 +162,8 @@ wp.domReady( () => {
161162
}
162163
},
163164
[
164-
[ 'core/heading', { content: 'Mountain Lodge', level: 3 } ],
165-
[ 'core/paragraph', { content: 'Cozy mountain retreat perfect for nature lovers seeking tranquility and adventure in the wilderness.' } ]
165+
[ 'core/heading', { content: __( 'Mountain Lodge', 'tour-operator' ), level: 3 } ],
166+
[ 'core/paragraph', { content: __( 'Cozy mountain retreat perfect for nature lovers seeking tranquility and adventure in the wilderness.', 'tour-operator' ) } ]
166167
]
167168
],
168169
[
@@ -180,8 +181,8 @@ wp.domReady( () => {
180181
}
181182
},
182183
[
183-
[ 'core/heading', { content: 'City Center Hotel', level: 3 } ],
184-
[ 'core/paragraph', { content: 'Modern urban accommodation in the heart of the city with easy access to attractions and dining.' } ]
184+
[ 'core/heading', { content: __( 'City Center Hotel', 'tour-operator' ), level: 3 } ],
185+
[ 'core/paragraph', { content: __( 'Modern urban accommodation in the heart of the city with easy access to attractions and dining.', 'tour-operator' ) } ]
185186
]
186187
]
187188
]

src/blocks/accommodation-related-destination/block.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"apiVersion": 3,
44
"textdomain": "tour-operator",
55
"name": "lsx-tour-operator/accommodation-related-destination",
6-
"title": "Related Accommodation - Destination",
6+
"title": "Related accommodation - destination",
77
"category": "lsx-tour-operator",
88
"editorScript": "file:index.js",
9-
"description": "Displays Accommodation related to a Destination.",
9+
"description": "Displays accommodation related to a destination.",
1010
"icon": "admin-site",
1111
"keywords": [
1212
"related",
@@ -16,7 +16,7 @@
1616
"example": {
1717
"attributes": {
1818
"metadata": {
19-
"name": "Related Accommodation - Destination"
19+
"name": "Related accommodation - destination"
2020
}
2121
},
2222
"innerBlocks": [
@@ -27,7 +27,7 @@
2727
[
2828
"core/heading",
2929
{
30-
"content": "Related Destinations",
30+
"content": "Related destinations",
3131
"textAlign": "center"
3232
}
3333
],

src/blocks/accommodation-related-destination/index.js

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
wp.domReady( () => {
2+
const { __ } = wp.i18n;
23
wp.blocks.registerBlockVariation( 'core/group', {
34
name: 'lsx-tour-operator/accommodation-related-destination',
4-
title: 'Related Accommodation - Destination',
5+
title: __( 'Related accommodation - destination', 'tour-operator' ),
56
icon: 'admin-site',
6-
description: 'Displays Accommodation related to a Destination.',
7+
description: __( 'Displays accommodation related to a destination.', 'tour-operator' ),
78
category: 'lsx-tour-operator',
89
attributes: {
910
metadata: {
10-
name: 'Related Accommodation - Destination',
11+
name: __( 'Related accommodation - destination', 'tour-operator' ),
1112
},
1213
className: 'lsx-accommodation-related-destination-query-wrapper',
1314
align: 'full',
@@ -36,7 +37,7 @@ wp.domReady( () => {
3637
'core/heading',
3738
{
3839
textAlign: 'center',
39-
content: 'Related Accommodation',
40+
content: __( 'Related accommodation', 'tour-operator' ),
4041
},
4142
],
4243
[
@@ -57,7 +58,7 @@ wp.domReady( () => {
5758
'core/query',
5859
{
5960
metadata: {
60-
name: 'Related Accommodation Query',
61+
name: __( 'Related accommodation query', 'tour-operator' ),
6162
},
6263
query: {
6364
perPage: 8,
@@ -98,7 +99,7 @@ wp.domReady( () => {
9899
example: {
99100
attributes: {
100101
metadata: {
101-
name: 'Related Accommodation - Destination',
102+
name: __( 'Related accommodation - destination', 'tour-operator' ),
102103
},
103104
},
104105
innerBlocks: [
@@ -109,7 +110,7 @@ wp.domReady( () => {
109110
[
110111
'core/heading',
111112
{
112-
content: 'Related Destinations',
113+
content: __( 'Related destinations', 'tour-operator' ),
113114
textAlign: 'center',
114115
},
115116
],
@@ -142,8 +143,8 @@ wp.domReady( () => {
142143
}
143144
},
144145
[
145-
[ 'core/heading', { content: 'Kruger National Park', level: 3 } ],
146-
[ 'core/paragraph', { content: 'Premier wildlife destination offering exceptional safari experiences and diverse ecosystems.' } ]
146+
[ 'core/heading', { content: __( 'Kruger National Park', 'tour-operator' ), level: 3 } ],
147+
[ 'core/paragraph', { content: __( 'Premier wildlife destination offering exceptional safari experiences and diverse ecosystems.', 'tour-operator' ) } ]
147148
]
148149
],
149150
[
@@ -161,8 +162,8 @@ wp.domReady( () => {
161162
}
162163
},
163164
[
164-
[ 'core/heading', { content: 'Garden Route', level: 3 } ],
165-
[ 'core/paragraph', { content: 'Scenic coastal route with stunning landscapes, charming towns, and outdoor adventures.' } ]
165+
[ 'core/heading', { content: __( 'Garden Route', 'tour-operator' ), level: 3 } ],
166+
[ 'core/paragraph', { content: __( 'Scenic coastal route with stunning landscapes, charming towns, and outdoor adventures.', 'tour-operator' ) } ]
166167
]
167168
],
168169
[
@@ -180,8 +181,8 @@ wp.domReady( () => {
180181
}
181182
},
182183
[
183-
[ 'core/heading', { content: 'Drakensberg Mountains', level: 3 } ],
184-
[ 'core/paragraph', { content: 'Majestic mountain range perfect for hiking, culture, and breathtaking scenery.' } ]
184+
[ 'core/heading', { content: __( 'Drakensberg Mountains', 'tour-operator' ), level: 3 } ],
185+
[ 'core/paragraph', { content: __( 'Majestic mountain range perfect for hiking, culture, and breathtaking scenery.', 'tour-operator' ) } ]
185186
]
186187
]
187188
]

src/blocks/accommodation-related-tour/block.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"apiVersion": 3,
44
"textdomain": "tour-operator",
55
"name": "lsx-tour-operator/accommodation-related-tour",
6-
"title": "Related Accommodation - Tour",
6+
"title": "Related accommodation - tour",
77
"category": "lsx-tour-operator",
88
"editorScript": "file:index.js",
9-
"description": "Displays Accommodation related to this Tour via the destinations.",
9+
"description": "Displays accommodation related to this tour via the destinations.",
1010
"icon": "palmtree",
1111
"keywords": [
1212
"related",
@@ -16,7 +16,7 @@
1616
"example": {
1717
"attributes": {
1818
"metadata": {
19-
"name": "Related Tours"
19+
"name": "Related tours"
2020
}
2121
},
2222
"innerBlocks": [
@@ -27,7 +27,7 @@
2727
[
2828
"core/heading",
2929
{
30-
"content": "Related Tours",
30+
"content": "Related tours",
3131
"textAlign": "center"
3232
}
3333
],

src/blocks/accommodation-related-tour/index.js

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
wp.domReady(() => {
2+
const { __ } = wp.i18n;
23
wp.blocks.registerBlockVariation('core/group', {
34
name: 'lsx-tour-operator/accommodation-related-tour',
4-
title: 'Related Accommodation - Tour',
5+
title: __( 'Related accommodation - tour', 'tour-operator' ),
56
icon: 'palmtree',
6-
description: 'Displays Accommodation related to this Tour via the destinations.',
7+
description: __( 'Displays accommodation related to this tour via the destinations.', 'tour-operator' ),
78
category: 'lsx-tour-operator',
89
attributes: {
910
metadata: {
10-
name: 'Related Accommodation - Tour',
11+
name: __( 'Related accommodation - tour', 'tour-operator' ),
1112
},
1213
className: 'lsx-accommodation-related-tour-query-wrapper',
1314
align: 'full',
@@ -36,7 +37,7 @@ wp.domReady(() => {
3637
'core/heading',
3738
{
3839
textAlign: 'center',
39-
content: 'Related Accommodation',
40+
content: __( 'Related accommodation', 'tour-operator' ),
4041
},
4142
],
4243
[
@@ -57,7 +58,7 @@ wp.domReady(() => {
5758
'core/query',
5859
{
5960
metadata: {
60-
name: 'Related Accommodation Query',
61+
name: __( 'Related accommodation query', 'tour-operator' ),
6162
},
6263
query: {
6364
perPage: 8,
@@ -98,7 +99,7 @@ wp.domReady(() => {
9899
example: {
99100
attributes: {
100101
metadata: {
101-
name: 'Related Tours',
102+
name: __( 'Related tours', 'tour-operator' ),
102103
},
103104
},
104105
innerBlocks: [
@@ -109,7 +110,7 @@ wp.domReady(() => {
109110
[
110111
'core/heading',
111112
{
112-
content: 'Related Tours',
113+
content: __( 'Related tours', 'tour-operator' ),
113114
textAlign: 'center',
114115
},
115116
],
@@ -142,8 +143,8 @@ wp.domReady(() => {
142143
},
143144
},
144145
[
145-
['core/heading', { content: 'African Safari Adventure', level: 3 }],
146-
['core/paragraph', { content: "Embark on an unforgettable 7-day safari experience through Kenya's most spectacular wildlife reserves." }],
146+
['core/heading', { content: __( 'African Safari Adventure', 'tour-operator' ), level: 3 }],
147+
['core/paragraph', { content: __( "Embark on an unforgettable 7-day safari experience through Kenya's most spectacular wildlife reserves.", 'tour-operator' ) }],
147148
],
148149
],
149150
[
@@ -161,8 +162,8 @@ wp.domReady(() => {
161162
},
162163
},
163164
[
164-
['core/heading', { content: 'European Cultural Journey', level: 3 }],
165-
['core/paragraph', { content: 'Discover the rich history and culture of Europe with visits to iconic cities and historic landmarks.' }],
165+
['core/heading', { content: __( 'European Cultural Journey', 'tour-operator' ), level: 3 }],
166+
['core/paragraph', { content: __( 'Discover the rich history and culture of Europe with visits to iconic cities and historic landmarks.', 'tour-operator' ) }],
166167
],
167168
],
168169
[
@@ -180,8 +181,8 @@ wp.domReady(() => {
180181
},
181182
},
182183
[
183-
['core/heading', { content: 'Tropical Island Escape', level: 3 }],
184-
['core/paragraph', { content: 'Relax and unwind on pristine beaches with crystal clear waters and vibrant coral reefs.' }],
184+
['core/heading', { content: __( 'Tropical Island Escape', 'tour-operator' ), level: 3 }],
185+
['core/paragraph', { content: __( 'Relax and unwind on pristine beaches with crystal clear waters and vibrant coral reefs.', 'tour-operator' ) }],
185186
],
186187
],
187188
],

src/blocks/accommodation-type/block.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"apiVersion": 3,
44
"textdomain": "tour-operator",
55
"name": "lsx-tour-operator/accommodation-type",
6-
"title": "Accommodation Type",
6+
"title": "Accommodation type",
77
"category": "lsx-tour-operator",
88
"editorScript": "file:index.js",
99
"description": "Display accommodation type and category information.",
@@ -16,7 +16,7 @@
1616
"example": {
1717
"attributes": {
1818
"metadata": {
19-
"name": "Accommodation Type"
19+
"name": "Accommodation type"
2020
}
2121
},
2222
"innerBlocks": [
@@ -27,7 +27,7 @@
2727
[
2828
"core/heading",
2929
{
30-
"content": "Accommodation Type",
30+
"content": "Accommodation type",
3131
"level": 3
3232
}
3333
],

0 commit comments

Comments
 (0)