@shift72/core-template 0.6.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. package/.github/pull_request_template.md +47 -0
  2. package/.github/workflows/node.js.yml +1 -1
  3. package/CHANGELOG.md +46 -1
  4. package/kibble.json +2 -2
  5. package/package.json +1 -1
  6. package/site/ar_LB.all.json +59 -25
  7. package/site/ca_ES.all.json +51 -25
  8. package/site/da_DK.all.json +51 -25
  9. package/site/de_DE.all.json +51 -25
  10. package/site/el_EL.all.json +51 -25
  11. package/site/en_AU.all.json +35 -9
  12. package/site/es_ES.all.json +51 -25
  13. package/site/es_MX.all.json +48 -22
  14. package/site/et_ET.all.json +51 -25
  15. package/site/fi_FI.all.json +52 -26
  16. package/site/fr_FR.all.json +51 -25
  17. package/site/hr_HR.all.json +53 -25
  18. package/site/hu_HU.all.json +51 -25
  19. package/site/it_IT.all.json +51 -25
  20. package/site/ja_JP.all.json +49 -25
  21. package/site/lt_LT.all.json +55 -25
  22. package/site/manifest.json.jet +2 -2
  23. package/site/nl_BE.all.json +50 -24
  24. package/site/no_NO.all.json +51 -25
  25. package/site/pl_PL.all.json +55 -25
  26. package/site/pt_BR.all.json +51 -25
  27. package/site/pt_PT.all.json +51 -25
  28. package/site/ru_RU.all.json +61 -31
  29. package/site/sr_SR.all.json +53 -25
  30. package/site/static/fonts/fa-s72.woff +0 -0
  31. package/site/static/js/main.js +1 -1
  32. package/site/static/scripts/main.js.map +1 -1
  33. package/site/styles/_awards.scss +1 -1
  34. package/site/styles/_buttons.scss +32 -27
  35. package/site/styles/_can-be-watched-button.scss +1 -21
  36. package/site/styles/_carousel.scss +141 -303
  37. package/site/styles/_collections.scss +6 -11
  38. package/site/styles/_cta-buttons.scss +261 -0
  39. package/site/styles/_forms.scss +1 -2
  40. package/site/styles/_icons.scss +16 -10
  41. package/site/styles/_legacy.scss +1 -43
  42. package/site/styles/_meta-detail.scss +39 -200
  43. package/site/styles/_meta-item-tagline.scss +33 -0
  44. package/site/styles/_meta-item.scss +0 -4
  45. package/site/styles/_meta-sub-item.scss +116 -0
  46. package/site/styles/_mixins.scss +47 -0
  47. package/site/styles/_nav.scss +1 -1
  48. package/site/styles/_pages.scss +4 -13
  49. package/site/styles/_plans.scss +14 -0
  50. package/site/styles/_shift72.scss +4 -0
  51. package/site/styles/_variables.scss +9 -6
  52. package/site/styles/main.scss +2 -1
  53. package/site/templates/application/footer/brand.jet +4 -4
  54. package/site/templates/application/footer/copyright-statement.jet +1 -1
  55. package/site/templates/application/nav/nav.jet +2 -2
  56. package/site/templates/bundle/item.jet +2 -4
  57. package/site/templates/collection/carousel/carousel.jet +27 -0
  58. package/site/templates/collection/carousel/item/image.jet +5 -0
  59. package/site/templates/collection/carousel/item/synopsis.jet +5 -0
  60. package/site/templates/collection/carousel/item/tagline.jet +7 -0
  61. package/site/templates/collection/carousel/item/title.jet +3 -0
  62. package/site/templates/collection/carousel/item.jet +41 -0
  63. package/site/templates/collection/carousel/pagination.jet +9 -0
  64. package/site/templates/collection/page_collection.jet +2 -2
  65. package/site/templates/common/cta_buttons.jet +70 -0
  66. package/site/templates/common/social-media-buttons.jet +2 -2
  67. package/site/templates/film/item.jet +6 -16
  68. package/site/templates/items/meta_item.jet +20 -6
  69. package/site/templates/items/sub_item.jet +22 -0
  70. package/site/templates/items/tagline.jet +2 -2
  71. package/site/templates/page/homepage.jet +2 -3
  72. package/site/templates/tv/detail.jet +10 -18
  73. package/site/tr_TR.all.json +51 -25
  74. package/site/uk_UA.all.json +55 -25
  75. package/site/zh_TW.all.json +49 -25
  76. package/site/styles/_homepage.scss +0 -3
  77. package/site/templates/bundle/buttons.jet +0 -6
  78. package/site/templates/bundle/extras.jet +0 -13
  79. package/site/templates/collection/carousel.jet +0 -27
  80. package/site/templates/collection/carousel_item.jet +0 -68
  81. package/site/templates/items/bonus_item.jet +0 -23
  82. package/site/templates/items/featured_item.jet +0 -61
  83. package/site/templates/tv/episode.jet +0 -21
