[wordpress插件] DistanceFromMe我的距离

wordpress 插件 文章 2020-04-19 21:20 512 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Finds the distance between the visitor to your site and your iOS device or a fixed location.

查找网站访问者与iOS设备或固定位置之间的距离。

Uses Find My Phone and Browser Geolocation to do so.

使用“查找我的电话”和“浏览器地理位置”来执行此操作。

Find my Phone is accessed using the Sosumi library (https://github.com/tylerhall/sosumi/).

使用Sosumi库(https://github.com/tylerhall/sosumi/)访问“查找我的电话”。

The widget either tries to find your location using ‘Find my Phone’ and then works out the distance between you and the location provided by the site visitors browser.

小部件会尝试使用“查找我的电话”来查找您的位置,然后计算出您与站点访问者浏览器提供的位置之间的距离。

Alternatively you can enter the co-ordinates to use instead of using ‘Find my Phone’.

或者,您可以输入要使用的坐标,而不必使用“查找我的手机”。

For example you could set your location as your place of business to let site visitors know how far away they are from you.

例如,您可以将位置设置为营业地点,以使站点访问者知道他们与您的距离。

Also includes the shortcode [dfme] that reads the geolocation information from a post and displays the distance from the users location to the post.

还包括短代码[dfme],该代码从帖子中读取地理位置信息,并显示从用户位置到帖子的距离。

安装步骤

    1. Upload distancefromme to the /wp-content/plugins/ directory
    2. distancefromme 上载到 / wp-content / plugins / 目录

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

    5. Configure the widget through the ‘Widget’ menu in WordPress to display it on your page
    6. 通过WordPress中的“窗口小部件”菜单配置窗口小部件,以将其显示在您的页面上

    If you wish to use the shortcode to display the distance from the post add [dfme] to your post after installing the Goelocation plugin (https://wordpress.org/support/plugin/geolocation).

    如果您希望使用简码来显示从职位发布的距离,请在安装Goelocation插件(https://wordpress.org/support/plugin/geolocation)之后将[dfme]添加到您的职位。

    This plugin uses the latitude and longitude values from the Geolocation plugin.

    该插件使用Geolocation插件中的纬度和经度值。

    The shortcode will only display the distance so you can add your own text around this value.

    简码将仅显示距离,因此您可以在该值附近添加自己的文本。

    What do the widget configuration values do ?

    小部件配置值有什么作用?

      • Title : The title that will appear at the top of the widget
      • 标题:将显示在小部件顶部的标题

      • Use Find My Phone : If ‘Yes’ then the widget will use Find My Phone to get your current location.

      • 使用“查找我的电话”:如果选择“是”,则小部件将使用“查找我的电话”获取您的当前位置。

        If set to ‘No’ then the widget will use the values provided for ‘Home Lat’ and ‘Home Lng’.

      • 如果设置为“否”,则该小部件将使用为“本垒打”和“本垒打”提供的值。

      • Show Device Name : If ‘Yes’ then the widget display the name of the device that it has retrieved the location for.

      • 显示设备名称:如果为“是”,则小部件将显示为其检索位置的设备的名称。

        If this is set to ‘No’ then the details from ‘Home Name’ will be displayed.

        如果将其设置为“否”,则将显示“家庭名称”中的详细信息。

        If ‘Home Name’ field is empty then the text ‘my current location.’ will be used.

      • 如果“家名”字段为空,则将使用文本“我的当前位置。”。

      • Find My Phone Username : You Apple Id username for Find My Phone
      • 查找我的手机用户名:您的Apple ID用户名“查找我的手机”

      • Find My Phone Password : You Apple Id password for Find My Phone
      • 查找我的电话密码:您用于查找我的电话的Apple ID密码

      • Device No : If you have multiple devices on your Find My Phone account then you can change which one is used by changing this number.

      • 设备号:如果“查找我的电话”帐户中有多个设备,则可以通过更改此号码来更改使用哪个设备。

        Accepts values from 0 to 100. Defaults to 0 if no value is entered.

      • 接受从0到100的值。如果未输入任何值,则默认为0。

      • Timeout : How long in seconds the widget should spend looking for the Find My Phone device.

      • 超时:小部件在寻找“查找我的电话”设备上应花费的时间(以秒为单位)。

        Defaults to 300 if no value is entered.

      • 如果未输入任何值,则默认为300。

      • Google Maps V2 API: Your Google Maps V2 API Key
      • Google Maps V2 API:您的Google Maps V2 API密钥

      • Home Name: The name of your ‘home’ location.

      • 家庭名称:您的“家庭”位置的名称。

        This wil be displayed to the site visitor.

      • 这将显示给站点访问者。

      • Home Lat: The latitude of your ‘home’ location.

      • 本地纬度:“本地”位置的纬度。

        This will not be displayed to the site visitor.

      • 这不会显示给网站访问者。

      • Home Lng: The longitude of your ‘home’ location.

      • 首页Lng:“首页”位置的经度。

        This will not be displayed to the site visitor.

      • 这不会显示给网站访问者。

下载地址
https://downloads.wordpress.org/plugin/distancefromme.zip
-EOF-

AI助手支持GPT4.0