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

Availability Calendar

外掛說明

The Availability Plugin displays booking availability on a year by year basis.

A full calendar year is displayed, with booked dates highlighted.

It is possible for mulitiple calendars to be created using a single install of this plugin.

螢幕擷圖

  • The availability calendar management page.
  • Availability calendar with default styles.
  • Example showing the addition of shortcodes to a page.
  • Multi-calendar management and plugin settings.

安裝方式

Here we go:

  1. Upload the availability folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Use the shortcode [availability] to display the calendar.

常見問題集

How do I manage the availability?

Once logged in to wp-admin, browse to Pages > Availability, here you can select all the booked dates and click save once you are done.

Can I display the current year shown?

Yes, use the shortcode [availability display="year"] within your post or page.

How can I display calendars other than the default one?

Using the shortcode [availability calendar="calendar-id"] will display the calendar created with ID calendar-id.

The ID of any additionally created calendars is the value shown in brackets on the settings page.

When using multiple calendars, how do I show the current calendar name?

The shortcode [availability display="name"] can be used.

How do you select a year to view?

The shortcode [availability display="dropdown"] can be used, this will generate a form with a list of available years.

Alternatively you can use the function call <?php availability_dropdown(); ?> in your template files.

How can I style certain elements?

As of version 0.2.2 you can make use of the class names assigned to certain elements of the calendar.

  • wp-availability
  • year-[1234] – e.g. year-2012
  • year-current
  • year-previous
  • year-next
  • wp-availability-month
  • month-[1-12] – e.g. month-3 for March
  • month-[jan-dec] – e.g. month-mar for March
  • month-current
  • month-previous
  • month-next

For further information please refer to the generated source code of the availability calendar itself.

使用者評論

2023 年 12 月 13 日
Hi Steve,thanks for your absolutely perfect availability calendar!I’ve used it since quite a while for my families holiday home and it’s really supereasy and design is so clean… and probably the best lightweight plugin… I noticed, that it only works up to PHP 7.2 (getting no security updates anymore) with WP 6.4.2… Is there any chance, you adjust it to newer PHP versions?Thanks in advance!
2017 年 11 月 6 日
Simple and handy plugin to generate a calendar table with days marked as available/not available. I'm using it from years and it still works with WP 4.8.3
2017 年 2 月 7 日
I couldn't find the url's to embed the calendar on my site. Emailed support and had the links sent to me within minutes. Thanks Lucian. **update** now they automatically email the embed code when you create a new calendar Perfect free solution (and to update in the backend) for your availability calendar needs. Take a look at http://balsamlakecottages.com/property/kingsview-cottage-2-for-rent/ (under availability tab) to see the plugin in action
閱讀全部 8 則使用者評論

參與者及開發者

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

參與者

將〈Availability Calendar〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

0.2.4

  • Updated missing updates intended for version 0.2.3.

0.2.3

  • Fixed issue preventing additional calendars from being displayed.
  • Fixed database issue affecting multiple calendars where the unique key was not updating during upgrade.
  • Modified the way month lengths are calculated on the manage page.

0.2.2

  • Addition of extra classes to allow targetting of years and months.

0.2.1

  • Important update to modify the upgrade process required for version 0.2 (reliance on register_activation_hook).
  • Fixes issues relating to previously booked dates not appearing and new dates not saving.

0.2

  • Bug fix for changing calendars when using the default permalink structure.
  • Changed permissions to allow users with page edit permission to manage calendars.
  • Calendar output now conforms to the “Week Starts On” setting found in “Settings > General”.
  • Month and day names now make use of localisation.
  • Introduction of multiple calendars.
  • Added ability to exclude the default stylesheet.
  • The number of years shown can now be modified.
  • Fixed unexpected output during activation.
  • Moved uninstall process to uninstall.php.
  • Updated donate link.

0.1.3

  • Fixed manage page bug introdruced since addition of custom post types in WP 3.0
  • Default style for booked dates is now red with strike through.

0.1.2

  • Removal of link to none existent settings page.

0.1.1

  • Settings bug fix during installation.

0.1

  • This is the very first version.