Skip to content

Commit 39f4ee3

Browse files
committed
add pretix display event info
- add the varialbe option `info` - if `info` is show, we display the event info in the widget Signed-off-by: Toshaan Bharvani <[email protected]>
1 parent 7bedbe7 commit 39f4ee3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

themes/devopsdays-theme/layouts/shortcodes/tix.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{{ $city := .Get "city" }}
22
{{ $year := .Get "year" }}
3+
{{ $info := .Get "info" }}
34

45
<link rel="stylesheet" type="text/css" href="https://tickets.devopsdays.org/devopsdays-{{ $city }}/{{ $year }}/widget/v1.css">
56
<script type="text/javascript" src="https://tickets.devopsdays.org/widget/v1.en.js" async></script>
67

7-
<pretix-widget event="https://tickets.devopsdays.org/devopsdays-{{ $city }}/{{ $year }}/"></pretix-widget>
8+
<pretix-widget event="https://tickets.devopsdays.org/devopsdays-{{ $city }}/{{ $year }}/" {{- if eq $info "show" -}} display-event-info{{- end -}}></pretix-widget>
89
<noscript>
910
<div class="pretix-widget">
1011
<div class="pretix-widget-info-message">

themes/devopsdays-theme/reference.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,8 @@ or
430430
Embeds the DevOpsDays Pretix ticket and registration system
431431
This shortcode requires two parameters, city and year, where the city is typically the organiser city and the year the event year.
432432
Please note this may be differ, please check with in your Pretix for the two names.
433+
To enable the header text, add `info=show` to enable showing of the Event Info section.
433434

434435
```
435-
{{< tix city="belgium" year="antwerp-2024" >}}
436+
{{< tix city="belgium" year="antwerp-2024" info="show">}}
436437
```

0 commit comments

Comments
 (0)