% local LrApplication = import 'LrApplication' if ( LrApplication.versionTable().major >= 4 ) then %> <% else %> <% end %> <% columnWidth = model.photoSizes.thumb.width if model.nonCSS.brick.borders then columnWidth = columnWidth + model.nonCSS.brick.border end if model.nonCSS.displayIdentityPlate then logopngwidth = getIdentityPlateSize().width; logopngheight = getIdentityPlateSize().height; totalWidth = logopngwidth + 2 * model.nonCSS.identityPlatePadding if model.nonCSS.brick.borders then totalWidth = totalWidth + model.nonCSS.brick.border end cols = math.ceil(totalWidth / columnWidth) ; minCols = math.max(cols, 1); logowidth = cols * columnWidth; logoheight = logopngheight + 2 * model.nonCSS.identityPlatePadding if model.nonCSS.brick.borders then logowidth = logowidth - model.nonCSS.brick.border end else minCols = 1 end -- For fixed width... if model.nonCSS.wall.fixedNumColumns then minCols = model.nonCSS.wall.cols end %> <% if model.nonCSS.googleAnalytics and mode ~= 'preview' then %> <% end %>