Site Map Site Map

An error occurred while processing the template.
Error on line 1, column 1 in 10155#10187#38840
utilLocator.findUtil("iop-template-helper-hook", "nz.co.skytv.templatehelper.ThemeHelperService") is undefined.
It cannot be assigned to themeHelper
1<#assign themeHelper=utilLocator.findUtil("iop-template-helper-hook", "nz.co.skytv.templatehelper.ThemeHelperService") > 
2 
3<#assign currentPage = themeDisplay.layout /> 
4<#assign totalCurrentPageLevels = themeDisplay.layout.ancestors?size /> 
5<#assign displayDepth = portletPreferences.displayDepth[0]?number /> 
6 
7<#if displayDepth gt 0 && displayDepth lt totalCurrentPageLevels > 
8    <#assign totalCurrentPageLevels = displayDepth /> 
9</#if> 
10 
11<#assign heading = "" /> 
12<#if portletPreferences.portletSetupTitle_en_US??> 
13    <#list portletPreferences.portletSetupTitle_en_US as portletTitle> 
14        <#if portletTitle != "Asset Publisher"> 
15            <#assign heading = themeHelper.convertUnderscores(portletTitle) /> 
16        </#if> 
17    </#list> 
18<#else> 
19    <#if totalCurrentPageLevels gt 0> 
20        <#assign heading = currentPage.ancestors[totalCurrentPageLevels-1].getName(locale) /> 
21    </#if> 
22</#if> 
23 
24<#macro displayMenu entries currentPageURL > 
25    <#if entries?has_content> 
26        <#assign currentPageLinkIndex = 0 /> 
27        <#assign validPageLinkCounter = 0 /> 
28        <#assign currentHtmlListItem = "" /> 
29 
30        <#list entries as pageEntry> 
31            <#if pageEntry.hidden != true> 
32                <#if pageEntry.friendlyURL == currentPageURL> 
33                    <#assign currentPageLinkIndex = validPageLinkCounter /> 
34                </#if> 
35                <#assign validPageLinkCounter = validPageLinkCounter + 1 /> 
36            </#if> 
37        </#list> 
38 
39        <div class="iop-slick" slick initial-slide="${currentPageLinkIndex}" arrows="false" dots="false" infinite="false" center-mode="false" swipe="true" variable-width="true" touch-move="true" swipe-to-slide="true" > 
40            <#list entries as pageEntry> 
41                <#assign currentPageLink="" /> 
42                <#if pageEntry.hidden != true> 
43                    <#if pageEntry.friendlyURL == currentPageURL> 
44                        <#assign currentPageLink="current" /> 
45                    </#if> 
46                    <div class="section-link"> 
47                        <h4> 
48                            <#if !pageEntry.isTypeURL()> 
49                                <a class="${currentPageLink} iop-link greys-anatomy" href="${pageEntry.getRegularURL(request)}"> 
50                            <#else> 
51                                <a class="${currentPageLink} iop-link greys-anatomy" href="${pageEntry.getRegularURL(request)}" target="_blank"> 
52                            </#if> 
53                                <span>${pageEntry.getName(locale)}</span> 
54                            </a> 
55                        </h4> 
56                    </div> 
57                </#if> 
58            </#list> 
59        </div> 
60    </#if> 
61</#macro> 
62 
63<div class="iop-bg all-blacks iop-sectionmap"> 
64    <#if heading?has_content> 
65        <div class="container"> 
66            <div class="grid-12 iop-sectionmap-header iop-txt snow-white"> 
67                <h2>${heading}</h2> 
68            </div> 
69        </div> 
70    </#if> 
71    <div class="container"> 
72        <div class="grid-12"> 
73            <#if totalCurrentPageLevels gt 0> 
74                <#list 1..totalCurrentPageLevels as i> 
75                    <#if i = totalCurrentPageLevels> 
76                        <@displayMenu entries=currentPage.ancestors[totalCurrentPageLevels-i].children currentPageURL=currentPage.friendlyURL /> 
77                    <#else> 
78                        <@displayMenu entries=currentPage.ancestors[totalCurrentPageLevels-i].children currentPageURL=currentPage.ancestors[totalCurrentPageLevels-i-1].friendlyURL /> 
79                    </#if> 
80                </#list> 
81            <#else> 
82                <@displayMenu entries=entries currentPageURL=currentPage.friendlyURL /> 
83            </#if> 
84        </div> 
85    </div> 
86</div> 

Nested Portlets Nested Portlets

Nested Portlets is temporarily unavailable.

Asset Publisher Asset Publisher

