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

WP SimpleWeather

描述

WP SimpleWeather allows you to quickly and easily display the current weather at any location you enter using the Yahoo! Weather API. WP SimpleWeather is exactly what you’d expect from the name. A SIMPLE way to display weather via a wordpress plugin. It is easily installed, widgetized, and comes with an expansive yet easy to use settings page.

The WP SimpleWeather Plugin was adapted from the simpleWeather jQuery plugin by James Fleeting.

屏幕截图

  • The default WP SimpleWeather widget.
  • The WP SimpleWeather widget with all options shown.
  • The WP SimpleWeather Settings page.

安装

  1. Upload the whole plugin folder to your /wp-content/plugins/ folder.
  2. Go to the ‘Plugins’ page in the menu and activate the plugin.
  3. Use the WP SimpleWeather Settings page located under the ‘Settings’ menu to change your plugin options. You must enter a location.
  4. Activate the WP SimpleWeather Widget under the ‘Appearance –> Widgets’ menu, or by adding the [wp-simpleweather] shortcode where you wish to display the weather widget.

Shortcode Options

  • Options include [wp-simpleweather width=”(integer)” float=”(left/right/none)” paddingtop=”(integer)” paddingright=”(integer) paddingbottom=”(integer)” paddingleft=”(integer)”
  • Example [wp-simpleweather width=”200″ float=”left” paddingtop=”10″ paddingright=”10″ paddingbottom=”10″ paddingleft=”0″]

评价

2016年9月3日
The plugin works to an extent however when you refresh your site it changes the weather update no matter what even when there is no change in the weather. I do not advise you install until this is fixed! Other than this a great plugin and easy to customise! Using <div id="simpleweather-widget"></div> I can place it anywhere including my header so that is great but shame it no longer works. No updates since 2 years ago!
阅读所有6条评价

贡献者及开发者

“WP SimpleWeather” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“WP SimpleWeather”翻译成您的语言。

对开发感兴趣吗?

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

更新日志

Changes for the WP SimpleWeather Plugin:

0.2.5

  • Updated to work with the WordPress 3.8.1.

0.2.4

  • Testing to ensure the plugin works correctly with WordPress 3.5.1.

0.2.3

  • Corrected an error where selecting to display only the city, without displaying the region or country, would break the widget. Thanks to Rick H. for pointing out the problem.

0.2.2

  • Added the ability to modify celsius wind speed units from km/h to m/s.
  • Changed function which removed DB settings on deactivation to the proper function to remove those settings on uninstall. Unfortunately, prior to this version, updates remove your settings. Sorry!

0.2.1

  • Changes to initialization of options, so that default options are saved into the DB, not merely checked as if they had been saved.
  • Now deletes DB entries upon deactivation for a clean uninstall.

0.2

  • Minor corrections in wp-simpleweather-plain.css
  • Addition of a choice of image themes. Choices added are Sketchy Weather by Azure_Sol and Weather Images Shiny by Jyrik.
  • Localized all image files.
  • Added shortcode implementation option.

0.1.1

  • Minor correction to description, addition of changelog in the readme.txt file.

0.1

  • Initial release.