@@ -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"}}
@@ -4,9 +4,8 @@
4
4
  {{import "./title.jet"}}
5
5
  {{import "./tagline.jet"}}
6
6
  {{import "./synopsis.jet"}}
7
- {{import "./buttons.jet"}}
8
- {{import "./extras.jet"}}
9
7
  {{import "./list.jet"}}
8
+ {{import "../common/cta_buttons.jet"}}
10
9
 
11
10
  {{block head()}}
12
11
  {{yield seo() bundle}}
@@ -28,10 +27,9 @@
28
27
 
29
28
  {{yield bundleTagline(class="meta-detail-tagline") bundle}}
30
29
 
31
- {{yield bundleButtons(class="meta-detail-buttons", slug=bundle.Slug, title=bundle.Title, promoURL=bundle.PromoURL)}}
30
+ {{yield ctaButtons(itemType="bundle") bundle}}
32
31
 
33
32
  {{yield bundleSynopsis(class="meta-detail-synopsis", synopsis=bundle.Description)}}
34
-
35
33
  </div>
36
34
 
37
35
  {{yield bundleList(items=bundle.Items)}}
@@ -0,0 +1,27 @@
1
+ {{import "./item.jet"}}
2
+ {{import "./pagination.jet"}}
3
+
4
+ {{block carousel()}}
5
+ {{maxSlides := configInt("carousel_max_slides", 7)}}
6
+ {{if len(.Items) < maxSlides}}
7
+ {{maxSlides = len(.Items)}}
8
+ {{end}}
9
+ {{items := .Items[0:maxSlides]}}
10
+
11
+ {{if len(items) > 0}}
12
+ <s72-carousel>
13
+ <section class="page-collection page-collection-carousel" aria-label="{{i18n("wcag_aria_label_carousel")}}">
14
+ <h2 class="sr-only">{{i18n("wcag_carousel_h2")}}</h2>
15
+
16
+ <div class="s72-carousel-slides">
17
+ {{range index, item := items}}
18
+ {{yield carouselItem(item=item)}}
19
+ {{end}}
20
+ </div>
21
+
22
+ {{yield carouselPagination(items=items)}}
23
+
24
+ </section>
25
+ </s72-carousel>
26
+ {{end}}
27
+ {{end}}
@@ -0,0 +1,5 @@
1
+ {{block carouselItemImage()}}
2
+ {{if isset(.Images["Carousel"])}}
3
+ <s72-image src="{{.Images.Carousel}}" alt="{{.Title}}" class="carousel-item-image"></s72-image>
4
+ {{end}}
5
+ {{end}}
@@ -0,0 +1,5 @@
1
+ {{block carouselItemSynopsis(synopsis)}}
2
+ <div class="meta-item-synopsis">
3
+ <p>{{synopsis | stripHTML}}</p>
4
+ </div>
5
+ {{end}}
@@ -0,0 +1,7 @@
1
+ {{import "../../../items/tagline.jet"}}
2
+
3
+ {{block carouselItemTagline()}}
4
+ <div class="meta-item-tagline-and-classification">
5
+ {{yield metaItemTagline(genresLimit=1) .}}
6
+ </div>
7
+ {{end}}
@@ -0,0 +1,3 @@
1
+ {{block carouselItemTitle(title)}}
2
+ <h3>{{title}}</h3>
3
+ {{end}}
@@ -0,0 +1,41 @@
1
+ {{import "../../common/awards/carousel.jet"}}
2
+ {{import "./item/title.jet"}}
3
+ {{import "./item/tagline.jet"}}
4
+ {{import "./item/image.jet"}}
5
+ {{import "./item/synopsis.jet"}}
6
+ {{import "../../common/sponsor-image.jet"}}
7
+ {{import "../../common/cta_buttons.jet"}}
8
+
9
+ {{block carouselItem(item)}}
10
+ {{showItemContent := !isset(item["PageType"]) || item.PageType != "external"}}
11
+
12
+ <div class="s72-carousel-item" data-slug="{{item.Slug}}">
13
+ <a href="{{routeToSlug(item.Slug)}}" class="carousel-item-link" aria-label="{{item.Title}}">
14
+
15
+ {{yield carouselItemImage() item}}
16
+
17
+ {{if showItemContent}}
18
+ <div class="carousel-item-caption">
19
+ {{if item.ItemType == "film"}}
20
+ {{yield sponsor(hideLink="true") item.InnerItem}}
21
+ {{end}}
22
+ <div class="meta-item-content">
23
+ {{yield carouselItemTitle(title=item.GetTitle(i18n))}}
24
+
25
+ {{yield carouselItemTagline() item.InnerItem}}
26
+
27
+ {{if isset(item.InnerItem["Tagline"])}}
28
+ {{yield carouselItemSynopsis(synopsis=item.InnerItem.Tagline)}}
29
+ {{end}}
30
+
31
+ {{yield ctaButtons(itemType=item.ItemType, trailerRedirect=true) item.InnerItem}}
32
+
33
+ <s72-availability-label data-slug="{{item.Slug}}"></s72-availability-label>
34
+
35
+ {{yield awardsCarousel() item.InnerItem}}
36
+ </div>
37
+ </div>
38
+ {{end}}
39
+ </a>
40
+ </div>
41
+ {{end}}
@@ -0,0 +1,9 @@
1
+ {{block carouselPagination(items)}}
2
+ <div class="s72-carousel-pagination">
3
+ {{range index, item := items}}
4
+ <button class="s72-carousel-page" data-page-index="{{index}}" data-slug="{{item.Slug}}" aria-label="{{i18n("wcag_aria_label_carousel_pagination")}} {{item.Title}}">
5
+ <div class="s72-carousel-line"></div>
6
+ </button>
7
+ {{end}}
8
+ </div>
9
+ {{end}}
@@ -1,10 +1,10 @@
1
- {{import "./carousel.jet"}}
1
+ {{import "./carousel/carousel.jet"}}
2
2
  {{import "./slider.jet"}}
