@shift72/core-template 1.9.7 → 1.9.9
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +16 -2
- package/README.md +2 -1
- package/kibble.json +1 -1
- package/package.json +1 -1
- package/site/purchase.html.jet +5 -0
- package/site/styles/_footer.scss +3 -1
- package/site/styles/_plans.scss +0 -2
- package/site/templates/application/application.jet +24 -12
- package/site/templates/application/nav/user_logged_out.jet +3 -1
- package/site/theme.json.jet +4 -0
package/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## [Unreleased](https://github.com/shift72/core-template/compare/1.9.
|
3
|
+
## [Unreleased](https://github.com/shift72/core-template/compare/1.9.9...HEAD)
|
4
4
|
|
5
5
|
### Added
|
6
6
|
|
@@ -8,7 +8,21 @@
|
|
8
8
|
|
9
9
|
### Fixed
|
10
10
|
|
11
|
-
## [1.9.
|
11
|
+
## [1.9.9](https://github.com/shift72/core-template/compare/1.9.8...1.9.9)
|
12
|
+
|
13
|
+
### Changed
|
14
|
+
|
15
|
+
- Update the checkout embed to suit latest version, and to pass through urls
|
16
|
+
- Add flags in `application.jet` to switch on local dev options for relish and
|
17
|
+
checkout.
|
18
|
+
|
19
|
+
## [1.9.8](https://github.com/shift72/core-template/compare/1.9.7...1.9.8)
|
20
|
+
|
21
|
+
### Fixed
|
22
|
+
|
23
|
+
- Bug with android tv app logo on Chrome
|
24
|
+
|
25
|
+
## [1.9.7](https://github.com/shift72/core-template/compare/1.9.6...1.9.7)
|
12
26
|
|
13
27
|
### Added
|
14
28
|
|
package/README.md
CHANGED
@@ -13,4 +13,5 @@ This template supports the following features:
|
|
13
13
|
|
14
14
|
## Running local content
|
15
15
|
|
16
|
-
To use a local version of relish, update
|
16
|
+
To use a local version of relish or checkout, update the flags at the top of
|
17
|
+
[application.jet](site/templates/application/application.jet)
|
package/kibble.json
CHANGED
package/package.json
CHANGED
package/site/styles/_footer.scss
CHANGED
@@ -164,11 +164,13 @@ footer {
|
|
164
164
|
display: flex;
|
165
165
|
height: 45px;
|
166
166
|
}
|
167
|
+
|
167
168
|
.app-badge-android-tv {
|
168
169
|
background-color: var(--footer-app-badge-android-tv);
|
169
170
|
height: 44px;
|
170
171
|
mask: url('/images/icons/androidtv.svg') no-repeat center / contain;
|
171
|
-
|
172
|
+
/* stylelint-disable-next-line */
|
173
|
+
-webkit-mask: url('/images/icons/androidtv.svg') no-repeat center / contain;
|
172
174
|
width: 122px;
|
173
175
|
}
|
174
176
|
}
|
package/site/styles/_plans.scss
CHANGED
@@ -67,7 +67,6 @@ s72-plan-label {
|
|
67
67
|
}
|
68
68
|
|
69
69
|
s72-plan-label {
|
70
|
-
|
71
70
|
left: 0;
|
72
71
|
margin: 0 auto;
|
73
72
|
position: absolute;
|
@@ -80,7 +79,6 @@ s72-plan-label {
|
|
80
79
|
}
|
81
80
|
|
82
81
|
.plan-caption-details .s72-plan-owned {
|
83
|
-
|
84
82
|
background-color: var(--primary);
|
85
83
|
border-radius: $border-radius 0 $border-radius 0;
|
86
84
|
display: inline-block;
|
@@ -5,14 +5,17 @@
|
|
5
5
|
{{import "./pixel.jet"}}
|
6
6
|
{{import "./footer/footer.jet" }}
|
7
7
|
|
8
|
-
{{
|
9
|
-
{
|
8
|
+
{{useLocalDevRelish := false}}
|
9
|
+
{{useLocalDevCheckout := false}}
|
10
|
+
|
11
|
+
{{CDN := useLocalDevRelish ? "//localhost:3000" : "//cdn.shift72.com/1.4"}}
|
10
12
|
|
11
13
|
{{CSSFileURL := site.SiteBrand.GetLink("css", "")}}
|
12
14
|
{*{CSSFileURL := "/styles/local.css"}*}
|
13
15
|
|
14
|
-
{{
|
15
|
-
{{
|
16
|
+
{{useCheckout := site.Toggles["use_checkout"] || useLocalDevCheckout}}
|
17
|
+
{{checkoutDevServer := "http://localhost:4072"}}
|
18
|
+
{{checkoutScriptUrl := useLocalDevCheckout ? checkoutDevServer + "/s72.checkout.js" : "/checkout/s72.checkout.js"}}
|
16
19
|
|
17
20
|
<!DOCTYPE html>
|
18
21
|
<html lang="{{lang.Code}}">
|
@@ -55,16 +58,9 @@
|
|
55
58
|
|
56
59
|
<script src="{{CDN}}/s72.transactional.js" defer></script>
|
57
60
|
|
58
|
-
{{if checkoutDevMode}}
|
59
|
-
<script>window.S72_CHECKOUT_OVERRIDE_URL = 'http://localhost:4072'</script>
|
60
|
-
<script src="http://localhost:4072/s72.checkout.js" defer></script>
|
61
|
-
{{else if useCheckout}}
|
62
|
-
<script src="/checkout/s72.checkout.js" defer></script>
|
63
|
-
{{end}}
|
64
|
-
|
65
61
|
<script src="https://js.stripe.com/v3/" defer></script>
|
66
62
|
|
67
|
-
{* get default language from site record or kibble.json depening on if db translations is enabled *}
|
63
|
+
{* get default language from site record or kibble.json depening on if db translations is enabled *}
|
68
64
|
{{ defaultLanguage := isEnabled("site_translations_api") ? site.DefaultLanguage : site.SiteConfig.DefaultLanguage }}
|
69
65
|
<script>
|
70
66
|
window.addEventListener('DOMContentLoaded', function(){
|
@@ -78,6 +74,22 @@
|
|
78
74
|
});
|
79
75
|
</script>
|
80
76
|
|
77
|
+
{{if useCheckout}}
|
78
|
+
<script src="{{checkoutScriptUrl}}" defer></script>
|
79
|
+
<script>
|
80
|
+
window.Shift72CheckoutOptions = {
|
81
|
+
baseUrl: window.location.origin,
|
82
|
+
{{if useLocalDevCheckout}}checkoutDevServerUrl: '{{checkoutDevServer}}',{{end}}
|
83
|
+
links: {
|
84
|
+
library: '{{routeToPath("/library.html")}}',
|
85
|
+
termsAndConditions: '{{routeToPath("/page/terms-and-conditions/")}}',
|
86
|
+
deviceCompatibility: '{{routeToPath("/page/help/")}}',
|
87
|
+
help: '{{routeToPath("/page/help/")}}'
|
88
|
+
}
|
89
|
+
};
|
90
|
+
</script>
|
91
|
+
{{end}}
|
92
|
+
|
81
93
|
<script type="text/javascript" src="/scripts/swiper.min.js"></script>
|
82
94
|
</head>
|
83
95
|
<body>
|
@@ -8,7 +8,9 @@
|
|
8
8
|
<a href="{{ routeToPath("/signin.html") }}" class="btn btn-signin-primary">{{i18n("nav_signin")}}</a>
|
9
9
|
{{else}}
|
10
10
|
<a href="{{ routeToPath("/signin.html") }}" class="btn btn-signin">{{i18n("nav_signin")}}</a>
|
11
|
-
|
11
|
+
{{create_account_link := config("create_account_link")}}
|
12
|
+
{{href := create_account_link == "" ? routeToPath("/signup.html") : create_account_link}}
|
13
|
+
<a href="{{href}}" class="btn btn-signup">{{i18n("nav_signup")}}</a>
|
12
14
|
{{end}}
|
13
15
|
</s72-user-anon>
|
14
16
|
{{end}}
|