=== CASA Courses ===
Contributors: foretagsakademincasa
Donate link: https://www.foretagsakademin.se/casa
Tags: courses, administration, booking, participants, events
Requires at least: 6.4
Tested up to: 6.7.2
Requires PHP: 8.1
Stable tag: 1.0.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Connect your Casa installation to your WordPress installation.

== Dependencies ==
The plugin depends on the following PHP libraries:
* nesbot/carbon - A library used for handling datetimes. You can find more about the library [here](https://carbon.nesbot.com/).

The plugin also includes the following dependencies:
* Bootstrap v5.3.2 (see https://getbootstrap.com/). The plugin uses a compiled version of the bootstrap css without any changes.

* Google fonts (optional) - You can choose to use certain google fonts on your page. These will then be downloaded from
https://fonts.googleapis.com and https://fonts.gstatic.com.

* Google captcha (optional) - You can choose to use google captcha when submitting your booking form. The plugin will
connect to the following endpoint: https://www.google.com/recaptcha/api.js when verifying captcha requirements. Terms
and conditions can be found [here](https://policies.google.com/terms?hl=en).

== Description ==

The Casa Courses plugin is used to connect your Casa installation with your WordPress homepage.

With the plugin installed, you will be able to list all templates and events from Casa on your WordPress site. Depending on the number of available seats on each event, you can allow visitors book seats on your events and the booked participants will be added to your Casa event. They can also be added to a waiting list if you allow that.

The plugin automatically updates all pages generated by the plugin every hour. This is to refresh the number of available seats and also update course descriptions and so on. To make sure this works as intended, it is recommended that you disable caching on the automatically generated pages or make sure that caching is only enabled for an hour.

The source code for the minified javascript and CSS files (present in directories admin/ and public/) are located in the resources/ folder. They are then compiled to the admin/ and public/ directories.

The CSS for the Casa Courses plugin is built on version v5.3.2 of Bootstrap (see https://getbootstrap.com/). The Casa Courses plugin contains a compiled version of bootstrap without any changes.

You can also (optionally) use google fonts, which then will download the fonts from https://fonts.googleapis.com and https://fonts.gstatic.com. Setting the font variable to "Inherit" will however not download anything from google fonts. Terms and conditions can be found [here](https://developers.google.com/fonts/terms)

This plugin uses Google captcha which connects to the following endpoint: https://www.google.com/recaptcha/api.js when verifying captcha requirements. Terms and conditions can be found [here](https://policies.google.com/terms?hl=en).

The plugin is dependent on you having an account and subscription to the [Casa administration platform](https://www.foretagsakademin.se/casa). Without a subscription and an API key to Casa administration platform, the plugin will not work. For terms of subscription please contact [Företagsakademin](https://www.foretagsakademin.se/casa).

== Installation ==

1. Login to your WordPress Dashboard
2. Go to Plugins -> Add New
3. Search for Casa Courses plugin
4. Install the Casa Courses plugin
5. Activate it.
6. Add your casa domain and your API key to the plugin settings.

== Changelog ==

= 1.0.3 =
* Fix bug in date handling

= 1.0.2 =
* Fix translation loading for WordPress 6.7

= 1.0.1 =
* Fix description

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.0.0 =
* Initial release
