<%
var heroUrl,
cid,
model,
className='',
videoPreview = "",
orientationClass;
for(var counter= startIndex; counter <= endIndex; counter++){
model = models[counter];
cid = model.cid;
if(model.get('heroImageDownloaded')){
heroUrl = model.get('heroImageObj').url
} else {
heroUrl = loader;
className = 'hero_image_loader';
}
videoPreview = ""
if(model.get("uiMediaType") === "video"){
videoPreview = "videoPreview";
}
orientationClass = model.get('isLandscape') ? 'thumbnail-landscape' : 'thumbnail-portrait';
getSize = (model.get('height') <= 500 && model.get('width') <= 500 ) ? 'smallImage' : 'largeImage';
%>
<% } %>