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

Airliners Widget

描述

This widget allows you to display an Airliners.net aviation picture on your website. You can easily choose between a random picture, the “Top Of Yesterday” picture, or a specific picture by specifying the picture ID in the widget’s parameters.

The widget uses a class called “widget_airliners_widget” allowing you to enforce some rendering, as the default block provided by Airliners.net is black with white writing.

Included is airliners-widget.css style sheet that shows how to get the block with gray writing and transparent background. Feel free to edit this file to suit your needs !

This widget comes out of the box with french and german translations.

This widget also supports shortcodes !

Just add a [airliners] shortcode to any of you posts and you’ll get a random Airliners.net picture by default !
The shortcode supports two parameters : imgtype and imgid.
* imgtype indicates what type of picture you want to show, it can take one of these values : random, yesterday, picture
* imgid sets the id of the specific picture you want to show, if ‘picture’ has been set to imgtype

Shortcode usage samples :
[airliners imgtype=’yesterday’]
Displays the top of yesterday’s pictures.

[airliners imgtype=’picture’ imgid=’123456′]
Displays the picture corresponding to id ‘123456’.

螢幕截圖

  • Admin side of things.
  • Sample rendering.

安裝

  1. Upload the zipfile to the /wp-content/plugins/ directory
  2. Extract and remove it
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Drag the new widget to desired sidebar, choose a title (or not) for the widget and select the image type.

評價

2016年9月3日
would be nice to create a slide or have several pics instead of a single thumbnail. Any plans to expand this? would also be nice if there was available Shortcode string to add this to Visual composer finally, this does not work with latest WP install thanks
閱讀全部2個評價

貢獻者及開發者

“Airliners Widget” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Airliners Widget 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.1.1

  • Tested up to WordPress 4.2.2

1.1

  • Added translation capabilities
  • Included french and german translations

1.0.1

  • Tested compatibility up to WordPress 3.9

1.0

  • Initial release