3
3
  {{import "./list.jet"}}
4
4
 
5
5
  {{block pageCollection(showTitle=true)}}
6
6
  {{if .Layout == "carousel"}}
7
- {{yield pageCollectionCarousel()}}
7
+ {{yield carousel()}}
8
8
  {{else if .Layout == "slider"}}
9
9
  {{yield pageCollectionSlider()}}
10
10
  {{else}}
@@ -0,0 +1,70 @@
1
+ {{import "./social-media-buttons.jet"}}
2
+
3
+ {{block ctaButtons(itemType, trailerRedirect=false)}}
4
+ {{isFilm := itemType == "film"}}
5
+ {{isSeason := itemType == "tvseason"}}
6
+ {{isEpisode := itemType == "tvepisode"}}
7
+ {{isBundle := itemType == "bundle"}}
8
+
9
+ {{slug := .Slug}}
10
+ {{trailerURL := isBundle ? .PromoURL : (isFilm || isSeason) && len(.Trailers) > 0 ? .Trailers[0].URL : ""}}
11
+
12
+ {{showPricingButtons := isFilm || isSeason || isBundle}}
13
+ {{showPlayButton := isFilm || isSeason || isEpisode}}
14
+ {{showCanBeWatchedButton := isFilm}}
15
+ {{showTrailerButton := trailerURL != ""}}
16
+ {{showWishlistButton := isFilm || isSeason || isEpisode}}
17
+ {{showShareButton := isFilm || isSeason || isEpisode || isBundle}}
18
+
19
+ {{showCtaButtons := showPricingButtons || showPlayButton || showCanBeWatchedButton || showTrailerButton || showWishlistButton || showShareButton}}
20
+ {{showExtraButtons := showTrailerButton || showWishlistButton || showShareButton}}
21
+
22
+ {{if showCtaButtons}}
23
+ <div class="cta-buttons">
24
+
25
+ {{if showPricingButtons}}
26
+ <s72-pricing-buttons data-slug="{{slug}}"></s72-pricing-buttons>
27
+ {{end}}
28
+
29
+ {{if showPlayButton}}
30
+ <s72-play-button data-slug="{{slug}}"></s72-play-button>
31
+ {{end}}
32
+
33
+ {{if showCanBeWatchedButton}}
34
+ {{dataURL := .CustomFields.GetString("can_be_watched_button_link", "")}}
35
+ {{dataLabel := .CustomFields.GetString("can_be_watched_button_text", "")}}
36
+ <can-be-watched-button data-slug="{{slug}}" data-url="{{dataURL}}" data-label="{{dataLabel}}"></can-be-watched-button>
37
+ {{end}}
38
+
39
+ {{if showExtraButtons}}
40
+ <div class="extra-buttons">
41
+
42
+ {{if showTrailerButton}}
43
+ {{if trailerRedirect}}
44
+ <div class="s72-btn-trailer" data-url="{{routeToSlug(slug)}}?autoplay">
45
+ <button class="s72-btn s72-btn-play">
46
+ <span class="s72-btn-play-icon"><s72-play-icon></s72-play-icon></span>
47
+ </button>
48
+ </div>
49
+ {{else}}
50
+ {{dataLabel := i18n("play_trailer")}}
51
+ <s72-modal-player src="{{trailerURL}}" class="s72-btn-trailer" data-slug="{{slug}}" data-label="{{dataLabel}}" autoplay="querystring"></s72-modal-player>
52
+ {{end}}
53
+ {{end}}
54
+
55
+ {{if showWishlistButton}}
56
+ <s72-userwishlist-button data-slug="{{slug}}" class="btn-wishlist"></s72-userwishlist-button>
57
+ {{end}}
58
+
59
+ {{if showShareButton}}
60
+ {{letterboxdID := isFilm ? .Refs.LetterboxdID : ""}}
61
+ {{shareURL := site.SiteConfig.SiteURL + routeToSlug(slug)}}
62
+ {{yield socialMediaButtons(url=shareURL, letterboxdID=letterboxdID)}}
63
+ {{end}}
64
+
65
+ </div>
66
+ {{end}}
67
+
68
+ </div>
69
+ {{end}}
70
+ {{end}}
@@ -1,11 +1,11 @@
1
- {{block socialMediaButtons(path="", title="", letterboxdID="")}}
1
+ {{block socialMediaButtons(url="", title="", letterboxdID="")}}
2
2
  {{show_facebook_share := config("show_facebook_share", "true") == "true"}}
