Viewing version 1.0

Template: Mobile Apps

An error occurred while processing the template.
Expression articleArray is undefined on line 74, column 34 in 10155#10187#5669323.
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.getMobileApps(entries, themeDisplay, locale, assetVersion) > 
5<#else > 
6    <#assign articles = assetHelper.getMobileApps(entries, themeDisplay, locale) > 
7</#if> 
8<#assign portletId = "" /> 
9<#if request?? && request['theme-display']?? && request['theme-display']['portlet-display']?? && request['theme-display']['portlet-display']['id']?? > 
10    <#assign portletId = request['theme-display']['portlet-display']['id'] /> 
11</#if> 
12<div class="container iop-myaccount-mobileApps" ng-controller="skyMobileAppsCtrl" ng-init="skyMobileAppsCtrl.init('${portletId}')"> 
13<#if articles?? && articles?size gt 0 > 
14    <#assign articleArray = jsonFactoryUtil.createJSONArray() /> 
15     
16    <div class="grid-3 grid-mobile-4 iop-myaccount-mobileApps tablinks" role="tablist"> 
17    <#list articles as article> 
18     
19        <#if article?? > 
20 
21            <#assign jsonObject = jsonFactoryUtil.createJSONObject() /> 
22 
23            <#if article.title?? && article.title?has_content > 
24                <#assign articleData = jsonObject.put("title", article.title) /> 
25            </#if> 
26            <#if article.description?? && article.description?has_content > 
27                <#assign articleData = jsonObject.put("description", article.description) /> 
28            </#if> 
29            <#if article.findOutMoreText?? && article.findOutMoreText?has_content > 
30                <#assign articleData = jsonObject.put("findOutMoreText", article.findOutMoreText) /> 
31            </#if> 
32            <#if article.findOutMoreUrl?? && article.findOutMoreUrl?has_content > 
33                <#assign articleData = jsonObject.put("findOutMoreUrl", article.findOutMoreUrl) /> 
34            </#if> 
35            <#if article.googleStoreURL?? && article.googleStoreURL?has_content > 
36                <#assign articleData = jsonObject.put("googleStoreURL", article.googleStoreURL) /> 
37            </#if> 
38            <#if article.googleStoreImage?? && article.googleStoreImage?has_content > 
39                <#assign articleData = jsonObject.put("googleStoreImage", article.googleStoreImage) /> 
40            </#if> 
41            <#if article.appleStoreURL?? && article.appleStoreURL?has_content > 
42                <#assign articleData = jsonObject.put("appleStoreURL", article.appleStoreURL) /> 
43            </#if> 
44            <#if article.appleStoreImage?? && article.appleStoreImage?has_content > 
45                <#assign articleData = jsonObject.put("appleStoreImage", article.appleStoreImage) /> 
46            </#if> 
47            <#if article.appImage?? && article.appImage?has_content > 
48                <#assign articleData = jsonObject.put("appImage", article.appImage) /> 
49            </#if> 
50 
51            <#assign articleData = articleArray.put(articleData) /> 
52            <h4><a ng-click="skyMobileAppsCtrl.changeApp('${article.title}')" ng-class="{ 'title-color': selectedApp.title === '${article.title}' }">${article.title}</a></h4> 
53        </#if> 
54    </#list> 
55    </div> 
56</#if> 
57    <div class="grid-6 grid-mobile-4 iop-myaccount-mobileApps"> 
58        <h3 ng-bind-html="selectedApp.title"></h3> 
59        <p ng-bind-html="selectedApp.description"></p> 
60        <h4 class="find-OutMoreUrl"><a ng-href="{{selectedApp.findOutMoreUrl}}" target="_blank" ng-bind-html="selectedApp.findOutMoreText"></a></h4> 
61        <div class="playStoreUrl"> 
62            <a ng-href="{{selectedApp.googleStoreURL}}" target="_blank" ng-click="skyMobileAppsCtrl.pushToGA('Google')"><img ng-src="{{selectedApp.googleStoreImage}}"></a> 
63            <a ng-href="{{selectedApp.appleStoreURL}}" target="_blank" ng-click="skyMobileAppsCtrl.pushToGA('Apple')"><img ng-src="{{selectedApp.appleStoreImage}}"></a> 
64        </div> 
65    </div> 
66    <div class="grid-3 grid-mobile-4 iop-myaccount-mobileApps app-image"> 
67        <span ng-if="selectedApp.appImage"> 
68            <img ng-src="{{selectedApp.appImage}}"/> 
69        </span> 
70    </div> 
71</div> 
72 
73<script> 
74    IOP_DATA['${portletId}'] = ${articleArray}; 
75</script> 

Template: Multiple Basic Buttons

Template: Rich Content Actions

Template: Rich Content Cards

Template: Rich Content Carousel

Template: Rich Content Flip Cards

Template: Rich Content Grid

Template: Rich Content Hero

Template: Rich Content Links

Template: Rich Content List

Template: Rich Content Media

Template: Rich Content Media Carousel

Template: Rich Content Posters

Template: Rich Content Posters List

Template: Rich Content Product List

Template: Rich Content Promotion

Template: Rich Content Purchase Panel

Template: Rich Content Summary

Template: Rich Content Table