<%if (!heroImage) {%>
<%} %>
<%if(favorite!=undefined){%>
<%}%>
<%= theater.get('name') %>
<%=theater.get('addressLine1')%><%= theater.get("addressLine2") ? ', ' + theater.get("addressLine2") : ''%>
<%= theater.get('addressCity') %> <%= theater.get('addressState') %> <%= theater.get('addressZip') %>
<%if(theater.get('phone')) {%> <%= theater.get('phone') %> <%} else {%>
<%}%>
<%if(chainType){%>
<%}%>
<%= theater.get('addressCity') %> <%= theater.get('addressState') %> <%= theater.get('addressZip') %>
<%if(theater.get('phone')) {%> <%= theater.get('phone') %> <%} else {%>
<%}%>
<%if(chainType){%>
<%}%>
<%= theater.get('addressCity') %> <%= theater.get('addressState') %> <%= theater.get('addressZip') %> <%if(theater.get('phone')) {%>
<%= theater.get('phone') %> <%}%>
<%if (showDistance) {%>
<%=theater.get("distance").toFixed(1)%>
<%= window.AppProperties.SearchUnit%>
<%} %>
<%if(chainType){%>
<%}%>
<%}%>
<%= theater.get('name') %>
<%=theater.get('addressLine1')%><%= theater.get("addressLine2") ? ', ' + theater.get("addressLine2") : ''%><%= theater.get('addressCity') %> <%= theater.get('addressState') %> <%= theater.get('addressZip') %> <%if(theater.get('phone')) {%>
<%= theater.get('phone') %> <%}%>
<%=dateFormat(showDay, 'ddd') + ', ' + Globalize.format(showDay,'D',theater.get('culture')) %>
<%if(performancesDays.length > 0) {%>
<%} %>
<%=customFlagObj.name%>
<%} if(customFlagGroup == 'noGroup' && _.size(attributeMovieGroups) > 1){%>
<%=localize.generalSeating %>
<%}
var businessDate=new Date(showDay);
_.each(attributeMovieGroups[customFlagGroup],function(group){
poster = '';
var performancesExist = false;
_.each(group,function(movie){
if(movie.performances.models.length > 0){
_.each(movie.performances.models,function(model){
if(businessDate.format('yyyymmdd') == model.get('businessDate')){
performancesExist = true;
}
});
}
if(movie.get('image').medium != undefined){
poster = movie.get('image').medium;
}
});
if(!poster){
poster = 'shared_top_level/css/brand/images/movie-poster-default.png';
}
if(performancesExist){ %>
<% _.each(group,function(movie){
var theaterMoviePerformances = movie.performances;
var hasPerformance = theaterMoviePerformances.models.length > 0;
var upcommingPerformances = true;
var passesAllowed = true;
if(hasPerformance){
var temp = $.grep(theaterMoviePerformances.models, function (item) { return item.get("passesAllowed") == false; });
if(temp.length > 0){
passesAllowed = false;
}
}%>
<%});%>
<%= movie.get('name')%>
<%= DtHelper.getRuntime(movie.get('length'))%> <%=movie.get('rating') %> <% var featureSupportedExperiences = HtmlHelper.getCinemaAssitiveExperiencesFromPerformances(movie.performances.models) for (var j = 0; j < featureSupportedExperiences.length; j++) { %> <%= featureSupportedExperiences[j] %> <%}%> <%if(movie.get('dDDFlag')) { %> <%= localize.dDDFlag %> <%} if(movie.get('imaxFlag')) { %> <%= localize.imaxFlag %> <%} %> <%=movie.get('genre')%> <%if(!passesAllowed) {%> <%= localize.noPasses %><%} %> <%if (hasPerformance){ var now = new Date().toISOString(); _.each(theaterMoviePerformances.models, function (performance) { var businessDate=new Date(showDay); var time=new Date(performance.get('showTime')); time.setMinutes(time.getMinutes() + theater.get("performanceExpirationInMinutes")); if(time.toISOString() >= now && (businessDate.format('yyyymmdd') == performance.get('businessDate'))){ var showTime = Globalize.format(DtHelper.convertDate(performance.get('showTime')), 't', theater.get('culture')).replace(' ', '').toLowerCase(); upcommingPerformances = false; var filteredPerformance = false; if(window.activeCustomFlags && window.activeCustomFlags.length > 0 && performance.get('customFlags') && jQuery.isArray(performance.get('customFlags')) && performance.get('customFlags').length > 0){ _.each(window.activeCustomFlags, function(f){ if(_.contains(performance.get('customFlags'), f)){ filteredPerformance = true; } }); } if (performance.get('status') =='O') {%>
<%= showTime%>
<%} else if (performance.get('status')=='L' || performance.get('status')=='S'){ %>
<%= showTime %>
<%}
}
});
if(upcommingPerformances){%>
<%= localize.noRemainingShowTimesToday %>
<%}} else { %><%= localize.noRemainingShowTimesToday %>
<%}%>
<%=customFlagObj.name%>
<%} if(customFlagGroup == 'noGroup' && _.size(attributeMovieGroups) > 1){%>
<%=localize.generalSeating %>
<%}
_.each(attributeMovieGroups[customFlagGroup], function (movie) {
var theaterMoviePerformances = movie.performances;
var hasPerformance = theaterMoviePerformances.models.length > 0;
var upcommingPerformances = true;
var passesAllowed = false;
if(hasPerformance){
var temp = $.grep(theaterMoviePerformances.models, function (item) { return !item.get("passesAllowed"); });
if(temp.length == 0){
passesAllowed = true;
}} %>
.medium!=undefined?movie.get('image').medium:'shared_top_level/css/brand/images/movie-poster-default.png'%>)
<%=movie.get('name')%>
<%= DtHelper.getRuntime(movie.get('length'))%> <%=movie.get('rating') %> <% var featureSupportedExperiences = []; %> <%_.each(movie.performances.models,function(model){ var supportedExperiences = HtmlHelper.getCinemaAssistiveExperiences(model); for (var i = 0; i < supportedExperiences.length; i++) { var found = jQuery.inArray(supportedExperiences[i], featureSupportedExperiences); if (found < 0) { // Element was not found, add it. featureSupportedExperiences.push(supportedExperiences[i]); } } }); for (var j = 0; j < featureSupportedExperiences.length; j++) { %> <%= featureSupportedExperiences[j] %> <%}%> <%if(movie.get('dDDFlag')) { %> <%= localize.dDDFlag %> <%} if(movie.get('imaxFlag')) { %> <%= localize.imaxFlag %> <%} %> <%=movie.get('genre')%> <%if(!passesAllowed) {%> <%= localize.noPasses %><%} %>
<%= showTime%>
<%} else if (performance.get('status')=='L' || performance.get('status')=='S'){ %>
<%= showTime %>
<%}%>
<% }});
if(upcommingPerformances){%>
<%= localize.noRemainingShowTimesToday %>
<%}} else { %><%= localize.noRemainingShowTimesToday %>
<%}%><%= localize.noRemainingShowTimesToday %>
<%}%>