<%@ include file="noexport.html" %> <%<%@ include file="setup.lua" %>%> <% LrFunctionContext = import 'LrFunctionContext' LrPathUtils = import 'LrPathUtils' LrFileUtils = import 'LrFileUtils' if WIN_ENV then webGalleriesFolder = LrPathUtils.child(LrPathUtils.getStandardFilePath("appData"), "Web Galleries") else webGalleriesFolder = LrPathUtils.child(LrPathUtils.getStandardFilePath("home"), "Library/Application Support/Adobe/Lightroom/Web Galleries/") end local mdenvPath = LrPathUtils.child(LrPathUtils.child(webGalleriesFolder, "ImpactWSPP.lrwebengine"), "mdenv.lua") local luaString = LrFileUtils.readFile(mdenvPath) local func, errorMsg = loadstring(luaString, 'mdenv.lua' ) local env = { assert = assert, ipairs = ipairs, dofile = dofile, error = error, getmetatable = getmetatable, ipairs = ipairs, load = load, loadfile = loadfile, loadstring = loadstring, next = next, pairs = pairs, pcall = pcall, print = print, rawequal = rawequal, rawget = rawget, rawset = rawset, require = require, select = select, setmetatable = function() end, tonumber = tonumber, tostring = tostring, type = type, unpack = unpack, setenv = function() end, import = import, io = io, os = os, file = file, table = table, math = math, string = string, WIN_ENV = WIN_ENV, webGalleriesFolder = webGalleriesFolder } LrFunctionContext.callWithEnvironment(func, env) markdown = env._G.markdown local modelLocationContentID = "nonCSS." .. modelID .. ".content" local pageContent = model.nonCSS[modelID].content -- Write out the header local options = { title = pageTitle, description = model.metadata.siteDescription.value, styles = styles } %> <%@ include file="header.html" %>
<% if model.nonCSS.brandingImage[modelID] and (model.nonCSS.brandingImage.position == "pageleft" or model.nonCSS.brandingImage.position == "pagecenter" or model.nonCSS.brandingImage.position == "pageright") then %> <%@ include file="branding.html" %> <% end %> <%@ include file="menu.html" %>
<% if model.nonCSS.contentBox.enable then %>
<% end %> <% if model.nonCSS.brandingImage[modelID] and (model.nonCSS.brandingImage.position == "copyleft" or model.nonCSS.brandingImage.position == "copycenter" or model.nonCSS.brandingImage.position == "copyright") then %> <%@ include file="branding.html" %> <% end %>
onclick="clickTarget(this, '<%= modelLocationContentID %>');"<% end %> id="<%= modelLocationContentID %>"><% write (markdown(pageContent)) %>
<% if model.nonCSS.contentBox.enable then %>
<% end %>
<% --[[ Include the page footer]] %> <%@ include file="footer.html" %>