Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 2.0.1 #479

Merged
merged 54 commits into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
b54134f
Fixing the settings update.
krugazul Jan 6, 2025
63e157e
Adding in the excerpt #368
krugazul Jan 6, 2025
e555404
Adding in the modal JS and CSS #368
krugazul Jan 6, 2025
6b53e38
Merge pull request #465 from lightspeedwp/2.0.1-travel-info-modals
krugazul Jan 6, 2025
a52548b
Stripping all the tags
krugazul Jan 6, 2025
90a8785
Fixing the tags error
krugazul Jan 6, 2025
923d209
Fixing the excerpt display #368
krugazul Jan 6, 2025
d20c491
Hiding the map vars
krugazul Jan 7, 2025
1f31e11
Adding in the parents only filter.
krugazul Jan 7, 2025
f08366f
Updating the changelog
krugazul Jan 7, 2025
0a19d6c
Updating the version number
krugazul Jan 7, 2025
400bd1e
Styled and adjusted functionality of the Travel info modals
ZaredRogers Jan 7, 2025
2ce4e8a
Fixing the query args.
krugazul Jan 7, 2025
8ab6e71
Merge pull request #467 from lightspeedwp/travel-info-modal-styling
krugazul Jan 7, 2025
be5e8dd
Updating hte last of the query args
krugazul Jan 8, 2025
c972c84
Removing the SVG uploader
krugazul Jan 8, 2025
e33fc9b
Merge pull request #466 from lightspeedwp/2.0.1-parents-only-query-args
krugazul Jan 8, 2025
c2c38d0
Adding in the admin facet
krugazul Jan 8, 2025
9a9aa4c
Fixing the post relations connections discovered in the review plugin.
krugazul Jan 9, 2025
1b5127d
Removing the debug statements
krugazul Jan 9, 2025
8a0fa04
Updatin ghte CMB statement
krugazul Jan 9, 2025
819e9db
Merge pull request #476 from lightspeedwp/2.0.1-related-connection-fixes
krugazul Jan 9, 2025
524ba3e
Fixing the API key and removing the banner map php functions
krugazul Jan 9, 2025
5556c6d
Removing an uneeded function
krugazul Jan 9, 2025
e04eefd
removing the instance
krugazul Jan 9, 2025
83835af
Updating the map settings
krugazul Jan 9, 2025
8e4cfcb
Fixing the fselect connections
krugazul Jan 20, 2025
4a4d4ea
Updating the counter
krugazul Jan 20, 2025
b9b4adc
Adding in the map block along with the map wrapper.
krugazul Jan 21, 2025
5be9d12
Removing the preview HTML
krugazul Jan 21, 2025
7c223a1
Updating the map classes for the preview image
krugazul Jan 21, 2025
75b46da
Adding in the google map src
krugazul Jan 21, 2025
5fdd9b9
removing the map preview code.
krugazul Jan 21, 2025
c61b690
removing the old placeholder images
krugazul Jan 21, 2025
ecd8f4a
Removing the unused images from the assets folder.
krugazul Jan 21, 2025
a373de9
Fixing the loading of the accommodation map.
krugazul Jan 21, 2025
1d9ba5c
Fixing the map marker content.
krugazul Jan 22, 2025
b89cd14
removing the map placeholder fields.
krugazul Jan 22, 2025
8bae7c9
Making sure the map JS loads conditionallly.
krugazul Jan 22, 2025
9813719
Fixing the marker icons.
krugazul Jan 22, 2025
9625f20
Fixing the marker inclusion.
krugazul Jan 22, 2025
ccfea8e
Merge pull request #477 from lightspeedwp/2.0.1-map-enhancements
Justinabes007 Jan 22, 2025
9432f3f
Fixing the map spacing.
krugazul Jan 22, 2025
cce349a
Fixing the layout.
krugazul Jan 22, 2025
01717df
Hiding the map meta
krugazul Jan 22, 2025
a6e0eaf
Fixed the Slider not detecting the amount of columns set on the block.
krugazul Jan 22, 2025
a85203d
Fixing the map styles.
krugazul Jan 22, 2025
7586883
Fixing the map content.
krugazul Jan 22, 2025
b20f879
Fixing the related content outputs.
krugazul Jan 22, 2025
042e741
Fixing the single map loading.
krugazul Jan 23, 2025
99add87
Adding in the related specific tours so they can be included.
krugazul Jan 23, 2025
8af0c6f
Commit of Template updates - Google Maps block
Justinabes007 Jan 23, 2025
a0aa204
Merge pull request #478 from lightspeedwp/templates-maps
krugazul Jan 24, 2025
07ca606
Updating the chagelog.
krugazul Jan 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions assets/css/scss/_maps.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
.lsx-map {
&.wp-block-group.hidden {
display: none;
}
}

