This widget allows you to display an Airliners.net aviation picture on your website.
此小部件可让您在网站上显示Airliners.net的航空图片。
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.
通过在小部件的参数中指定图片ID,您可以轻松地在随机图片,“昨日最热门”图片或特定图片之间进行选择。 p>
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.
该小部件使用名为“ widget_airliners_widget”的类,可让您强制执行某些渲染,因为Airliners.net提供的默认块为黑色,白色书写。 p>
Included is airliners-widget.css style sheet that shows how to get the block with gray writing and transparent background.
包含的airlines-widget.css样式表显示了如何获取具有灰色文字和透明背景的块。
Feel free to edit this file to suit your needs !
可以根据您的需要随意编辑该文件! p>
This widget comes out of the box with french and german translations.
此小部件开箱即用,提供法语和德语翻译。 p>
This widget also supports shortcodes !
此小部件还支持简码! p>
Just add a [airliners] shortcode to any of you posts and you’ll get a random Airliners.net picture by default !
只需在您的任何帖子中添加[airliners]简码,默认情况下您会获得随机的Airliners.net图片!
The shortcode supports two parameters : imgtype and imgid.
简码支持两个参数:imgtype和imgid。
* imgtype indicates what type of picture you want to show, it can take one of these values : random, yesterday, picture
* imgtype指示您要显示的图片类型,可以采用以下值之一:随机,昨天,图片
* imgid sets the id of the specific picture you want to show, if ‘picture’ has been set to imgtype
* imgid设置您要显示的特定图片的ID(如果“图片”已设置为imgtype p>)
Shortcode usage samples :
简码用法示例:
[airliners imgtype=’yesterday’]
[airliners imgtype ='昨天']
Displays the top of yesterday’s pictures.
显示昨天图片的顶部。 p>
[airliners imgtype=’picture’ imgid=’123456′]
[航空公司imgtype ='picture'imgid ='123456']
Displays the picture corresponding to id ‘123456’.
显示与ID“ 123456”相对应的图片。 p>