Title: ResOnline Booking Gadget
Author: Phoenix Online
Published: <strong>2019 年 7 月 16 日</strong>
Last modified: 2019 年 7 月 18 日

---

搜索插件

![](https://ps.w.org/resonline-booking-gadget/assets/banner-772x250.png?rev=2123592)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/resonline-booking-gadget/assets/icon-128x128.png?rev=2123592)

# ResOnline Booking Gadget

 作者：[Phoenix Online](https://profiles.wordpress.org/psdtofinal/)

[下载](https://downloads.wordpress.org/plugin/resonline-booking-gadget.zip)

 * [详情](https://cn.wordpress.org/plugins/resonline-booking-gadget/#description)
 * [评价](https://cn.wordpress.org/plugins/resonline-booking-gadget/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/resonline-booking-gadget/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/resonline-booking-gadget/#developers)

 [支持](https://wordpress.org/support/plugin/resonline-booking-gadget/)

## 描述

The [ResOnline Booking Gadget](https://www.resonline.com/features/online-booking-integration)
allows registered Hotels, Motels, Caravan Parks and other Accommodation Businesses
to embed a relatively user-friendly booking widget directly on their website.

This plugin simplifies the process of embedding the _ResOnline Booking Gadget_ by
adding a simple shortcode to WordPress, allowing you to add the ResOnline Booking
Gadget to any page, post or CPT on your site using:

    ```
    [resonline id="123456"]
    ```

**ResOnline Booking Gadget Lite**

 * Embed a Booking Gadget on **any** Page, Post or CPT on your site
 * Set your default currency
 * Set a default search layout (horizontal or vertical)
 * Switch image previews / thumbnails on and off
 * Override default settings at a shortcode-level

**ResOnline Booking Gadget Pro**

 * **All of the free versions’ options, plus…**
 * Set the default number of days / columns displayed
 * Change the default _Room Name_ label

### Shortcode Usage

For ease of use and flexibility, this plugin’s shortcodes can be added with practically
no options; however most functional options can be used and / or overridden at a
shortcode level (including the Columns and Room Label options)

**Basic Usage**

At a minimum, the Hotel ID must be supplied in order to “pick up” the correct Booking
Gadget. So, if you have the Hotel ID 12345, the corresponding short code would be:

    ```
    [resonline id="12345"]
    ```

**Additional Parameters / Overrides**

The following parameters can be added to the Standard or Pro version of the short
code to override the default features:

    ```
    currency
    ```

Any three-letter ISO currency code available to the vendor (eg AUD, USD, IDR, etc)

    ```
    layout
    ```

Layout override. Either horiz for the Wide / Horizontal Layout or vert for the Tall/
Vertical Layout

    ```
    show-images
    ```

Set to true to display preview images / thumbnails, or false to hide image previews

    ```
    columns
    ```

The default number of columns to display, when showing a Booking Gadget in Wide /
Horizontal Layout mode

    ```
    label
    ```

The label to show (eg, Rooms, Apartments, Cabins, etc)

**Example Shortcode Overrides**

Different default currency:

    ```
    [resonline id="12345" currency="GBP"]
    ```

Force a horizontal layout:

    ```
    [resonline id="12345" layout="horiz"]
    ```

Hide thumbnails:

    ```
    [resonline id="12345" show-images="false"]
    ```

Reduce columns for a narrow layout:

    ```
    [resonline id="12345" columns="5"]
    ```

Display a custom room label:

    ```
    [resonline id="12345" label="Yurts"]
    ```

A combination of options:

    ```
    [resonline id="12345" currency="USD" layout="vert" label="Houseboats"]
    ```

## 屏幕截图

[⌊Default Horizontal layout of the ResOnline Booking Gadget⌉⌊Default Horizontal 
layout of the ResOnline Booking Gadget⌉[

Default _Horizontal_ layout of the _ResOnline Booking Gadget_

[⌊Default Vertical layout of the ResOnline Booking Gadget⌉⌊Default Vertical layout
of the ResOnline Booking Gadget⌉[

Default _Vertical_ layout of the _ResOnline Booking Gadget_

[⌊The ResOnline Booking Gadget after custom styles have been added manually using
a child-theme. Note that styling "options" are not presently available (although
there are plans to add the feature soon)⌉⌊The ResOnline Booking Gadget after custom
styles have been added manually using a child-theme. Note that styling "options"
are not presently available (although there are plans to add the feature soon)⌉[

The _ResOnline Booking Gadget_ after custom styles have been added manually using
a child-theme. Note that styling “options” are not presently available (although
there are plans to add the feature soon)

[⌊Standard and Pro options⌉⌊Standard and Pro options⌉[

_Standard_ and _Pro_ options

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/resonline-booking-gadget` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Navigate to _WordPress Dashboard_ => _Settings_ => _ResOnline_ to cusotmise the
    settings

## 常见问题

  Can I style the Booking Gadget

Yes, but it’s a bit fiddly. You will need to add custom CSS to your child theme.

Styling options will be coming in a later version of this plugin.

  Can I customise “Pro” features on the free version

Yes, you can. This is done at the shortcode level, eg `[resonline id="123456" columns
="12"]`.

## 评价

此插件暂无评价。

## 贡献者及开发者

「ResOnline Booking Gadget」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Phoenix Online ](https://profiles.wordpress.org/psdtofinal/)

[帮助将「ResOnline Booking Gadget」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/resonline-booking-gadget)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/resonline-booking-gadget/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/resonline-booking-gadget/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/resonline-booking-gadget/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/resonline-booking-gadget/)。

## 更新日志

#### 1.0.3

 * Temporarily locked Pro features ON while an issue with the software licencing
   platform is being sorted

#### 1.0.2

 * Updated method used to connect to the verification server

#### 1.0.1

 * Added input sanitisation
 * Added output escaping

#### 1.0.0

 * Initial build

## 额外信息

 *  版本 **1.0**
 *  最后更新：**7 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.6 或更高版本 **
 *  已测试的最高版本为 **5.2.29**
 *  PHP 版本 ** 5.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/resonline-booking-gadget/)
 * 标签
 * [accommodation](https://cn.wordpress.org/plugins/tags/accommodation/)[booking gadget](https://cn.wordpress.org/plugins/tags/booking-gadget/)
   [booking widget](https://cn.wordpress.org/plugins/tags/booking-widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/resonline-booking-gadget/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/resonline-booking-gadget/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/resonline-booking-gadget/reviews/)

## 贡献者

 *   [ Phoenix Online ](https://profiles.wordpress.org/psdtofinal/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/resonline-booking-gadget/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://codecanyon.net/user/phoenixonline)