Skip to content

Commit 17d1070

Browse files
authored
Merge pull request #14905 from toshywoshy/tixurl
[SITE] add a new url exception for special urls
2 parents 498675b + 0c4c587 commit 17d1070

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

  • themes/devopsdays-theme/layouts/shortcodes

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
{{ $url := .Get "url" }}
12
{{ $city := .Get "city" }}
23
{{ $year := .Get "year" }}
34
{{ $info := .Get "info" }}
45

6+
{{- if eq $url "" -}}
7+
58
<link rel="stylesheet" type="text/css" href="https://tickets.devopsdays.org/devopsdays-{{ $city }}/{{ $year }}/widget/v1.css">
69
<script type="text/javascript" src="https://tickets.devopsdays.org/widget/v1.en.js" async></script>
710

@@ -13,3 +16,19 @@
1316
</div>
1417
</div>
1518
</noscript>
19+
20+
{{- else -}}
21+
22+
<link rel="stylesheet" type="text/css" href="{{ $url }}/widget/v1.css">
23+
<script type="text/javascript" src="https://tickets.devopsdays.org/widget/v1.en.js" async></script>
24+
25+
<pretix-widget event="{{ $url }}" {{- if eq $info "show" -}} display-event-info{{- end -}}></pretix-widget>
26+
<noscript>
27+
<div class="pretix-widget">
28+
<div class="pretix-widget-info-message">
29+
JavaScript is disabled in your browser. To access our ticket shop without JavaScript, please <a target="_blank" rel="noopener" href="{{ $url }}">click here</a>.
30+
</div>
31+
</div>
32+
</noscript>
33+
34+
{{- end -}}

0 commit comments

Comments
 (0)