=== Gym Class Pass Manager ===
Contributors: asdesignes, asdestudioweb
Tags: booking, classes, gym, fitness, schedule
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 2.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Simple class booking for gyms, boxes and studios: activities, a weekly schedule and a mobile web app where members book and cancel their spot.

== Description ==

**The simplest way to let your members book classes from their phone.**

Gym Class Pass Manager turns your WordPress site into a clean, modern booking app for gyms, boxes and studios. Members open it on their phone, see the weekly schedule and book or cancel their spot in seconds. You manage everything from the same app — no extra software, no complicated setup.

Perfect if you just need reservations to work, without plans, payments or unnecessary features.

### What your members get

* A beautiful mobile web app that works on any phone or computer. Nothing to install.
* The weekly schedule with colours, times and free spots at a glance.
* One-tap booking and easy cancellation before the class starts.
* Their own language in the app (the plugin is translated into multiple languages).

### What you get as the centre

* **Activities** — Yoga, Spinning, CrossFit, Pilates… each with its colour.
* **Weekly schedule** — classes that repeat every week, with their own capacity and duration.
* **Capacity limit and waiting list** — set how many spots each class has. When full, members join the waiting list and get in automatically if someone cancels.
* **Members** — invite them by email. They create their password and start booking. Remove access anytime.
* **Trial class** — when you invite someone, you can let them book a single trial class. Give them full access when they sign up. You can turn this option off in Settings → Centre.
* **Who is coming** — see the list of people booked in each class.
* **Attendance** — mark who showed up.
* **Cancel a class** — cancel a single session and notify the members who booked.
* **No limits** — unlimited members, activities, classes and bookings.

### How it works

1. Install and activate the plugin.
2. Open the app from your WordPress dashboard and set your centre name and logo.
3. Create your activities and build the weekly schedule.
4. Invite your members and share the app address (for example `yoursite.com/app/`).
5. They book from their phone. You see who is coming.

Everything is managed from the mobile app. WordPress is only used for the initial setup and a few options.

### Gym Class Pro

When your centre grows, Gym Class Pro turns the free app into the full system for running it. Same data, same members, same schedule — plus everything you need to charge, control access and keep people coming back.

**What you can do with Pro**

* **Plans and passes** — monthly plans, class packs, drop-ins. Members only book what their plan allows.
* **Payments** — charge at reception or online with Stripe, Redsys, PayPal or WooCommerce.
* **Automatic renewals** — plans renew and charge themselves. No chasing payments.
* **Cancellation rules** — set how late a member can cancel, with penalties if you want them.
* **Notifications** — email, SMS, WhatsApp and push. Reminders, cancellations, announcements.
* **Coaches** — assign trainers to classes and let members see who is teaching.
* **Several locations** — run more than one centre from the same account.
* **QR access control** — members check in at the door with a code.
* **Community** — workouts of the day, rankings and challenges that keep members engaged.
* **Personal records** — members track their PRs.
* **Routines with timers** — guided workouts with rest timers.
* **Exercise library** — over 300 exercises ready to use.
* **Reports** — attendance, revenue and activity at a glance.
* **Calendar sync** — members add their classes to their phone calendar.
* **Zoom classes** — online sessions linked to the schedule.
* **Your own Android and iOS app** — the same experience, as a real app.

