=== Resourcemanager ===
Contributors: mystryx
Tags: car manager, room manager, resource manager
Donate link: https://www.paypal.com/paypalme/edvhacker/6
Requires at least: 6.5
Tested up to: 6.8
Stable tag: 2.2.0
Requires PHP: 7.4
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.txt

Visualizes and manages definable resources in an compact month or week view.

== Description ==

Visualizes and manages definable resources (rooms, equipment, vehicles, desks, etc.) in a compact month or week view.

Key Features:
* Monthly and weekly calendar views for resource occupancy.
* Conflict detection and overlap prevention, including countable resources.
* Support for recurring bookings (daily, weekly, monthly, yearly).
* Email notifications for resource owners when bookings are requested, confirmed, or canceled.
* Holiday calendar synchronization via remote ICS feeds.
* Pure WordPress REST API architecture powered by wp.apiFetch.
* Full localization with native WordPress 6.5+ translation arrays across 12 languages.

== Installation ==

1. Upload the `resourcemanager` plugin folder to your `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Configure your resources and admin groups under the 'Resourcemanager' menu in the WordPress dashboard.
4. Place the shortcode `[resourcemanager cal_id="1"]` on any page or post to display the resource calendar.

== Screenshots ==

1. Monthly overview of definable resources with bookings and status indicators.
2. Booking dialog with date, time, recurrence settings, and custom fields.
3. Administration panel for managing resources, roles, views, and holiday calendars.

== Changelog ==

= 2.2.0 =
* Complete redesign and modernization of backend admin UI (Resources, Calendars, About page).
* Introduced Quick-Add action toolbars with live real-time filtering for resources and calendars.
* Upgraded extended description editor to a spacious, non-intrusive WordPress modal popup with full TinyMCE.
* Enhanced custom fields management with dual-mode visual and JSON editors.
* Added 1-click shortcode copy badges with instant feedback.
* Comprehensive legal, privacy, and GDPR/DSGVO compliance documentation in modernized About dashboard.
* Synchronized 100% translation coverage across all 12 supported languages.
* Updated author website to seo-hacker.de and contact email to alex@seo-hacker.de.

= 2.0.0 =
* Major release: completely transitioned from legacy admin-ajax.php to WordPress REST API (`resourcemanager/v1`).
* Frontend and backend client scripts modernized to use native WordPress `wp.apiFetch`.
* Eliminated N+1 database queries on calendar views via single prepared resource batch-fetching.
* Optimized user query memory usage and enforced privacy restrictions on user listings.
* Fully retired legacy AJAX endpoints in favor of robust, secure REST routes.
* Updated asset versions and translation catalogs for version 2.0.0.

= 1.3 =
* Modernized localization to native WordPress 6.5+ PHP arrays (.l10n.php) supporting 12 languages.
* Registered custom post type `resman_view` and added standard `uninstall.php` cleanup routine.
* Security enhancements: nonces, permission checks, strict SQL preparation, and Settings API sanitization callbacks.
* Critical bugfixes: date calculations, countable resource collision overlap checks, admin resource creation.
* REST API support (`resourcemanager/v1`) alongside AJAX endpoints.
* Asynchronous cached ICS holiday fetching via WP-Cron.
* Strictly scoped CSS styles to prevent theme/plugin styling bleed.
* Codebase-wide PHPDoc/JSDoc documentation and modernization.

= 1.2.1 =
* performance updates
* bugfixes
* updated week view
* Introducing shortcode attributes:  initial_view="monthly|weekly" day_start="H:i:s" day_end="H:i:s" line_sectors="0:10:90:100"

= 1.2 =
* Introduces weekday view
* Changed database to use IDs instead of resource/time as primary key
* minor bugfixes

= 1.1 =
* Initial verion

