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

Suntimes Widget

描述

Displays sunrise and sunset times for locations in widgets

屏幕截图

  • The suntimes widget

安装

This section describes how to install the plugin and get it working.

  1. Go to the Plugins page in the admin area, search for suntimes widget and install it.
  2. Or Extract suntimes-widget.zip in the /wp-content/plugins/ directory. This will create a subfolder called suntimes-widget containing the plugin files.
  3. Activate the Suntimes Widget through the ‘Plugins’ menu in WordPress
  4. Go to appearance->widgets, add the widget to a widget area and then add the title, latitude and longitude.
  5. Google Maps will give you a longitude and latitude of the location you would like the sunrise and sunset times for.

常见问题

Where are the options?

On the widget page.

Where to report bugs, ask for support or suggest features?

At the plugin page.

评价

2019 年 4 月 19 日
It’s a great shame but this very handy widget no longer seems to work under 5.1
2018 年 10 月 30 日
This example helped me a lot with the basics of plugin/widget development. The times for sunset/sunrise etc. are retrieved by calling a web service. I later found out that (depending on the php version available) the data can be calculated using the built-in function date_sun_info i.e. without the need to call an external web service. Implementing the aforementioned date_sun_info instead of the web service is simple.
阅读所有2条评价

贡献者及开发者

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

贡献者

帮助将「Suntimes Widget」翻译成简体中文。

对开发感兴趣吗?

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

更新日志

0.9.2

DST related bugfix

0.9.1

Bugfix

0.9

Initial version