Sold only at [gymclass.estudio-web.es](https://gymclass.estudio-web.es/). Your activities, schedule, members and bookings stay when you move. No migration.

== Installation ==

1. Install and activate Gym Class Pass Manager from Plugins → Add New.
2. Go to Gym Class Pass Manager → Start and press "Open the app". Log in with your WordPress user.
3. In the app, create your activities (Settings → Activities) and your weekly schedule (Settings → Weekly schedule).
4. Invite your members from Members. Give them the app address so they can save it on their phone.

== Frequently Asked Questions ==

= Can members book any class? =

Yes. Anyone with an account at the centre can book any class while there are spots left, and cancel it until it starts. The only exception is members invited with a trial class: they can book one class until you give them full access.

= How does the trial class work? =

When you invite someone from Members → Invite, tick "Trial class". That person can book one class only (booked, attended or on the waiting list). If they cancel it before it starts, they can choose another one. When they sign up, open their profile in Members and press "Give full access". To stop offering trial classes, turn off "Trial class in invitations" in Settings → Centre; members already on a trial keep it until you give them full access.

= The app shows "page not found" =

Go to Settings → Permalinks and press "Save Changes". If you use a cache plugin, exclude the app address.

= Invitation emails do not arrive =

Gym Class Pass Manager uses the normal WordPress email. If emails end up in spam or are not sent, install an SMTP plugin with an email account on your domain.

= Is my data deleted if I remove the plugin? =

No, unless you tick "Also delete activities, schedule and bookings" in Gym Class Pass Manager → Start before deleting it. User accounts are never deleted.

= Where do I get Gym Class Pro? =

Only at [gymclass.estudio-web.es](https://gymclass.estudio-web.es/). It is a separate plugin: buy it there, then upload and activate it from Plugins → Add New → Upload Plugin.

= What happens if I move to Gym Class Pro? =

When you activate Gym Class Pro, this free version steps aside and Pro keeps your activities, schedule, members and bookings. You can then delete the free plugin.

== External services ==

This plugin does not connect to any external service.

== Screenshots ==

1. Your WordPress turned into an all-in-one mobile app: booking, management, payments and workouts.
2. Class booking with a capacity limit: free spots in real time, one-tap booking and an automatic waiting list.
3. In-app payments with Redsys, Stripe and PayPal, automatic renewals and booking based on each member's plan (Gym Class Pro).
4. Workouts and exercise library: create, share and publish workouts to a class or the whole community (Gym Class Pro).
5. Workout tracking: times, weights and reps for every set, shared on the centre's community feed (Gym Class Pro).
6. Precise logging and comparison of results with other members of the centre (Gym Class Pro).
7. Alerts and announcements by in-app message, WhatsApp, email or SMS, according to each member's preferences (Gym Class Pro).


== Source code ==

The JavaScript and CSS files distributed with this plugin (in the `assets/` folder) are the human-readable source. They are not minified or compiled from another private repository. No build tools are required to review or modify them.

== Changelog ==

= 2.5 =
* New: trial class. When you invite someone, tick "Trial class" and they can book a single class to try the centre.
* Trial members see a notice in the schedule with the status of their trial class. Once they have used it, the "Book" buttons are hidden.
* If a trial member cancels their class before it starts, they can choose another one.
* Members → Members shows a "Trial" or "Trial used" tag, and the member's profile has a "Give full access" button that ends the trial.
* Trial invitations are marked in Members → Invitations, and the invitation email explains that it includes a trial class.
* New option in Settings → Centre: "Trial class in invitations", on by default. Turn it off to stop offering trial classes; members already on a trial keep it until you give them full access.
* Updated screenshot descriptions.
* All new texts translated into Spanish.

= 2.1 =
* Límite de aforo en cada clase.
* Lista de espera automática: si la clase está llena, los socios se apuntan y entran solos cuando alguien cancela.
* Las actividades solo piden nombre y color. Las plazas y la duración se configuran en cada clase del horario.

= 2.0 =
* Nuevo panel del gestor con resumen del día y accesos directos.
* Página de Gym Class Pro dentro de la app con comparación de funciones.
* Mejoras en la pantalla de bienvenida y en la gestión diaria.

= 1.6 =
* Pro tab removed from the bottom menu.
* Panel bottom spacing fixed so content no longer jumps.
* Manager panel with today's KPIs, shortcuts and classes.
* Pro page reachable from the panel banner.

= 1.5 =
* Welcome screen columns balanced; steps in one column, usage guide wider.
* Clearer explanation that day-to-day work happens in the mobile app.
* Space Grotesk font in the welcome screen.

= 1.2 =
* New professional plugin description.
* Wider welcome screen with a usage guide and app link.

= 1.1.1 =
* Redesigned welcome screen with cards and icons.

= 1.1.0 =
* Mark attendance on each class (attended / not attended).
* Member booking history and internal notes.
* Cancel a single class with a reason and email the members who booked.
* Export class attendance and members to CSV.
* Simple email reminder the day before a class.
* Today’s occupancy summary on the Start page.
* Subscribe to the schedule with an iCal link.
* Pro feature cards with a clear upgrade path.
* Modern welcome screen on first install.
* Security and polish improvements.

= 1.0.1 =
* Renamed plugin to Gym Class Pass Manager.
* Fixed script loading to use wp_add_inline_script instead of a raw script tag.
* Added contributor asdesignes and documented source location for JS/CSS.

= 1.0.0 =
* First version: activities, weekly schedule, bookings, members with email invitations and a mobile web app with the same design as Gym Class Pro.
