diff --git a/_includes/booking/eventbrite.html b/_includes/booking/eventbrite.html new file mode 100644 index 00000000..f0681a93 --- /dev/null +++ b/_includes/booking/eventbrite.html @@ -0,0 +1,19 @@ +{% comment %} +EVENTBRITE + +This block includes the Eventbrite registration widget if +'eventbrite' has been set in the header. You can delete it if you +are not using Eventbrite, or leave it in, since it will not be +displayed if the 'eventbrite' field in the header is not set. +{% endcomment %} +{% if page.eventbrite %} +Some adblockers block the registration window. If you do not see the + registration box below, please check your adblocker settings. + +{% endif %} diff --git a/_includes/booking/pretix.html b/_includes/booking/pretix.html new file mode 100644 index 00000000..44d8ce28 --- /dev/null +++ b/_includes/booking/pretix.html @@ -0,0 +1,20 @@ +{% comment %} +PRETIX.eu + +This block includes the pretix registration widget if +'pretix' has been set in the header. You can delete it if you +are not using Pretix, or leave it in, since it will not be +displayed if the 'pretix' field in the header is not set. +{% endcomment %} +{% if page.pretix %} +Some adblockers block the registration window. If you do not see the + registration box below, please check your adblocker settings or visit the booking website directly. +
+ +{% endif %} diff --git a/_includes/booking/tickettailor.html b/_includes/booking/tickettailor.html new file mode 100644 index 00000000..13581cc8 --- /dev/null +++ b/_includes/booking/tickettailor.html @@ -0,0 +1,21 @@ +{% comment %} +TICKETTAILOR + +This block includes the Tickettailor registration widget if +'eventbrite' has been set in the header. You can delete it if you +are not using Eventbrite, or leave it in, since it will not be +displayed if the 'eventbrite' field in the header is not set. +{% endcomment %} +{% if page.tickettailor %} +Some adblockers block the registration window. If you do not see the + registration box below, please check your adblocker settings. + +{% endif %} + +{% comment %} diff --git a/_layouts/workshop.html b/_layouts/workshop.html index 04afdeab..cae8e47e 100644 --- a/_layouts/workshop.html +++ b/_layouts/workshop.html @@ -53,6 +53,11 @@ + {% if page.pretix %} + + + {% endif %} + {% include favicons.html %} diff --git a/index.md b/index.md index e16bf018..6656fae4 100644 --- a/index.md +++ b/index.md @@ -18,6 +18,8 @@ helper: ["helper one", "helper two"] # boxed, comma-separated list of helper email: ["first@example.org","second@example.org"] # boxed, comma-separated list of contact email addresses for the host, lead instructor, or whoever else is handling questions, like ["marlyn.wescoff@example.org", "fran.bilas@example.org", "ruth.lichterman@example.org"] collaborative_notes: # optional: URL for the workshop collaborative notes, e.g. an Etherpad or Google Docs document (e.g., https://pad.carpentries.org/2015-01-01-euphoria) eventbrite: # optional: alphanumeric key for Eventbrite registration, e.g., "1234567890AB" (if Eventbrite is being used) +tickettailor: # Optional: url bit that points to tickettailor event "1234567/abc/1100" +pretix: # Optional: url bit that points to pretix event "organisation/eventid" what3words: # optional: what3words (https://what3words.com) address of the workshop venue, without leading slashes e.g. "globe.lessening.computers" --- @@ -83,6 +85,18 @@ It looks like you are setting up a website for a Software Carpentry curriculum b {% endunless %} {% endif %} +{% comment %} +Various booking systems are available. They are shown in the config above, if they are empty none will show below. +{% endcomment %} +{% if page.eventbrite %} +{% include booking/eventbrite.html %} +{% elsif page.tickettailor %} +{% include booking/tickettailor.html %} +{% elsif page.pretix %} +{% include booking/pretix.html %} +{% endif %} + + {% comment %} EVENTBRITE