<% 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 %> $model.metadata.pageTitle.value <% local loadingdots='
' local n for n = 1, model.nonCSS.loadingdots.number do loadingdots = loadingdots .. "·" end loadingdots = loadingdots .. "
" %>
<% if model.nonCSS.fittingType == "width" then fitClass = "fithorizontal" elseif model.nonCSS.fittingType == "height" then fitClass = "fitvertical" else -- We scale based on the orientation of the photo. -- -- To do that we need to find a resolution that was actually exported... image = getImage(index) if model.nonCSS.images_large.export then width = image.renditions.large.width height = image.renditions.large.height elseif model.nonCSS.images_medium.export then width = image.renditions.medium.width height = image.renditions.medium.height else width = image.renditions.small.width height = image.renditions.small.height end if width > height then fitClass = "fithorizontal" else fitClass = "fitvertical" end end local desc = '
' if image.metadata.description and #image.metadata.description > 0 then someInfo = true desc = desc .. '
' .. image.metadata.description .. '
' end desc = desc .. '
' %>
$desc
.jpg" alt="$image.metadata.seoAltText">
<% if model.nonCSS.displayIdentityPlate then if #model.nonCSS.identityPlateLink > 0 then %> <% else %> <% end %> <% end %> <% if model.nonCSS.dots.enabled then %>
<% for d = 1, numImages do %> <% if d == 1 then write('class="first"') end %> href="<%= getImage(d).exportFilename %>.html"><% if model.nonCSS.dots.type == "squares" then write("" .. d) else write ('·') end%><% end %>
<% end %> <% --[[ Include the page footer]] %> <%@ include file="footer.html" %>