From 9a0d6012b9296686f91cf7341cdf901b72c974ea Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sun, 24 Dec 2023 00:20:23 -0500 Subject: [PATCH] membershipworks: Fix layout/use wordpress blocks in upcoming-events --- .../membershipworks/upcoming_events.dj.html | 180 ++++++++++-------- 1 file changed, 101 insertions(+), 79 deletions(-) diff --git a/membershipworks/templates/membershipworks/upcoming_events.dj.html b/membershipworks/templates/membershipworks/upcoming_events.dj.html index 8aea82c..5b254d9 100644 --- a/membershipworks/templates/membershipworks/upcoming_events.dj.html +++ b/membershipworks/templates/membershipworks/upcoming_events.dj.html @@ -4,87 +4,109 @@ {% block title %}Upcoming Events{% endblock %} {% block content %} -
-

- -

-

Greetings Upper Valley Makers:

-

We have an exciting list of upcoming classes at the Claremont MakerSpace that we think might interest you.

-
- For most classes and events, CMS MEMBERSHIP IS NOT REQUIRED. That said, members receive a discount - on registration and there are some classes/events that are for members only (this will be clearly noted in the event - description). -
-
- Class policies (liability waiver, withdrawal, cancellation, etc.) can be found here. -
-
- Instructors: Interested in teaching a class at CMS? Please fill out our Class Proposal Form. -
-
- Tours: Want to see what the Claremont MakerSpace is all about? Tours are by appointment only. -
- Contact Us to schedule your tour where you can learn about all the awesome tools that - the CMS offers access to, as well as how membership, classes, and studio spaces work. -
- {% for section in event_sections %} - {% if section.events %} -

{{ section.title }}

-

- {{ section.blurb }} -

- {% for event in section.events %} - {% with url="https://claremontmakerspace.org/events/#!event/register/"|add:event.url %} - {% spaceless %} -

- - {# djlint:off H006,H013 #} - {% if "lgo" in event %}{% endif %} - {# djlint:on #} - {{ event.ttl|bleach }} - -

- {% endspaceless %} - {% spaceless %} -
- {# wordpress is very annoying with spacing here #} - {# djlint:off #} - + {% spaceless %} +
+ +
+ CMS Logo +
+ + +

Greetings Upper Valley Makers:

+ + +

We have an exciting list of upcoming classes at the Claremont MakerSpace that we think might interest you.

+ + +

+ For most classes and events, CMS MEMBERSHIP IS NOT REQUIRED. That said, members receive a discount on registration and there are some classes/events that are for members only (this will be clearly noted in the event description). +
+ Class policies (liability waiver, withdrawal, cancellation, etc.) can be found here. +
+ Instructors: Interested in teaching a class at CMS? Please fill out our Class Proposal Form. +
+ Tours: Want to see what the Claremont MakerSpace is all about? Tours are by appointment only. +
+ Contact Us to schedule your tour where you can learn about all the awesome tools that the CMS offers access to, as well as how membership, classes, and studio spaces work. +

+ + +
+ + {% for section in event_sections %} + {% if section.events %} + +

{{ section.title }}

+ + +

+ {{ section.blurb }} +

+ + {% for event in section.events %} + {% with url="https://claremontmakerspace.org/events/#!event/register/"|add:event.url %} + +
+ +

+ + {% if "lgo" in event %} + {# djlint:off H006 #} + Image for {{ event.ttl|bleach }} + {# djlint:on #} + {% endif %} + {{ event.ttl|bleach }} + +

+ + +

+ {# wordpress is very annoying with spacing here #} {# TODO: different dates probably implies multiple instances. Should read RRULE or similar from the event notes #} - {{ event.sdp_dt|date }} {{ event.sdp_dt|time }} — {% if event.sdp_dt.date != event.edp_dt.date %}{{ event.edp_dt|date }}{% endif %} {{ event.edp_dt|time }} - - {# djlint:on #} -

- {% endspaceless %} - {% if not section.truncate %} -
{{ event.dtl|bleach:"a,abbr,acronym,b,blockquote,code,em,i,li,ol,strong,ul,p,span,br,div" }}
-
- Register for this class now! -
- {% endif %} -
- {% endwith %} - {% endfor %} - {% endif %} - {% endfor %} -
-
Happy Makin’!
-
- We are grateful for all of the public support that our 501(c)(3), non-profit organization receives. If you’d - like to make a donation,please visit the Support Us - page of our website. -
+ {# djlint:off #} + {{ event.sdp_dt|date }} {{ event.sdp_dt|time }} — {% if event.sdp_dt.date != event.edp_dt.date %}{{ event.edp_dt|date }}{% endif %} {{ event.edp_dt|time }} + {# djlint:on #} +

+ + {% if not section.truncate %} + +
{{ event.dtl|bleach:"a,abbr,acronym,b,blockquote,code,em,i,li,ol,strong,ul,p,span,br,div" }}
+ + +

+ Register for this class now! +

+ + {% endif %} + + + +
+ + {% endwith %} + {% endfor %} + {% endif %} + {% endfor %} + +

Happy Makin’!

+ + +

+ We are grateful for all of the public support that our 501(c)(3), non-profit organization receives. If you’d like to make a donation,please visit the Support Us page of our website. +

+
-
+ {% endspaceless %}