Skip to content

Commit

Permalink
Hide registration button and baige registration forms (#309)
Browse files Browse the repository at this point in the history
* Revert "fix: add /zh/ prefix to navigation register menu (#306)"

This reverts commit ae465f0.

* fix: hided register btn

* fix: hided baige register form
  • Loading branch information
shuashuai authored Aug 2, 2024
1 parent ec8b469 commit 8a8a4e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 45 deletions.
45 changes: 3 additions & 42 deletions themes/apachecon/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ <h1 class="d-none"> CommunityOverCode Asia 2024</h1>
<img class="mobile-show" src="images/mobile-cocasia2024-banner-en.jpg" alt="Community Over Code Asia 2024" width="100%">
{{ end }}

<div class="home-btn-wrap">
<!-- <div class="home-btn-wrap">
<a href="{{ if eq .Site.Language.Lang "zh" }}/zh/{{end}}#register"
role="button"
class="btn btn-warning btn-lg">
{{ i18n "register" }}
</a>
</div>
</div> -->
</div>

<div class="container logo-wrap">
Expand All @@ -51,46 +51,7 @@ <h2 class="px-3 mb-5">{{.Title}}</h2>
</section>
</div>

<div class="wrapper style6" id="register">
<section class="container">
<h2 class="text-center">{{ i18n "register" }}</h2>
<div class="mt-5">
{{ if eq .Site.Language.Lang "zh" }}
<iframe id="promote_ticket_iframe" width="100%" src="https://www.bagevent.com/widget/ticket/8766402?widget=2" frameborder="0" scrolling="no"></iframe>
<script>
(function (i, s, o, g, r, a, m) {
i['BagEventIFrameResize'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
};
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'https://www.bagevent.com/resources/js/iframeResizer/iframeResizer.min.js', 'bfr');
bfr('iFrameResize', {checkOrigin: false, heightCalculationMethod: 'taggedElement'}, "#promote_ticket_iframe");
</script>
{{else}}
<iframe id="promote_ticket_iframe" width="100%" src="https://www.bagevent.com/widget/ticket/8787426?widget=2" frameborder="0" scrolling="no"></iframe>
<script>
(function (i, s, o, g, r, a, m) {
i['BagEventIFrameResize'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
};
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'https://www.bagevent.com/resources/js/iframeResizer/iframeResizer.min.js', 'bfr');
bfr('iFrameResize', {checkOrigin: false, heightCalculationMethod: 'taggedElement'}, "#promote_ticket_iframe");
</script>
{{end}}
</div>
</section>
</div>


<div class="wrapper style4">
<section class="container">
Expand Down
6 changes: 3 additions & 3 deletions themes/apachecon/layouts/partials/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@
</li>
{{ end}}
{{ end }}
<div class="ms-0 ms-lg-4">
<a href="{{ if eq .Site.Language.Lang "zh" }}/zh/{{end}}{{ if .IsHome }}#register{{else}}index.html#register{{end}}" role="button" class="btn btn-warning">
<!-- <div class="ms-0 ms-lg-4">
<a href="{{ if .IsHome }}#register{{else}}index.html#register{{end}}" role="button" class="btn btn-warning">
{{ i18n "register" }}
</a>
</div>
</div> -->

</ul>
</div>
Expand Down

0 comments on commit 8a8a4e8

Please sign in to comment.