{% comment %} Club-admin-only "Put these on your website" control for embedding the club's events. Included from _club_events_list.html, which already gates it on can_manage_auctions. Expects `club` and `club_events_embed_path`. Nothing here is member data — it's the same events the public club page and the iCal feed already show. Only ever use {% templatetag openblock %} comment {% templatetag closeblock %} blocks in here. Django's {% templatetag openbrace %}# … #{% templatetag closebrace %} form is single-line only; spread one over two lines and it renders straight onto the page. {% endcomment %} {% if club_events_embed_path %} {% with embed_url=request.scheme|add:"://"|add:request.get_host|add:club_events_embed_path %}
Paste one of these into WordPress (a Custom HTML block), Wix, Squarespace, or any other site. It reads this calendar live, so it updates itself whenever you add or change an event here — there's nothing to keep in sync by hand. Only the event name, date and place are shown, never anything about your members.
<iframe src="{{ embed_url }}?format=iframelight&count=1"
style="border:0;width:100%;max-width:480px;height:200px"></iframe>
<iframe src="{{ embed_url }}?format=iframedark&count=1"
style="border:0;width:100%;max-width:480px;height:200px"></iframe>
<iframe src="{{ embed_url }}?format=iframelight&count=10"
style="border:0;width:100%;max-width:480px;height:880px"></iframe>
<iframe src="{{ embed_url }}?format=iframedark&count=10"
style="border:0;width:100%;max-width:480px;height:880px"></iframe>
Pick the one that matches your site's colors, and change height if it
scrolls or leaves a gap. Any count from 1 to 10 works.
{{ embed_url }}?format=unstyledhtml&count=10{{ embed_url }}?format=json&count=10