Linux 软件免费装
Banner图

BonPlaya - Nearby Beaches

开发者 mva7
更新时间 2026年9月30日 07:56
PHP版本: 8.1 及以上
WordPress版本: 7.1
版权: GPL-3.0-only
版权网址: 版权信息

标签

map hotel travel beach beaches

下载

0.4.0 0.4.2 0.1.0 0.4.1 0.4.3 0.4.5 0.3.0 0.4.4 0.4.6 0.1.1 0.2.0 0.2.1 0.2.2 0.3.1

详情介绍:

Show beaches near a place you choose. Add them with a block, a widget, or a shortcode: a photo list, a short list, or a map only. Each beach can have its own page, with several Commons photos when they exist and a driving route from your place. Set the origin on a map and load beaches from OpenStreetMap. Commons photos are saved to the Media Library when a beach has any. BonPlaya.com credit can be full, subtle, or off. Full can add a review link on a beach. Subtle adds a credit link. Off does not. The plugin does not track visitors. Details on external services, privacy, and the BonPlaya name are in the FAQ.

安装:

  1. Upload the plugin zip via Plugins → Add New → Upload Plugin, or copy the bonplaya-nearby-beaches folder into /wp-content/plugins/.
  2. Activate BonPlaya - Nearby Beaches.
  3. Open BonPlaya in the admin menu. Set latitude and longitude (or search on the map) and a radius.
  4. Save. Changing the location or radius updates nearby beaches automatically. Use BonPlaya → Update data to refresh beaches or photos by hand.
  5. Add beaches to a page with the Nearby beaches block, the widget, or a shortcode. Default is a list with photos and a map.

屏幕截图:

  • Nearby beaches, with your place marked on the map.
  • Beach page with a photo gallery, driving route, and your place.

升级注意事项:

0.4.5 Maps show every saved beach and zoom to the page you are on. A beach page lists recorded facts, including a Blue Flag and its year. 0.4.4 The automatic refresh after the cache interval finishes a long beach or photo list in the background. The Update data screen is unchanged. Opening a page does not wait. 0.4.3 PHP 8.1 is enough. Beach pages keep their address after an update. A beach without a description gets a short factual text. 0.4.2 Maps show your place as a green house. 0.4.1 Distances no longer add a custom phrase after the number. 0.4.0 Beach pages can show a driving route. Descriptions and galleries can be edited per beach. Lists sort and continue on later pages. 0.3.1 Fixes the beach photo gallery freezing after fast thumbnail clicks. 0.3.0 Beach pages can show several Commons photos. Open Update data and click Refresh photos to import extras. 0.2.2 Clearer empty message when no beaches are selected for a post. 0.2.1 Plugin Check compliance for Overpass errors and the settings redirect. 0.2.0 Maps, miles or kilometres, custom distance text, and a separate Update data screen. Saving a new location refreshes beaches there automatically. 0.1.1 Photo import queue, Overpass fallback, and clearer settings progress. 0.1.0 Initial public release licensing.

常见问题:

How do I show beaches on a page?

Use the Nearby beaches block, the widget, or a shortcode. Same layouts in all three: List with photos and map [bonplaya_beaches] Photos, names, distances, and a map. Short list with map [bonplaya_beaches format="minimal"] Names and distances, with a map. No photos. Map only [bonplaya_beaches format="map"] Only the map. Click a pin for the name. limit is 1–30. A list shows eight beaches per page. On a list, add map="0" if you do not want the map. source="post" shows beaches named in that post or page.

May I copy this plugin and keep the BonPlaya name?

No. The code is GPL-3.0-only; the BonPlaya name and branding are trademarks. A fork must use a different name and identity. See NOTICE.

Which PHP version does this need?

PHP 8.1 or newer. The mbstring extension is optional. Beach names are still matched when it is missing.

Does this send visitor data to BonPlaya?

No. The visitor’s browser does not call BonPlaya. Your WordPress server fetches the sitemap XML on bonplaya.com. It does not send a visitor address or the beach name. Integration only controls whether the public HTML links to BonPlaya.com.

Which external services does this plugin use?

The public site does not call Overpass, Wikidata, Wikimedia Commons, MyMemory, or BonPlaya APIs from the visitor’s browser. Those requests are made by your WordPress server (MyMemory only on a cache miss). When a map is shown, the visitor browser loads bundled Leaflet and OpenStreetMap raster tiles. OpenStreetMap / Overpass — Nearby natural=beach objects (server), plus geocoding (admin) and map tiles (admin settings and public maps). Overpass runs on admin refresh and scheduled sync. Nominatim runs only when an administrator searches the settings map. Sent: origin coordinates and radius; search text; tile x/y/z when a map is shown; site URL in the User-Agent. OSM copyright, Overpass, Overpass Kumi, Nominatim policy, OSM privacy. OSRM — Driving route from the saved place to a beach, shown on that beach page. Server-side, cached for 12 hours. Sent: the two coordinates. Project OSRM. Wikidata — Descriptions, Commons image claims (P18), and Commons category (P373) for OSM objects with a Wikidata id. During photo enrich after sync, or via Update data. Sent: entity ids. Licensing, privacy. Wikimedia Commons — Image metadata and downloads into the Media Library (resized locally), including extra files from a beach Commons category. Public pages never hotlink Commons. During photo enrich. Sent: file titles and category searches. Reusing content, privacy. MyMemory — Translation of cached English summaries into nl, es, de, fr, it, or pt. Cache-first; one server call on first miss. Sent: summary text, language pair, optional contact email from settings, site URL in the User-Agent. Terms. BonPlaya sitemap — The server fetches https://bonplaya.com/sitemap.xml to match a review link when integration is Full. Plugin info, terms, privacy.

Does this plugin track visitors?

No. It does not set analytics or advertising cookies and does not insert hidden affiliate or tracking links. Visitor browsers load OpenStreetMap tiles only when a map is shown. Visible BonPlaya.com links appear only if you set integration to Full or Subtle. BonPlaya privacy: https://bonplaya.com/en/info/privacy BonPlaya terms: https://bonplaya.com/en/info/terms

更新日志:

0.4.5 0.4.4 0.4.3 0.4.2 0.4.1 0.4.0 0.3.1 0.3.0 0.2.2 0.2.1 0.2.0 0.1.1 0.1.0