[wordpress插件] Current Weather当前天气

wordpress 插件 文章 2020-04-07 01:00 741 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

This plugin uses data from the Yahoo!

此插件使用Yahoo!的数据

Weather API to display the current weather for a location of your choosing as well as the forecast for the current and next day.

Weather API,以显示您选择的位置的当前天气以及当前和第二天的天气预报。

The simplest way to insert the shortcode into your page or post is to use [current_weather location="your location here"] to get the default implementation, which would be your current conditions with forecast and

将简码插入页面或帖子的最简单方法是使用 [current_weather location =“您在这里的位置”] 来获取默认实现,这将是您当前的预测条件和

location shown using standard units.

使用标准单位显示的位置。

The full list of shortcode attributes is:

简码属性的完整列表为:

* location – Use a city, state;

*位置–使用城市,州;

zip code;

邮政编码;

WOEID;

WOEID;

etc.


* units – Either f, for standard, or c, for metric.

*单位–对于标准而言是f,对于公制则是c。

* show – True, if you want to show your location.

*显示–是的,如果您想显示您的位置。

Default is true.

默认值为true。

* forecast – True, if you want to show the forecast.

*预测-如果要显示预测,则为True。

Default is true.

默认值为true。

* condensed – True, if you want to show the condensed version.

*精简–如果要显示精简版本,则为True。

Default is false.

默认值为false。

Features

功能

    • Choose any location worldwide.

    • 选择全球任何位置。

      The plugin will determine your location’s WOEID for you.

    • 该插件将为您确定您所在位置的WOEID。

    • Use either standard or metric units.
    • 使用标准或公制单位。

    • Show or hide the location.
    • 显示或隐藏位置。

    • Show or hide the two day forecast.
    • 显示或隐藏两天预报。

    • Condensed version showing icon, temperature, conditions, and location only.
    • 精简版仅显示图标,温度,条件和位置。

    • Custom title text.
    • 自定义标题文字。

    • Multi widget.
    • 多个小部件。

    • Simple shortcode.
    • 简单的简码。

安装步骤

    1. Unzip and upload the folder /current-weather/ to the /wp-content/plugins/ directory of your WordPress installation.
    2. 解压缩文件夹 / current-weather / 并将其上传到WordPress安装目录的 / wp-content / plugins / 目录中。

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

    5. Use the shortcode or widget on your site.
    6. 使用您网站上的简码或窗口小部件。

    7. Customize the css to match your site or use the default setup.
    8. 自定义 css 以匹配您的网站或使用默认设置。

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

AI助手支持GPT4.0