@shift72/core-template 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/CHANGELOG.md +21 -6
  2. package/kibble.json +1 -1
  3. package/package.json +1 -1
  4. package/site/ar_LB.all.json +19 -7
  5. package/site/ca_ES.all.json +19 -7
  6. package/site/da_DK.all.json +19 -7
  7. package/site/de_DE.all.json +18 -6
  8. package/site/el_EL.all.json +19 -7
  9. package/site/en_AU.all.json +18 -6
  10. package/site/es_ES.all.json +19 -7
  11. package/site/es_MX.all.json +18 -6
  12. package/site/et_ET.all.json +18 -6
  13. package/site/fi_FI.all.json +20 -8
  14. package/site/fr_FR.all.json +19 -7
  15. package/site/hr_HR.all.json +19 -7
  16. package/site/hu_HU.all.json +19 -7
  17. package/site/it_IT.all.json +18 -6
  18. package/site/ja_JP.all.json +18 -6
  19. package/site/lt_LT.all.json +19 -7
  20. package/site/manifest.json.jet +2 -2
  21. package/site/nl_BE.all.json +19 -7
  22. package/site/no_NO.all.json +19 -7
  23. package/site/pl_PL.all.json +19 -7
  24. package/site/pt_BR.all.json +19 -7
  25. package/site/pt_PT.all.json +19 -7
  26. package/site/ru_RU.all.json +19 -7
  27. package/site/sr_SR.all.json +19 -7
  28. package/site/static/fonts/fa-s72.woff +0 -0
  29. package/site/styles/_awards.scss +1 -1
  30. package/site/styles/_can-be-watched-button.scss +1 -1
  31. package/site/styles/_carousel.scss +23 -3
  32. package/site/styles/_cta-buttons.scss +3 -4
  33. package/site/styles/_icons.scss +13 -9
  34. package/site/styles/_meta-detail.scss +19 -6
  35. package/site/styles/_mixins.scss +17 -15
  36. package/site/styles/_variables.scss +9 -4
  37. package/site/templates/application/footer/brand.jet +4 -4
  38. package/site/templates/application/footer/copyright-statement.jet +1 -1
  39. package/site/templates/application/nav/nav.jet +2 -2
  40. package/site/templates/items/meta_item.jet +20 -6
  41. package/site/tr_TR.all.json +19 -7
  42. package/site/uk_UA.all.json +19 -7
  43. package/site/zh_TW.all.json +18 -6
@@ -50,35 +50,35 @@
50
50
  }
51
51
 
52
52
  .fa-cc-visa::before {
53
- content: '\e000';
53
+ content: '\e027';
54
54
  }
55
55
 
56
56
  .fa-cc-stripe::before {
57
- content: '\e001';
57
+ content: '\e026';
58
58
  }
59
59
 
60
60
  .fa-cc-paypal::before {
61
- content: '\e002';
61
+ content: '\e025';
62
62
  }
63
63
 
64
64
  .fa-cc-mastercard::before {
65
- content: '\e003';
65
+ content: '\e024';
66
66
  }
67
67
 
68
68
  .fa-cc-jcb::before {
69
- content: '\e004';
69
+ content: '\e023';
70
70
  }
71
71
 
72
72
  .fa-cc-discover::before {
73
- content: '\e005';
73
+ content: '\e022';
74
74
  }
75
75
 
76
76
  .fa-cc-diners-club::before {
77
- content: '\e006';
77
+ content: '\e000';
78
78
  }
79
79
 
80
80
  .fa-cc-amex::before {
81
- content: '\e007';
81
+ content: '\e002';
82
82
  }
83
83
 
84
84
  .fa-twitter::before {
@@ -154,7 +154,7 @@
154
154
  }
155
155
 
156
156
  .fa-circle::before {
157
- content: '\e01c';
157
+ content: '\e001';
158
158
  }
159
159
 
160
160
  .fa-warning::before,
@@ -163,6 +163,10 @@
163
163
  content: '\e01b';
164
164
  }
165
165
 
166
+ .existing-card-icon {
167
+ font-size: 1.2rem;
168
+ }
169
+
166
170
  s72-availability-label .availability-state::before {
167
171
  content: '\e01b';
168
172
  }
@@ -121,19 +121,32 @@
121
121
  flex-direction: column;
122
122
  padding: var(--page-detail-padding-top) 20px 0 20px;
123
123
 
