该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Weather Layer

描述

Weather Layer is a plugin which allows you to display a layer with weather information for a choosen city.

For example, if you want to display weather for Paris into a post, you just need to insert the following shortcode :

[weatherlayer country=”France” city=”Paris”]

This will display a horizontal layer with weather information related to Paris, France. This format fits well for single posts. However, if you want to insert a weather layer into your sidebar, the WL widget is what you need. Drag and drop it in the widgets menu then fill the form.

Finally, if you want to display a vertical layer with a shortcode, use this :

[weatherlayer country=”Japan” city=”Osaka” display=”vertical”]

Supported languages are English, French, Spanish, German, Italian, Russian, Japanese and Polish.

NB :
This plugin is using Open Weather Map.

屏幕截图

  • Horizontal display
  • Vertical display

安装

  1. Download the weather-layer.zip file which contains the whole stuff required
  2. Unzip the archive
  3. Upload weather-layer directory extracted from the archive to your /wp-content/plugins/ directory
  4. 通过WordPress的的“Plugins”菜单激活插件
  5. Configure the plugin through your admin interface
  6. Use shortcode like [weatherlayer country=”England” city=”London”] for posts and WL widget for the sidebar

常见问题

Installation Instructions
  1. Download the weather-layer.zip file which contains the whole stuff required
  2. Unzip the archive
  3. Upload weather-layer directory extracted from the archive to your /wp-content/plugins/ directory
  4. 通过WordPress的的“Plugins”菜单激活插件
  5. Configure the plugin through your admin interface
  6. Use shortcode like [weatherlayer country=”England” city=”London”] for posts and WL widget for the sidebar

评价

2017 年 5 月 11 日
It looks nice, but would be much more helpful if it didn’t skip the weather report for “tomorrow”. It shows “today” (Thursday), then Saturday and Sunday. It’s always skipped “tomorrow”. It’s probably time-zone related, but it’s kinda annoying. If I was using this on a public site, I would remove it, but it’s ‘ok’ for just me.
2016 年 9 月 3 日
The plugin isn’t synchronized right cause it shows the weather of the next day not the present one and i couldn’t find any setting to change the display day. Also when viewed by a mobile phone the name of the city has a space in the middle of the letters.
2016 年 9 月 3 日
I was looking for a new weather plugin because the one I was using didn’t work anymore (it was using Yahoo Weather) and this one works perfectly. Really easy to use and configure. Different languages and units availables, good plugin.
阅读所有8条评价

贡献者及开发者

「Weather Layer」是开源软件。 以下人员对此插件做出了贡献。

贡献者

帮助将「Weather Layer」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志