3
3
  {{show_twitter_share := config("show_twitter_share", "true") == "true"}}
4
4
  {{show_linkedin_share := config("show_linkedin_share", "true") == "true"}}
5
5
 
6
6
  {{if show_facebook_share || show_twitter_share || show_linkedin_share || letterboxdID}}
7
7
  <div class="social-media-buttons">
8
- <s72-share-modal {{letterboxdID ? "letterboxd=" + letterboxdID : ""}}></s72-share-modal>
8
+ <s72-share-modal {{letterboxdID ? "letterboxd=" + letterboxdID : ""}} url="{{url}}"></s72-share-modal>
9
9
  </div>
10
10
  {{end}}
11
11
  {{end}}
@@ -1,13 +1,13 @@
1
1
  {{extends "../application/application.jet"}}
2
2
  {{import "../common/slider.jet"}}
3
3
  {{import "../items/tagline.jet"}}
4
- {{import "../items/bonus_item.jet"}}
4
+ {{import "../items/sub_item.jet"}}
5
5
  {{import "../collection/page_collection_item.jet"}}
6
6
  {{import "../collection/slider.jet"}}
7
7
  {{import "../common/list.jet"}}
8
- {{import "../common/social-media-buttons.jet"}}
9
8
  {{import "../common/awards/item.jet"}}
