| 开发者 | fen0m |
|---|---|
| 更新时间 | 2026年9月3日 06:35 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
lang attribute by default[seatempmap] shortcode for classic themes and page builders[seatempmap dest="hvar"]
Attributes: dest (required, the beach id), units (c or f), theme (auto, light, dark), show (both or sea), shadow (on or off), lang (a language code, or leave empty to follow your page).
Top line, free: topline (auto, custom, off), eyebrow (your text, with topline="custom"), clock (on to show the beach's local time).
With a Widget Pro licence saved in the settings: name (your own card name), forecast (wide or grid), bar (off hides the colour scale), offseason (on). Without a licence these are ignored and the card stays free rather than breaking.
Preview every option and find beach ids at seatempmap.com/embed.
[seatempmap dest="..."] shortcode.SeaTempMap is a website: a live sea temperature map covering every coast on Earth, at seatempmap.com, with apps for Android and iOS. This plugin is one of the ways to use it – it places a live card from that map on your own WordPress site. The map, its destination pages and the apps exist on their own, with or without WordPress.
The list covers 174 beaches and coastal cities. If yours is missing, write to hello@seatempmap.com and say which one.
The script loads asynchronously and only on pages that actually contain a widget. It has no dependencies and does not load jQuery, fonts or a framework.
By default it reads the background behind it and picks a light or dark card to fit. You can force light or dark instead.
Yes. Each card is independent, and the script is loaded once regardless of how many you place.
Yes, through the shortcode. Any builder with a shortcode or raw HTML element can host it.
Sea temperature comes from NASA satellite measurements; weather and UV come from forecast models. The reading is taken at the swimming area near each beach rather than in open water, which is usually a degree or two different.
The free card does, and only from inside the card itself. It shows "SeaTempMap.com" and links to the beach page it is showing, the same way an embedded map or video links back to its source. That link is the attribution for the data, and it is what the free card is exchanged for.
Nothing is added anywhere else on your site. There is no footer credit, no "powered by" line, and no link outside the widget you placed. Remove the widget and every trace of it is gone.
A card using a Widget Pro licence carries no link and no mention of us at all – not a visible one and not a hidden one in the markup. That is what the licence buys.
For the curious: on a free card the markup contains that link as a plain <a> before the card renders over it. It is the fallback a visitor sees if JavaScript is off or the service is unreachable, so the card never collapses into an empty box.
You do not need it. The whole plugin works without it and always will. Widget Pro is a yearly licence for sites that want the card to look like theirs rather than ours: your own name on it, a ten-day forecast strip, an off-season weather face below 18 °C, the colour scale hidden, and our name and link off the card. It is bought at seatempmap.com/embed and entered once under Settings → Sea Temp Map.
Go to Settings → Sea Temp Map, pick your beach under "Check your licence" and read the line it prints. It asks the service the same question your visitors' browsers ask, from your own domain, and tells you plainly whether the licence was accepted. A licence is bound to one domain and to the beach it was bought for, so a key that works on your live site will not work on a staging domain or for a different beach. A key that is not accepted is not an error: the card simply renders as the free card, so your page keeps working while you sort it out. If the line says the key was refused and you think it should not be, write to hello@seatempmap.com.
Every card falls back to the free card, with our name on it again. Nothing breaks, no page goes blank and no visitor sees a warning – a lapsed licence is your business, not theirs. Because it is quiet, it is worth checking on the settings screen if you are unsure: pick your beach under "Check your licence" and it will tell you.
No. There are no cookies, no tracking pixel and no analytics. The card requests a temperature and draws it.
shadow never worked as a shortcode attribute. It was documented from 1.1.0 but missing from the shortcode's attribute list, so [seatempmap shadow="off"] silently kept the shadow. The block was unaffected.shadow option (block setting and shortcode attribute) turns the card's drop shadow off for flat page designs. The glass surface and its edge are unchanged.