
內容簡介
這個外掛允許您在 網站 上顯示 Airliners.net 航空圖片。您可以輕鬆選擇隨機圖片,昨天的「前列車」(Top Of Yesterday)圖片,或是通過在 widget 的參數中指定圖片 ID 來顯示特定圖片。
這個 widget 使用一個名為「widget_airliners_widget」的類別,可以讓您強制執行某些渲染,因為 Airliners.net 提供的預設區塊是黑色詞與白色寫作。
附帶的 airliners-widget.css 樣式表展示了如何獲取灰色詞和透明背景的區塊。請隨意編輯此文件以適應您的需要!
此 widget 預設搭載了法語和德語翻譯。
此 widget 也支援短代碼!
只需將 [airliners] 短代碼添加到您的任何文章中,您將預設獲取一張隨機的 Airliners.net 圖片!
短代碼支援兩個參數: imgtype 和 imgid。
* imgtype 指示您想要顯示的圖片類型,可以取以下值之一:random、yesterday、picture。
* imgid 設置您想要顯示圖片的特定 ID,如果已將「圖片」設置為 imgtype。
短代碼使用範例:
[airliners imgtype=’yesterday’]
顯示昨天的前列車圖片。
[airliners imgtype=’picture’ imgid=’123456′]
顯示對應於 ID 為「123456」的圖片。
外掛標籤
開發者團隊
原文外掛簡介
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’.
