1<@leonardo.articleInfo .vars "(I3) Video Launch"/>
2<#assign rndNamespace = randomNamespace>
3<#assign currentLayoutFriendlyURL = themeDisplay.getLayout().getFriendlyURL()?remove_beginning("/") />
4
5<#if currentLayoutFriendlyURL == "home">
6 <#assign cssForTitle = "plan-highlights">
7<#else>
8 <#assign cssForTitle = "plan-highlights--investors">
9</#if>
10
11<#macro downloadIcon>
12 <svg xmlns="http://www.w3.org/2000/svg" width="14" height="18" viewBox="0 0 14 18">
13 <path fill="#000" fill-rule="nonzero" d="M6.61 12.763l-2.145-2.24a.58.58 0 0 1 0-.796c.211-.22.551-.22.762 0l1.235 1.29V6.75c0-.31.24-.563.538-.563.297 0 .538.252.538.563v4.267l1.235-1.29c.21-.22.551-.22.762 0a.58.58 0 0 1 0 .796l-2.145 2.24a.526.526 0 0 1-.78 0zM12.62 18H1.383C.62 18 0 17.368 0 16.592V5.037c0-.49.19-.968.52-1.314L3.565.544A1.728 1.728 0 0 1 4.82 0h7.797C13.38 0 14 .631 14 1.407v15.186C14 17.37 13.38 18 12.619 18zM4.82 1.125a.682.682 0 0 0-.496.214L1.282 4.52a.755.755 0 0 0-.205.518v11.555c0 .156.137.283.306.283h11.235c.168 0 .305-.127.305-.282V1.407c0-.155-.137-.282-.305-.282H4.821zm-.783 4.5H2.154a.551.551 0 0 1-.539-.563c0-.31.242-.562.539-.562h1.884c.15 0 .27-.126.27-.281V2.25c0-.31.24-.563.538-.563.297 0 .539.252.539.563v1.969c0 .775-.605 1.406-1.347 1.406zm6.193 9.563H3.769a.55.55 0 0 1-.538-.563.55.55 0 0 1 .538-.563h6.462a.55.55 0 0 1 .538.563.55.55 0 0 1-.538.563z"/>
14 </svg>
15</#macro>
16<#macro videoBox yt canto video poster>
17 <div class="grid grid--d50p grid--tl50p grid--tp100p grid--m100p">
18 <div class="plan-highlights--wrapper">
19 <#if canto>
20 <div class="leo-video canto-video"
21 data-video-data='{
22 "showControls":true,
23 "videoSources":[
24 "${video}"
25 ],
26 "posters":{
27 "desktop":"${poster.desktop!}",
28 "tabletLandscape":"${poster.tablet_landscape!}",
29 "tabletPortrait":"${poster.tablet_portrait!}",
30 "mobile":"${poster.mobile!}"
31 }}'
32 data-img-url-d="${poster.desktop!}"
33 data-img-url-tl="${poster.tablet_landscape!}"
34 data-img-url-tp="${poster.tablet_portrait!}"
35 data-img-url-m="${poster.mobile!}">
36 </div>
37 <#elseif yt>
38 <div class="youtube-player-container "
39 data-video-id="${video}"
40 data-div-id = "${randomNamespace}${video}"
41 data-img-url-d="${poster.desktop!}"
42 data-img-url-tl="${poster.tablet_landscape!}"
43 data-img-url-tp="${poster.tablet_portrait!}"
44 data-img-url-m="${poster.mobile!}"
45 data-use-no-cookie-domain="true"
46 data-play-fullscreen="true"
47 data-video-controls="true"
48 tabindex="1">
49 <div class="youtube-player" id="${randomNamespace}${video}"></div>
50 </div>
51 <#else>
52 <div class="leo-video"
53 data-video-data="{
54 "showControls":true,
55 "videoSources":[
56 ${video}
57 ],
58 "posters":{
59 "desktop":"${poster.desktop!}",
60 "tabletLandscape":"${poster.tablet_landscape!}",
61 "tabletPortrait":"${poster.tablet_portrait!}",
62 "mobile":"${poster.mobile!}"
63 }}"
64 data-img-url-d="${poster.desktop!}"
65 data-img-url-tl="${poster.tablet_landscape!}"
66 data-img-url-tp="${poster.tablet_portrait!}"
67 data-img-url-m="${poster.mobile!}">
68 </div>
69 </#if>
70 </div>
71 </div>
72</#macro>
73
74<#if VideoInfo.Video.getData() != "" || VideoInfo.YoutubeId.getData() != "" || VideoInfo.CantoUrl.getData() != "" >
75
76 <#assign isLeft = (VideoInfo.ImagePosition?? && VideoInfo.ImagePosition.getData() != "" && !(VideoInfo.ImagePosition.getData())?contains("right")) >
77
78 <#assign scalingDetails = {
79 "desktop": {"alternateImage": {}, "key": "w_720"},
80 "tl": {"alternateImage": VideoInfo.Image.ImageTl!, "key": "h_695"},
81 "tp": {"alternateImage": VideoInfo.Image.ImageTp!, "key": "w_768"},
82 "mobile": {"alternateImage": VideoInfo.Image.ImageM!, "key": "w_375"}
83 }>
84 <#assign posterImg = leonardo.adaptImage(VideoInfo.Image!, scalingDetails )>
85
86 <noscript>
87 <img src="${posterImg.desktop!}" alt='${posterImg.alt_desktop!}'>
88 <img src="${posterImg.tablet_landscape!}" alt='${posterImg.alt_tablet_landscape!}'>
89 <img src="${posterImg.tablet_portrait!}" alt='${posterImg.alt_tablet_portrait!}'>
90 <img src="${posterImg.mobile!}" alt='${posterImg.alt_mobile!}'>
91 </noscript>
92
93 <#assign isYt = (VideoInfo.YoutubeId.getData() != "") >
94 <#assign isCanto = (VideoInfo.CantoUrl.getData())?has_content && (VideoInfo.CantoUrl.getData() != "") >
95
96 <#if (VideoInfo.CantoUrl.getData())?has_content && VideoInfo.CantoUrl.getData() != "">
97 <#assign videoStr = VideoInfo.CantoUrl.getData()>
98 <#elseif VideoInfo.YoutubeId.getData() != "">
99 <#assign videoStr = VideoInfo.YoutubeId.getData()>
100 <#elseif VideoInfo.Video.getSiblings()?has_content>
101 <#assign videoStr = "">
102 <#list VideoInfo.Video.getSiblings() as cur_Video>
103 <#assign videoFile = cur_Video.getData()>
104 <#assign videoFileType = cur_Video.VideoType.getData()>
105 <#if videoStr?? && videoStr != "">
106 <#assign videoStr = videoStr + ",">
107 </#if>
108 <#assign videoStr = videoStr + "{"src":"" + videoFile + "","type":"" + videoFileType + ""}">
109 </#list>
110 </#if>
111
112 <!--Start Module: Plan Highlights-->
113 <div class="section-container section-container--fixed">
114 <#if TextInfo.Title.isAnchorEnabled?? && getterUtil.getBoolean(TextInfo.Title.isAnchorEnabled.getData())>
115 <#assign labelIsLeft = ((TextInfo.Title.isAnchorEnabled.AnchorText.LabelPosition.getData())!"left") == "left">
116 <div class="section-grid layout--tp-col layout--m-col">
117 <#if !labelIsLeft >
118 <div class="grid grid--d50p grid--tl50p grid--tp100p grid--m100p"></div>
119 </#if>
120 <div class="grid grid--d50p grid--tl50p grid--tp100p grid--m100p">
121 <!--Start Module: Goto-->
122 <#if TextInfo.Title.isAnchorEnabled.AnchorText.getData() != "" >
123 <a class='goto ${(!labelIsLeft)?then("goto--icon-left","")}' href="javascript:void(0)" title="Scroll to next section">${TextInfo.Title.isAnchorEnabled.AnchorText.getData()}<span class="icon--goto"></span></a>
124 </#if>
125 <!--End Module: Goto-->
126 </div>
127 <#if labelIsLeft>
128 <div class="grid grid--d50p grid--tl50p grid--tp100p grid--m100p"></div>
129 </#if>
130 </div>
131 </#if>
132 <div class="${cssForTitle}">
133 <div class="section-grid ${(!isLeft)?then('layout--tp-col-reverse layout--m-col-reverse','layout--tp-col layout--m-col')}">
134 <#if isLeft >
135 <@videoBox yt=isYt canto=isCanto video=videoStr poster=posterImg />
136 </#if>
137 <div class="grid grid--d50p grid--tl50p grid--tp100p grid--m100p">
138 <!--Start Module: Highlights Pitch-->
139 <div class="highlights-pitch">
140 <#if TextInfo.Title.getData() != "" >
141 <#if TextInfo.Title.isH1?? && getterUtil.getBoolean(TextInfo.Title.isH1.getData())>
142 <h1 class="highlights-pitch--title"><@leonardo.escapeTitle title=TextInfo.Title.getData()/></h1>
143 <#else>
144 <h2 class="highlights-pitch--title"><@leonardo.escapeTitle title=TextInfo.Title.getData()/></h2>
145 </#if>
146 <#if TextInfo.Title.Description?? && TextInfo.Title.Description.getData() != "" >
147 <h3 class="highlights-pitch--description"><@leonardo.escapeTitle title=TextInfo.Title.Description.getData()/></h3>
148 </#if>
149 </#if>
150 <#if TextInfo.Title.Attach?? && TextInfo.Title.Attach.getData() != "">
151 <div class="highlights-pitch--file-downloads">
152 <#list TextInfo.Title.Attach.getSiblings() as cur_file>
153 <#assign file_info = leonardo.findFileEntryInfo(cur_file.getData()) >
154 <div class="highlights-pitch--file">
155 <a class="file"
156 href="${file_info.downloadUrl}"
157 target="_blank">
158 <@downloadIcon />
159 <span class="highlights-pitch--file--filename">
160 ${(cur_file.Label.getData())!(file_info.title)!}
161 </span>
162 </a>
163 </div>
164 </#list>
165 </div>
166 </#if>
167 <#assign opened = false>
168 <#if Links?has_content>
169 <#list Links.getSiblings() as cur_Link>
170 <#assign targetUrl=leonardo.getTargetUrl(cur_Link.ExternalTargetURL, cur_Link.LinkTargetPage)!>
171 <#if targetUrl?has_content>
172 <#assign target=leonardo.getTarget(cur_Link.LinkTargetOpenIn!)!>
173 <#if opened = false>
174 <div class="section-hero-card--targets" >
175 <#assign opened = true>
176 </#if>
177 <div class="section-hero-card--target">
178 <a class="section-hero-card--target--link"
179 href="${targetUrl}"
180 target = "${target}"
181 title="${cur_Link.LinkText.data!}" >
182 ${cur_Link.LinkText.data!}
183 <span class="icon--read-more"></span>
184 </a>
185 </div>
186 </#if>
187 </#list>
188 <#if opened>
189 </div>
190 </#if>
191 </#if>
192 </div>
193 <!--End Module: Highlights Pitch-->
194 </div>
195 <#if !isLeft >
196 <@videoBox yt=isYt canto=isCanto video=videoStr poster=posterImg />
197 </#if>
198 </div>
199 </div>
200 </div>
201 <!--End Module: Plan Highlights-->
202<#else>
203 <!-- No video selected -->
204</#if>