Skip to content

lux-group/luxury-escapes-wordpress-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Luxury Escapes Wordpress Plugin

This plugin allows us to:

  1. Add a new "LE Offers" content block to a post
  2. Enter a Google placeId in that block (eg. ChIJoQ8Q6NNB0S0RkOYkS7EPkSQ is the ID for Bali)
  3. Display a list of LE offers in that Place ID in the user-facing site

Installation

Gutenberg Examples are distributed as WordPress plugin.

  1. Download a pre-built zip archive of the latest release.

    Do not download from the "Clone or download" GitHub button, as this includes the source material only. Read the Development instructions below if you’re interested in building your own copy of the plugin.

  2. Navigate to the Plugins > Add new screen in your WordPress administrative dashboard.
  3. Click Add New at the top of the page.
  4. Click Upload Plugin at the top of the page.
  5. Click Choose File, then find and Upload the downloaded zip file.
  6. After the plugin finishes installing, click Activate.
  7. You’re done!

Development

You can run a Wordpress instance using Docker Compose:

docker-compose up -d

Visit http://localhost:9999

To stop:

docker-compose stop

Visit http://localhost:9999/wp-admin/plugins.php and activate luxury-escapes-plugin. The docker-compose.yml file has mapped this folder to the docker container, so as you change files in this folder, they'll be reflected live in your site.

To install the node packages

yarn install

To build the production version of the plugin

yarn build

To build a development version, change to the local directory of the block you are working on, and run yarn start to watch for changes and automatically rebuild as you develop.

cd le-offers/
npm start

To install the plugin, or upload a new version:

  1. Ensure you've built your latest scripts first with yarn build!
  2. Ensure you've git-committed your latest changes (only committed changes are included in the zip)
  3. run yarn zip to create a zip file of this plugin
  4. visit the wordpress plugins page, click "upload plugin", and upload the zip file.
  5. If it complains about the plugin not having a valid header, just visit https://dream.luxuryescapes.com/wp-admin/plugins.php and activate it from there.

Plugin example screenshots:

ACCOMMODATIONS WP PLUGIN: ACCOMMODATIONS WP PLUGIN

ACCOMMODATIONS POST: ACCOMMODATIONS POST

CRUISES WP PLUGIN: CRUISES WP PLUGIN

CRUISES POST: CRUISES POST

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published