Skip to content

benignware/wp-findus-pro

Repository files navigation

wp-findus

Create contact maps easily

This plugin lets you quickly add a map to your posts or sidebar by providing a location or some geocodeable content.

It is doing so by integrating jquery-findus of which a copy is bundled with this distribution.

Install

Copy to your plugins directory manually or install from git via composer.

Usage

Shortcode

Wrap some geocodeable content into the findus shortcode

[findus]
8411 Market Street
San Francisco
CA 94103
USA
[/findus]

Resolve an address from a location:

[findus latitude="37.77485730000001" longitude="-122.41962339999998"/]

Avoid geocoding by providing location and content:

[findus latitude="37.77485730000001" longitude="-122.41962339999998"]
8411 Market Street
San Francisco
CA 94103
USA
[/findus]

Widget

Simply drag the FindUs-Widget to your sidebar and enter title and some geocodeable content.

API

Options

NameDescriptionDefault
addressA geocodeable address string
api_keyProvide an api-key for the Google Maps API
latitudeLocation coordinate latitude
longitudeLocation coordinate longitude

Development

Download Docker CE for your OS. Download NodeJS for your OS.

Install

Install wordpress

docker-compose run --rm wp install-wp

After installation you can log in with user wordpress and password wordpress.

Install front-end dependencies

npm i

Development Server

Point terminal to your project root and start up the container.

docker-compose up -d

Point your browser to http://localhost:8030.

Watch front-end dependencies

npm run watch

Docker

Update composer dependencies
docker-compose run composer update
Globally stop all running docker containers
docker stop $(docker ps -a -q)
Update Wordpress

Due to some permission issues, you need to chmod your container's web-root prior to running the updater:

docker-compose exec wordpress bash

From the container shell, change permissons all down the tree.

chmod -R 777 .

After CTRL+D, you're ready to update Wordpress, either from the admin-interface or using wp-cli:

docker-compose run wp core update

About

Create custom maps easily

Resources

Stars

Watchers

Forks

Packages

No packages published