10
9
  {{import "../common/sponsor-image.jet"}}
10
+ {{import "../common/cta_buttons.jet"}}
11
11
 
12
12
  {{block head()}}
13
13
  {{yield seo() film}}
@@ -48,18 +48,8 @@
48
48
  <!-- {{film.CustomFields|json}} -->
49
49
  <s72-availability-label data-slug="{{film.Slug}}"></s72-availability-label>
50
50
 
51
- <div class="meta-detail-buttons">
52
- <s72-play-button data-slug="{{film.Slug}}" data-title="{{film.Title}}"></s72-play-button>
53
- <s72-pricing-buttons data-slug="{{film.Slug}}" data-title="{{film.Title}}"></s72-pricing-buttons>
54
- <can-be-watched-button data-slug="{{film.Slug}}" data-url="{{ film.CustomFields.GetString("can_be_watched_button_link", "") }}" data-label="{{ film.CustomFields.GetString("can_be_watched_button_text", "can_be_watched_button_text") }}"></can-be-watched-button>
55
- <div class="meta-detail-extras">
56
- {{if len(film.Trailers) > 0 }}
57
- <s72-modal-player src="{{film.Trailers[0].URL}}" class="s72-btn-trailer" data-slug="{{film.Slug}}" data-label="{{i18n("play_trailer")}}" autoplay="querystring"></s72-modal-player>
58
- {{end}}
59
- <s72-userwishlist-button data-slug="{{film.Slug}}" class="btn-wishlist"></s72-userwishlist-button>
60
- {{yield socialMediaButtons(path=currentUrlPath, letterboxdID=film.Refs.LetterboxdID)}}
61
- </div>
62
- </div>
51
+ {{yield ctaButtons(itemType="film") film}}
52
+
63
53
  {{if config("default_image_type") != "portrait"}}
64
54
  <s72-availability-status data-slug="{{film.Slug}}"></s72-availability-status>
65
55
  <br>
@@ -160,8 +150,8 @@
160
150
  <h2>{{i18n("meta_detail_bonus_title")}}</h2>
161
151
  {{yield list(itemsPerRow=4, itemLayout="landscape") content}}
162
152
  {{range bonus := film.Bonuses}}
163
- <div class="bonus-item">
164
- {{yield bonusItem(item=bonus)}}
153
+ <div class="sub-item">
154
+ {{yield subItem(item=bonus)}}
165
155
  </div>
166
156
  {{end}}
167
157
  {{end}}
@@ -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>
@@ -0,0 +1,22 @@
1
+ {{ block subItem(item) }}
2
+ <div class="poster-container">
3
+ <div class="poster">
4
+ <s72-availability-status slug="{{item.Slug}}"></s72-availability-status>
5
+ <s72-image src="{{item.Images.Landscape}}" alt="{{item.Title}}" class="poster-image poster-image-landscape"></s72-image>
6
+ <s72-play-button data-slug="{{item.Slug}}" title="{{item.Title}}"></s72-play-button>
7
+ <s72-playback-progress slug="{{item.Slug}}"></s72-playback-progress>
8
+ </div>
9
+ </div>
10
+ <h3>{{item.Title}}</h3>
11
+ {{if item.Runtime > 0 }}
12
+ <span class="runtime">
13
+ {{if item.Runtime.Hours() > 0}}
14
+ {{item.Runtime.Hours()}}{{i18n("runtime_hours")}}
15
+ {{end}}
16
+ {{item.Runtime.Minutes()}}{{i18n("runtime_minutes")}}
17
+ </span>
18
+ {{end}}
19
+ {{if item.Overview}}
20
+ <div class="synopsis">{{item.Overview | raw}}</div>
21
+ {{end}}
22
+ {{ end }}
@@ -28,7 +28,7 @@
28
28
  {{end}}
