@shift72/core-template 0.4.4 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +37 -16
- package/kibble.json +108 -29
- package/package.json +21 -8
- package/scripts/core-template-version.js +30 -0
- package/scripts/language-file-to-csv/language-file-to-csv.js +2 -2
- package/scripts/language-file-validator.js +1 -1
- package/scripts/translate.mjs +43 -0
- package/site/ar_LB.all.json +1262 -595
- package/site/ca_ES.all.json +437 -417
- package/site/da_DK.all.json +307 -221
- package/site/de_DE.all.json +1119 -459
- package/site/ee_EE.all.json +1261 -600
- package/site/el_EL.all.json +1112 -459
- package/site/en_AU.all.json +1159 -467
- package/site/es_ES.all.json +1105 -452
- package/site/es_MX.all.json +1160 -479
- package/site/fi_FI.all.json +1113 -460
- package/site/fr_FR.all.json +1105 -454
- package/site/hr_HR.all.json +1169 -464
- package/site/hu_HU.all.json +1261 -599
- package/site/it_IT.all.json +1112 -458
- package/site/ja_JP.all.json +1114 -460
- package/site/lt_LT.all.json +1112 -454
- package/site/nl_BE.all.json +1112 -456
- package/site/no_NO.all.json +1252 -596
- package/site/pl_PL.all.json +1090 -447
- package/site/pt_BR.all.json +432 -429
- package/site/pt_PT.all.json +1252 -602
- package/site/ru_RU.all.json +1088 -449
- package/site/sr_SR.all.json +1254 -0
- package/site/styles/_awards.scss +5 -0
- package/site/styles/_buttons.scss +23 -0
- package/site/styles/_carousel.scss +9 -1
- package/site/styles/_forms.scss +78 -11
- package/site/styles/_meta-detail.scss +2 -2
- package/site/styles/_meta-item-tagline.scss +1 -1
- package/site/styles/_nav.scss +6 -6
- package/site/styles/_pages.scss +0 -2
- package/site/styles/_plans.scss +5 -0
- package/site/styles/_search.scss +1 -1
- package/site/styles/_shift72.scss +3 -3
- package/site/styles/_shopping.scss +1 -1
- package/site/styles/_skip-link.scss +19 -0
- package/site/styles/_variables.scss +10 -6
- package/site/styles/_wishlist.scss +19 -11
- package/site/styles/main.scss +1 -0
- package/site/templates/application/application.jet +11 -14
- package/site/templates/application/google.jet +26 -10
- package/site/templates/common/awards/carousel.jet +7 -1
- package/site/templates/common/awards/item.jet +2 -2
- package/site/templates/film/item.jet +83 -76
- package/site/templates/page/curated.jet +1 -1
- package/site/templates/page/page-content.jet +1 -23
- package/site/templates/page/page-header.jet +25 -6
- package/site/tr_TR.all.json +1252 -602
- package/site/uk_UA.all.json +528 -451
- package/site/zh_TW.all.json +438 -419
- package/site/se_SE.all.json +0 -601
@@ -21,16 +21,15 @@
|
|
21
21
|
<main id="main" class="page page-film meta-detail meta-detail-film">
|
22
22
|
<div class="meta-detail-bg">
|
23
23
|
<div class="right-gradient"></div>
|
24
|
-
<s72-image src="{{film.
|
24
|
+
<s72-image src="{{film.ImageMap["Background"]}}" alt="" class="meta-detail-bg-img"></s72-image>
|
25
25
|
</div>
|
26
26
|
<div class="container">
|
27
27
|
<div class="meta-detail-main">
|
28
28
|
{{if config("default_image_type") == "portrait"}}
|
29
29
|
<div class="poster poster-portrait">
|
30
30
|
<s72-availability-status data-slug="{{film.Slug}}"></s72-availability-status>
|
31
|
-
<s72-image src="{{film.
|
32
|
-
|
33
|
-
<s72-image src="{{film.Images.Portrait}}" alt="{{film.Title}}" class="poster poster-image poster-image-portrait"></s72-image>
|
31
|
+
<s72-image src="{{film.ImageMap["Classification"]}}" alt="" class="classification-image">
|
32
|
+
<s72-image src="{{film.ImageMap["Portrait"]}}" alt="{{film.Title}}" class="poster poster-image poster-image-portrait"></s72-image>
|
34
33
|
|
35
34
|
</div>
|
36
35
|
{{end}}
|
@@ -63,84 +62,92 @@
|
|
63
62
|
<s72-availability-label data-slug="{{film.Slug}}"></s72-availability-label>
|
64
63
|
|
65
64
|
{{yield awardNominations() film}}
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
<h2>{{i18n("meta_detail_cast_title")}}</h2>
|
71
|
-
{{end}}
|
72
|
-
<p>
|
73
|
-
{{range index, member := film.Cast}}
|
74
|
-
{{ path := "/search.html?q=" + member.Name }}
|
75
|
-
<a href="{{ routeToPath(path) }}">{{member.Name}}</a>{{if index < len(film.Cast) - 1}}, {{end}}
|
76
|
-
{{end}}
|
77
|
-
</p>
|
78
|
-
</div>
|
79
|
-
<div class="meta-detail-crew d-flex">
|
80
|
-
{{range index, member := film.Crew}}
|
81
|
-
<div class="crew-member">
|
82
|
-
<h2>{{member.Job}}</h2>
|
83
|
-
{{ path := "/search.html?q=" + member.Name }}
|
84
|
-
<a href="{{ routeToPath(path) }}">{{member.Name}}</a>
|
65
|
+
<s72-element-switcher>
|
66
|
+
{{if isEnabled("element_switcher_enabled")}}
|
67
|
+
<div class="meta-detail-switcher-tagline">
|
68
|
+
<p>{{film.Tagline}}</p>
|
85
69
|
</div>
|
86
70
|
{{end}}
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
</div>
|
93
|
-
{{end}}
|
94
|
-
{{allSubtitles := film.GetSubtitles()}}
|
95
|
-
{{if len(allSubtitles) > 0 }}
|
96
|
-
{{subtitles := ""}}
|
97
|
-
{{captions := ""}}
|
98
|
-
{{if len(film.SubtitleTracks) == 0}}
|
99
|
-
{{subtitles = allSubtitles}}
|
100
|
-
{{else}}
|
101
|
-
{{range subTrack := film.SubtitleTracks}}
|
102
|
-
{{if len(subTrack) >= 3}}
|
103
|
-
{{if subTrack[2] == "caption"}}
|
104
|
-
{{captions = captions ? captions + ", " + subTrack[1] : subTrack[1]}}
|
105
|
-
{{else}}
|
106
|
-
{{subtitles = subtitles ? subtitles + ", " + subTrack[1] : subTrack[1]}}
|
107
|
-
{{end}}
|
108
|
-
{{end}}
|
71
|
+
<div class="{{ isEnabled("element_switcher_enabled") ? "s72-hide" : "" }}"> {* hide class prevents FOUC *}
|
72
|
+
<div class="meta-detail-synopsis">{{film.Overview | raw}}</div>
|
73
|
+
<div class="meta-detail-cast">
|
74
|
+
{{if len(film.Cast) > 0 }}
|
75
|
+
<h2>{{i18n("meta_detail_cast_title")}}</h2>
|
109
76
|
{{end}}
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
77
|
+
<p>
|
78
|
+
{{range index, member := film.Cast}}
|
79
|
+
{{ path := "/search.html?q=" + member.Name }}
|
80
|
+
<a href="{{ routeToPath(path) }}">{{member.Name}}</a>{{if index < len(film.Cast) - 1}}, {{end}}
|
81
|
+
{{end}}
|
82
|
+
</p>
|
115
83
|
</div>
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
84
|
+
<div class="meta-detail-crew d-flex">
|
85
|
+
{{range index, member := film.Crew}}
|
86
|
+
<div class="crew-member">
|
87
|
+
<h2>{{member.Job}}</h2>
|
88
|
+
{{ path := "/search.html?q=" + member.Name }}
|
89
|
+
<a href="{{ routeToPath(path) }}">{{member.Name}}</a>
|
90
|
+
</div>
|
91
|
+
{{end}}
|
121
92
|
</div>
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
93
|
+
{{if len(film.Languages) > 0 }}
|
94
|
+
<div class="meta-detail-language">
|
95
|
+
<h2>{{i18n("meta_detail_languages", len(film.Languages))}}</h2>
|
96
|
+
<p>{{ film.Languages }}</p>
|
97
|
+
</div>
|
98
|
+
{{end}}
|
99
|
+
{{allSubtitles := film.GetSubtitles()}}
|
100
|
+
{{if len(allSubtitles) > 0 }}
|
101
|
+
{{subtitles := ""}}
|
102
|
+
{{captions := ""}}
|
103
|
+
{{if len(film.SubtitleTracks) == 0}}
|
104
|
+
{{subtitles = allSubtitles}}
|
105
|
+
{{else}}
|
106
|
+
{{range subTrack := film.SubtitleTracks}}
|
107
|
+
{{if len(subTrack) >= 3}}
|
108
|
+
{{if subTrack[2] == "caption"}}
|
109
|
+
{{captions = captions ? captions + ", " + subTrack[1] : subTrack[1]}}
|
110
|
+
{{else}}
|
111
|
+
{{subtitles = subtitles ? subtitles + ", " + subTrack[1] : subTrack[1]}}
|
112
|
+
{{end}}
|
113
|
+
{{end}}
|
114
|
+
{{end}}
|
115
|
+
{{end}}
|
116
|
+
{{if subtitles}}
|
117
|
+
<div class="meta-detail-subtitle">
|
118
|
+
<h2>{{i18n("meta_detail_subtitles")}}</h2>
|
119
|
+
<p>{{subtitles}}</p>
|
120
|
+
</div>
|
121
|
+
{{end}}
|
122
|
+
{{if captions}}
|
123
|
+
<div class="meta-detail-subtitle">
|
124
|
+
<h2>{{i18n("meta_detail_captions")}}</h2>
|
125
|
+
<p>{{captions}}</p>
|
126
|
+
</div>
|
127
|
+
{{end}}
|
128
|
+
{{end}}
|
129
|
+
{{if len(film.Countries) > 0 }}
|
130
|
+
<div class="meta-detail-country">
|
131
|
+
<h2>{{i18n("meta_detail_countries", len(film.Countries))}}</h2>
|
132
|
+
<p>{{ film.Countries }}</p>
|
133
|
+
</div>
|
134
|
+
{{end}}
|
135
|
+
{{if len(film.Studio) > 0 }}
|
136
|
+
<div class="meta-detail-studio">
|
137
|
+
<h2>{{i18n("meta_detail_studios", len(film.Studio))}}</h2>
|
138
|
+
{*{ FORMAT STUDIOS }*}
|
139
|
+
{{ studios := "" }}
|
140
|
+
{{ range studio := film.Studio }}
|
141
|
+
{{ studios = studios + studio + ", "}}
|
142
|
+
{{ end }}
|
143
|
+
{{ if len(studios) > 0 }}
|
144
|
+
{{ studios = studios[0:len(studios) - 2] }}
|
145
|
+
{{ end }}
|
146
|
+
<p>{{ studios }}</p>
|
147
|
+
</div>
|
148
|
+
{{end}}
|
142
149
|
</div>
|
143
|
-
|
150
|
+
</s72-element-switcher>
|
144
151
|
{{if len(film.Bonuses) > 0 && !film.CustomFields.GetBool("hide_bonus_content", false)}}
|
145
152
|
<section class="meta-detail-bonus-content" aria-label="{{i18n("meta_detail_bonus_title")}}">
|
146
153
|
<h2>{{i18n("meta_detail_bonus_title")}}</h2>
|
@@ -1,29 +1,7 @@
|
|
1
|
-
{{block pageContent(text=""
|
1
|
+
{{block pageContent(text="")}}
|
2
2
|
{{if len(text) > 0}}
|
3
3
|
<div class="page-content">
|
4
4
|
{{text | raw}}
|
5
|
-
|
6
|
-
{{if plan != 0 }}
|
7
|
-
<div class="plan-buttons">
|
8
|
-
{{ if plan.PlanType == "free" }}
|
9
|
-
{{ if plan.HasExpiryDate() }}
|
10
|
-
<s72-before datetime="{{ plan.ExpiryDate.UnixMilli() }}">
|
11
|
-
<s72-user-anon>
|
12
|
-
<a class="btn btn-block s72-btn-purchase signup-link" href="{{routeToPath("/signup.html")}}">{{ i18n("plan_free_link_text") }}</a>
|
13
|
-
</s72-user-anon>
|
14
|
-
</s72-before>
|
15
|
-
{{ else }}
|
16
|
-
<s72-user-anon>
|
17
|
-
<a class="btn btn-block s72-btn-purchase signup-link" href="{{routeToPath("/signup.html")}}">{{ i18n("plan_free_link_text") }}</a>
|
18
|
-
</s72-user-anon>
|
19
|
-
{{ end }}
|
20
|
-
{{ else }}
|
21
|
-
<s72-pricing-buttons data-slug="{{plan.Slug}}" data-title="{{plan.Name}}" data-ownership-label-prefix={{ i18n("plan_showcase_page_ownership_button_") }} data-hide-price="true" />
|
22
|
-
{{ end }}
|
23
|
-
</div>
|
24
|
-
{{end}}
|
25
5
|
</div>
|
26
|
-
|
27
|
-
|
28
6
|
{{end}}
|
29
7
|
{{end}}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
{{block pageHeader(title="", plan=0)}}
|
2
2
|
{{if len(title) > 0}}
|
3
|
-
<div class="page-header">
|
3
|
+
<div class="page-header pb-0">
|
4
4
|
{{if plan != 0}}
|
5
5
|
<s72-plan-label data-slug="{{plan.Slug}}" data-title="{{plan.Name}}"></s72-plan-label>
|
6
6
|
{{end}}
|
7
7
|
<h1>{{title}}</h1>
|
8
|
-
{{if plan != 0
|
9
|
-
{{
|
10
|
-
<p class="alert p-0 border-0
|
8
|
+
{{if plan != 0}}
|
9
|
+
{{if plan.HasExpiryDate()}}
|
10
|
+
<p class="alert p-0 border-0 mt-1rem mb-0">
|
11
11
|
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" class="bi bi-exclamation-circle mr-p5" viewBox="0 0 16 16"> <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/> <path d="M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z"/> </svg>
|
12
12
|
<small>
|
13
13
|
<s72-before datetime="{{ plan.ExpiryDate.UnixMilli() }}">
|
@@ -19,8 +19,27 @@
|
|
19
19
|
</s72-after>
|
20
20
|
</small>
|
21
21
|
</p>
|
22
|
-
{{
|
22
|
+
{{end}}
|
23
|
+
|
24
|
+
<div class="plan-buttons mt-1rem mb-0">
|
25
|
+
{{ if plan.PlanType == "free" }}
|
26
|
+
{{ if plan.HasExpiryDate() }}
|
27
|
+
<s72-before datetime="{{ plan.ExpiryDate.UnixMilli() }}">
|
28
|
+
<s72-user-anon>
|
29
|
+
<a class="btn btn-block s72-btn-purchase signup-link" href="{{routeToPath("/signup.html")}}">{{ i18n("plan_free_link_text") }}</a>
|
30
|
+
</s72-user-anon>
|
31
|
+
</s72-before>
|
32
|
+
{{ else }}
|
33
|
+
<s72-user-anon>
|
34
|
+
<a class="btn btn-block s72-btn-purchase signup-link" href="{{routeToPath("/signup.html")}}">{{ i18n("plan_free_link_text") }}</a>
|
35
|
+
</s72-user-anon>
|
36
|
+
{{ end }}
|
37
|
+
{{ else }}
|
38
|
+
<s72-pricing-buttons data-slug="{{plan.Slug}}" data-title="{{plan.Name}}" />
|
39
|
+
{{ end }}
|
40
|
+
</div>
|
23
41
|
{{end}}
|
42
|
+
|
24
43
|
</div>
|
25
44
|
{{end}}
|
26
|
-
{{end}}
|
45
|
+
{{end}}
|