[wordpress插件] Apixu Weather Widget阿皮库天气小部件

wordpress 插件 文章 2020-02-19 20:20 530 0 全屏看文

AI助手支持GPT4.0

评分
80
描述

This plugin allows you to easily add Apixu weather widgets to your site.

此插件可让您轻松将Apixu天气小部件添加到您的站点。

Apixu Weather plugin is fully responsive (automatically adapt appearance for mobile displays), highly customizable (add as widget or shortcode), beautiful and simple to use.

Apixu Weather插件具有完全响应能力(自动适应移动显示的外观),高度可定制(作为小部件或简码添加),美观且易于使用。

The weather data is provided for free by [Apixu.com]https://www.apixu.com, they require an

[Apixu.com] https://www.apixu.com免费提供天气数据,它们需要

"nofollow">API Key to access their weather.

“ nofollow“> API密钥以访问其天气。

Once you have the API Key you can simply add it in 'Settings' -> 'Apixu Weather' and you’re ready to go.

拥有API密钥后,您只需将其添加到“设置”->“ Apixu Weather” 中,即可开始使用。

Use the built in widget with all of its custom settings or add it to a page or theme with the shortcode: (all settings shown)

使用内置窗口小部件及其所有自定义设置,或将其添加到带有短代码的页面或主题中:(显示所有设置)

[apixu-weather location='Minsk, Belarus' units='C' size='tall' forecast_days='3' scheme='1' hide_stats='1' inline_style='max-width: 300px

  [apixu天气位置='明斯克,白俄罗斯'单位='C'大小='高'Forecast_days ='3'scheme ='1'hide_stats ='1'inline_style ='max-width:300px 

' custom_bg_color='green' text_color='red']

'custom_bg_color ='绿色'text_color ='红色']

Settings

设置

    • Location: Enter a string like “Minsk, Belarus” or just “London”.

    • 位置:输入字符串,例如“白俄罗斯明斯克”或仅输入“伦敦”。

      You may also pass latitude and longitude in decimal degree.

      您也可以按十进制度数传递纬度和经度。

      E.g: 53.1,-0.12

    • 例如:53.1,-0.12

    • Units: C (default) or F
    • 单位:C(默认)或F

    • Size: tall (default) or wide
    • 大小:高(默认)或宽

    • Forecast Days: How many days to show in the forecast bar (3 or 5)
    • 预测天数:在预测栏中显示多少天(3或5)

    • Hide stats: Hide the text stats like humidity, wind, high and lows, etc
    • 隐藏统计信息:隐藏文本统计信息,例如湿度,风,高低等

    • Inline style: styles for widget

      内联样式:小部件样式

    • Sample:

      示例:

    • scheme=”45″ means widget 5 style will be choosen.

    • scheme =“ 45”表示将选择小部件5样式。

    • Custom background color and test color is only available for 81,1 widget codes and not active if other.

      自定义背景色和测试色仅适用于81,1小部件代码,而其他则无效。

    • Widget styles shortlist.

      小部件样式短名单。

      Code – widget style.

      代码–小部件样式。

    • 41 – Widget 1
    • 41 –小部件1

    • 42 – Widget 2
    • 42 –小部件2

    • 43 – Widget 3
    • 43 –小部件3

    • 44 – Widget 4
    • 44 –小部件4

    • 45 – Widget 5
    • 45 –小部件5

    • 72 – Widget 6
    • 72 –小部件6

    • 73 – Widget 7
    • 73 –小部件7

    • 81 – Widget (custom) 8
    • 81 –小部件(自定义)8

    • 1 – Widget (custom) 9

      1 –小部件(自定义)9

    • Colors

      颜色

    • custom_bg_color = ‘green’ also available code, for example ‘#000’ (Black)
    • custom_bg_color ='green'也可用的代码,例如'#000'(黑色)

    • text_color = ‘red’ also available code, for example ‘#000’ (Black)
    • text_color =“红色”也可用的代码,例如“#000”(黑色)

安装步骤

    1. Add plugin to the /wp-content/plugins/ directory
    2. 将插件添加到 / wp-content / plugins / 目录

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

    5. Register for an Apixu API Key
    6. 注册Apixu API密钥

    7. Add your API Key to the settings field in 'Settings' -> 'Apixu Weather' (added in version 1.0)
    8. 将您的API密钥添加到“设置”->“ Apixu Weather” (版本1.0中添加)中的设置字段中

    9. Use shortcode or widget to display apixu weather on your apixu site
    10. 使用简码或小部件在您的apixu网站上显示apixu天气

下载地址
https://downloads.wordpress.org/plugin/apixu-weather-widget.zip
-EOF-

AI助手支持GPT4.0