=== Occupancy Plan === Contributors: tharkun69 Donate link: https://www.software-kunze.de/ Tags: Occupancy Plan, Belegungsplan, Booking, Buchungen, Hallenbelegung Requires at least: 4.9 Tested up to: 6.9.4 Stable tag: 1.4.19 Requires PHP: 5.2.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html With this plugin it is possible to manage an occupancy plan. == Description == With this plugin you can manage an occupancy plan, which shows assigned bookings. The schedule is shown for a single day or a complete week. **FEATURES OF THE FREE VERSION** * Create a occupancy plan * Define basic colors (header background, text and border) for the plan * occupancy plan integration via shortcode * Plan can show a single day or a complete week * Create bookings for specific dates or intervals (weekly, monthly) * Define booking colors for text and background * Support of multiple courts * Logged on user with the required permission can reservate bookings in the public area * Show booking details **FEATURES OF THE PREMIUM VERSION** * All of the FREE VERSION A detailed list of all functions can be found on https://www.software-kunze.de/plugins/occupancy-plan. **SUPPORT** The plugin is constantly being developed and supported. Support inquiries please only by email support@software-kunze.de Test == Installation == Upload the plugin via ZIP or install and activate it via the WordPress plugin installer. Afterwards all settings can be adjusted. == Screenshots == 1. Frontend with a occupancy plan 2. Admin area occupancy plan details 3. Admin area booking details 4. Frontend booking details dialog 5. Frontend booking reservation request 6. Configuration of email notification == Changelog == = 1.4.19 = * Fix: Correct check for number of courts = 1.4.18 = * Fix: Delete of block exceptions * Tested with WordPress version 6.9.4 * Improvements to the block table => Changed from POST to GET = 1.4.17 = * Fix: CSV Import of schedules and blocks * Tested with WordPress version 6.9.1 = 1.4.16 = * Fix: Display of the correct week when the first week begins in the previous year = 1.4.15 = * Fix: Block exceptions - Fix of occupancy_plan_get_state_value for op_blockid * Fix: Show correct edit forms, when changing block interval * Change default for block priority to 9 * Fix: Don't hide blocks with lower priority by exception blocks * Fix: Consideration of block exceptions during the examination of block conflict = 1.4.14 = * Support for break times also in the weekly view * Tested with WordPress version 6.9 = 1.4.13 = * Add of block priority * Fix: Interval change script error corrected * Fix: Changed Session handling to transient = 1.4.12 = * Fix: Select correct block after save block exception * Fix: Fix of load_textdomain error * Change from 'plugins_loaded' to 'init' action = 1.4.11 = * Fix: Save correct interval value form backend booking * Tested with WordPress version 6.8.1 = 1.4.10 = * Fix: Correct backend session handling * Tested with WordPress version 6.7.1 = 1.4.9 = * Fix: Previous week logic over the New Year = 1.4.8 = * Fix: Next week logic over the New Year = 1.4.7 = * Fix: Fallback Week Selector - 1st week of year * Standardization of the backend panels = 1.4.6 = * Fallback for not support inpute type=week (Firefox & Safari) * Fix: Check if PHP session is active before destroy * Test with WordPress version 6.7 = 1.4.5 = * Add shortcut attribute to show short weekdays = 1.4.4 = * Bugfix: Correct CSV export for court name objects = 1.4.3 = * Bugfix: Error “An active PHP session was detected” * Bugfix: Handle wrong plan identifier in short code * Support of checking block conflicts = 1.4.2 = * Bugfix: Use plans controller for CSV export = 1.4.1 = * Bugfix: Frontend add and delete booking * Bugfix: Drag&Drop move of the booking = 1.4 = * If frontend is not anoymized then show detailed tooltip * Support of block exceptions added * Support of time slot display names * Redesign of admin backend * Test with WordPress version 6.5.2 * Change logic for show details at frontend = 1.3.21 = * Show Tooltip all users for not anonymized blocks * Bugfix: Correct yearly overview in case last days in December belongs already to calendar week 01 * Change length of shortname to 16 characters = 1.3.19 = * Bugfix: PHP 8.1 compatibility: null shouldn't be used as parent slug when calling add_submenu_page() * Allow to show only specific weekdays * Use specific classes for first court column: .op-header-td-first, .op-body-td-first = 1.3.18 = * Bugfix: Select block with childcourt zero * Bugfix: Select blocks, use correct variable in SQL statement * Bugfix: Re-Allow of role 'edit_occupancy' = 1.3.17 = * Bugix: Prevent overwrite of block styles by table row styles * Enforce weekly mode regardless of the number of child courts - use mode=weekly! * Support of child court names * Allow sorting of courts = 1.3.16 = * Replace of [email] tag in from address with admin email address * Bugfix: Check correct capability for frontend user * Tested with WordPress 6.3 = 1.3.15 = * Bugfix: Show correct start date for schedules in yearly mode = 1.3.14 = * Support of mandatory custom fields * Bugfix: Use schedule default color for new block in backend = 1.3.13 = * Bugfix: Correct logic for hidden "mailaddress" field * Bugfix: Show courtname "Completed", if alle courts booked * Support load of email template from url * Configurable "Undefined Name" preset for new bookings = 1.3.12 = * Bugfix: “Allow time edit” also for “daily” schedules * Bugfix: Set tooltip for every block * Bugfix: Use of correct time format string for editable bookings * Bugfix: Update plan court count for bulk delete = 1.3.11 = * Bugfix: Save of intervalinfo for monthly interval = 1.3.10 = * Bugfix: Save changed block colors from frontend detail dialog * Bugfix: Provisional not saved for modification of existing blocks = 1.3.9 = * Bugfix: Create correct block number for selected court with multiple child courts * Bugfix: Show child courts on frontend * Bugfix: Logic for anonymized block name in Frontend * Backend panels uses capability 'manage_occupancy' = 1.3.8 = * Don't send mail for block update * Bugfix: Don't update colors and created / created by * Support import of block for selected schedule * Tested with WordPress 6.1 * CSV import & export uses semicolon as delmiter = 1.3.7 = * Hotfix: Error in render body function call = 1.3.6 = * Flexible time interval configuration * Bugfix: Missing parameter in replace email tags call * Support of monthly preview * Email subjects support place holders * Show configurable tooltip on frontend bookings = 1.3.5 = * Add placeholder 'courtname' / 'courtshortname' to email template * Bugfix: Correct logic for email template placeholder 'court' = 1.3.4 = * Bugfix: Approval Workflows = 1.3.3 = * Bugfix: Initial hide of frontend dialogs * Allow court edit in frontend dialog = 1.3.2 = * Bugfix: Support of custom time slots in weekly view = 1.3.1 = * Every second week interval added -> Allow bookings every even or uneven week * Show court short names in weekly view = 1.3.0 = * Bugfix: Missing block field names added = 1.2.9 = * Bugfix: Add mailaddress field to create block table * Bugfix: Correct handling of provisional flag = 1.2.8 = * Flexible interval added -> Allow to book time slots for multiple days * Bugfix: Don't load court names for new booking without a selected plan = 1.2.7 = * Plan preview in backend * Add of missing occupancy-plan-provisional-blocks.php = 1.2.6 = * Support of anonymized bookings in the frontend * Provisional bookings and approval process / confirmation & reject mails * Tested with WordPress 5.9.1 = 1.2.5 = * Update database version check added = 1.2.4 = * Add of mail from name * Change email template column to type text * Support of email placeholder [interval] and [intervalinfo] * Block field mailadress added, for user which are not logged in * Allow time and interval modification on frontend * Fix data query for monthly interval in daily view = 1.2.3 = * Add of edit occupancy role -> User allow the edit/delete their bookings * Tested with WordPress 5.8.2 / 5.8.3 * Bugix: To date in weekly view * Daily view - Add special logic for weekly and monthly interval * Better print layout = 1.2.1 = * Add of occupancy manager role = 1.2 = * Bugix: Dayly View - Use default block colors from plan * Tested with WordPress 5.8 = 1.1.7 = * Bugix: Dayly View - Set shortname and name for current user = 1.1.6 = * Add user name, email to bookable element as defaults * Add mailfrom element to schedule configuration * Bugfix: Allow delete of booking by authorized users * Add default color values (text and background) for new bookings * Hide court select in dialogs, if only on court is available = 1.1.5 = * Tested with WordPress 5.7.2 * Bugfix: E-Mail notification fix = 1.1.4 = * Bugfix: Name field on front end is a required field * Bugfix: Edit start/end time on front end only for users with 'manage_occupancy' capability * Add Flag 'AllowTimeEdit' which indicates if the user is allowed to edit start/end time in the frontend = 1.1.3 = * Bugfix: Allow add reserveration from frontend without logon * Bugfix: Allow break time zero * Bugfix: Calcluate correct schedule endtime in week modus = 1.1.2 = * Tested with WordPress 5.7 * Break start and end time * Custom fields * Support of time slots for individual schedules * Import / Export of schedules = 1.1.1 = * Tested with WordPress 5.6.1 * Don't use PHP short tags * Use form labels in admin backend * Support of bulk action delete in admin lists * Show tooltips on backend forms = 1.1.0 = * Bugfix: Select correct weekday for date on a sunday * Keep location scroll position after POST reload * Support of drag & drop in public frontend * Dashboard widget show newest bookings * Delete of bookings from frontend = 1.1 = * Tested with WordPress 5.6 * Add capability 'manage_occupancy' to allow users backend access * Edit bookings in frontend = 1.0.12 = * Bugfix: Display occupancy plan in yearly mode * Bugfix: Set interval and weekday correct for new booking from frontend * Change naming of plans and books to occupancy schedule and bookings * Bugfix: Load booking details correct in daily mode * Bugix: Correct court selection for mode daily = 1.0.11 = * Bugfix: JQuery confirm dialogs * Bugfix: Court name save logic * Calculate number of plan courts * Bugfix: JQuery details and booking dialog layout * BugFix: Backend weekday Sunday select fails = 1.0.10 = * Tested with WordPress 5.5.3 * Bugfix: New court name save * Some addition CSS stuff to correct the layout = 1.0.9 = * Configuration of court names * Court names childs * Cleanup job to delete old bookings * Tested with WordPress 5.5.2 = 1.0.8 = * Prepared bookings = 1.0.7 = * Bigger field to configure labels * Support of booking name list * Disable the capability check for frontend users * CSS fixes to correct plan layout = 1.0.6 = * Fix error loading the wp-color-picker * Restrict size of details and booking dialog = 1.0.5 = * Tested with WordPress 5.5.1 * Show correct court number in booking table * Correct error for first booking style = 1.0.4 = * Some fixes for the daily mode * Show correct booking details = 1.0.3 = * Tested with WordPress 5.5 * Add i18n support for JavaScript = 1.0.2 = * Weekly view is possible for max 4 courts * Support multiple court labels separated by a pipe character | * Support of monthly and yearly view = 1.0.1 = * Correct spelling mistakes in the readme.txt * Correct plan layout (half hour mode) for Firefox, Edge and Opera = 1.0.0 = * Implemented basic features == Upgrade Notice ==