EdinburghUniversityTheatreCompany / black_lightning

MIT License
3 stars 4 forks source link

Clean up Pretix Widgets #23

Closed S-Willis closed 3 years ago

S-Willis commented 3 years ago

Currently the Pretix Widgets are in the Publicity text of a Show. We should make a tick box so we can turn on and off the Pretix widget.

[I've also written "Box to Edit" which I think means a box to edit the widget? But I don't remember. My bad for not writing these up straight away!]

AlexMohanMD commented 3 years ago

Okay so:

Code snippet: <pretix-widget event="https://tickets.bedlamtheatre.co.uk/[PRETIX_SLUG]/" style="[PRETIX_WIDGET_FORMAT]"></pretix-widget> <noscript> <div class="pretix-widget"> <div class="pretix-widget-info-message"> JavaScript is disabled in your browser. To access our ticket shop without JavaScript, please <a target="_blank" rel="noopener" href="https://tickets.bedlamtheatre.co.uk/[PRETIX_SLUG]/">click here</a>. </div> </div> </noscript>

Add this code to head

<link rel="stylesheet" type="text/css" href="https://eutc.azureedge.net/styles/pretix-widget.css"> <script type="text/javascript" src="https://tickets.bedlamtheatre.co.uk/widget/v1.en.js" async></script>