<%@ 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, "FilmstripWSPP.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.contactPage.content" local pageContent = model.nonCSS.contactPage.content -- Write out the header local options = { title = model.nonCSS.contactPage.title, description = model.metadata.siteDescription.value, styles = styles, } typeOfPageBeingEdited = "contactPage" %> <%@ include file="header.html" %>
"> <% if model.nonCSS.brandingImage.contactPage 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.contactPage and (model.nonCSS.brandingImage.position == "copyleft" or model.nonCSS.brandingImage.position == "copycenter" or model.nonCSS.brandingImage.position == "copyright") then %> <%@ include file="branding.html" %> <% end %> <% if model.nonCSS.contactPage.blurb then %>
onclick="clickTarget(this, '<%= modelLocationContentID %>');"<% end %> id="<%= modelLocationContentID %>"><% write (markdown(pageContent)) %>
<% end %>