Upgrade Notes
1.7.0​
No changes
1.6.0​
No changes
1.5.0​
No changes
1.4.0​
No changes
1.3.0​
No changes
1.2.1​
No changes
1.1.0​
- The table header for
tablelayout of Schedule was removed via styles. If you need it back, updatewsb-table__headclass - Columns in
tablelayout got its own classes -wsb-table__col-schedule,wsb-table__col-locationand etc. Test the integration to see if everything works correctly.
1.0.1​
The changes to the widgets' layout and configuration are too large. Considering a small user base using the previous versions, we decided not to compile the updates notes for this release.
0.7.1​
Just bump up the version number:
<script src="https://cdn.workshopbutler.com/widgets.0.7.1.js"></script>
0.7.0​
Scripts​
- Switch the script version to 0.7.0:
<script src="https://cdn.workshopbutler.com/widgets.0.7.0.js"></script>
Templates​
If you use default themes and templates, no updates needed.
If you use custom templates, this release brings breaking changes:
Attributes
start,end,hoursPerDay,totalHoursofEventclass were moved toEvent.scheduleattribute. SoEvent.startbecameEvent.schedule.startBoth
startandendattributes are not longer Date objects, but DateTime objects from Luxon libraryAttributes
cityandonlineofEventclass were moved toEvent.locationattribute. SoEvent.citybecameEvent.location.cityAttribute
Event.countryclass is replaced byEvent.location.countryCodeAttributes
Event.location.countryCodeandEvent.location.cityarenullifEvent.location.online = trueFunction
formatDatewas removed. UseSchedule.formatmethod instead.New
Scheduleclass comes withformatmethod to format dates, times and timezones based on a user locale. It returns different results based on the value of its only parameter:start_short- Start datestart_long- Start date and timeend_short- End dateend_long- End date and timefull_short- Start and end datefull_long- Start and end date/timetimezone_short- Timezone abbreviation, e.g.CETtimezone_long- Timezone name, e.g.Central European Time
For more information, check Event, Schedule, and Location classes.