29
29
  {*{ There should be one less dividers than tagline items. }*}
30
30
  {{dividers = dividers - 1}}
31
-
31
+
32
32
  {{if classification}}
33
33
  <s72-classification-label data-slug="{{.Slug}}" data-layout="tooltip"></s72-classification-label>
34
34
  {{end}}
@@ -47,7 +47,7 @@
47
47
 
48
48
  {{if isset(.Items)}}
49
49
  {{yield taglineItem() content}}
50
- {{i18n("bundle_items_all_films", len(.Items))}}
50
+ {{i18n("bundle_items_generic", len(.Items))}}
51
51
  {{end}}
52
52
  {{yield taglineDivider(dividers=dividers)}}
53
53
  {{dividers = dividers - 1}}
@@ -1,7 +1,6 @@
1
1
  {{extends "templates/application/application.jet"}}
2
2
  {{import "templates/collection/page_collection.jet"}}
3
- {{import "templates/items/featured_item.jet"}}
4
- {{import "../collection/carousel.jet"}}
3
+ {{import "../collection/carousel/carousel.jet"}}
5
4
  {{import "templates/collection/wishlist.jet"}}
6
5
 
7
6
  {{block head()}}
@@ -19,7 +18,7 @@
19
18
  <h1 class="sr-only">{{i18n("wcag_homepage_h1")}}</h1>
20
19
 
21
20
  <main id="main" class="page page-{{page.PageType|lower}} carousel-len-{{len(page.PageCollections[0].Items)}}">
22
- {{yield pageCollectionCarousel() page.PageCollections[0]}}
21
+ {{yield carousel() page.PageCollections[0]}}
23
22
 
24
23
  <div class="other-sliders">
25
24
  <h2 class="sr-only">{{i18n("wcag_collections_h2")}}</h2>
@@ -1,11 +1,11 @@
1
1
  {{extends "../application/application.jet"}}
2
2
  {{import "../common/slider.jet"}}
3
3
  {{import "../items/tagline.jet"}}
4
- {{import "../items/bonus_item.jet"}}
4
+ {{import "../items/sub_item.jet"}}
5
5
  {{import "../collection/page_collection_item.jet"}}
6
- {{import "./episode.jet"}}
7
6
  {{import "../common/list.jet"}}
8
- {{import "../common/social-media-buttons.jet"}}
7
+ {{import "../common/cta_buttons.jet"}}
8
+
9
9
  {{block head()}}
10
10
  {{yield seo() tvseason}}
11
11
  {{end}}
@@ -35,17 +35,9 @@
35
35
  {{yield metaItemTagline() tvseason}}
36
36
  </div>
37
37
  <s72-availability-label data-slug="{{tvseason.Slug}}"></s72-availability-label>
38
- <div class="meta-detail-buttons">
39
- <s72-play-button data-slug="{{tvseason.Slug}}" data-title="{{tvseason.Title}}"></s72-play-button>
40
- <s72-pricing-buttons data-slug="{{tvseason.Slug}}" data-title="{{tvseason.Title}}"></s72-pricing-buttons>
41
- <div class="meta-detail-extras">
42
- {{if len(tvseason.Trailers) > 0 }}
43
- <s72-modal-player src="{{tvseason.Trailers[0].URL}}" class="s72-btn-trailer" data-slug="{{tvseason.Slug}}" data-label="{{i18n("play_trailer")}}" autoplay="querystring"></s72-modal-player>
44
- {{end}}
45
- <s72-userwishlist-button data-slug="{{tvseason.Slug}}" class="btn-wishlist"></s72-userwishlist-button>
46
- {{yield socialMediaButtons(path=currentUrlPath)}}
47
- </div>
48
- </div>
38
+
39
+ {{yield ctaButtons(itemType="tvseason") tvseason}}
40
+
49
41
  <div class="element-switcher-wrapper">