.lsx-to-map-marker {
-webkit-box-align: start;
-ms-flex-align: start;
align-items: flex-start;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-flow: row nowrap;
flex-flow: row nowrap;
height: auto;
-webkit-box-pack: start;
-ms-flex-pack: start;
justify-content: flex-start;
padding: 5px 0;
width: 100%;

.lsx-to-map-marker-content {
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
color: var(--wp--preset--color--contrast);

&.content-area {
margin: 0;
}

.entry-content {
margin-top: 10px;

p {
margin-bottom: 0;
margin-top: 1.2rem;

> a.moretag:after {
color: inherit;
content: '\f178';
display: inline-block;
font-family: 'FontAwesome';
font-size: inherit;
margin-right: 5px;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
}
}
}

.lsx-to-map-marker-img {
margin-right: 15px;
max-width: 100px;
-ms-flex-negative: 0;
flex-shrink: 0;
}

.lsx-to-map-marker-title {
margin-bottom: 10px;
margin-top: 0;
}
}
49 changes: 49 additions & 0 deletions assets/css/scss/_modals.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/* The Modal (background) */


.lsx-modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */

&.open {
display: block;
}

/* Modal Content/Box */
.modal-content {
background-color: #fefefe;
margin: 15% auto; /* 15% from the top and centered */
padding: 10px 20px;
border: 3px solid var(--wp--preset--color--primary);
border-radius: 6px;
width: var(--wp--style--global--content-size); /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
color: #aaa;
float: right;
font-size: 32px;
font-weight: bold;
line-height: 0;
height: auto;
padding-top: 10px;
margin-right: -8px;

&:hover,
&:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
}
}

114 changes: 102 additions & 12 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.

2 changes: 2 additions & 0 deletions assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
@import 'scss/additional';
@import 'scss/slider';
@import 'scss/collapse';
@import 'scss/modals';
@import 'scss/maps';

.lsx-itinerary-wrapper,
.lsx-units-wrapper {
Expand Down
Binary file removed assets/img/Typecalendar-icon.png
Binary file not shown.
Binary file removed assets/img/Typetours-icon.png
Binary file not shown.
Binary file removed assets/img/accommodation-type-TO-icon-black-20px.png
Binary file not shown.
Binary file removed assets/img/accommodation.png
Binary file not shown.
Binary file removed assets/img/activities.png
Binary file not shown.
Binary file removed assets/img/best-months-to-travel-TO-icon-black-20px.png
Binary file not shown.
Binary file removed assets/img/dates-travelled-icon-black-20px.png
Binary file not shown.
Binary file removed assets/img/duration-icon-black-20px.png
Binary file not shown.
Binary file removed assets/img/from-price-TO-icon-black-20px.png
Binary file not shown.
3 changes: 0 additions & 3 deletions assets/img/left-arrow-new.svg

This file was deleted.

Binary file removed assets/img/map-TO-icon-black-20px.png
Binary file not shown.
Binary file removed assets/img/mystery-man-square.png
Binary file not shown.
Binary file removed assets/img/mystery-man-wide.png
Binary file not shown.
Binary file removed assets/img/offers.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-map-1170x400.jpg
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-map-350x350.jpg
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-map-400x400.jpg
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-page-350x350.jpg
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-page-360x168.jpg
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-page-750x350.jpg
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-page-general.jpg
Diff not rendered.
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-post-350x350.jpg
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-post-360x168.jpg
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-post-750x350.jpg
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-team-350x350.jpg
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-team-360x168.jpg
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-team-750x350.jpg
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-tour-360x168.jpg
Diff not rendered.
Binary file removed assets/img/placeholders/placeholder-tour-750x350.jpg
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed assets/img/restaurants.png
Diff not rendered.
69 changes: 68 additions & 1 deletion assets/js/blocks/general.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// metadata.bindings not handle correctly

wp.domReady(() => {

Expand Down Expand Up @@ -572,5 +571,73 @@ wp.domReady(() => {
renaming: false
}
});

// Price Block
wp.blocks.registerBlockVariation("core/group", {
name: "lsx-tour-operator/price",
title: "Price",
category: 'lsx-tour-operator',
icon: 'money-alt',
attributes: {
metadata: {
name: "Price",
},
align: "wide",
layout: {
type: "flex",
flexWrap: "nowrap",
},
className: "lsx-price-wrapper",
style: {
spacing: {
blockGap: "5px",
},
},
},
innerBlocks: [
[
"core/paragraph",
{
padding: {
top: "2px",
bottom: "2px",
},
typography: {
fontSize: "x-small",
},
content: "<strong>From:</strong>",
className: "has-x-small-font-size",
},
],
[
"core/paragraph",
{
metadata: {
bindings: {
content: {
source: "lsx/post-meta",
args: {
key: "price"
},
},
},
},
className: "amount has-primary-color has-text-color has-link-color",
padding: {
top: "2px",
bottom: "2px",
},
color: {
link: "primary-700",
text: "primary-700",
},
},
],
],
isDefault: false,
supports: {
renaming: false
}
});
});

Loading
Loading