=== Microtango ===
Contributors: microtango
Tags: Microtango, Tanzschule, Übersicht, Kurse, Anmeldung
Requires at least: 4.8.0
Requires PHP: 5.6.0
Tested up to: 5.4.1
Stable tag: 0.9.2
License: MIT License
License URI: http://opensource.org/licenses/MIT
Microtango WP integration. Requires subscription from DMS. Will include the Microtango REST API to show your cloud data.
== Description ==
Microtango WP integration. Requires subscription from DMS. Will include the Microtango REST API to show your cloud data.
= Features include: =
* Install three shortcodes: **mt_courses**, **mt_reservation** and **mt_form**.
= Usage: =
[mt_courses webcategory="WTP2" mtattendform="default,popup,iban,timelist,timecondition"]
or
[mt_courses webcategory="WTP1" attendurl="AttendForm"]Kursname|{{Subject}}{{Name}}#Tag / Zeit|{{StartWeekdayText}} {{Timespan}}#Startdatum|{{StartDateText}}#|{{Attend}}[/mt_courses]
or
[mt_courses webcategory="WTP2" attendurl="/AttendForm"]
[mt_reservation]
mt_courses parameter:
* attendurl: Url for the attend form
* mtattendform (optional): If set, the mt build form will be used fo attendance. Possible values: default (mandatory), popup (mandatory), partner (show partner input fields)), iban (show iban fields), note (show note field), webnote (show web notes), timelist (list with course dates), timecondition (e.g. monthly 2 hours).
* category (optional): Category filter
* webcategory (optional): Webcategory filter
* templateid (optional): Id of html template
Content [mt_courses] ... [/mt_courses]: The content of the courses table in the format Column title | {{FieldName}}#Column title | {{FieldName}}
Default:
Kurs|{{Subject}}#Start|{{StartDateText}}#Von|{{Timespan}}#Stunden|{{RepeatCount}}#Verfügbarkeit|{{AvailabilityText}}#|{{Attend}}
FieldName: Values from microtango rest API (https://api.microtango.de/swagger -> RESTCourseModel). Possible values:
Id, Season, Name, Subject, StartDate, StartDateText, StartTime, StartTimeText, StartWeekdayText, StartMonthText, EndDate, EndDateText, EndTime, EndTimeText, EndWeekdayText, EndMonthText, Timespan, Price, PriceText, HallName, TeacherName, AssistantName, ProgramName, Category, WebCategory, Availability, AvailabilityText, FreeText1, FreeText2, FreeText3, FreeText4, FreeText5, FreeText6, FreeText7, FreeText8, FreeText9, RepeatCount, WebNotes
Attend: Generate attend link
Example:
[mt_courses webcategory="WTP2" mtattendform="default,popup,iban,timelist,timecondition"]
or
[mt_courses webcategory="WTP1" attendurl="AttentForm"]Kursname|{{Subject}}{{Name}}#Tag / Zeit|{{StartWeekdayText}} {{Timespan}}#Startdatum|{{StartDateText}}#|{{Attend}}[/mt_courses]
or
[mt_courses webcategory="WTP2" attendurl="/AttentForm"]
mt_reservation:
Will show the online reservation form for customers.
mt_form parameter:
* restkey: Microtango REST Key
* formid (optional): The id of the form to use (Default: The form direct before [mt_form])
* redirecturl: Url to redirect to, after the form post. Build a nice "We received your registration" page here.
* testmode (optional): If true, no registration, instead we return the mapped values as a html page.
Content [mt_form] ... [/mt_form]: The fieldmapping in the format RESTApi field=Form field name#RESTApi field=Form field name
Form field name: Use Browser F12 tools
RESTApi field: Values from microtango rest API (https://api.microtango.de/swagger -> OnlineRegistrationModel). Possible values:
Season, SeasonID, Course, CourseID: Will be set by the api in hidden fields
FirstName, MiddleName, LastName, Gender, Street, Street2, ZIPCode, City, Birthday, Phone, Cell, EMail, AccountOwner, IBAN, BIC, Notes, PartnerFirstname, PartnerMiddlename, PartnerLastname, PartnerGender, PartnerStreet, PartnerStreet2, PartnerZIPCode, PartnerCity, PartnerBirthday, PartnerPhone, PartnerCell, PartnerEMail, PartnerAccountOwner, PartnerIBAN, PartnerBIC, PartnerNotes
Example:
[mt_form restkey="ABCDEFGH" redirecturl="/" testmode="true"]subject=wpforms[fields][3]#course=wpforms[fields][4]#firstname=wpforms[fields][0][first]#lastname=wpforms[fields][0][last]#email=wpforms[fields][1][/mt_form]
== Installation ==
Use the standard WordPress plugins search and installer.
Activate the plugin.
Use the plugin under the Tools menu in the WordPress admin
Manual Installation
1. Upload the `microtango` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
== Frequently Asked Questions ==
= Where do you use this plugin? =
Under the Tools menu in the dashboard there will be a "Microtango" link.
== Screenshots ==
1. Typical settings page.
== Changelog ==
= 0.9.2 =
* Move resources to cdn
= 0.9.1 =
* Fix for Safari blocking 3rd party cookies
= 0.9.0 =
* Add online-reservation handling
= 0.8.3 =
* Small JS error handling
= 0.8.2 =
* Documentation update
= 0.8.1 =
* Missing course not found fix
= 0.8.0 =
* Shortcodes renaming
= 0.7.0 =
* Naming fixes for release
= 0.6.0 =
* First catalog upload
= 0.6.0 =
* Include js and css
* JS handling for wp
= 0.4.0 =
* Add settings page
- Setting for API rest Key
- Setting for default list row settings
= 0.3.0 =
* MT attend form handling
= 0.2.0 =
* Some readme text
= 0.1.0 =
* Initial release