PHP Classes

How to Use a Wordpress Map Plugin to Show Business Locations Using the Package Partner Locator Map Markers WordPress Plugin: Display a map of businesses on a WordPress page

Recommend this page to a friend!
  Info   View files Example   View files View files (3745)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-06-10 (Yesterday) RSS 2.0 feedNot yet rated by the usersTotal: 4 This week: 4All time: 11,350 This week: 19Up
Version License PHP version Categories
partner-locator-map- 1.0GNU General Publi...5PHP 5, Content management, Geography, B..., B...
Description 

Author

This package can display a map of businesses on a WordPress page.

It allows editors of WordPress posts to insert a map implemented with Google Maps to show business locations using a WordPress short code.

The plugin supports:

- Add custom map markers for each location.

- Display videos for each business location

- Show businesses' open and close days and times

Picture of Eric Jumba
  Performance   Level  
Innovation award
Innovation award
Nominee: 4x

Winner: 1x

 

Example

<?php

/**
 * The plugin bootstrap file
 *
 * This file is read by WordPress to generate the plugin information in the plugin
 * admin area. This file also includes all of the dependencies used by the plugin,
 * registers the activation and deactivation functions, and defines a function
 * that starts the plugin.
 *
 * @link https://jumbaeric.co.ke/partner-locator-map-markers-wordpress-plugin/
 * @since 1.0.0
 * @package Partner Locator & Map Markers Wordpress Plugin
 *
 * @wordpress-plugin
 * Plugin Name: Partner Locator & Map Markers Wordpress Plugin
 * Plugin URI: https://jumbaeric.co.ke/partner-locator-map-markers-wordpress-plugin/
 * Description: A powerful plugin to display and filter your partners, dealers, or store locations on a customizable Google Map.
 * Version: 1.0.0
 * Author: Jumbaeric
 * Author URI: https://github.com/jumbaeric
 * Tags: WordPress, Google Maps, Partner Locator, Dealer Locator, Store Locator, Map Markers, Custom Taxonomy Filter, SEO Friendly, Shortcode, Responsive Design
 * Requires at least: 5.0
 * Tested up to: 6.5.3
 * Requires PHP: 7.2
 * Stable tag: 1.0.0
 * License: GPL-2.0+
 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
 * Text Domain: loxup
 * Domain Path: /languages
 */

// If this file is called directly, abort.
if (!defined('WPINC')) {
    die;
}

/**
 * Currently plugin version.
 * Start at version 1.0.0 and use SemVer - https://semver.org
 * Rename this for your plugin and update it as you release new versions.
 */
define('LOXUP_VERSION', '1.0.0');

/**
 * The code that runs during plugin activation.
 * This action is documented in includes/class-loxup-activator.php
 */
function activate_loxup()
{
    require_once
plugin_dir_path(__FILE__) . 'includes/class-loxup-activator.php';
   
Loxup_Activator::activate();
}

/**
 * The code that runs during plugin deactivation.
 * This action is documented in includes/class-loxup-deactivator.php
 */
function deactivate_loxup()
{
    require_once
plugin_dir_path(__FILE__) . 'includes/class-loxup-deactivator.php';
   
Loxup_Deactivator::deactivate();
}

function
loxup_flush_rewrite_rules()
{
   
flush_rewrite_rules();
}

register_activation_hook(__FILE__, 'activate_loxup');
register_deactivation_hook(__FILE__, 'deactivate_loxup');

register_activation_hook(__FILE__, 'loxup_flush_rewrite_rules');

/**
 * The core plugin class that is used to define internationalization,
 * admin-specific hooks, and public-facing site hooks.
 */
require plugin_dir_path(__FILE__) . 'includes/class-loxup.php';

/**
 * Begins execution of the plugin.
 *
 * Since everything within the plugin is registered via hooks,
 * then kicking off the plugin from this point in the file does
 * not affect the page life cycle.
 *
 * @since 1.0.0
 */
function run_loxup()
{

   
$plugin = new Loxup();
   
$plugin->run();
}
run_loxup();


Details

=== Plugin Name === Contributors: Eric Jumba Donate link: https://github.com/jumbaeric Tags: Google Maps, partner locator, store locator, business locator, client locator, map markers, video support, open hours, business hours, settings page, shortcode Requires at least: 5.0 Tested up to: 6.5.3 Requires PHP: 7.2 Stable tag: 1.0.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html

A comprehensive WordPress plugin to easily locate partners, clients, and stores on Google Maps. Features include video support, open and close days and times, and customizable settings.

== Description ==

Partner Locator Map Markers is a powerful and easy-to-use WordPress plugin designed to help you display your partners, clients, or store locations on a Google Map. It offers several unique features that set it apart:

  • Google Maps Integration: Seamlessly integrates with Google Maps to display partner locations.
  • Custom Map Markers: Add and manage custom markers for each location.
  • Video Support: Display videos for partners/clients/stores to provide more information and engage users.
  • Open and Close Days and Times: Show the operational hours of your partners, clients, or stores.
  • Easy Setup: Simple settings page to configure Google Maps API Key and default map center location.
  • SEO-Friendly: Optimized to ensure your partner locations are easily discoverable by search engines.
  • Shortcode Support: Use the `[loxup_map]` shortcode to embed the map on any page or post.
  • Responsive Design: Fully responsive and looks great on all devices.

Use shortcode [loxup_map] to display map on any page.

= Features: = * Interactive Google Maps Integration * Multiple Markers for Partner Locations * Advanced Filtering by Custom Taxonomy Terms * Set Partners/Clients/dealers/store locations Business Open and Close Days and Time * Set Partners/Clients/dealers/store locations Video * SEO Friendly and Compatible with All Permalink Structures * Shortcode Support to Embed Maps Anywhere * AJAX Powered Filtering * Fully Responsive Design * User-friendly Interface for Easy Setup

== Installation ==

  1. Upload the plugin files to the `/wp-content/plugins/partner-locator-map-markers` directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress.
  3. Use the Settings->Plugin Name screen to configure the plugin.
  4. Add the `[loxup_map]` shortcode to any page or post where you want to display the map.

== Usage ==

To display the map on the frontend, you can use the shortcode [loxup_map] in any post or page.

== Example Usage ==

To display the map on a page, simply add the shortcode [loxup_map] to the content of the page.

== Screenshots ==

  1. Settings Page: Easily configure your Google Maps API Key and default map center location.
  2. Map with Markers: Display your partner locations on a Google Map with custom markers.
  3. Video Support: Showcase videos for each partner or store location.
  4. Open Hours: Show open and close days and times for each location.

== Frequently Asked Questions ==

= How do I get a Google Maps API Key? =

You can obtain a Google Maps API Key by following the instructions on the Google Maps Platform website.

= How do I add the map to my page or post? =

Use the [loxup_map] shortcode to embed the map on any page or post.

= Can I display videos for each partner or store location? =

Yes, you can display videos for each partner, client, or store location to provide more detailed information.

= How do I show open and close days and times for each location? =

You can enter the open and close days and times in the partner details and it will be displayed on the map markers.

== Changelog ==

= 1.0 = * Initial release.

== Upgrade Notice ==

= 1.0 = Initial release.

== Customization and Settings ==

Settings Page: - Navigate to Settings -> Partner Locator Map Markers. - Enter your Google Maps API Key. - Set the default map center location (City, Country).

Shortcode: - Use [loxup_map] to display the map on any page or post.

Video Support: - Add YouTube video links in partner details to display videos in a popup.

Open and Close Days and Times: - Set the open and close days and times for each partner or store location.

== Unique Selling Points == - User-Friendly: Simple and intuitive interface for setting up and managing map markers. - Comprehensive Features: Includes video support and operational hours display for enhanced user engagement. - SEO Optimized: Ensures your partner locations are easily found by search engines. - Flexible Integration: Use the provided shortcode to embed the map anywhere on your site.

Partner Locator Map Markers is your go-to solution for displaying partner, client, or store locations on a Google Map, providing detailed information with video support and operational hours.


  Files folder image Files  
File Role Description
Files folder imageadmin (7 files, 3 directories)
Files folder imageincludes (8 files)
Files folder imagepublic (2 files, 5 directories)
Accessible without login Plain text file index.php Aux. Auxiliary script
Accessible without login Plain text file LICENSE.txt Doc. Documentation
Accessible without login Plain text file loxup.php Example Example script
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file uninstall.php Aux. Auxiliary script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:4
This week:4
All time:11,350
This week:19Up