”
}
}
如果(item.access_type ==’premium’){
锁= premiumSpan;
}
否则if(item.access_type ==’free’){
锁= paywallSpan;
}
urltarget =“”;
var contentType =“ data-content-type =’Article’”;
var contentTitle =“ data-content-title = ”“” + item.headline +“ ”“;
var contentPosition =“ data-list-position =’” +(positionCounter +1)+“’”;
var contentSponsor =“ data-content-sp =’NA’”;
splitLink = item.link.split(’/’);
var contentCategorySubCategory =“ data-content-category =’” +(titleCase(splitLink[3].replace(“-”,“”))+“ /” + titleCase(splitLink[4].replace(“-”,“”)))+“’”;
如果(item.link.indexOf(“ thestar.com.my”)== -1)
urltarget =“ target =’_ blank’”;
如果(item.contain_video ==“ true”)
contentType =“ data-content-type =’带视频嵌入的文章’”;
var contentGuid =“ data-content-id =’NA’”;
如果(item.guid!=未定义&& item.guid!=“” && item.guid!= null){
contentGuid =“ data-content-id =’” + item.guid +“’”;
}
var contentAuthor =“ data-content-author =’NA’”;
如果(item.byline!=未定义&& item.byline!=“” && item.byline!= null){
contentAuthor =“ data-content-author = ”“ + item.byline +” “”;
}
如果(item.link.indexOf(“ star2.com”)> 0){
contentCategorySubCategory =“ data-content-category =’” + titleCase(splitLink[3].replace(“-”,“”))+“’”;
contentAuthor =“ data-content-author =’NA’”;
}
var kickerTag =”;
如果(item.kicker_url){
kickerTag =““ + item.kicker +”“;
}
其他{
kickerTag =““ + item.kicker +”“;
}
var timeUpload =“”;
如果(item.timeupload)
{
timeUpload =““ + item.timeupload +”“;
}
var GA360CustomAttributes = contentListType + contentPosition + contentType + contentTitle + contentGuid + contentCategorySubCategory + contentAuthor + contentSponsor;
itemHtml = itemHtml +“
”
如果(acrossCounter == 4 || crossCounter == 8)
itemHtml = itemHtml +“
阅读更多