%
--[[
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 = "large"
local theRoot = "."
local resolution = "";
if (model.nonCSS.images_large.export) then resolution = "max" end
if (model.nonCSS.images_medium.export and resolution == "") then resolution = "medium" end
if (model.nonCSS.images_small and resolution == "") then resolution = "small" end
local folder = "photos_" .. resolution
%>
<% --[[ Include the page header]] %>
<%@ include file="header.html" %>
<%
local loadingdots='
'
local n
for n = 1, model.nonCSS.loadingdots.number do
loadingdots = loadingdots .. '·<\\/span>'
end
loadingdots = loadingdots .. '<\\/div>'
if page == 1 then
%>
<% local i = 1 %>
<% if i <= model.nonCSS.width then
local image = getImage(i)
local desc = '
'
if image.metadata.description and #image.metadata.description > 0 then
someInfo = true
desc = desc .. '
' .. image.metadata.description .. '
'
end
desc = desc .. '
'
local jsdesc = desc:gsub("/", "\\/")
jsdesc = jsdesc:gsub("'", "\\'")
jsdesc = jsdesc:gsub("\n", "\\\n")
%>
<% i = i + 1 end %>
<% --[[ For noscript we display the first image only. The next and prev arrow then point to the individual pages ]] %>
<% end
if model.nonCSS.displayIdentityPlate then
if #model.nonCSS.identityPlateLink > 0 then %>
<% else %>
<% end %>
<% end %>
<% if model.nonCSS.dots.enabled then %>