124
- @include media-breakpoint-up(md) {
125
- flex-direction: row;
126
- padding-bottom: 0;
124
+ @include media-breakpoint-up(xs) {
127
125
  padding-top: var(--page-detail-padding-top-md);
128
126
  }
129
127
 
130
128
  @include media-breakpoint-up(lg) {
129
+ flex-direction: row;
131
130
  padding: var(--page-detail-padding-top-lg) 50px 0 50px;
131
+ padding-bottom: 0;
132
+ }
133
+
134
+ .poster-wrapper {
135
+ margin-bottom: 20px;
136
+ position: relative;
137
+ .sponsor {
138
+ bottom: 100%;
139
+ position: absolute;
140
+ @include media-breakpoint-up(xs) {
141
+ position: relative;
142
+ }
143
+ }
132
144
  }
133
145
 
134
146
  .poster {
135
147
  animation: fadein 2s;
136
148
  display: block;
149
+ flex-shrink: 0;
137
150
  margin-right: 20px;
138
151
  width: 110px;
139
152
 
@@ -141,13 +154,13 @@
141
154
  width: 155px;
142
155
  }
143
156
 
144
- @include media-breakpoint-up(md) {
157
+ @include media-breakpoint-up(xl) {
145
158
  width: 208px;
146
159
  }
147
160
  }
148
161
 
149
162
  .poster-wrapper .sponsor {
150
- @include media-breakpoint-up(xl) {
163
+ @include media-breakpoint-up(lg) {
151
164
  display: none;
152
165
  }
153
166
  }
@@ -422,7 +435,7 @@ s72-element-switcher,
422
435
  .sponsor {
423
436
  display: none;
424
437
  padding-top: 10px;
425
- @include media-breakpoint-up(xl) {
438
+ @include media-breakpoint-up(lg) {
426
439
  display: block;
427
440
  }
428
441
  }
@@ -25,25 +25,27 @@
25
25
  }
26
26
 
27
27
  // Easing gradients created using this tool: https://larsenwork.com/easing-gradients/#editor
28
+ // This gradient has solid colour from 85% to 100%.
28
29
  .carousel-bottom-gradient {
29
30
  background: linear-gradient(
30
31
  to bottom,
31
32
  rgba(var(--body-bg-rgb), 0) 0%,
32
- rgba(var(--body-bg-rgb), 0.013) 8.1%,
33
- rgba(var(--body-bg-rgb), 0.049) 15.5%,
34
- rgba(var(--body-bg-rgb), 0.104) 22.5%,
35
- rgba(var(--body-bg-rgb), 0.175) 29%,
36
- rgba(var(--body-bg-rgb), 0.259) 35.3%,
37
- rgba(var(--body-bg-rgb), 0.352) 41.2%,
38
- rgba(var(--body-bg-rgb), 0.45) 47.1%,
39
- rgba(var(--body-bg-rgb), 0.55) 52.9%,
40
- rgba(var(--body-bg-rgb), 0.648) 58.8%,
41
- rgba(var(--body-bg-rgb), 0.741) 64.7%,
42
- rgba(var(--body-bg-rgb), 0.825) 71%,
43
- rgba(var(--body-bg-rgb), 0.896) 77.5%,
44
- rgba(var(--body-bg-rgb), 0.951) 84.5%,
45
- rgba(var(--body-bg-rgb), 0.987) 91.9%,
46
- rgba(var(--body-bg-rgb)) 100%
33
+ rgba(var(--body-bg-rgb), 0.013) 6.9%,
34
+ rgba(var(--body-bg-rgb), 0.049) 13.2%,
35
+ rgba(var(--body-bg-rgb), 0.104) 19.1%,
36
+ rgba(var(--body-bg-rgb), 0.175) 24.7%,
37
+ rgba(var(--body-bg-rgb), 0.259) 30%,
38
+ rgba(var(--body-bg-rgb), 0.352) 35%,
39
+ rgba(var(--body-bg-rgb), 0.45) 40%,
40
+ rgba(var(--body-bg-rgb), 0.55) 45%,
41
+ rgba(var(--body-bg-rgb), 0.648) 50%,
42
+ rgba(var(--body-bg-rgb), 0.741) 55%,
43
+ rgba(var(--body-bg-rgb), 0.825) 60.4%,
44
+ rgba(var(--body-bg-rgb), 0.896) 65.9%,
45
+ rgba(var(--body-bg-rgb), 0.951) 71.8%,
46
+ rgba(var(--body-bg-rgb), 0.987) 78.1%,
47
+ rgb(var(--body-bg-rgb)) 85%,
48
+ rgb(var(--body-bg-rgb)) 100%
47
49
  );
48
50
  }
49
51
 
@@ -29,10 +29,15 @@
29
29
  --navbar-brand-min-width-lg: 126px;
30
30
  --navbar-brand-min-width-xl: 126px;
31
31
 
32
- --carousel-height: 560px;
33
- --carousel-height-sm: 560px;
34
- --carousel-height-lg: 620px;
35
- --carousel-bottom-gradient-height: 220px; // Increase this to 800px for light theme.
32
+ --carousel-height: 75vh;
33
+ --carousel-height-sm: 75vh;
34
+ --carousel-height-lg: 75vh;
35
+ --carousel-bottom-gradient-height: 200px; // Increase this to 300px for light theme.
36
+ --carousel-bottom-gradient-height-sm: 200px; // Increase this to 300px for light theme.
37
+ --carousel-bottom-gradient-height-lg: 200px; // Increase this to 600px for light theme.
38
+ --carousel-image-object-position: center;
39
+ --carousel-image-object-position-sm: center;
40
+ --carousel-image-object-position-lg: center;
36
41
 
37
42
  --page-padding-top: 120px;
38
43
  --page-padding-top-md: 120px;
@@ -1,5 +1,5 @@
1
- {{ block footerBrand() }}
2
- <a class="footer-brand-link" href="{{ routeToPath("/") }}" aria-label="{{ i18n("nav_homepage") }}">
3
- <s72-image src="/images/common/logo.png" alt="{{ i18n("nav_homepage") }}" class="footer-brand-image"></s72-image>
1
+ {{block footerBrand()}}
2
+ <a class="footer-brand-link" href="{{routeToPath("/")}}" aria-label="{{site.Config.GetSiteName()}}">
3
+ <s72-image class="footer-brand-image" src="/images/common/logo.png" alt="{{site.Config.GetSiteName()}}"></s72-image>
4
4
  </a>
5
- {{ end }}
5
+ {{end}}
@@ -1,3 +1,3 @@
1
1
  {{ block copyrightStatement() }}
2
- <p class="copyright-statement">&copy; {{ i18n("site_owner") }}. {{ i18n("all_rights_reserved") }}</p>
2
+ <p class="copyright-statement">&copy; {{site.Config.GetSiteName()}}. {{i18n("all_rights_reserved")}}</p>
3
3
  {{ end }}
@@ -6,11 +6,11 @@
6
6
  <header class="navigation" data-toggle="affix">
7
7
  {{yield headerBanner()}}
8
8
  <div class="navbar-brand-container-tablet">
9
- <a class="navbar-brand" href="{{ routeToPath("/") }}">{{i18n("nav_homepage")}}</a>
9
+ <a class="navbar-brand" href="{{routeToPath("/")}}">{{site.Config.GetSiteName()}}</a>
10
10
  </div>
11
11
  <div class="navbar" aria-label="{{i18n("wcag_aria_label_nav_main")}}">
12
12
  <div class="navbar-brand-container">
13
- <a class="navbar-brand" href="{{ routeToPath("/") }}">{{i18n("nav_homepage")}}</a>
13
+ <a class="navbar-brand" href="{{routeToPath("/")}}">{{site.Config.GetSiteName()}}</a>
14
14
  </div>
15
15
 
16
16
  {{if config("search_disabled") != "true"}}
@@ -5,6 +5,14 @@
5
5
  {{ displayTitleAndGenreBelowPosters = config("media_item_caption") == "true" }}
6
6
  {{ genresLimit = configInt("media_item_caption_genres_count") }}
7
7
 
8
+ {{isFilm := item.ItemType == "film"}}
9
+ {{isSeason := item.ItemType == "tvseason"}}
10
+ {{isEpisode := item.ItemType == "tvepisode"}}
11
+ {{isBundle := item.ItemType == "bundle"}}
12
+
13
+ {{showPlayButton := isFilm || isSeason || isEpisode}}
14
+ {{showPricingButtons := isFilm || isSeason || isBundle}}
15
+
8
16
  {{isPage := hasPrefix(item.Slug, "/page/")}}
9
17
  {{isExternalPage := isPage && item.InnerItem.PageType == "external"}}
10
18
  {{isCollection := hasPrefix(item.Slug, "/collection/")}}
@@ -22,14 +30,14 @@
22
30
  {{pill := ""}}
23
31
  {{pillSupplement := ""}}
24
32
  {{slugRoute := routeToSlug(item.Slug)}}
25
- {{if item.ItemType == "tvepisode"}}
33
+ {{if isEpisode}}
26
34
  {{slugRoute = routeToSlug(item.InnerItem.Season.Slug) + "#episode-" + item.InnerItem.EpisodeNumber}}
27
35
  {{synopsis = item.InnerItem.Overview}}
28
36
  {{pill = i18n("episode_name") + " " + item.InnerItem.EpisodeNumber}}
29
37
  {{pillSupplement = "from " + i18n("season_name") + " " + item.InnerItem.Season.SeasonNumber}}
30
38
  {{end}}
31
39
  {{title := item.Title}}
32
- {{if item.ItemType == "tvseason"}}
40
+ {{if isSeason}}
33
41
  {{synopsis = stripHTML(item.InnerItem.Tagline)}}
34
42
  {{title = item.InnerItem.ShowInfo.Title}}
35
43
  {{pill = i18n("season_name") + " " + item.InnerItem.SeasonNumber}}
@@ -61,11 +69,17 @@
61
69
  {{ end }}
62
70
 
63
71
  <div class="buttons">
64
- <s72-play-button data-slug="{{item.Slug}}" title="{{item.Title}}"></s72-play-button>
65
- <s72-pricing-buttons data-slug="{{item.Slug}}" class="pricing-buttons-fit" title="{{item.Title}}"></s72-pricing-buttons>
66
- {{ if item.ItemType == "film" }}
72
+ {{if showPlayButton}}
73
+ <s72-play-button data-slug="{{item.Slug}}" title="{{item.Title}}"></s72-play-button>
74
+ {{end}}
75
+
76
+ {{if showPricingButtons}}
77
+ <s72-pricing-buttons data-slug="{{item.Slug}}" class="pricing-buttons-fit" title="{{item.Title}}"></s72-pricing-buttons>
78
+ {{end}}
79
+
80
+ {{if isFilm}}
67
81
  <can-be-watched-button data-slug="{{item.InnerItem.Slug}}" data-url="{{ item.InnerItem.CustomFields.GetString("can_be_watched_button_link", "") }}" data-label="{{ item.InnerItem.CustomFields.GetString("can_be_watched_button_text", "can_be_watched_button_text") }}"></can-be-watched-button>
68
- {{ end }}
82
+ {{end}}
69
83
  </div>
70
84
  </div>
71
85
  <s72-userwishlist-button data-slug="{{item.Slug}}" class="btn-wishlist"></s72-userwishlist-button>
@@ -1,7 +1,4 @@
1
1
  {
2
- "site_owner": {
3
- "other": "ABC Cinemas"
4
- },
5
2
  "settings_title": {
6
3
  "other": "Settings"
7
4
  },
@@ -70,9 +67,6 @@
70
67
  "404_page_content": {
71
68
  "other": "<p>Üzgünüz, aradığınız sayfa var gibi görünmüyor.</p><p>Taşınmış veya silinmiş olabilir veya belki bir şey yanlış yazdı.</p><p>Aradığınızı bulmak için ana sayfaya geri dönmeyi deneyin.</p><p><a href=\"{{.URL}}\">Ana sayfaya geri dön</a></p>"
72
69
  },
73
- "nav_homepage": {
74
- "other": "ABC Cinemas"
75
- },
76
70
  "nav_signin": {
77
71
  "other": "Oturum Aç"
78
72
  },
@@ -1027,7 +1021,7 @@
1027
1021
  "other": "Tamamlayınız"
1028
1022
  },
1029
1023
  "shopping_complete_subscription": {
1030
- "other": "Abonelik satın alma işleminiz başarılı oldu. Artık {{.Title}} ."
1024
+ "other": "Abonelik satın alma işleminiz başarılı oldu. Artık {{.Title}}."
1031
1025
  },
1032
1026
  "shopping_complete_subscription_browse": {
1033
1027
  "other": "Sitede <a href=\"/\">gezinmekten</a> veya belirli bir şey <a href=\"/search.html\">aramaktan</a> çekinmeyin."
@@ -1318,5 +1312,23 @@
1318
1312
  },
1319
1313
  "bundle_items_generic": {
1320
1314
  "other": "{{.Count}} öğeler"
1315
+ },
1316
+ "shopping_card_update_reason_expired": {
1317
+ "other": "Kredi kartınızı güncelleyin. Desteklenen kartlar Visa, Mastercard ve American Express'tir."
1318
+ },
1319
+ "shopping_discount_applied_promo": {
1320
+ "other": "Kod başarıyla uygulandı."
1321
+ },
1322
+ "promo_only_purchases_must_be_100_percent_discounted": {
1323
+ "other": "Lütfen geçerli bir promosyon kodu girin."
1324
+ },
1325
+ "shopping_complete_promo_only": {
1326
+ "other": "Başarı! Artık {{.Title}} izleyebilirsiniz."
1327
+ },
1328
+ "shopping_action_redeem_promo_code": {
1329
+ "other": "Tazmin etmek"
1330
+ },
1331
+ "pricing_ownership_promo": {
1332
+ "other": "Tazmin etmek"
1321
1333
  }
1322
1334
  }
@@ -1,7 +1,4 @@
1
1
  {
2
- "site_owner": {
3
- "other": "ABC Cinemas"
4
- },
5
2
  "settings_title": {
6
3
  "other": "Settings"
7
4
  },
@@ -72,9 +69,6 @@
72
69
  "404_page_content": {
73
70
  "other": "<p>На жаль, сторінка, яку ви шукаєте, не існує.</p><p>Вона могла бути переміщена або видалена, чи, можливо, ви щось неправильно написали.</p><p>Спробуйте повернутися на головну сторінку, щоб знайти те, що ви шукаєте.</p><p><a href=\"/\">Назад на головну сторінку</a></p>"
74
71
  },
75
- "nav_homepage": {
76
- "other": "ABC Cinemas"
77
- },
78
72
  "nav_signin": {
79
73
  "other": "Увійти"
80
74
  },
@@ -1149,7 +1143,7 @@
1149
1143
  "other": "Завершено"
1150
1144
  },
1151
1145
  "shopping_complete_subscription": {
1152
- "other": "Ваша покупка підписки була успішною. Тепер ви підписані на {{.Title}} ."
1146
+ "other": "Ваша покупка підписки була успішною. Тепер ви підписані на {{.Title}}."
1153
1147
  },
1154
1148
  "shopping_complete_subscription_browse": {
1155
1149
  "other": "Не соромтеся <a href=\"/\">переглядати</a> сайт або <a href=\"/search.html\">шукати</a> щось конкретне."
@@ -1350,5 +1344,23 @@
1350
1344
  },
1351
1345
  "bundle_items_generic": {
1352
1346
  "other": "{{.Count}} елементи"
1347
+ },
1348
+ "shopping_card_update_reason_expired": {
1349
+ "other": "Оновіть свою кредитну картку. Підтримувані картки Visa, Mastercard та American Express."
1350
+ },
1351
+ "shopping_discount_applied_promo": {
1352
+ "other": "Код успішно застосовано."
1353
+ },
1354
+ "promo_only_purchases_must_be_100_percent_discounted": {
1355
+ "other": "Введіть дійсний промо-код."
1356
+ },
1357
+ "shopping_complete_promo_only": {
1358
+ "other": "Успіху! Тепер ви можете дивитися {{.Title}}."
1359
+ },
1360
+ "shopping_action_redeem_promo_code": {
1361
+ "other": "Викупити"
1362
+ },
1363
+ "pricing_ownership_promo": {
1364
+ "other": "Викупити"
1353
1365
  }
1354
1366
  }
