<% --[[ grid.html This file displays a thumbnail grid of the images with dimensions specified in the galleryInfo.lrweb file. Define some variables to make locating other resources easier.]] local mySize = "thumb" local theRoot = "." %> <% --[[ Include the page header]] %> <%@ include file="header.html" %> <% local function thumbnails() %>

<% local first = true local i = 1 %><% if i <= model.nonCSS.thumbnailGridWidth then %><% if first then style = "" first = false else style = "margin-left: " .. model.nonCSS.thumbSpacing .. "px !important" end i = i + 1 %><% end %><% first = true if i <= numImages then write([[

]]) end %>

<% end %>
<% if model.nonCSS.displayIdentityPlate then if #model.nonCSS.identityPlateLink > 0 then %> <% else %> <% end %> <% end %> <% if model.nonCSS.pageTitle.displayed then %>

$model.metadata.pageTitle.value

<% end %> <% if model.nonCSS.description.displayed then %>

$model.metadata.description.value

<% end %>
<% --[[ Include the page footer]] %> <%@ include file="footer.html" %>