%
--[[
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 %>
<% -- Thumbnails in top position
if model.nonCSS.thumbPosition == "top" then %>
<% thumbnails() %>
<% end %>
<% -- Thumbnails in left position --
if model.nonCSS.thumbPosition == "left" then %>
<% thumbnails() %>
<% end %>
<% if model.nonCSS.controlsEnabled then %>
<% if model.nonCSS.playButtonShape == "square arrow" then %>
<% end %><% if model.nonCSS.playButtonShape == "double arrow" then %>
<% end %>
<% end %>
<% local i = 1 %>
<% if i <= model.nonCSS.thumbnailGridWidth then %>
<% local caption = image.metadata.title
if #caption == 0 then caption = " " end
%>
<% if model.perImageSetting.title.enabled then %>
<%= caption %>
<% end %>
<% i = i + 1 end %>
<% -- Thumbnails in right position --
if model.nonCSS.thumbPosition == "right" then %>
<% thumbnails() %>
<% end %>
<% -- Thumbnails in bottom position --
if model.nonCSS.thumbPosition == "bottom" then %>
<% thumbnails() %>
<% end %>
<% --[[ Include the page footer]] %>
<%@ include file="footer.html" %>