@@ -1,7 +1,4 @@
1
1
  {
2
- "site_owner": {
3
- "other": "ABC Cinemas"
4
- },
5
2
  "settings_title": {
6
3
  "other": "設置"
7
4
  },
@@ -70,9 +67,6 @@
70
67
  "404_page_content": {
71
68
  "other": "<p>很抱歉,此頁面不存在。</p><p>頁面可能已被移除,或輸入的資訊有誤。</p><p>請回到首頁重新搜尋。</p><p><a href=\"{{.URL}}\">回到首頁</a></p>"
72
69
  },
73
- "nav_homepage": {
74
- "other": "ABC Cinemas"
75
- },
76
70
  "nav_signin": {
77
71
  "other": "登入"
78
72
  },
@@ -1316,5 +1310,23 @@
1316
1310
  },
1317
1311
  "bundle_items_generic": {
1318
1312
  "other": "{{.Count}} 项目"
1313
+ },
1314
+ "shopping_card_update_reason_expired": {
1315
+ "other": "更新您的信用卡。支持的卡是 Visa、Mastercard 和 American Express。"
1316
+ },
1317
+ "shopping_discount_applied_promo": {
1318
+ "other": "代碼成功應用。"
1319
+ },
1320
+ "promo_only_purchases_must_be_100_percent_discounted": {
1321
+ "other": "請輸入有效的促銷代碼。"
1322
+ },
1323
+ "shopping_complete_promo_only": {
1324
+ "other": "成功!您現在可以觀看{{.Title}}。"
1325
+ },
1326
+ "shopping_action_redeem_promo_code": {
1327
+ "other": "贖回"
1328
+ },
1329
+ "pricing_ownership_promo": {
1330
+ "other": "贖回"
1319
1331
  }
1320
1332
  }