Skip to content

Commit ef10edf

Browse files
committed
themes/3mdeb/layouts/_default/events.html: replace tickets plugin with btn forwarder
Signed-off-by: Artur Raglis <artur.raglis@3mdeb.com>
1 parent 94d5a81 commit ef10edf

File tree

2 files changed

+33
-24
lines changed

2 files changed

+33
-24
lines changed

content/events.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,26 @@ events_download:
1212
label: "Ical View"
1313
link: "https://calendar.google.com/calendar/ical/events%403mdeb.com/public/basic.ics"
1414

15+
# TEMPLATE EVENT
16+
# - title: "Event **Name**"
17+
# status: "upcoming" # upcoming, open, closed
18+
# date: "DD.MM.YYYY"
19+
# tickets_url: #http://events.dasharo.com/event/1/title
20+
# pretalx_url: #"https://cfp.3mdeb.com/developers-vpub-0x11-2025/"
21+
# pretalx_format: grid # grid, list
22+
# subscription_id: #"8dec68a8-74e3-4acb-923a-8ba4a5328bbe"
23+
# event_poster: #"images/events/2025/zarhus-developers-2.jpg"
24+
# event_description: | # paste event description below, use `###` headers
25+
# additional_info: |
26+
# ### **Thank you everyone for attending!**
27+
# Below you can find related presentations, materials and archived event
28+
# details with the schedule.
29+
# segments:
30+
# - date: "DD.MM.YYYY"
31+
# image: ""
32+
# youtube_video_id: ""
33+
# additional_info: |
34+
1535
all_events:
1636
- year: "Upcoming **2026**"
1737
events:

themes/3mdeb/layouts/_default/events.html

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{{ define "main" }}
2-
<script async src="https://events.dasharo.com/widget.js"></script>
32
{{ range .Params.all_events }}
43
{{ range .events }}
54
{{ if .pretalx_url }}
@@ -123,7 +122,7 @@ <h2 class="accordion-header">
123122
{{ partial "image.html" (dict "Src" .event_poster "Alt" (.title | plainify)) }}
124123
</div>
125124
{{ end }}
126-
<div class="text-start py-4 space-y-4">
125+
<div class="text-start pb-2 space-y-4">
127126
{{ .event_description | markdownify }}
128127
</div>
129128
</div>
@@ -177,7 +176,7 @@ <h4><strong>{{.date}}</strong></h4>
177176
{{ end }}
178177

179178
{{ if or .event_description .pretalx_url }}
180-
<div class="row mt-4">
179+
<div class="row mt-2">
181180
<div class="col-12 text-center">
182181
<button class="btn btn-primary btn-sm mb-3" type="button" data-bs-toggle="collapse" data-bs-target="#{{$detailsId}}" aria-expanded="false" aria-controls="{{$detailsId}}">
183182
<span class="text-show">Show Archived Details & Resources</span>
@@ -214,8 +213,17 @@ <h4><strong>{{.date}}</strong></h4>
214213

215214
{{ define "event-widgets" }}
216215
{{ $link := replace (.title | plainify | urlize) "." ""}}
216+
217+
{{ if .tickets_url }}
218+
<div class="row mt-2 justify-content-center">
219+
<div class="text-center">
220+
<a href="{{ .tickets_url }}" target="_blank" rel="noopener" class="btn btn-primary w-100">GET TICKETS</a>
221+
</div>
222+
</div>
223+
{{ end }}
224+
217225
{{ if .pretalx_url }}
218-
<div class="row mt-4 pretalx-schedule-container justify-content-center">
226+
<div class="row mt-2 pretalx-schedule-container justify-content-center">
219227
<div class="col-12 d-flex justify-content-center">
220228
<pretalx-schedule event-url="{{ .pretalx_url }}" locale="en" format="{{ .pretalx_format }}" style="--pretalx-clr-primary: #3aa57c"></pretalx-schedule>
221229
<noscript>
@@ -230,28 +238,9 @@ <h4><strong>{{.date}}</strong></h4>
230238
</div>
231239
{{ end }}
232240

233-
{{ if .tickets_url }}
234-
{{ $event_id := .tickets_url | replaceRE `.*event/(\d+)/.*` "$1" }}
235-
<div
236-
data-hievents-id="{{ $event_id }}"
237-
data-hievents-primary-color="#38d430"
238-
data-hievents-primary-text-color="#000000"
239-
data-hievents-secondary-color="#38d430"
240-
data-hievents-secondary-text-color="#ffffff"
241-
data-hievents-background-color="#ffffff"
242-
data-hievents-widget-type="widget"
243-
data-hievents-widget-version="1.0"
244-
data-hievents-locale="en"
245-
data-hievents-padding="20px"
246-
data-hievents-autoresize="true"
247-
data-hievents-continue-button-text="Continue"
248-
class="hievents-widget">
249-
</div>
250-
{{ end }}
251-
252241
{{ if .subscription_id }}
253242
{{ $form_title := printf "If you are interested in receiving updates about this event, \njoin \"**%s**\" newsletter!" .title }}
254-
<div class="row mt-4 justify-content-center">
243+
<div class="row mt-2 justify-content-center">
255244
<div class="col-12 col-md-10 col-xl-8 text-center">
256245
<form
257246
action="{{ site.Params.newsletter.subscription_form }}"

0 commit comments

Comments
 (0)