這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 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