[WordPress] 外掛分享: Aviation Weather from NOAA

WordPress 外掛 Aviation Weather from NOAA 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Aviation Weather from NOAA」是 2013-12-22 上架。
  • 目前有 200 個安裝啟用數。
  • 上一次更新是 2022-10-31,距離現在已有 916 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.8 以上版本才可以安裝。
  • 有 4 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

ranchhand6 | machouinard |

外掛標籤

noaa | METAR | pireps | weather | aviation |

內容簡介

從美國國家海洋和大氣管理局的航空數據數據服務顯示METAR和TAF信息
顯示目前時間之前最多6小時的資訊
顯示最多200英里半徑範圍內的PIREP信息
可以使用 widget 或 shortcode 創建多個實例
內含 WP-CLI 整合功能

Gutenberg 區塊

在小工具中可以找到一個名為AWFN 區塊。

Shortcode 用法:(顯示與默認值)
[adds_weather apts='KSMF' hours=2 show_metar=1 show_taf=1 show_pireps=1 show_station_info=1 radial_dist=100 title='']

使用 WordPress Transients API 緩存資料30分鐘。

包含的過濾器鉤子:

adds_kses:允許 HTML 標籤的數組。
adds_custom_css:用戶提供的樣式表的 URL。 如果在佈景主題目錄中提供了樣式表('css / aviation_weather_from_noaa.css'),則還會覆蓋樣式表。

樣式

從插件目錄中複製css / aviation_weather_from_noaa.css並將其保留在主題目錄中。
進行所需更改。
插件將加載這個樣式表,而不是它自己的樣式表。

代碼和支援可在 GitHub 中獲得。

原文外掛簡介

Display METAR & TAF info from NOAA’s Aviation Digital Data Service
Display up to 6 hours before now
PIREPs up to 200sm
Create multiple instances using either widget or shortcode
WP-CLI Integration

Gutenberg Block
A new AWFN Block can be found in the Widgets section.
Shortcode Usage: ( shown with defaults )
[adds_weather apts='KSMF' hours=2 show_metar=1 show_taf=1 show_pireps=1 show_station_info=1 radial_dist=100 title='']

Data is cached for 30 minutes using the WordPress Transients API.
Included Filter Hooks:

adds_kses: Array of permitted HTML tags.
adds_custom_css: URL of a user-supplied stylesheet. Supplying a stylesheet in theme’s directory ( ‘css/aviation_weather_from_noaa.css’ ) will also override stylesheet.

Styling

Copy css/aviation_weather_from_noaa.css from plugin directory into theme directory, keeping that file structure.
Make desired changes.
Plugin will load this stylesheet instead of its own.

Code and support available at GitHub

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Aviation Weather from NOAA」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.4.0 | 0.5.0 | 0.5.1 | 0.6.0 | 0.7.0 | 0.7.1 | 0.7.2 | trunk |

延伸相關外掛(你可能也想知道)

暫無相關外掛推薦。

文章
Filter
Mastodon