=== Web 2.0 Directory Lite ===
Contributors: salephpscripts
Donate link: https://www.salephpscripts.com/
Tags: directory, business directory, listings, maps, store locator
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Searchable business directory for WordPress: categories, locations, custom fields and interactive Google, Mapbox or MapLibre maps.

== Description ==

Web 2.0 Directory Lite turns WordPress into a searchable business directory. Organise listings into categories, locations and tags, build a custom listing form, place the directory on any page with a shortcode, and let visitors search and browse — including on an interactive map.

The Lite edition is managed from your WordPress admin: you create and edit the listings, and visitors browse, search and view them on the front end.

**Key features**

* Categories, locations and tags to organise your listings.
* Custom listing-form builder — add your own fields (text, select, checkbox, price, opening hours, date, website, email, …).
* Maps: Google Maps, Mapbox or MapLibre (MapTiler tiles) with per-category Font Awesome marker icons and clustering.
* Advanced search: by category, location, custom fields, address + radius, and free-hand "draw area" polygon search.
* Google reCAPTCHA on the listing contact form.
* CSV import and export for bulk listing management.
* Translation-ready: ships a POT file you can translate with any standard gettext/PO editor.
* Fast and lightweight: marker clustering plus on-demand REST loading keep large directories responsive even with thousands of listings.

This plugin connects to external services (map providers and, when enabled, Google reCAPTCHA). Please read the **External Services** section below.

**Upgrading**

The full version of Web 2.0 Directory adds front-end paid submission, membership plans and WooCommerce checkout for paid, featured, renewed and upgraded listings. Those modules are not part of this free edition.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`, or install the ZIP via Plugins -> Add New -> Upload Plugin.
2. Activate **Web 2.0 Directory Lite** through the Plugins menu.
3. Open the settings page, choose your map engine and enter the matching API key/token (Google Maps API key, Mapbox token, or MapTiler key).
4. Create your categories and locations, build the listing form, add listings, and place the directory on any page with the provided shortcode.

== Frequently Asked Questions ==

= Who can add listings in the Lite edition? =
Listings are created and edited from the WordPress admin. Front-end submission (with optional moderation, expiration and renewal) is part of the full version.

= Do I need API keys? =
For maps, yes — map providers require their own key/token, entered on the settings page. The keys are stored on your site and are never sent to us.

= Which map providers are supported? =
Google Maps, Mapbox, and MapLibre using MapTiler tiles. You choose one on the settings page.

= Is it translation ready? =
Yes. A `languages/w2dc.pot` template is included; translate it with any standard gettext/PO editor.

= How do paid listings and membership plans work? =
Paid submission, membership plans and WooCommerce checkout are provided by the full version of Web 2.0 Directory, not by this free edition.

== External Services ==

Web 2.0 Directory Lite connects to the following third-party services. Nothing is sent until you use the corresponding feature:

* Map providers (Google Maps, Mapbox, MapTiler / MapLibre) — when a map renders or an address is geocoded, the request (coordinates, the address being searched, and your API key/token) is sent to the provider you configured. See the provider's terms and privacy policy.
* Google reCAPTCHA — when you enable it on the contact form, the visitor's interaction is verified with Google. See Google's terms and privacy policy.

This free edition does not contact the author's servers: it receives its updates through WordPress.org and performs no license or "phone-home" checks.

== Changelog ==

= 2.0 =
* Rebuilt on the shared SalePHP engine: the directory core (categories, locations, tags), the custom listing-form builder, maps (Google, Mapbox, MapLibre) and advanced search.
* Hardened request-input sanitization across admin handlers; added a nonce and capability check to the license-notice endpoint; guarded a CSV image path against traversal.
* No self-hosted updater or license checks — updates are delivered through WordPress.org.
* Trimmed the bundled demo payload (removed compressed archives and the large country sample data).
* Routed internal diagnostics through a WP_DEBUG-gated logger so production logs stay quiet.
