%@ include file="noexport.html" %> <% 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 %> <%<%@ include file="setup.lua" %>%> <% local modelLocationContentID = "nonCSS.galleryPage.content" -- The Page Content for sub galleries is passed through by the plugin if not pageContent then pageContent = "" end -- For the top level index page, we use the model's text if (not hierarchy or #hierarchy == 0) and model.nonCSS.indexBlurb then pageContent = model.nonCSS.galleryPage.content end -- Write out the header if not galleryDetails then galleryDetails = {} end local title = galleryDetails.title or "Example gallery" -- For the top level index page, we use the model's text if (not hierarchy or #hierarchy == 0) then title = model.nonCSS.galleryPage.title end local options = { title = title, description = galleryDetails.description or "Example description", styles = styles } typeOfPageBeingEdited = "galleriesPage" %> <%@ include file="header.html" %>
<% --[[ Include the page footer]] %> <%@ include file="footer.html" %>