[WordPress] 外掛分享: Astronomy Picture Of the Day

首頁外掛目錄 › Astronomy Picture Of the Day
WordPress 外掛 Astronomy Picture Of the Day 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
50+
安裝啟用
尚無評分
3320 天前
最後更新
問題解決
v1.0.1 上架:2017-02-09

內容簡介

「Astronomy Picture Of the Day」外掛程式會從 NASA 開放 API 檢索資料,專門檢索來自「Astronomy Picture Of the Day」(APOD)的資料。透過於文字模式編輯器中新增的短碼,可以在文章/頁面中呈現該資料。透過 JavaScript AJAX 呼叫擷取資料,並將其存儲為瀏覽器的 Cookie 以供快取之用。
目前,外掛使用公共的 DEMO_KEY 進行對開放 API 的請求,並將資料儲存為 Cookie 以供未來的 24 小時內快取之用,以降低 API 的分擔負擔,同時也可能有助於 WordPress 使用者有更順暢的體驗。

使用方式:
啟用外掛後,進入文章/頁面的編輯器模式,然後在文字模式中新增 [astronomy-picture-of-the-day] 或 [astronomy-picture-of-the-day-hd] 以生成一個包含容器 div、標題、APOD 圖片和說明的 HTML 區塊。
所有元素都會接收 CSS 類,因此可以由 WordPress 開發人員進行獨立樣式設定。
在管理介面中,會列出相關 CSS 類。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon