Skip to content

Commit dc9639c

Browse files
authored
Merge pull request #14875 from toshywoshy/tixinfo
2 parents 7bedbe7 + 39f4ee3 commit dc9639c

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)