An error occurred while processing the template.
Error on line 1, column 1 in 10155#10187#38872
utilLocator.findUtil("iop-template-helper-hook", "nz.co.skytv.templatehelper.AssetHelperService") is undefined.
It cannot be assigned to assetHelper
1<#assign assetHelper=utilLocator.findUtil("iop-template-helper-hook", "nz.co.skytv.templatehelper.AssetHelperService") > 
2<#assign themeHelper=utilLocator.findUtil("iop-template-helper-hook", "nz.co.skytv.templatehelper.ThemeHelperService") > 
3<#if assetVersion?? > 
4    <#assign articles = assetHelper.getRichContent(entries, themeDisplay, locale, assetVersion) > 
5<#else > 
6    <#assign articles = assetHelper.getRichContent(entries, themeDisplay, locale) > 
7</#if> 
8 
9<#assign equalHeight = themeHelper.hasPortletCssClass(portletPreferences.portletSetupCss, "equal-height") /> 
10 
11<#if articles?? && articles?size gt 0 > 
12    <#assign heading = "" /> 
13    <#assign brandColour = "" /> 
14    <#assign themeImageDirectory = themeDisplay.pathThemeImages /> 
15    <#assign rootUrl = "" /> 
16    <#assign socialShareImage = "" /> 
17 
18    <#if portletPreferences.portletSetupTitle_en_US??> 
19        <#list portletPreferences.portletSetupTitle_en_US as portletTitle> 
20            <#if portletTitle != "Asset Publisher"> 
21                <#assign heading = themeHelper.convertUnderscores(portletTitle) /> 
22            </#if> 
23        </#list> 
24    </#if> 
25 
26    <#if themeImageDirectory?has_content > 
27        <#assign pathSeparator = themeImageDirectory?index_of("/", 10) /> 
28        <#if pathSeparator gt 0 > 
29            <#assign rootUrl = themeImageDirectory?substring(0, pathSeparator) /> 
30        </#if> 
31    </#if> 
32    <div class="iop-contentmedia"> 
33        <#if heading?has_content> 
34            <div class="container"> 
35                <div class="grid-12 iop-contentmedia-header"> 
36                    <h2>${heading}</h2> 
37                </div> 
38            </div> 
39        </#if> 
40         
41        <#assign article = articles[0]> 
42        <#assign injected = themeHelper.injectMetaTags(renderRequest, article, rootUrl) />         
43		<#assign displayTitle = article.displayTitle /> 
44         
45        <#assign channel = assetHelper.getChannel(article.channelNumber, groupId, locale) /> 
46 
47        <#if article.multimediaContent?has_content > 
48            <#assign playLabel = "Watch" /> 
49            <#if article.multimediaContent.videoPlayLabel?? && article.multimediaContent.videoPlayLabel?has_content > 
50                <#assign playLabel = article.multimediaContent.videoPlayLabel /> 
51            </#if> 
52            <#assign socialShareImage = article.multimediaContent.url /> 
53            <div class="container"> 
54            	<div class="grid-12 iop-contentmedia-asset" videojs-play-label="${playLabel}"> 
55                    <#switch article.multimediaContent.type> 
56                    	 
57                        <#case "embedded"> 
58                                <div embedded-video="${article.multimediaContent.embeddedVideoUrl}" class="video-js vjs-big-play-button vjs-play-button-bottom"> 
59                                    <div class="vjs-poster" tabindex="-1" style="background-image: url(${article.multimediaContent.url});"><!-- --></div> 
60                                    <div class="vjs-big-play-button" role="button" aria-live="polite" tabindex="0" aria-label="play video"> 
61                                        <span aria-hidden="true">${playLabel}</span> 
62                                    </div> 
63                                </div> 
64                            <#break> 
65                        <#case "html5video"> 
66                                <video width="auto" height="auto" preload="none" class="video-js vjs-big-play-button vjs-play-button-bottom" controls poster="${article.multimediaContent.url}" data-setup='{ "preload": "none" }'> 
67                                    <#list article.multimediaContent.html5Videos as video> 
68                                        <source src="${video.url}" type="${video.format}" /> 
69                                    </#list> 
70                                    <p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p> 
71                                </video> 
72                            <#break> 
73                        <#case "image"> 
74                            <#if equalHeight > 
75                                <div class="iop-contentmedia-image" style="background-image:url('${article.multimediaContent.url}')"><!-- --></div> 
76                            <#else > 
77                                <img class="iop-contentmedia-image" src="${article.multimediaContent.url}" alt="${article.multimediaContent.title}" /> 
78                            </#if>                                 
79                            <#break>                         
80                    </#switch> 
81                </div> 
82            </div>                
83        </#if> 
84        <div class="container"> 
85            <div class="iop-contentmedia-details"> 
86                <div class="container"> 
87                    <div class="grid-8 grid-mobile-4"> 
88                    	<h3>${displayTitle} 
89        					<#if article.mediaCertification?has_content > 
90                    		  <span>(${article.mediaCertification})</span> 
91                    	   </#if> 
92                        </h3> 
93                        <#if (article.programTime?? && article.programTime?has_content) || channel?? > 
94                            <h4 class="header-2"> 
95                                <#if article.programTime?? > 
96                                    ${themeHelper.splitIntoSpans(article.programTime)} 
97                                </#if> 
98                                <#if channel?? && channel.name?? && channel.name?has_content > 
99                                    <span>${channel.name}</span> 
100                                </#if> 
101                                <#if channel?? && channel.channelNumber?? && channel.channelNumber?has_content > 
102                                    <span>Channel ${channel.channelNumber}</span> 
103                                </#if> 
104                            </h4> 
105                        </#if> 
106                    </div> 
107                    <div class="grid-4 grid-mobile-4 iop-contentmedia-share"> 
108                        <h4>Share to</h4> 
109                        <div class="iop-share ng-cloak"> 
110                            <ul ng-social-buttons 
111                                data-title="'${themeHelper.formatAsHtmlAttributeValue(article.displayTitle)}'" 
112                                data-description="'${themeHelper.formatAsHtmlAttributeValue(article.summary)}'" 
113                                data-image="'${rootUrl}${themeHelper.formatAsHtmlAttributeValue(socialShareImage)}'" 
114                                data-showcounts="false"> 
115 
116                                <li class="ng-social-facebook iop-share-facebook">Facebook</li> 
117                                <li class="ng-social-twitter iop-share-twitter">Twitter</li> 
118                                <li class="ng-social-google-plus iop-share-google">Google+</li> 
119                            </ul> 
120                        </div> 
121                    </div> 
122                </div> 
123                <#if article.summary?has_content> 
124                    <div class="container"> 
125                        <div class="grid-12"> 
126                            <div class="iop-contentmedia-summary body-2"> 
127                                ${article.summary} 
128                            </div> 
129                        </div> 
130                    </div> 
131                </#if> 
132            </div> 
133        </div> 
134    </div> 
135</#if> 

