這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Astronomy Picture Of the Day

描述

The Astronomy Picture Of the Day plugin fetches data from the NASA open API and specifically data from Astronomy Picture Of the Day (APOD). The data can then be presented within posts/pages through the use of short-codes added to the editor in text-mode. The data is fetched through javascript AJAX calls, and stored within the browser as a cookie for caching purposes.
Currently the plugin uses the public DEMO_KEY for requests towards the open API, and as mentioned then stores the data as cookies for the next 24 hours, this to lessen the request load on the API and also possibly help the wordpress user to a smoother experience.

How to use:
After activating the plugin, go to your post/page, go to editor mode, and then either add [astronomy-picture-of-the-day] or [astronomy-picture-of-the-day-hd] to generate a html block consisting of a container div, with a title, the apod image and its explanation.
All elements receive css classes so they can be styled independently by the WordPress developer.
Within the admin interface the specific css classes that gets added are mentioned.

螢幕截圖

  • This shows the admin interface of the plugin.
  • This shows an example of how to add the shortcode that will generate the html block, in the text-editor mode. In this screenshot a page is modified.

安裝

  1. Upload the plugin files to the /wp-content/plugins/astronomy-picture-of-the-day directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->Astronomy Picture Of the Day screen to configure the plugin
  4. The plugin basically lets you use the short-codes astronomy-picture-of-the-day or astronomy-picture-of-the-day-hd to get a div container with an image element, a header with the corresponding title and a paragraph with the explanation to the APOD.
  5. In the admin interface page, there is a button that clears the browser cache from previously stored data.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Astronomy Picture Of the Day” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Astronomy Picture Of the Day 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0.1

  • Minor adjustments with readme.txt, images added to assets dir so plugin will show images on WordPress.org

1.0.0

  • Initial release