
內容簡介
從美國國家海洋和大氣管理局的航空數據數據服務顯示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