50
42
  <s72-element-switcher>
51
43
  {{if isEnabled("element_switcher_enabled")}}
@@ -84,8 +76,8 @@
84
76
  <h2>{{i18n("meta_detail_episodes_title")}}</h2>
85
77
  {{yield list(itemsPerRow=4, itemLayout="portrait") content}}
86
78
  {{range episode := tvseason.Episodes}}
87
- <div class="episode-item">
88
- {{yield episodeCollectionItem(item=episode)}}
79
+ <div class="sub-item">
80
+ {{yield subItem(item=episode)}}
89
81
  </div>
90
82
  {{end}}
91
83
  {{end}}
@@ -97,8 +89,8 @@
97
89
  <h2>{{i18n("meta_detail_bonus_title")}}</h2>
98
90
  {{yield list(itemsPerRow=4, itemLayout="landscape") content}}
99
91
  {{range bonus := tvseason.Bonuses}}
100
- <div class="bonus-item">
101
- {{yield bonusItem(item=bonus)}}
92
+ <div class="sub-item">
93
+ {{yield subItem(item=bonus)}}
102
94
  </div>
103
95
  {{end}}
104
96
  {{end}}
@@ -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
  },
@@ -152,7 +146,7 @@
152
146
  "other": "Bağlantı paylaşımı"
153
147
  },
154
148
  "social_media_buttons_copied_link": {
155
- "other": "Link kopyalandı!"
149
+ "other": "Bağlantı kopyalandı"
156
150
  },
157
151
  "social_media_buttons_copy_link": {
158
152
  "other": "Bağlantıyı kopyala"
@@ -660,7 +654,7 @@
660
654
  "other": "Kütüphanenizi görüntüle"
661
655
  },
662
656
  "shopping_complete_plan": {
663
- "other": "{{ .Title }} satın alma işleminiz başarılı oldu."
657
+ "other": "{{.Title}} satın alma işleminiz başarılı oldu."
664
658
  },
665
659
  "shopping_complete_rental_watch_window_start": {
666
660
  "one": "Artık önümüzdeki günde filmi izlemeye başlayabilirsiniz.",
@@ -1007,33 +1001,38 @@
1007
1001
  "other": "Fiyat"
1008
1002
  },
1009
1003
  "shopping_price_plan_note": {
1010
- "zero": "Her {{ .Interval }} .",
1011
- "one": "24 saatlik ücretsiz deneme süreniz sona erdikten sonra her {{ .Interval }}",
1012
- "other": "Her Ücretli {{ .Interval }} sizin sonra {{ .Count }} günlük ücretsiz deneme sürümü bitmeden."
1004
+ "one": "24 saatlik ücretsiz deneme süreniz sona erdikten sonra her {{.Interval}}",
1005
+ "other": "Her Ücretli {{.Interval}} sizin sonra {{.Count}} günlük ücretsiz deneme sürümü bitmeden."
1006
+ },
1007
+ "shopping_price_plan_note_without_trial": {
1008
+ "other": "Her {{.Interval}} ."
1013
1009
  },
1014
1010
  "shopping_price_plan_note_interval": {
1015
- "one": "{{ .Interval }}",
1016
- "other": "{{ .Count }} {{ .Interval }}"
1011
+ "one": "{{.Interval}}",
1012
+ "other": "{{.Count}} {{.Interval}}"
1017
1013
  },
