這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

MaxBooking Booking Widget

外掛說明

This plugin allows you to set up a widget for booking with MaxBooking.com and place it on your website.

Features

  • Easy to use – Installation and setup is very easy and can be done in your WordPress administration.
  • Flexible – You can select vertical or horizontal layout, default arrival date, number of nights, number of guests, etc.
  • Customizable – You can easily use your own additional styles to customize the widget further.
  • Shortcode support – The plugin provides a shortcode that allows you to insert the widget in the content of a page, post or any other place that uses content editor.
  • Multiple widgets – You can add multiple independent widgets to your website with different settings (even for different properties).

If you don’t have a MaxBooking.com account for your hostel or hotel yet, you can sign-up for free here:

MaxBooking.com Signup

More information

For more information visit:

MaxBooking.com Developers – Booking Widget for WordPress

螢幕擷圖

  • Example of vertical and horizontal layout with different themes.
  • Adding a widget to a specific section.
  • Widget configuration.
  • Example of a widget in a sidebar and a widget in a page content (using shortcode).
  • Arrival date selection.

安裝方式

Automatic installation

The plugin can be easily installed from your WordPress administration.

  1. Log in to your site’s dashboard and navigate to “Plugins” -> “Add New”.
  2. Input “MaxBooking.com” into the search field and wait for plugin to show up.
  3. Click “Install Now” and when the installation finishes click “Activate Plugin”.

Manual installation

You can install the widget manually by downloading the zip file and extracting it in your “/wp-content/plugins” directory.

Configuration

  1. From your dashboard navigate to “Appearance” -> “Widgets”.
  2. Find “Booking Widget” in the “Available Widgets” list find and click on it.
  3. Select which section of the theme you would like to place the widget to and click “Add Widget”.
  4. In the selected section click the booking widget and the property ID (corresponds to the MaxBooking.com account ID).
  5. Optionally configure other other settings.
  6. Click Save and verify that the widget shows up on your website.

Shortcode

The plugin allows you to insert a booking widget within standard content by using a shortcode named “maxbookingwidget”.

The shortcode uses the following attributes:

  • property – Required. Property ID or a list of multiple properties with id an label (format as described in the widget settings).
  • layout – Optional. Widget layout (style). Allowed values: “vertical”, “horizontal”.
  • nights_default – Optional. Default number of nights.
  • nights_max – Optional. Maximum number of nights.
  • guests_default – Optional. Default number of guests.
  • guests_max – Optional. Maximum number of guests.

Example usage:

[maxbookingwidget property="1234567" layout="vertical"]

常見問題集

Installation Instructions

Automatic installation

The plugin can be easily installed from your WordPress administration.

  1. Log in to your site’s dashboard and navigate to “Plugins” -> “Add New”.
  2. Input “MaxBooking.com” into the search field and wait for plugin to show up.
  3. Click “Install Now” and when the installation finishes click “Activate Plugin”.

Manual installation

You can install the widget manually by downloading the zip file and extracting it in your “/wp-content/plugins” directory.

Configuration

  1. From your dashboard navigate to “Appearance” -> “Widgets”.
  2. Find “Booking Widget” in the “Available Widgets” list find and click on it.
  3. Select which section of the theme you would like to place the widget to and click “Add Widget”.
  4. In the selected section click the booking widget and the property ID (corresponds to the MaxBooking.com account ID).
  5. Optionally configure other other settings.
  6. Click Save and verify that the widget shows up on your website.

Shortcode

The plugin allows you to insert a booking widget within standard content by using a shortcode named “maxbookingwidget”.

The shortcode uses the following attributes:

  • property – Required. Property ID or a list of multiple properties with id an label (format as described in the widget settings).
  • layout – Optional. Widget layout (style). Allowed values: “vertical”, “horizontal”.
  • nights_default – Optional. Default number of nights.
  • nights_max – Optional. Maximum number of nights.
  • guests_default – Optional. Default number of guests.
  • guests_max – Optional. Maximum number of guests.

Example usage:

[maxbookingwidget property="1234567" layout="vertical"]
Do I need to have a MaxBooking.com account to use this plugin?

No, to use a booking widget on your website you don’t need to own a MaxBooking.com account. You can create a widget to search for accommodation on any MaxBooking.com property as long as you know the account ID.
If you’re a property owner and want to set up a MaxBooking.com account, you can sign up for free here:
MaxBooking.com Signup

Where do I find the widget?

You can add the widget to your website by navigating to “Appearance” -> “Widgets”. The configuration details are described in the installation instructions.

How do I change the style of the widget?

To ensure that the widget adopts the styles of the theme you’re using (font style, button style, input box style, etc.) the plugin itself contains only very basic styles. Unfortunately, it is impossible to set it up so that would perfectly match all WordPress themes that exists.
However, the widget provides useful CSS classes that allow easy style customization. In WordPress version 4.7 and higher you can add your own CSS directly in the administration by going to “Appearance” -> “Customize” -> “Additional CSS”.

For more information visit:

MaxBooking.com Developers – Booking Widget for WordPress

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈MaxBooking Booking Widget〉的開發相關工作。

參與者

將〈MaxBooking Booking Widget〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.1.1

  • First release.

1.1.2

  • Fixed layout issues caused by wpautop().

1.1.3

  • Month format changed from full name to a shortened name.