[ROWS 4] FOOTBALL VIDEOS [ROWS 4] FOOTBALL VIDEOS

An error occurred while processing the template.
Error on line 1, column 1 in 10155#10187#38860
utilLocator.findUtil("iop-template-helper-hook", "nz.co.skytv.templatehelper.AssetHelperService") is undefined.
It cannot be assigned to assetHelper
1<#assign assetHelper=utilLocator.findUtil("iop-template-helper-hook", "nz.co.skytv.templatehelper.AssetHelperService") > 
2<#assign themeHelper=utilLocator.findUtil("iop-template-helper-hook", "nz.co.skytv.templatehelper.ThemeHelperService") > 
3<#if assetVersion?? > 
4    <#assign articles = assetHelper.getRichContent(entries, themeDisplay, locale, assetVersion) > 
5<#else > 
6    <#assign articles = assetHelper.getRichContent(entries, themeDisplay, locale) > 
7</#if> 
8 
9<#-- Setup the Slick auto-slide if required. --> 
10<#assign autoSlide = "" /> 
11<#assign autoSlideTime = themeHelper.getPortletCssClassSuffix(portletPreferences.portletSetupCss, "auto-slide") /> 
12<#if autoSlideTime?has_content> 
13    <#assign autoSlide = "autoplay='true' autoplay-speed='" + autoSlideTime + "000'" /> 
14</#if> 
15<#-- End Slick auto-slide configuration. --> 
16 
17<#-- Setup asset pager. --> 
18<#assign assetPager = "div.iop-pager" /> 
19<#assign assetPagerTitle = "div.iop-contentmediacarosuel-header h2" /> 
20<#if themeHelper.hasPortletCssClass(portletPreferences.portletSetupCss, "hide-pager") > 
21    <#assign assetPager = "" /> 
22</#if> 
23<#if themeHelper.hasPortletCssClass(portletPreferences.portletSetupCss, "hide-count") > 
24    <#assign assetPagerTitle = "" /> 
25</#if> 
26<#assign assetPagerId = "ap_" + renderRequest.getAttribute("PORTLET_ID") /> 
27<#-- End asset pager configuration. --> 
28 
29<#if articles?? && articles?size gt 0 > 
30    <#assign articleLimit = 4 /> 
31    <#assign rows = 2 /> 
32    <#assign heading = "" /> 
33    <#assign brandColour = "" /> 
34    <#if articles?? && articles?size gt 0 && articles?size lt articleLimit > 
35        <#assign articleLimit = articles?size /> 
36    </#if> 
37    <#if portletPreferences.portletSetupTitle_en_US??> 
38        <#list portletPreferences.portletSetupTitle_en_US as portletTitle> 
39            <#if portletTitle != "Asset Publisher"> 
40                <#assign heading = themeHelper.convertUnderscores(portletTitle) /> 
41            </#if> 
42        </#list> 
43    </#if> 
44    <#if heading?starts_with("[ROWS") > 
45        <#assign rowEndIndex = heading?index_of("]") /> 
46        <#if rowEndIndex gt 0 > 
47            <#assign rows = heading[5..(rowEndIndex-1)]?trim /> 
48            <#assign heading = heading[(rowEndIndex+1)..]?trim /> 
49        </#if> 
50    </#if> 
51    <div id="${assetPagerId}" asset-pager="${assetPager}" asset-pager-title="${assetPagerTitle}" asset-pager-id="${assetPagerId}" class="iop-contentmediacarosuel iop-contentmediacarosuel-${articleLimit}"> 
52        <#if heading?has_content> 
53            <div class="container"> 
54                <div class="grid-12 iop-contentmediacarosuel-header"> 
55                    <h2>${heading}</h2> 
56                </div> 
57            </div> 
58        </#if> 
59        <#if articles?? > 
60            <div class="container ng-cloak"> 
61                <div class="iop-slick iop-slick-grid" slick ${autoSlide} arrows="true" dots="true" infinite="false" rows="${rows}" slides-per-row="4" touch-move="true" swipe-to-slide="true" lazy-load="progressive" responsive="iopCtrl.carousel.grid"> 
62                    <#list articles as article> 
63                        <#assign title = article.displayTitle /> 
64                        <#assign url = "" /> 
65                        <#assign linkTarget = "_top" /> 
66                        <#if article.url?? && article.url?has_content > 
67                            <#assign url = article.url /> 
68                            <#if article.linkTarget?? && article.linkTarget?has_content > 
69                                <#assign linkTarget = article.linkTarget /> 
70                            </#if> 
71                        </#if> 
72                        <div class="grid-3 grid-mobile-4"> 
73                            <#if article.multimediaContent?has_content > 
74                                <div class="iop-contentmediacarosuel-item"> 
75                            <#else> 
76                                <#assign brandColour = themeHelper.getRandomBrandColourClassName(brandColour) > 
77                                <div class="iop-contentmediacarosuel-item no-media iop-bg ${brandColour}"> 
78                            </#if> 
79                                <#if url?has_content > 
80                                    <a class="iop-contentmediacarosuel-frame" href="${url}" target="${linkTarget}"> 
81                                </#if> 
82                                <div class="iop-contentmediacarosuel-row"> 
83                                    <#if article.multimediaContent?has_content > 
84                                        <div class="iop-contentmediacarosuel-image"> 
85                                            <div class="iop-contentmediacarosuel-image" style="background-image:url('${article.multimediaContent.mediumUrl}')"> 
86                                            </div> 
87                                        </div> 
88                                    <#else> 
89                                        <div class="iop-contentmediacarosuel-image no-media"> 
90                                            <span class="icon-iop icon-iop-sky"><!-- --></span> 
91                                        </div> 
92                                    </#if> 
93                                </div> 
94                                <div class="iop-contentmediacarosuel-row"> 
95                                    <div class="iop-contentmediacarosuel-title"> 
96                                        <#if article.multimediaContent?has_content && (article.multimediaContent.type == "embedded" || article.multimediaContent.type == "html5video")> 
97                                            <div> 
98                                                <span class="icon-iop-play"><!-- --></span> 
99                                            </div> 
100                                        </#if> 
101                                        <div> 
102                                            <h4>${title} 
103                                                <#if article.mediaCertification?? && article.mediaCertification?has_content> 
104                                                    <span>(${article.mediaCertification})</span> 
105                                                </#if> 
106                                            </h4> 
107                                        </div> 
108                                    </div> 
109                                </div> 
110                                <#if url?has_content > 
111                                    </a> 
112                                </#if> 
113                            </div> 
114                        </div> 
115                    </#list> 
116                </div> 
117            </div> 
118        </#if>         
119        <div class="iop-pager"><!-- --></div> 
120    </div> 
121    <div class="iop-contentmediacarosuel-spacer"><!-- --></div> 
122</#if>