WP Manifestindependent plugin directory
manifest / events / bookingpress-holidays-card

BookingPress Holidays Card

A WordPress plugin that displays BookingPress upcoming holidays in a visually appealing card format

by Awaxis · github.com/awaxis/bookingpress-holidays-card · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/awaxis/bookingpress-holidays-card/archive/refs/heads/main.zip

A WordPress plugin that displays BookingPress upcoming holidays in a visually appealing card format.

Description

This plugin adds a shortcode [bookingpress_holidays_card] that fetches and displays upcoming holidays from the BookingPress database table bookingpress_default_daysoff. It shows only holidays within the next 3 months, sorted by date.

Features

  • Automatic Display: Shows the next 3 upcoming months of holidays
  • Clean Design: Visually appealing card layout with hover effects
  • Responsive: Mobile-friendly design that adapts to all screen sizes
  • Customizable: Shortcode attributes for colors, border radius, and title
  • Smart Hiding: If no holidays are found, nothing is displayed (no empty card)
  • Date Formatting: Uses WordPress date format settings

Installation

  1. Upload the bookingpress-holidays-card folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Use the shortcode [bookingpress_holidays_card] in any page, post, or widget

Usage

Basic Usage

[bookingpress_holidays_card]

Advanced Usage with Custom Styling

[bookingpress_holidays_card
    border_radius="15px"
    background_color="#f5f5f5"
    title_color="#2c3e50"
    text_color="#34495e"
    border_color="#bdc3c7"
    title="Unsere Urlaubszeiten"
]

Shortcode Attributes

Attribute Default Description
limit 3 Number of months to show holidays for
border_radius 10px Border radius of the card
background_color #ffffff Background color of the card
title_color #333333 Color of the card title
text_color #666666 Color of the text content
border_color #e0e0e0 Color of the card border
title Upcoming Holidays Title text of the card

Requirements

  • WordPress 5.0 or higher
  • BookingPress plugin installed and activated
  • PHP 7.0 or higher

Database

The plugin reads from the BookingPress table:

  • Table: {prefix}bookingpress_default_daysoff
  • Queries holidays where bookingpress_dayoff_date is within the next 3 months

Styling

The plugin includes responsive CSS that:

  • Adapts to mobile devices (768px and 480px breakpoints)
  • Includes hover effects for better UX
  • Supports print media queries
  • Can be customized via shortcode attributes

Support

For issues or feature requests, please contact Awaxis support.

Changelog

1.0.0

  • Initial release
  • Shortcode implementation
  • Responsive card design
  • Customizable styling options
  • 3-month holiday display limit

License

GPL v2 or later