Skip to content

Commit

Permalink
Merge pull request #451 from lightspeedwp/2.0-beta-2
Browse files Browse the repository at this point in the history
2.0 Beta 2
  • Loading branch information
Justinabes007 authored Dec 3, 2024
2 parents 73257ab + 66eb31f commit 80a9811
Show file tree
Hide file tree
Showing 39 changed files with 1,109 additions and 2,340 deletions.
7 changes: 3 additions & 4 deletions assets/css/scss/_icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@
}
}*/

.lsx-price-wrapper {
.lsx-price-wrapper,
.lsx-single-supplement-wrapper,
.unit-price-wrapper {
/*&:before {
background-image: url( ../img/icons/price-icon.png );
}*/
Expand All @@ -129,6 +131,3 @@
}
}
}

// Add the icon ULR here.
//.lsx-destination-to-tour-wrapper::before { background-image: url( ../img/icons/destinations-icon.webp ); }
2 changes: 2 additions & 0 deletions assets/css/scss/_slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
top: 32px;
}



.lsx-to-slider,
.slick-lightbox-inner {
.slick-arrow {
Expand Down
27 changes: 0 additions & 27 deletions assets/css/scss/style.scss

This file was deleted.

118 changes: 92 additions & 26 deletions assets/css/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/css/style.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added assets/img/rating-star-empty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/rating-star-full.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 23 additions & 5 deletions assets/js/blocks/accommodation.js
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ wp.domReady(() => {
metadata: {
name: 'Special Interests',
},
className: 'lsx-special-interests-wrapper',
className: 'lsx-special-interest-wrapper',
style: {
spacing: {
blockGap: '5px'
Expand Down Expand Up @@ -1044,7 +1044,7 @@ wp.domReady(() => {
metadata: {
name: 'Facilities',
},
className: 'lsx-facilities-wrapper',
className: 'lsx-facility-wrapper',
style: {
spacing: {
padding: {
Expand Down Expand Up @@ -1118,9 +1118,27 @@ wp.domReady(() => {
}
},
[
['core/post-terms', {
term: 'facility',
fontSize: 'x-small'
['core/paragraph', {
metadata: {
bindings: {
content: {
source: 'lsx/post-connection',
args: {
key: 'facilities'
}
}
}
},
className: 'has-septenary-color has-text-color has-link-color has-primary-color has-primary-700-color',
style: {
spacing: {
padding: {
top: '2px',
bottom: '2px'
}
}
},
textColor: 'primary-700'
}]
]
]
Expand Down
9 changes: 6 additions & 3 deletions assets/js/blocks/general.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
wp.domReady(() => {
// Gallery Wrapper
// Gallery Block
wp.blocks.registerBlockVariation("core/gallery", {
name: "lsx-tour-operator/gallery",
title: "TO Gallery",
icon: "admin-multisite",
icon: "gallery",
category: "lsx-tour-operator",
attributes: {
metadata: {
Expand Down Expand Up @@ -40,10 +40,11 @@ wp.domReady(() => {
isDefault: false
});

// Price Wrapper
// Price Block
wp.blocks.registerBlockVariation("core/group", {
name: "lsx-tour-operator/price",
title: "Price",
category: 'lsx-tour-operator',
icon: "bank",
attributes: {
metadata: {
Expand Down Expand Up @@ -404,10 +405,12 @@ wp.domReady(() => {
]
});

// View More Button Block
wp.blocks.registerBlockVariation('core/button', {
name: 'lsx-tour-operator/more-link',
title: 'More Button',
name: 'core/button',
category: "lsx-tour-operator",
attributes: {
className: 'lsx-to-more-link more-link',
metadata: {
Expand Down
Loading

0 comments on commit 80a9811

Please sign in to comment.