1018
- "shopping_enter_card_prompt_plan": {
1014
+ "shopping_enter_card_prompt_subscription": {
1019
1015
  "other": "Aboneliğinizi başlatmak için aşağıya kredi kartı bilgilerinizi girin."
1020
1016
  },
1017
+ "shopping_enter_card_prompt_plan": {
1018
+ "other": "Planınızı başlatmak için aşağıya kredi kartı bilgilerinizi girin."
1019
+ },
1021
1020
  "shopping_action_plan": {
1022
1021
  "other": "Tamamlayınız"
1023
1022
  },
1024
1023
  "shopping_complete_subscription": {
1025
- "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}}."
1026
1025
  },
1027
1026
  "shopping_complete_subscription_browse": {
1028
1027
  "other": "Sitede <a href=\"/\">gezinmekten</a> veya belirli bir şey <a href=\"/search.html\">aramaktan</a> çekinmeyin."
1029
1028
  },
1030
1029
  "shopping_info_plan_offer": {
1031
- "one": "{{ .Interval }} otomatik olarak yeniler",
1032
- "other": "Otomatik olarak her yeniler {{ .Count }} {{ .Interval }}"
1030
+ "one": "{{.Interval}} otomatik olarak yeniler",
1031
+ "other": "Otomatik olarak her yeniler {{.Count}} {{.Interval}}"
1033
1032
  },
1034
1033
  "shopping_info_trial_period_offer": {
1035
1034
  "one": "24 saatlik ücretsiz denemenizi şimdi deneyin!",
1036
- "other": "Ücretsiz {{ .Count }} günlük denemenizi deneyin!"
1035
+ "other": "Ücretsiz {{.Count}} günlük denemenizi deneyin!"
1037
1036
  },
1038
1037
  "plans_page_header": {
1039
1038
  "other": "Mevcut Planlar"
@@ -1051,7 +1050,7 @@
1051
1050
  "other": "Devamını oku"
1052
1051
  },
1053
1052
  "plan_page_header_text": {
1054
- "other": "Keyfini çıkarın {{ .Name }}"
1053
+ "other": "Keyfini çıkarın {{.Name}}"
1055
1054
  },
1056
1055
  "page_plan_explore_intro": {
1057
1056
  "other": "VEYA"
@@ -1107,6 +1106,9 @@
1107
1106
  "wcag_aria_label_carousel": {
1108
1107
  "other": "Atlıkarınca"
1109
1108
  },
1109
+ "wcag_aria_label_carousel_pagination": {
1110
+ "other": "sayfalandırma"
1111
+ },
1110
1112
  "wcag_aria_label_page_collection": {
1111
1113
  "other": "Sayfa Koleksiyonu"
1112
1114
  },
@@ -1288,21 +1290,45 @@
1288
1290
  "other": "aboneliklerim"
1289
1291
  },
1290
1292
  "usersubscriptions_subscription_expiry_trialing": {
1291
- "other": "İlk ödeme {{ .Expiry }}"
1293
+ "other": "İlk ödeme {{.Expiry}}"
1292
1294
  },
1293
1295
  "usersubscriptions_subscription_expiry_active": {
1294
- "other": "Sonraki {{ .Expiry }}"
1296
+ "other": "Sonraki {{.Expiry}}"
1295
1297
  },
1296
1298
  "usersubscriptions_subscription_expiry_past_due": {
1297
- "other": "Ödeme vadesi {{ .Expiry }}"
1299
+ "other": "Ödeme vadesi {{.Expiry}}"
1298
1300
  },
1299
1301
  "usersubscriptions_subscription_expiry_cancelled": {
1300
- "other": "Sona {{ .Expiry }}"
1302
+ "other": "Sona {{.Expiry}}"
1301
1303
  },
1302
1304
  "usersubscriptions_subscription_expiry_expired": {
1303
- "other": "Sona {{ .Expiry }}"
1305
+ "other": "Sona {{.Expiry}}"
1304
1306
  },
1305
1307
  "sponsor_image_alt": {
1306
1308
  "other": "sponsor logosu"
1309
+ },
1310
+ "subscribe_to_watch": {
1311
+ "other": "izlemek için abone ol"
1312
+ },
1313
+ "bundle_items_generic": {
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"
1307
1333
  }
1308
- }
1334
+ }