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

首頁外掛目錄 › Aviation Weather from NOAA
WordPress 外掛 Aviation Weather from NOAA 的封面圖片
100+
安裝啟用
★★★★★
5/5 分(4 則評價)
1277 天前
最後更新
問題解決
WordPress 3.8+ v0.7.2 上架:2013-12-22

內容簡介

從美國國家海洋和大氣管理局的航空數據數據服務顯示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 中獲得。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.7.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Aviation Weather from NOAA」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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

文章
Filter
Mastodon