Skip to content

Commit

Permalink
Registered templates for Tour, Accommodation and Destionation post-ty…
Browse files Browse the repository at this point in the history
…pes, as well as some generic ones.
  • Loading branch information
ZaredRogers committed Oct 24, 2024
1 parent cf69e08 commit 0e8eae8
Show file tree
Hide file tree
Showing 14 changed files with 2,820 additions and 3 deletions.
65 changes: 65 additions & 0 deletions includes/classes/blocks/class-templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public function register_post_type_templates() {
* The slugs of the built in post types we are using.
*/
$post_types = [

Check warning on line 40 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L40

Short array syntax is not allowed. (Universal.Arrays.DisallowShortArraySyntax-[fixable])
// accommodation

Check warning on line 41 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L41

Short array syntax is not allowed. (Universal.Arrays.DisallowShortArraySyntax-[fixable])

Check warning on line 41 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L41

Inline comments must end in full-stops, exclamation marks, or question marks. (Squiz.Commenting.InlineComment)
'accommodation' => [

Check warning on line 42 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L42

Short array syntax is not allowed. (Universal.Arrays.DisallowShortArraySyntax-[fixable])
'single' => [
'title' => __( 'Single Accommodations', 'tour-operator' ),

Check notice on line 44 in includes/classes/blocks/class-templates.php

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

includes/classes/blocks/class-templates.php#L44

Line indented incorrectly; expected at least 8 spaces, found 5
Expand All @@ -49,7 +50,27 @@ public function register_post_type_templates() {
],
],

Check warning on line 51 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L51

No space found before comment text; expected "// 'destination'," but found "//'destination',". (Squiz.Commenting.InlineComment-[fixable])
//'destination',

Check warning on line 52 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L52

No space found before comment text; expected "// 'tour'," but found "//'tour',". (Squiz.Commenting.InlineComment-[fixable])
'destination' => [

Check warning on line 53 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L53

Short array syntax is not allowed. (Universal.Arrays.DisallowShortArraySyntax-[fixable])

Check notice on line 53 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L53

Array double arrow not aligned correctly; expected 3 space(s) between "'destination'" and double arrow, but found 1. (WordPress.Arrays.MultipleStatementAlignment-[fixable])
'single' => [

Check warning on line 54 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L54

Short array syntax is not allowed. (Universal.Arrays.DisallowShortArraySyntax-[fixable])
'title' => __( 'Single Destination', 'tour-operator' ),

Check warning on line 55 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L55

Expected 0 spaces before closing bracket; 1 found. (Squiz.WhiteSpace.ControlStructureSpacing-[fixable])

Check warning on line 55 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L55

Expected 0 spaces after opening bracket; 1 found. (Squiz.WhiteSpace.ControlStructureSpacing-[fixable])
'description' => __( 'Displays a single destination', 'tour-operator' ),

Check warning on line 56 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L56

Opening parenthesis of a multi-line function call must be the last content on the line. (PEAR.Functions.FunctionCallSignature-[fixable])

Check warning on line 56 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L56

Only one argument is allowed per line in a multi-line function call. (PEAR.Functions.FunctionCallSignature-[fixable])

Check warning on line 56 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L56

Short array syntax is not allowed. (Universal.Arrays.DisallowShortArraySyntax-[fixable])
],
'archive' => [

Check warning on line 58 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L58

Short array syntax is not allowed. (Universal.Arrays.DisallowShortArraySyntax-[fixable])
'title' => __( 'Destination Archive', 'tour-operator' ),
'description' => __( 'Displays all the destinations.', 'tour-operator' ),

Check warning on line 60 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L60

There should be a comma after the last array item in a multi-line array. (NormalizedArrays.Arrays.CommaAfterLast-[fixable])

Check warning on line 60 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L60

Short array syntax is not allowed. (Universal.Arrays.DisallowShortArraySyntax-[fixable])
],

Check warning on line 61 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L61

Closing parenthesis of a multi-line function call must be on a line by itself. (PEAR.Functions.FunctionCallSignature-[fixable])
],
//'tour',

Check warning on line 63 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L63

Short array syntax is not allowed. (Universal.Arrays.DisallowShortArraySyntax-[fixable])

Check warning on line 63 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L63

Only one argument is allowed per line in a multi-line function call. (PEAR.Functions.FunctionCallSignature-[fixable])

Check warning on line 63 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L63

Opening parenthesis of a multi-line function call must be the last content on the line. (PEAR.Functions.FunctionCallSignature-[fixable])
'tour' => [

Check warning on line 64 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L64

Short array syntax is not allowed. (Universal.Arrays.DisallowShortArraySyntax-[fixable])

Check notice on line 64 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L64

Array double arrow not aligned correctly; expected 10 space(s) between "'tour'" and double arrow, but found 1. (WordPress.Arrays.MultipleStatementAlignment-[fixable])
'single' => [

Check warning on line 65 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L65

Short array syntax is not allowed. (Universal.Arrays.DisallowShortArraySyntax-[fixable])
'title' => __( 'Single Tour', 'tour-operator' ),
'description' => __( 'Displays a single tour', 'tour-operator' ),

Check warning on line 67 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L67

Short array syntax is not allowed. (Universal.Arrays.DisallowShortArraySyntax-[fixable])

Check warning on line 67 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L67

There should be a comma after the last array item in a multi-line array. (NormalizedArrays.Arrays.CommaAfterLast-[fixable])
],

Check warning on line 68 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L68

Closing parenthesis of a multi-line function call must be on a line by itself. (PEAR.Functions.FunctionCallSignature-[fixable])
'archive' => [

Check warning on line 69 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L69

Short array syntax is not allowed. (Universal.Arrays.DisallowShortArraySyntax-[fixable])
'title' => __( 'Accommodation Archive', 'tour-operator' ),

Check warning on line 70 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L70

Expected 1 blank line before closing function brace; 0 found. (Squiz.WhiteSpace.FunctionClosingBraceSpace-[fixable])

Check warning on line 70 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L70

Expected 2 blank lines after function; 1 found. (Squiz.WhiteSpace.FunctionSpacing-[fixable])
'description' => __( 'Displays all the tours.', 'tour-operator' ),
],
],
];

Check warning on line 75 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L75

Missing parameter comment. (Squiz.Commenting.FunctionComment)
foreach ( $post_types as $key => $labels ) {

Check warning on line 76 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L76

Function return type is void, but function contains return statement. (Squiz.Commenting.FunctionComment)
Expand All @@ -67,6 +88,50 @@ public function register_post_type_templates() {
'post_types' => [ $key ]
] );
}

register_block_template( 'lsx-tour-operator//search-results', [

Check warning on line 92 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L92

Short array syntax is not allowed. (Universal.Arrays.DisallowShortArraySyntax-[fixable])

Check warning on line 92 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L92

Opening parenthesis of a multi-line function call must be the last content on the line. (PEAR.Functions.FunctionCallSignature-[fixable])

Check warning on line 92 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L92

Only one argument is allowed per line in a multi-line function call. (PEAR.Functions.FunctionCallSignature-[fixable])
'title' => __( 'Search Results', 'tour-operator' ),
'description' => __( 'Displays when a visitor performs a search on your website.', 'tour-operator' ),
'content' => $this->get_template_content( 'search-results.html' ),
] );

Check warning on line 96 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L96

Closing parenthesis of a multi-line function call must be on a line by itself. (PEAR.Functions.FunctionCallSignature-[fixable])

register_block_template( 'lsx-tour-operator//index', [

Check warning on line 98 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L98

Opening parenthesis of a multi-line function call must be the last content on the line. (PEAR.Functions.FunctionCallSignature-[fixable])

Check warning on line 98 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L98

Only one argument is allowed per line in a multi-line function call. (PEAR.Functions.FunctionCallSignature-[fixable])

Check warning on line 98 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L98

Short array syntax is not allowed. (Universal.Arrays.DisallowShortArraySyntax-[fixable])
'title' => __( 'Index', 'tour-operator' ),
'description' => __( 'Used as a fallback template for all pages when a more specific template is not defined.', 'tour-operator' ),
'content' => $this->get_template_content( 'index.html' ),
] );

Check warning on line 102 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L102

Closing parenthesis of a multi-line function call must be on a line by itself. (PEAR.Functions.FunctionCallSignature-[fixable])

register_block_template( 'lsx-tour-operator//no-title', [

Check warning on line 104 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L104

Short array syntax is not allowed. (Universal.Arrays.DisallowShortArraySyntax-[fixable])

Check warning on line 104 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L104

Only one argument is allowed per line in a multi-line function call. (PEAR.Functions.FunctionCallSignature-[fixable])

Check warning on line 104 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L104

Opening parenthesis of a multi-line function call must be the last content on the line. (PEAR.Functions.FunctionCallSignature-[fixable])
'title' => __( 'No Title', 'tour-operator' ),
'description' => __( 'A generic page template with no page title displayed', 'tour-operator' ),
'content' => $this->get_template_content( 'no-title.html' ),
] );

Check warning on line 108 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L108

Closing parenthesis of a multi-line function call must be on a line by itself. (PEAR.Functions.FunctionCallSignature-[fixable])

register_block_template( 'lsx-tour-operator//pages', [

Check warning on line 110 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L110

Opening parenthesis of a multi-line function call must be the last content on the line. (PEAR.Functions.FunctionCallSignature-[fixable])

Check warning on line 110 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L110

Only one argument is allowed per line in a multi-line function call. (PEAR.Functions.FunctionCallSignature-[fixable])

Check warning on line 110 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L110

Short array syntax is not allowed. (Universal.Arrays.DisallowShortArraySyntax-[fixable])
'title' => __( 'Pages', 'tour-operator' ),
'description' => __( 'A generic page template with a page title displayed', 'tour-operator' ),
'content' => $this->get_template_content( 'no-title.html' ),
] );

Check warning on line 114 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L114

Closing parenthesis of a multi-line function call must be on a line by itself. (PEAR.Functions.FunctionCallSignature-[fixable])

register_block_template( 'lsx-tour-operator//single-region', [

Check warning on line 116 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L116

Short array syntax is not allowed. (Universal.Arrays.DisallowShortArraySyntax-[fixable])

Check warning on line 116 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L116

Only one argument is allowed per line in a multi-line function call. (PEAR.Functions.FunctionCallSignature-[fixable])

Check warning on line 116 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L116

Opening parenthesis of a multi-line function call must be the last content on the line. (PEAR.Functions.FunctionCallSignature-[fixable])
'title' => __( 'Single Region', 'tour-operator' ),
'description' => __( 'Used to display a region of a country in the Destination post-type', 'tour-operator' ),
'content' => $this->get_template_content( 'single-region.html' ),
'post_types' => [ 'destination' ]

Check warning on line 120 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L120

Short array syntax is not allowed. (Universal.Arrays.DisallowShortArraySyntax-[fixable])

Check warning on line 120 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L120

There should be a comma after the last array item in a multi-line array. (NormalizedArrays.Arrays.CommaAfterLast-[fixable])
] );

Check warning on line 121 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L121

Closing parenthesis of a multi-line function call must be on a line by itself. (PEAR.Functions.FunctionCallSignature-[fixable])

register_block_template( 'lsx-tour-operator//single-country', [

Check warning on line 123 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L123

Opening parenthesis of a multi-line function call must be the last content on the line. (PEAR.Functions.FunctionCallSignature-[fixable])

Check warning on line 123 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L123

Only one argument is allowed per line in a multi-line function call. (PEAR.Functions.FunctionCallSignature-[fixable])

Check warning on line 123 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L123

Short array syntax is not allowed. (Universal.Arrays.DisallowShortArraySyntax-[fixable])
'title' => __( 'Single Region', 'tour-operator' ),
'description' => __( 'Used to display a country in the Destination post-type', 'tour-operator' ),
'content' => $this->get_template_content( 'single-country.html' ),
'post_types' => [ 'destination' ]

Check warning on line 127 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L127

Short array syntax is not allowed. (Universal.Arrays.DisallowShortArraySyntax-[fixable])

Check warning on line 127 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L127

There should be a comma after the last array item in a multi-line array. (NormalizedArrays.Arrays.CommaAfterLast-[fixable])
] );

Check warning on line 128 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L128

Closing parenthesis of a multi-line function call must be on a line by itself. (PEAR.Functions.FunctionCallSignature-[fixable])

register_block_template( 'lsx-tour-operator//archive', [

Check warning on line 130 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L130

Opening parenthesis of a multi-line function call must be the last content on the line. (PEAR.Functions.FunctionCallSignature-[fixable])

Check warning on line 130 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L130

Only one argument is allowed per line in a multi-line function call. (PEAR.Functions.FunctionCallSignature-[fixable])

Check warning on line 130 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L130

Short array syntax is not allowed. (Universal.Arrays.DisallowShortArraySyntax-[fixable])
'title' => __( 'All Archives', 'tour-operator' ),
'description' => __( 'Displays any archive, including posts by a single author, category, tag, taxonomy, custom post type, and date. This template will serve as a fallback when more specific templates (e.g., Category or Tag) cannot be found.', 'tour-operator' ),
'content' => $this->get_template_content( 'archive.html' ),
] );

Check warning on line 134 in includes/classes/blocks/class-templates.php

View check run for this annotation

codefactor.io / CodeFactor

includes/classes/blocks/class-templates.php#L134

Closing parenthesis of a multi-line function call must be on a line by itself. (PEAR.Functions.FunctionCallSignature-[fixable])
}

/**
Expand Down
118 changes: 117 additions & 1 deletion templates/archive-accommodation.html
Original file line number Diff line number Diff line change
@@ -1 +1,117 @@
<!-- wp:pattern {"slug":"lsx-tour-operator/archive-accommodation"} /-->
<!-- wp:group {"style":{"position":{"type":"sticky","top":"0px"}},"layout":{"type":"default"}} -->
<div class="wp-block-group"><!-- wp:template-part {"slug":"header","theme":"lsx-tour-operator","area":"header"} /--></div>
<!-- /wp:group -->

<!-- wp:cover {"url":"https://tour-operator.lsx.design/wp-content/uploads/2024/10/accommodation-archive-banner-image.png","id":61303,"dimRatio":70,"overlayColor":"secondary-900","isUserOverlayColor":true,"minHeight":300,"minHeightUnit":"px","metadata":{"name":"Hero"},"align":"full","style":{"spacing":{"blockGap":"0","margin":{"top":"0","bottom":"0"}}}} -->
<div class="wp-block-cover alignfull" style="margin-top:0;margin-bottom:0;min-height:300px"><span aria-hidden="true" class="wp-block-cover__background has-secondary-900-background-color has-background-dim-70 has-background-dim"></span><img class="wp-block-cover__image-background wp-image-61303" alt="" src="https://tour-operator.lsx.design/wp-content/uploads/2024/10/accommodation-archive-banner-image.png" data-object-fit="cover"/><div class="wp-block-cover__inner-container"><!-- wp:group {"align":"full","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull"><!-- wp:group {"style":{"spacing":{"padding":{"top":"10px","bottom":"10px"}},"border":{"bottom":{"color":"var:preset|color|primary-200","width":"2px"},"top":[],"right":[],"left":[]},"typography":{"fontStyle":"normal","fontWeight":"600"}},"fontSize":"large","layout":{"type":"default"}} -->
<div class="wp-block-group has-large-font-size" style="border-bottom-color:var(--wp--preset--color--primary-200);border-bottom-width:2px;padding-top:10px;padding-bottom:10px;font-style:normal;font-weight:600"><!-- wp:query-title {"type":"archive","textAlign":"center","showPrefix":false} /--></div>
<!-- /wp:group -->

<!-- wp:paragraph {"align":"center","metadata":{"name":"Tagline"},"style":{"elements":{"link":{"color":{"text":"var:preset|color|primary-200"}}}},"textColor":"primary-200","fontSize":"small"} -->
<p class="has-text-align-center has-primary-200-color has-text-color has-link-color has-small-font-size"></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group --></div></div>
<!-- /wp:cover -->

<!-- wp:group {"metadata":{"name":"Breadcrumbs"},"align":"full","style":{"spacing":{"padding":{"top":"6px","bottom":"6px","left":"var:preset|spacing|x-small","right":"var:preset|spacing|x-small"},"margin":{"top":"0","bottom":"0"}},"elements":{"link":{":hover":{"color":{"text":"var:preset|color|tertiary"}},"color":{"text":"var:preset|color|base"}}}},"backgroundColor":"primary-900","textColor":"base","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull has-base-color has-primary-900-background-color has-text-color has-background has-link-color" style="margin-top:0;margin-bottom:0;padding-top:6px;padding-right:var(--wp--preset--spacing--x-small);padding-bottom:6px;padding-left:var(--wp--preset--spacing--x-small)"><!-- wp:group {"align":"wide","layout":{"type":"default"}} -->
<div class="wp-block-group alignwide"><!-- wp:yoast-seo/breadcrumbs /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->

<!-- wp:group {"metadata":{"name":"Archive Description"},"style":{"spacing":{"padding":{"top":"var:preset|spacing|small","bottom":"0","left":"var:preset|spacing|x-small","right":"var:preset|spacing|x-small"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--small);padding-right:var(--wp--preset--spacing--x-small);padding-bottom:0;padding-left:var(--wp--preset--spacing--x-small)"><!-- wp:group {"metadata":{"name":"Content"},"align":"wide","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignwide"><!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center">Discover a wide variety of accommodation options designed to suit every traveller’s needs and preferences. Whether you're seeking the indulgence of a five-star resort, the charm of a boutique hotel, or the simplicity of a rustic cabin, our collection has something for everyone. Each accommodation is carefully chosen to provide comfort, convenience, and a seamless blend with the local surroundings, ensuring that your stay is as memorable as the destinations themselves.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->

<!-- wp:group {"metadata":{"name":"Archive Content"},"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|medium","bottom":"var:preset|spacing|medium","left":"var:preset|spacing|x-small","right":"var:preset|spacing|x-small"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group alignwide" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--medium);padding-right:var(--wp--preset--spacing--x-small);padding-bottom:var(--wp--preset--spacing--medium);padding-left:var(--wp--preset--spacing--x-small)"><!-- wp:query {"queryId":1,"query":{"perPage":"9","pages":"3","offset":"0","postType":"accommodation","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"parents":[]},"align":"wide","layout":{"type":"constrained","contentSize":""}} -->
<div class="wp-block-query alignwide"><!-- wp:post-template {"lock":{"move":false,"remove":false},"align":"wide","style":{"spacing":{"blockGap":"var:preset|spacing|small"}},"layout":{"type":"grid","columnCount":"3","minimumColumnWidth":null}} -->
<!-- wp:group {"metadata":{"name":"Accommodation Card"},"className":"is-style-shadow-sm","style":{"spacing":{"blockGap":"0px","padding":{"top":"0px","bottom":"0px","left":"0px","right":"0px"}},"border":{"radius":"8px"}},"backgroundColor":"base","layout":{"type":"constrained"}} -->
<div class="wp-block-group is-style-shadow-sm has-base-background-color has-background" style="border-radius:8px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"><!-- wp:post-featured-image {"isLink":true,"aspectRatio":"3/2","linkTarget":"_blank","style":{"spacing":{"padding":{"top":"0","bottom":"0"},"margin":{"top":"0","bottom":"0"}},"border":{"radius":{"topLeft":"8px","topRight":"8px"}}}} /-->

<!-- wp:group {"metadata":{"name":"Content"},"style":{"spacing":{"margin":{"top":"0","bottom":"0"},"padding":{"top":"10px","bottom":"0px","left":"10px","right":"10px"}},"dimensions":{"minHeight":"97px"}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="min-height:97px;margin-top:0;margin-bottom:0;padding-top:10px;padding-right:10px;padding-bottom:0px;padding-left:10px"><!-- wp:group {"metadata":{"name":"Accommodation Title"},"className":"center-vertically","style":{"dimensions":{"minHeight":"3rem"},"spacing":{"padding":{"top":"5px"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group center-vertically" style="min-height:3rem;padding-top:5px"><!-- wp:post-title {"textAlign":"center","level":3,"isLink":true,"style":{"spacing":{"padding":{"top":"0","bottom":"0"},"margin":{"top":"0","bottom":"0"}}},"fontSize":"small"} /--></div>
<!-- /wp:group -->

<!-- wp:group {"metadata":{"name":"Accommodation Information"},"style":{"spacing":{"padding":{"top":"10px","bottom":"5px","left":"10px","right":"10px"},"blockGap":"0px"},"border":{"top":{"color":"var:preset|color|primary","width":"2px"},"bottom":{"color":"var:preset|color|primary","width":"2px"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="border-top-color:var(--wp--preset--color--primary);border-top-width:2px;border-bottom-color:var(--wp--preset--color--primary);border-bottom-width:2px;padding-top:10px;padding-right:10px;padding-bottom:5px;padding-left:10px"><!-- wp:group {"style":{"spacing":{"blockGap":"10px","padding":{"top":"0","bottom":"0"}}},"layout":{"type":"flex","flexWrap":"nowrap","verticalAlignment":"top"}} -->
<div class="wp-block-group" style="padding-top:0;padding-bottom:0"><!-- wp:group {"style":{"spacing":{"blockGap":"5px"},"layout":{"selfStretch":"fixed","flexSize":"100px"}},"layout":{"type":"flex","flexWrap":"nowrap","verticalAlignment":"top"}} -->
<div class="wp-block-group"><!-- wp:image {"scale":"cover","sizeSlug":"large","metadata":{"name":"From Price Icon"}} -->
<figure class="wp-block-image size-large"><img src="https://tour-operator.lsx.design/wp-content/uploads/2024/09/from-price-TO-icon-black-20px.png" alt="" style="object-fit:cover"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph {"style":{"layout":{"selfStretch":"fit","flexSize":null},"spacing":{"padding":{"top":"2px","bottom":"2px"}}}} -->
<p style="padding-top:2px;padding-bottom:2px">From:</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->

<!-- wp:paragraph {"metadata":{"bindings":{"content":{"source":"lsx/post-meta","args":{"key":"price"}}}},"style":{"spacing":{"padding":{"top":"2px","bottom":"2px"}}}} -->
<p style="padding-top:2px;padding-bottom:2px"></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->

<!-- wp:group {"style":{"spacing":{"blockGap":"10px"}},"layout":{"type":"flex","flexWrap":"nowrap","verticalAlignment":"top"}} -->
<div class="wp-block-group"><!-- wp:group {"style":{"spacing":{"blockGap":"5px"},"layout":{"selfStretch":"fixed","flexSize":"100px"}},"layout":{"type":"flex","flexWrap":"nowrap","verticalAlignment":"top"}} -->
<div class="wp-block-group"><!-- wp:image {"scale":"cover","sizeSlug":"large","metadata":{"name":"Accommodation Type Icon"}} -->
<figure class="wp-block-image size-large"><img src="https://tour-operator.lsx.design/wp-content/uploads/2024/09/accommodation-type-TO-icon-black-20px.png" alt="" style="object-fit:cover"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph {"style":{"layout":{"selfStretch":"fit","flexSize":null},"spacing":{"padding":{"top":"2px","bottom":"2px"}}}} -->
<p style="padding-top:2px;padding-bottom:2px">Type:</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->

<!-- wp:group {"style":{"spacing":{"blockGap":"5px"},"layout":{"selfStretch":"fit","flexSize":null}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:post-terms {"term":"accommodation-type","style":{"spacing":{"padding":{"top":"2px","bottom":"2px"}}},"fontSize":"x-small","fontFamily":"secondary"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->

<!-- wp:group {"style":{"spacing":{"blockGap":"10px"}},"layout":{"type":"flex","flexWrap":"nowrap","verticalAlignment":"top"}} -->
<div class="wp-block-group"><!-- wp:group {"style":{"layout":{"selfStretch":"fixed","flexSize":"100px"},"spacing":{"blockGap":"5px"}},"layout":{"type":"flex","flexWrap":"nowrap","verticalAlignment":"top"}} -->
<div class="wp-block-group"><!-- wp:image {"width":"20px","sizeSlug":"large","metadata":{"name":"Number of Rooms Icon"}} -->
<figure class="wp-block-image size-large is-resized"><img src="https://tour-operator.lsx.design/wp-content/uploads/2024/09/TO-accommodation-rooms-icon-black-52px.png" alt="" style="width:20px"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph {"style":{"layout":{"selfStretch":"fit","flexSize":null},"spacing":{"padding":{"top":"2px","bottom":"2px"}}}} -->
<p style="padding-top:2px;padding-bottom:2px">Rooms:</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->

<!-- wp:paragraph {"metadata":{"bindings":{"content":{"source":"lsx/post-meta","args":{"key":"number_of_rooms"}}}},"style":{"spacing":{"padding":{"top":"2px","bottom":"2px"}}}} -->
<p style="padding-top:2px;padding-bottom:2px"></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->

<!-- wp:group {"metadata":{"name":"Accommodation Text Content"},"style":{"spacing":{"padding":{"right":"10px","left":"10px","top":"0px","bottom":"0px"}},"elements":{"link":{"color":{"text":"var:preset|color|septenary"}}}},"textColor":"septenary","layout":{"type":"constrained"}} -->
<div class="wp-block-group has-septenary-color has-text-color has-link-color" style="padding-top:0px;padding-right:10px;padding-bottom:0px;padding-left:10px"><!-- wp:post-excerpt {"moreText":"View More","excerptLength":40,"style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast"}}}},"textColor":"contrast"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
<!-- /wp:post-template -->

<!-- wp:query-no-results -->
<!-- wp:paragraph {"align":"center","placeholder":"Add text or blocks that will display when the query returns no results."} -->
<p class="has-text-align-center">Unfortunately, there is no accommodation listed at the moment. Please check back soon as we regularly update our offerings.</p>
<!-- /wp:paragraph -->
<!-- /wp:query-no-results -->

<!-- wp:group {"align":"wide","style":{"spacing":{"margin":{"top":"var:preset|spacing|x-small","bottom":"var:preset|spacing|x-small"},"padding":{"top":"var:preset|spacing|x-small","bottom":"var:preset|spacing|x-small"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group alignwide" style="margin-top:var(--wp--preset--spacing--x-small);margin-bottom:var(--wp--preset--spacing--x-small);padding-top:var(--wp--preset--spacing--x-small);padding-bottom:var(--wp--preset--spacing--x-small)"><!-- wp:query-pagination {"paginationArrow":"chevron","align":"wide","className":"is-style-default","layout":{"type":"flex","justifyContent":"space-between"}} -->
<!-- wp:query-pagination-previous /-->

<!-- wp:query-pagination-numbers /-->

<!-- wp:query-pagination-next /-->
<!-- /wp:query-pagination --></div>
<!-- /wp:group --></div>
<!-- /wp:query --></div>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","theme":"lsx-tour-operator","area":"footer"} /-->
Loading

0 comments on commit 0e8eae8

Please sign in to comment.