[wordpress插件] Airliners Widget客机小部件

wordpress 插件 文章 2020-02-12 22:00 487 0 全屏看文

AI助手支持GPT4.0

评分

20

20

描述

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,您可以轻松地在随机图片,“昨日最热门”图片或特定图片之间进行选择。

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提供的默认块为黑色,白色书写。

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 !

可以根据您的需要随意编辑该文件!

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 !

只需在您的任何帖子中添加[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

Shortcode usage samples :

简码用法示例:

[airliners imgtype=’yesterday’]

[airliners imgtype ='昨天']

Displays the top of yesterday’s pictures.

显示昨天图片的顶部。

[airliners imgtype=’picture’ imgid=’123456′]

[航空公司imgtype ='picture'imgid ='123456']

Displays the picture corresponding to id ‘123456’.

显示与ID“ 123456”相对应的图片。

安装步骤

    1. Upload the zipfile to the /wp-content/plugins/ directory
    2. 将zip文件上传到 / wp-content / plugins / 目录

    3. Extract and remove it
    4. 提取并删除它

    5. Activate the plugin through the ‘Plugins’ menu in WordPress
    6. 通过WordPress中的“插件”菜单激活插件

    7. Drag the new widget to desired sidebar, choose a title (or not) for the widget and select the image type.
    8. 将新窗口小部件拖动到所需的侧边栏,为窗口小部件选择标题(或不选择),然后选择图像类型。

下载地址

https://downloads.wordpress.org/plugin/airliners-widget.1.1.1.zip

https://downloads.wordpress.org/plugin/airliners-widget.1.1.1.zip

-EOF-

AI助手支持GPT4.0