ERROR

ERROR

Switch View
  1. <% --[[ Include the page head]] %>
  2. <%
  3. --[[ Define some variables to make locating other resources easier
  4. firstPage was defined in our manifest.]]
  5. local theRoot = "."
  6. %>
  7. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  8. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%= model.metadata.html.lang %>" dir="<%= model.metadata.html.dir %>">
  9. <head>
  10. <meta http-equiv="content-type" content="text/html; charset=<%= model.nonCSS.charset %>" />
  11. <% if model.nonCSS.metaTags then %><meta name="author" content="<%= model.metadata.metaAuthor.value %>" />
  12. <meta name="description" content="<%= model.metadata.metaDescription.value %>" />
  13. <meta name="keywords" content="<%= model.metadata.metaKeywords.value %>" />
  14. <meta name="generator" content="Adobe Photoshop Lightroom, TTG LR Pages" /><% end %>
  15. <title>$model.metadata.htmlTitle.value</title>
  16. <link rel="shortcut icon" type="image/ico" href="$theRoot/resources/images/favicon.ico" />
  17. <link rel="stylesheet" type="text/css" media="screen" href="$theRoot/resources/css/gallery.css" />
  18. <script type="text/javascript" src="$theRoot/resources/js/swfobject.js"></script>
  19. <script type="text/javascript" src="$theRoot/resources/js/livevalidation.js"></script>
  20. <script type="text/javascript" src="$theRoot/resources/js/jquery-1.4.2.min.js"></script>
  21. <script type="text/javascript" src="$theRoot/resources/js/jquery.jfade.1.0.min.js"></script>
  22. <% if model.nonCSS.gridType == 'iconic' then %><% if model.nonCSS.captifyAnimation == 'never' then %><% else %><script type="text/javascript" src="$theRoot/resources/js/captify.tiny.js"></script><% end %><% end %>
  23. <% if model.nonCSS.home_galleryview then %><link rel="stylesheet" type="text/css" media="screen" href="$theRoot/resources/galleryview/galleryview.css" />
  24. <script type="text/javascript" src="$theRoot/resources/galleryview/jquery.galleryview-2.1.1-pack.js"></script>
  25. <script type="text/javascript" src="$theRoot/resources/galleryview/jquery.timers-1.2.js"></script><% end %>
  26. <% if model.nonCSS.indexAction == 'shadowbox' then %>
  27. <script type="text/javascript" src="$theRoot/resources/shadowbox/shadowbox.js"></script>
  28. <script type="text/javascript">
  29. var options = {
  30. overlayColor: '<%= model.nonCSS.shadowboxOverlayWebColor %>',
  31. overlayOpacity: 0.<%= model.nonCSS.shadowboxOverlayOpacity %>,
  32. players: ['img','swf','flv','qt','wmp','iframe','html']
  33. };
  34. Shadowbox.init(options);
  35. </script>
  36. <link rel="stylesheet" type="text/css" media="screen" href="$theRoot/resources/shadowbox/shadowbox.css" />
  37. <style type="text/css">
  38. #sb-nav-close { background-image:url($theRoot/resources/images/<%= model.nonCSS.shadowbox_controls %>.png) !important; background-position: -64px 0; }
  39. #sb-nav-next { background-image:url($theRoot/resources/images/<%= model.nonCSS.shadowbox_controls %>.png) !important; background-position: -32px 0; }
  40. #sb-nav-previous { background-image:url($theRoot/resources/images/<%= model.nonCSS.shadowbox_controls %>.png) !important; background-position: -48px 0; }
  41. #sb-nav-play { background-image:url($theRoot/resources/images/<%= model.nonCSS.shadowbox_controls %>.png) !important; background-position: -16px 0; }
  42. #sb-nav-pause { background-image:url($theRoot/resources/images/<%= model.nonCSS.shadowbox_controls %>.png) !important; background-position: 0 0; }
  43. </style>
  44. <% end %>
  45. <script type="text/javascript">
  46. $(function(){
  47. $(".albumBox").jFade({
  48. trigger: "mouseover",
  49. property: 'background',
  50. start: '<%= model.nonCSS.albumBox_color_ag %>',
  51. end: '<%= model.nonCSS.albumBox_color_onhover_ag %>',
  52. steps: 20,
  53. duration: 15
  54. }).jFade({
  55. trigger: "mouseout",
  56. property: 'background',
  57. start: '<%= model.nonCSS.albumBox_color_onhover_ag %>',
  58. end: '<%= model.nonCSS.albumBox_color_ag %>',
  59. steps: 20,
  60. duration: 15
  61. });
  62. });
  63. </script>
  64. <% if model.nonCSS.includeFooter then %><% if model.nonCSS.sticktobottom then %>
  65. <script type="text/javascript">
  66. <!--
  67. function printViewportDimensions() {
  68. var viewportwidth = $(window).width();
  69. var viewportheight = window.innerHeight ? window.innerHeight : $(window).height();
  70. $('#wrapper').css('min-height', (viewportheight-<%= model.nonCSS.footerHeight %>) + 'px');
  71. }
  72. printViewportDimensions();
  73. $(function() {
  74. printViewportDimensions();
  75. $(window).resize(function()
  76. {
  77. printViewportDimensions();
  78. });
  79. });
  80. //-->
  81. </script>
  82. <% end %><% end %>
  83. <% if model.nonCSS.gridType == 'iconic' then %><% if model.nonCSS.captifyAnimation == 'never' then %><% else %>
  84. <script type="text/javascript">
  85. <!--
  86. $(function(){
  87. $('img.captify').captify({
  88. speedOver: 'fast',
  89. speedOut: 'normal',
  90. hideDelay: 500,
  91. animation: '<%= model.nonCSS.captifyAnimation %>',
  92. prefix: '',
  93. opacity: '0.7',
  94. className: 'caption-<%= model.nonCSS.captifyPosition %>',
  95. position: '<%= model.nonCSS.captifyPosition %>',
  96. spanWidth: '100%'
  97. });
  98. });
  99. //-->
  100. </script>
  101. <% end %><% end %>
  102. <style type="text/css">
  103. <% if mode == "preview" then %>#wrapper { min-height: 100%; }<% end %>
  104. #page_content {
  105. -moz-border-radius: <%= model.nonCSS.page_content_corners %>px;
  106. -webkit-border-radius: <%= model.nonCSS.page_content_corners %>px;
  107. }
  108. .albumBox<% if model.nonCSS.gridType == 'iconic' then %>, .albumBoxContent<% end %> {
  109. background-color: #<%= model.nonCSS.albumBox_color_ag %>;
  110. -moz-border-radius: <%= model.nonCSS.albumBoxCorners %>px;
  111. -webkit-border-radius: <%= model.nonCSS.albumBoxCorners %>px;
  112. }
  113. #inputfields {
  114. -moz-border-radius: <%= model.nonCSS.selectionInputCorners %>px;
  115. -webkit-border-radius: <%= model.nonCSS.selectionInputCorners %>px;
  116. }
  117. <% if model.nonCSS.gridType == 'iconic' then %>
  118. <% if model.nonCSS.captifyAnimation == 'never' then %>
  119. .albumBoxContent, img.captify {
  120. width: <%= math.floor( model.nonCSS.albumBoxWidth - ( model.nonCSS.albumBoxBorderWidth * 2 ) ) %>px;
  121. height: <%= math.floor( model.nonCSS.albumBoxHeight - ( model.nonCSS.albumBoxBorderWidth * 2 ) ) %>px;
  122. }
  123. .albumBoxContent {
  124. padding: 0 !important;
  125. }
  126. img.captify {
  127. opacity: 0; filter:alpha(opacity=0);
  128. }
  129. <% else %>
  130. .caption-top, .caption-bottom {
  131. color: <%= model.nonCSS.albumTitleColor %>;
  132. padding: 0.5em;
  133. font-weight: <%= model.appearance.albumTitle[ 'font-weight' ] %>;
  134. font-size: <%= model.nonCSS.albumTitle_fontsize %>px;
  135. font-family: <%= model.appearance.albumTitle[ 'font-family' ] %>;
  136. border: 0px solid <%= model.nonCSS.albumTitleBorderColor %>;
  137. background: <%= model.nonCSS.albumTitleBGColor %>;
  138. text-shadow: 1px 1px 0 <%= model.nonCSS.albumTitleShadowColor %>;
  139. }
  140. .caption-top {
  141. border-width: 0px 0px <%= model.nonCSS.albumTitle_border %>px 0px;
  142. }
  143. .caption-bottom {
  144. border-width: <%= model.nonCSS.albumTitle_border %>px 0px 0px 0px;
  145. }
  146. .caption a, .caption a {
  147. border: 0 none;
  148. text-decoration: none;
  149. background: #000000;
  150. padding: 0.3em;
  151. }
  152. .caption a:hover, .caption a:hover {
  153. background: #202020;
  154. }
  155. .albumBoxContent, img.captify {
  156. width: <%= math.floor( model.nonCSS.albumBoxWidth - ( model.nonCSS.albumBoxBorderWidth * 2 ) ) %>px;
  157. height: <%= math.floor( model.nonCSS.albumBoxHeight - ( model.nonCSS.albumBoxBorderWidth * 2 ) ) %>px;
  158. }
  159. .albumBoxContent {
  160. padding: 0 !important;
  161. }
  162. img.captify {
  163. opacity: 0; filter:alpha(opacity=0);
  164. }
  165. <% end %><% end %>
  166. <% if model.nonCSS.home_galleryview then %>
  167. /*
  168. -- GALLERYVIEW-2 -- */
  169. #gallery { visibility: hidden; }
  170. .gallery {
  171. margin: 0 auto;
  172. background-color: <%= model.nonCSS.galleryviewBGC %>;
  173. border-color: <%= model.nonCSS.galleryviewBC %>;
  174. <% if model.nonCSS.homeConfiguration == "imageleftcopyright" then %>float: left;<% elseif model.nonCSS.homeConfiguration == "copyleftimageright" then %>float: right;<% end %>
  175. }
  176. .loader {
  177. background-color: <%= model.nonCSS.galleryviewBGC %>;
  178. }
  179. .panel {
  180. margin: 0 auto;
  181. text-align: center;
  182. }
  183. .panel img {
  184. left: 0 !important;
  185. }
  186. .panel .overlay-background {
  187. background: <%= model.nonCSS.overlaybackground %>;
  188. }
  189. .panel .panel-overlay {
  190. color: <%= model.nonCSS.overlaytext %>;
  191. }
  192. .panel .panel-overlay a {
  193. color: <%= model.nonCSS.overlayhyperlink %>;
  194. }
  195. .panel .panel-overlay, .panel .overlay-background {
  196. padding: 10px 5px 5px;
  197. height: <%= model.nonCSS.overlayHeight %>px;
  198. text-align: <%= model.appearance[ 'overlay_text' ][ 'text-align' ] %>;
  199. }
  200. #page_content p.overlay_title {
  201. margin: 0 0 4px 0 !important;
  202. padding: 0;
  203. line-height: 1em;
  204. font-size: <%= model.nonCSS.overlayTitle %>px;
  205. }
  206. #page_content p.overlay_caption {
  207. margin: 0 !important;
  208. padding: 0;
  209. line-height: 1em;
  210. font-size: <%= model.nonCSS.overlayCaption %>px;
  211. }
  212. .frame .img_wrap {
  213. border: 1px solid <%= model.nonCSS.galleryviewframesBC %>;
  214. }
  215. .frame.current .img_wrap {
  216. border-color: <%= model.nonCSS.galleryviewframecurrentBC %>;
  217. }
  218. .pointer {
  219. border-color: <%= model.nonCSS.galleryviewframecurrentBC %>;
  220. }
  221. <% end %>
  222. <% if model.nonCSS.sticktobottom then %>
  223. #footer { position: absolute; bottom: 0; left: 0; }<% end %>
  224. </style>
  225. <% if mode == 'publish' then %>
  226. <!-- compliance patch for microsoft browsers -->
  227. <!--[if lt IE 8]>
  228. <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
  229. <![endif]-->
  230. <% end %>
  231. <% if mode == 'preview' then %>
  232. <script type="text/javascript">
  233. window.AgMode = "$mode";
  234. window.AgOnLoad = function() {
  235. tellLightroomWhatImagesWeAreUsing();
  236. setActiveImageSize( "<%= mySize %>" );
  237. <% if image then %>
  238. callCallback( "showInPhotoBin", "$image.imageID" );
  239. <% end %>
  240. }
  241. </script>
  242. <script type="text/javascript" src="$theRoot/resources_preview/js/live_update.js"></script>
  243. <% end %>
  244. <%= model.metadata.style.head %>
  245. <%if mode == "publish" then %>
  246. <%= model.metadata.script.head %>
  247. <% end %>
  248. </head>
  249. <body id="contact">
  250. <% --[[ Include the page header]] %>
  251. <%
  252. --[[ Define some variables to make locating other resources easier
  253. firstPage was defined in our manifest.]]
  254. local theRoot = "."
  255. %>
  256. <div id="wrapper">
  257. <% if model.nonCSS.idplateLocation == "header" then %>
  258. <div id="header_container">
  259. <div id="header"<% if model.nonCSS.fixHeaderWidth then %> style="width: <%= model.nonCSS.fixedHeaderWidth %>px !important;"<% end %>>
  260. <h1<% if model.nonCSS.idplate then %> style="background-image: url(<% if model.nonCSS.shareResources then %><%= model.nonCSS.pathToResources %>images/idplate.png<% else %>$theRoot/resources/images/idplate.png<% end %>); background-repeat: no-repeat; background-position: <%= model.nonCSS.idplate_X %>% <%= model.nonCSS.idplate_Y %>%;"<% end %>><a href="$model.metadata.headerlink.value"><span>$model.metadata.htmlTitle.value</span></a></h1>
  261. </div> <!-- /header -->
  262. </div>
  263. <div id="menu">
  264. <div id="menuContent"<% if model.nonCSS.fixHeaderWidth then %> style="width: <%= model.nonCSS.fixedHeaderWidth %>px !important;"<% end %>>
  265. <p style="margin-left: <%= model.nonCSS.menuPaddingLeft %>px !important; margin-right: <%= model.nonCSS.menuPaddingRight %>px !important;"><% if model.nonCSS.menuItem1 then %><a href="$model.metadata.menuItem1.link" id="metadata.menuItem1.value" class="menufirst">$model.metadata.menuItem1.value</a> <%= model.metadata.menuDivider.value %> <% end %><% if model.nonCSS.menuItem2 then %><a href="<% if mode == 'preview' then %>galleryindex.html<% else %>galleryindex.php<% end %>" id="metadata.menuItem2.value">$model.metadata.menuItem2.value</a> <%= model.metadata.menuDivider.value %> <% end %><% if model.nonCSS.menuItem3 then %><a href="$model.metadata.menuItem3.link" id="metadata.menuItem3.value">$model.metadata.menuItem3.value</a> <%= model.metadata.menuDivider.value %> <% end %><% if model.nonCSS.menuItem4 then %><a href="$model.metadata.menuItem4.link" id="metadata.menuItem4.value">$model.metadata.menuItem4.value</a> <%= model.metadata.menuDivider.value %> <% end %><% if model.nonCSS.menuItem5 then %><a href="$model.metadata.menuItem5.link" id="metadata.menuItem5.value">$model.metadata.menuItem5.value</a> <%= model.metadata.menuDivider.value %> <% end %><%= model.metadata.customMenu.value %><a href="$model.metadata.contact.link" id="metadata.contact.value" class="menulast">$model.metadata.contact.value</a></p>
  266. </div>
  267. </div> <!-- /menu -->
  268. <% elseif model.nonCSS.idplateLocation == "menu" then %>
  269. <div id="header_container">
  270. <div id="header"<% if model.nonCSS.fixHeaderWidth then %> style="width: <%= model.nonCSS.fixedHeaderWidth %>px !important;"<% end %>>
  271. </div> <!-- /header -->
  272. </div>
  273. <div id="menu">
  274. <div id="menuContent" <% if model.nonCSS.idplate then %>
  275. style="<% if model.nonCSS.fixHeaderWidth then %>width: <%= model.nonCSS.fixedHeaderWidth %>px !important; <% end %>background-image: url(<% if model.nonCSS.shareResources then %><%= model.nonCSS.pathToResources %>images/idplate.png<% else %>$theRoot/resources/images/idplate.png<% end %>); background-repeat: no-repeat; background-position: <%= model.nonCSS.idplate_X %>% <%= model.nonCSS.idplate_Y %>%;"<% end %>>
  276. <p style="margin-left: <%= model.nonCSS.menuPaddingLeft %>px !important; margin-right: <%= model.nonCSS.menuPaddingRight %>px !important;"><% if model.nonCSS.menuItem1 then %><a href="$model.metadata.menuItem1.link" id="metadata.menuItem1.value" class="menufirst">$model.metadata.menuItem1.value</a> <%= model.metadata.menuDivider.value %> <% end %><% if model.nonCSS.menuItem2 then %><a href="<% if mode == 'preview' then %>galleryindex.html<% else %>galleryindex.php<% end %>" id="metadata.menuItem2.value">$model.metadata.menuItem2.value</a> <%= model.metadata.menuDivider.value %> <% end %><% if model.nonCSS.menuItem3 then %><a href="$model.metadata.menuItem3.link" id="metadata.menuItem3.value">$model.metadata.menuItem3.value</a> <%= model.metadata.menuDivider.value %> <% end %><% if model.nonCSS.menuItem4 then %><a href="$model.metadata.menuItem4.link" id="metadata.menuItem4.value">$model.metadata.menuItem4.value</a> <%= model.metadata.menuDivider.value %> <% end %><% if model.nonCSS.menuItem5 then %><a href="$model.metadata.menuItem5.link" id="metadata.menuItem5.value">$model.metadata.menuItem5.value</a> <%= model.metadata.menuDivider.value %> <% end %><%= model.metadata.customMenu.value %><a href="$model.metadata.contact.link" id="metadata.contact.value" class="menulast">$model.metadata.contact.value</a></p>
  277. </div>
  278. </div> <!-- /menu -->
  279. <% elseif model.nonCSS.idplateLocation == "beneath" then %>
  280. <div id="menu" style="margin-bottom: 0 !important;">
  281. <div id="menuContent"<% if model.nonCSS.fixHeaderWidth then %> style="width: <%= model.nonCSS.fixedHeaderWidth %>px !important;"<% end %>>
  282. <p style="margin-left: <%= model.nonCSS.menuPaddingLeft %>px !important; margin-right: <%= model.nonCSS.menuPaddingRight %>px !important;"><% if model.nonCSS.menuItem1 then %><a href="$model.metadata.menuItem1.link" id="metadata.menuItem1.value" class="menufirst">$model.metadata.menuItem1.value</a> <%= model.metadata.menuDivider.value %> <% end %><% if model.nonCSS.menuItem2 then %><a href="<% if mode == 'preview' then %>galleryindex.html<% else %>galleryindex.php<% end %>" id="metadata.menuItem2.value">$model.metadata.menuItem2.value</a> <%= model.metadata.menuDivider.value %> <% end %><% if model.nonCSS.menuItem3 then %><a href="$model.metadata.menuItem3.link" id="metadata.menuItem3.value">$model.metadata.menuItem3.value</a> <%= model.metadata.menuDivider.value %> <% end %><% if model.nonCSS.menuItem4 then %><a href="$model.metadata.menuItem4.link" id="metadata.menuItem4.value">$model.metadata.menuItem4.value</a> <%= model.metadata.menuDivider.value %> <% end %><% if model.nonCSS.menuItem5 then %><a href="$model.metadata.menuItem5.link" id="metadata.menuItem5.value">$model.metadata.menuItem5.value</a> <%= model.metadata.menuDivider.value %> <% end %><%= model.metadata.customMenu.value %><a href="$model.metadata.contact.link" id="metadata.contact.value" class="menulast">$model.metadata.contact.value</a></p>
  283. </div>
  284. </div> <!-- /menu -->
  285. <div id="header_container">
  286. <div id="header"<% if model.nonCSS.fixHeaderWidth then %> style="width: <%= model.nonCSS.fixedHeaderWidth %>px !important;"<% end %>>
  287. <h1<% if model.nonCSS.idplate then %> style="background-image: url(<% if model.nonCSS.shareResources then %><%= model.nonCSS.pathToResources %>images/idplate.png<% else %>$theRoot/resources/images/idplate.png<% end %>); background-repeat: no-repeat; background-position: <%= model.nonCSS.idplate_X %>% <%= model.nonCSS.idplate_Y %>%;"<% end %>><a href="$model.metadata.headerlink.value"><span>$model.metadata.htmlTitle.value</span></a></h1>
  288. </div> <!-- /header -->
  289. </div>
  290. <% end %>
  291. <div id="page">
  292. <% if model.nonCSS.contactConfiguration == "imageleftcopyright" then %>
  293. <div id="page_content" class="contact">
  294. <img src="photos/<%= getImage(3).exportFilename %>.jpg" class="page_img" width="<%= getImage(3).renditions.photos.width %>" height="<%= getImage(3).renditions.photos.height %>" alt="<%= getImage(3).metadata.alt %>" style="float:left;" />
  295. <div class="copy" style="float:right; width: <%= math.floor( model.nonCSS.contactWidth - ( model.nonCSS.page_content_padding * 2 ) - ( model.nonCSS.page_content_border * 2 ) - model.nonCSS.spacing - ( ( model.nonCSS.imagePadding + model.nonCSS.imageBorderWidth ) * 2 ) - getImage(3).renditions.photos.width ) %>px;">
  296. <% if model.nonCSS.includeContactHeading1 then %><h2 id="metadata.contactHeading1.value" class="first heading heading_contact"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.contactHeading1.value');"<% end %>>$model.metadata.contactHeading1.value</h2><% end %>
  297. <% if model.nonCSS.includeContactParagraph1 then %><p id="nonCSS.contactParagraph1.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.contactParagraph1.value');"<% end %>>$model.metadata.contactParagraph1.value</p><% end %>
  298. <% if model.nonCSS.includeContactHeading2 then %><h2 id="metadata.contactHeading2.value" class="subsequent heading heading_contact"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.contactHeading2.value');"<% end %>>$model.metadata.contactHeading2.value</h2><% end %>
  299. <% if model.nonCSS.includeContactParagraph2 then %><p id="nonCSS.contactParagraph2.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.contactParagraph2.value');"<% end %>>$model.metadata.contactParagraph2.value</p><% end %>
  300. <% if model.nonCSS.contactForm then %>
  301. <% if model.nonCSS.formtoemail_remote then %><form action="http://formtoemailremote.com/user_forms.php" method="post"><% else %><form action="$theRoot/resources/FormToEmail.php" method="post"><% end %>
  302. <div id="inputfields">
  303. <fieldset>
  304. <input name="galleryTitle" type="hidden" value="$model.metadata.htmlTitle.value" size="30" />
  305. <% if model.nonCSS.formtoemail_remote then %>
  306. <input type="hidden" name="user_id" value="<%= model.nonCSS.formtoemail_userid %>">
  307. <input type="hidden" name="form_id" value="<%= model.nonCSS.formtoemail_formid %>">
  308. <% end %>
  309. <p style="margin-top:0 !important;"><label for="field1"><%= model.nonCSS.selectionName %></label>
  310. <input id="field1" class="gather" name="name" type="text" size="30" tabindex="1" /></p>
  311. <p><label for="field2"><%= model.nonCSS.selectionEmail %></label>
  312. <input id="field2" class="gather" name="email" type="text" size="30" tabindex="2" /></p>
  313. <% if model.nonCSS.selectionTel_check then %>
  314. <p><label for="field3"><%= model.nonCSS.selectionTel %></label>
  315. <input id="field3" class="gather" name="<%= model.nonCSS.selectionTel %>" type="text" size="30" tabindex="3" /></p><% end %>
  316. <% if model.nonCSS.selectionURL_check then %>
  317. <p><label for="field4"><%= model.nonCSS.selectionURL %></label>
  318. <input id="field4" class="gather" name="<%= model.nonCSS.selectionURL %>" type="text" size="30" tabindex="4" /></p><% end %>
  319. <p><label><%= model.nonCSS.selectionComments %></label>
  320. <textarea name="<%= model.nonCSS.selectionComments %>" id="comments" tabindex="5" rows="1" cols="1"></textarea></p>
  321. <p class="submitbutton" style="margin-bottom:0 !important;"><input type="submit" class="submit" value="<%= model.nonCSS.selectionSubmit %>" /></p>
  322. </fieldset>
  323. </div>
  324. </form>
  325. <script type="text/javascript">
  326. var field1 = new LiveValidation( 'field1', {onlyOnSubmit: true } );
  327. field1.add( Validate.Presence, { failureMessage: "<%= model.nonCSS.selectionWarning %>" } );
  328. var field2 = new LiveValidation( 'field2', {onlyOnSubmit: true } );
  329. field2.add( Validate.Email, { failureMessage: "<%= model.nonCSS.emailWarning %>" } );
  330. field2.add( Validate.Presence, { failureMessage: "<%= model.nonCSS.selectionWarning %>" } );
  331. <% if model.nonCSS.selectionTel_check then %>
  332. var field3 = new LiveValidation( 'field3', {onlyOnSubmit: true } );
  333. field3.add( Validate.Presence, { failureMessage: "<%= model.nonCSS.selectionWarning %>" } );<% end %>
  334. </script>
  335. <% end %>
  336. </div>
  337. <div class="clear"></div>
  338. </div> <!-- /page_content home -->
  339. <% elseif model.nonCSS.contactConfiguration == "copyleftimageright" then %>
  340. <div id="page_content" class="contact">
  341. <img src="photos/<%= getImage(3).exportFilename %>.jpg" class="page_img" width="<%= getImage(3).renditions.photos.width %>" height="<%= getImage(3).renditions.photos.height %>" alt="<%= getImage(3).metadata.alt %>" style="float:right;" />
  342. <div class="copy" style="float:left; width: <%= math.floor( model.nonCSS.contactWidth - ( model.nonCSS.page_content_padding * 2 ) - ( model.nonCSS.page_content_border * 2 ) - model.nonCSS.spacing - ( ( model.nonCSS.imagePadding + model.nonCSS.imageBorderWidth ) * 2 ) - getImage(3).renditions.photos.width ) %>px;">
  343. <% if model.nonCSS.includeContactHeading1 then %><h2 id="metadata.contactHeading1.value" class="first heading heading_contact"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.contactHeading1.value');"<% end %>>$model.metadata.contactHeading1.value</h2><% end %>
  344. <% if model.nonCSS.includeContactParagraph1 then %><p id="nonCSS.contactParagraph1.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.contactParagraph1.value');"<% end %>>$model.metadata.contactParagraph1.value</p><% end %>
  345. <% if model.nonCSS.includeContactHeading2 then %><h2 id="metadata.contactHeading2.value" class="subsequent heading heading_contact"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.contactHeading2.value');"<% end %>>$model.metadata.contactHeading2.value</h2><% end %>
  346. <% if model.nonCSS.includeContactParagraph2 then %><p id="nonCSS.contactParagraph2.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.contactParagraph2.value');"<% end %>>$model.metadata.contactParagraph2.value</p><% end %>
  347. <% if model.nonCSS.contactForm then %>
  348. <% if model.nonCSS.formtoemail_remote then %><form action="http://formtoemailremote.com/user_forms.php" method="post"><% else %><form action="$theRoot/resources/FormToEmail.php" method="post"><% end %>
  349. <div id="inputfields">
  350. <fieldset>
  351. <input name="galleryTitle" type="hidden" value="$model.metadata.htmlTitle.value" size="30" />
  352. <% if model.nonCSS.formtoemail_remote then %>
  353. <input type="hidden" name="user_id" value="<%= model.nonCSS.formtoemail_userid %>">
  354. <input type="hidden" name="form_id" value="<%= model.nonCSS.formtoemail_formid %>">
  355. <% end %>
  356. <p style="margin-top:0 !important;"><label for="field1"><%= model.nonCSS.selectionName %></label>
  357. <input id="field1" class="gather" name="name" type="text" size="30" tabindex="1" /></p>
  358. <p><label for="field2"><%= model.nonCSS.selectionEmail %></label>
  359. <input id="field2" class="gather" name="email" type="text" size="30" tabindex="2" /></p>
  360. <% if model.nonCSS.selectionTel_check then %>
  361. <p><label for="field3"><%= model.nonCSS.selectionTel %></label>
  362. <input id="field3" class="gather" name="<%= model.nonCSS.selectionTel %>" type="text" size="30" tabindex="3" /></p><% end %>
  363. <% if model.nonCSS.selectionURL_check then %>
  364. <p><label for="field4"><%= model.nonCSS.selectionURL %></label>
  365. <input id="field4" class="gather" name="<%= model.nonCSS.selectionURL %>" type="text" size="30" tabindex="4" /></p><% end %>
  366. <p><label><%= model.nonCSS.selectionComments %></label>
  367. <textarea name="<%= model.nonCSS.selectionComments %>" id="comments" tabindex="5" rows="1" cols="1"></textarea></p>
  368. <p class="submitbutton" style="margin-bottom:0 !important;"><input type="submit" class="submit" value="<%= model.nonCSS.selectionSubmit %>" /></p>
  369. </fieldset>
  370. </div>
  371. </form>
  372. <script type="text/javascript">
  373. var field1 = new LiveValidation( 'field1', {onlyOnSubmit: true } );
  374. field1.add( Validate.Presence, { failureMessage: "<%= model.nonCSS.selectionWarning %>" } );
  375. var field2 = new LiveValidation( 'field2', {onlyOnSubmit: true } );
  376. field2.add( Validate.Email, { failureMessage: "<%= model.nonCSS.emailWarning %>" } );
  377. field2.add( Validate.Presence, { failureMessage: "<%= model.nonCSS.selectionWarning %>" } );
  378. <% if model.nonCSS.selectionTel_check then %>
  379. var field3 = new LiveValidation( 'field3', {onlyOnSubmit: true } );
  380. field3.add( Validate.Presence, { failureMessage: "<%= model.nonCSS.selectionWarning %>" } );<% end %>
  381. </script>
  382. <% end %>
  383. </div>
  384. <div class="clear"></div>
  385. </div> <!-- /page_content home -->
  386. <% elseif model.nonCSS.contactConfiguration == "imageupcopydown" then %>
  387. <div id="page_content" class="contact">
  388. <img src="photos/<%= getImage(3).exportFilename %>.jpg" class="page_img" width="<%= getImage(3).renditions.photos.width %>" height="<%= getImage(3).renditions.photos.height %>" alt="<%= getImage(3).metadata.alt %>" style="margin: 0 0 20px 0 !important;" />
  389. <div class="copy" style="width: <%= math.floor( model.nonCSS.contactWidth - ( model.nonCSS.page_content_padding * 2 ) - ( model.nonCSS.page_content_border * 2 ) ) %>px;">
  390. <% if model.nonCSS.includeContactHeading1 then %><h2 id="metadata.contactHeading1.value" class="first heading heading_contact"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.contactHeading1.value');"<% end %>>$model.metadata.contactHeading1.value</h2><% end %>
  391. <% if model.nonCSS.includeContactParagraph1 then %><p id="nonCSS.contactParagraph1.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.contactParagraph1.value');"<% end %>>$model.metadata.contactParagraph1.value</p><% end %>
  392. <% if model.nonCSS.includeContactHeading2 then %><h2 id="metadata.contactHeading2.value" class="subsequent heading heading_contact"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.contactHeading2.value');"<% end %>>$model.metadata.contactHeading2.value</h2><% end %>
  393. <% if model.nonCSS.includeContactParagraph2 then %><p id="nonCSS.contactParagraph2.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.contactParagraph2.value');"<% end %>>$model.metadata.contactParagraph2.value</p><% end %>
  394. <% if model.nonCSS.contactForm then %>
  395. <% if model.nonCSS.formtoemail_remote then %><form action="http://formtoemailremote.com/user_forms.php" method="post"><% else %><form action="$theRoot/resources/FormToEmail.php" method="post"><% end %>
  396. <div id="inputfields">
  397. <fieldset>
  398. <input name="galleryTitle" type="hidden" value="$model.metadata.htmlTitle.value" size="30" />
  399. <% if model.nonCSS.formtoemail_remote then %>
  400. <input type="hidden" name="user_id" value="<%= model.nonCSS.formtoemail_userid %>">
  401. <input type="hidden" name="form_id" value="<%= model.nonCSS.formtoemail_formid %>">
  402. <% end %>
  403. <p style="margin-top:0 !important;"><label for="field1"><%= model.nonCSS.selectionName %></label>
  404. <input id="field1" class="gather" name="name" type="text" size="30" tabindex="1" /></p>
  405. <p><label for="field2"><%= model.nonCSS.selectionEmail %></label>
  406. <input id="field2" class="gather" name="email" type="text" size="30" tabindex="2" /></p>
  407. <% if model.nonCSS.selectionTel_check then %>
  408. <p><label for="field3"><%= model.nonCSS.selectionTel %></label>
  409. <input id="field3" class="gather" name="<%= model.nonCSS.selectionTel %>" type="text" size="30" tabindex="3" /></p><% end %>
  410. <% if model.nonCSS.selectionURL_check then %>
  411. <p><label for="field4"><%= model.nonCSS.selectionURL %></label>
  412. <input id="field4" class="gather" name="<%= model.nonCSS.selectionURL %>" type="text" size="30" tabindex="4" /></p><% end %>
  413. <p><label><%= model.nonCSS.selectionComments %></label>
  414. <textarea name="<%= model.nonCSS.selectionComments %>" id="comments" tabindex="5" rows="1" cols="1"></textarea></p>
  415. <p class="submitbutton" style="margin-bottom:0 !important;"><input type="submit" class="submit" value="<%= model.nonCSS.selectionSubmit %>" /></p>
  416. </fieldset>
  417. </div>
  418. </form>
  419. <script type="text/javascript">
  420. var field1 = new LiveValidation( 'field1', {onlyOnSubmit: true } );
  421. field1.add( Validate.Presence, { failureMessage: "<%= model.nonCSS.selectionWarning %>" } );
  422. var field2 = new LiveValidation( 'field2', {onlyOnSubmit: true } );
  423. field2.add( Validate.Email, { failureMessage: "<%= model.nonCSS.emailWarning %>" } );
  424. field2.add( Validate.Presence, { failureMessage: "<%= model.nonCSS.selectionWarning %>" } );
  425. <% if model.nonCSS.selectionTel_check then %>
  426. var field3 = new LiveValidation( 'field3', {onlyOnSubmit: true } );
  427. field3.add( Validate.Presence, { failureMessage: "<%= model.nonCSS.selectionWarning %>" } );<% end %>
  428. </script>
  429. <% end %>
  430. </div>
  431. <div class="clear"></div>
  432. </div> <!-- /page_content home -->
  433. <% elseif model.nonCSS.contactConfiguration == "copyupimagedown" then %>
  434. <div id="page_content" class="contact">
  435. <div class="copy" style="width: <%= math.floor( model.nonCSS.contactWidth - ( model.nonCSS.page_content_padding * 2 ) - ( model.nonCSS.page_content_border * 2 ) ) %>px;">
  436. <% if model.nonCSS.includeContactHeading1 then %><h2 id="metadata.contactHeading1.value" class="first heading heading_contact"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.contactHeading1.value');"<% end %>>$model.metadata.contactHeading1.value</h2><% end %>
  437. <% if model.nonCSS.includeContactParagraph1 then %><p id="nonCSS.contactParagraph1.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.contactParagraph1.value');"<% end %>>$model.metadata.contactParagraph1.value</p><% end %>
  438. <% if model.nonCSS.includeContactHeading2 then %><h2 id="metadata.contactHeading2.value" class="subsequent heading heading_contact"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.contactHeading2.value');"<% end %>>$model.metadata.contactHeading2.value</h2><% end %>
  439. <% if model.nonCSS.includeContactParagraph2 then %><p id="nonCSS.contactParagraph2.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.contactParagraph2.value');"<% end %>>$model.metadata.contactParagraph2.value</p><% end %>
  440. <% if model.nonCSS.contactForm then %>
  441. <% if model.nonCSS.formtoemail_remote then %><form action="http://formtoemailremote.com/user_forms.php" method="post"><% else %><form action="$theRoot/resources/FormToEmail.php" method="post"><% end %>
  442. <div id="inputfields">
  443. <fieldset>
  444. <input name="galleryTitle" type="hidden" value="$model.metadata.htmlTitle.value" size="30" />
  445. <% if model.nonCSS.formtoemail_remote then %>
  446. <input type="hidden" name="user_id" value="<%= model.nonCSS.formtoemail_userid %>">
  447. <input type="hidden" name="form_id" value="<%= model.nonCSS.formtoemail_formid %>">
  448. <% end %>
  449. <p style="margin-top:0 !important;"><label for="field1"><%= model.nonCSS.selectionName %></label>
  450. <input id="field1" class="gather" name="name" type="text" size="30" tabindex="1" /></p>
  451. <p><label for="field2"><%= model.nonCSS.selectionEmail %></label>
  452. <input id="field2" class="gather" name="email" type="text" size="30" tabindex="2" /></p>
  453. <% if model.nonCSS.selectionTel_check then %>
  454. <p><label for="field3"><%= model.nonCSS.selectionTel %></label>
  455. <input id="field3" class="gather" name="<%= model.nonCSS.selectionTel %>" type="text" size="30" tabindex="3" /></p><% end %>
  456. <% if model.nonCSS.selectionURL_check then %>
  457. <p><label for="field4"><%= model.nonCSS.selectionURL %></label>
  458. <input id="field4" class="gather" name="<%= model.nonCSS.selectionURL %>" type="text" size="30" tabindex="4" /></p><% end %>
  459. <p><label><%= model.nonCSS.selectionComments %></label>
  460. <textarea name="<%= model.nonCSS.selectionComments %>" id="comments" tabindex="5" rows="1" cols="1"></textarea></p>
  461. <p class="submitbutton" style="margin-bottom:0 !important;"><input type="submit" class="submit" value="<%= model.nonCSS.selectionSubmit %>" /></p>
  462. </fieldset>
  463. </div>
  464. </form>
  465. <script type="text/javascript">
  466. var field1 = new LiveValidation( 'field1', {onlyOnSubmit: true } );
  467. field1.add( Validate.Presence, { failureMessage: "<%= model.nonCSS.selectionWarning %>" } );
  468. var field2 = new LiveValidation( 'field2', {onlyOnSubmit: true } );
  469. field2.add( Validate.Email, { failureMessage: "<%= model.nonCSS.emailWarning %>" } );
  470. field2.add( Validate.Presence, { failureMessage: "<%= model.nonCSS.selectionWarning %>" } );
  471. <% if model.nonCSS.selectionTel_check then %>
  472. var field3 = new LiveValidation( 'field3', {onlyOnSubmit: true } );
  473. field3.add( Validate.Presence, { failureMessage: "<%= model.nonCSS.selectionWarning %>" } );<% end %>
  474. </script>
  475. <% end %>
  476. </div>
  477. <img src="photos/<%= getImage(3).exportFilename %>.jpg" class="page_img" width="<%= getImage(3).renditions.photos.width %>" height="<%= getImage(3).renditions.photos.height %>" alt="<%= getImage(3).metadata.alt %>" />
  478. <div class="clear"></div>
  479. </div> <!-- /page_content home -->
  480. <% elseif model.nonCSS.contactConfiguration == "noimagecopycenter" then %>
  481. <div id="page_content" class="contact">
  482. <div class="copy" style="width: <%= math.floor( model.nonCSS.contactWidth - ( model.nonCSS.page_content_padding * 2 ) - ( model.nonCSS.page_content_border * 2 ) ) %>px;">
  483. <% if model.nonCSS.includeContactHeading1 then %><h2 id="metadata.contactHeading1.value" class="first heading heading_contact"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.contactHeading1.value');"<% end %>>$model.metadata.contactHeading1.value</h2><% end %>
  484. <% if model.nonCSS.includeContactParagraph1 then %><p id="nonCSS.contactParagraph1.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.contactParagraph1.value');"<% end %>>$model.metadata.contactParagraph1.value</p><% end %>
  485. <% if model.nonCSS.includeContactHeading2 then %><h2 id="metadata.contactHeading2.value" class="subsequent heading heading_contact"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.contactHeading2.value');"<% end %>>$model.metadata.contactHeading2.value</h2><% end %>
  486. <% if model.nonCSS.includeContactParagraph2 then %><p id="nonCSS.contactParagraph2.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.contactParagraph2.value');"<% end %>>$model.metadata.contactParagraph2.value</p><% end %>
  487. <% if model.nonCSS.contactForm then %>
  488. <% if model.nonCSS.formtoemail_remote then %><form action="http://formtoemailremote.com/user_forms.php" method="post"><% else %><form action="$theRoot/resources/FormToEmail.php" method="post"><% end %>
  489. <div id="inputfields">
  490. <fieldset>
  491. <input name="galleryTitle" type="hidden" value="$model.metadata.htmlTitle.value" size="30" />
  492. <% if model.nonCSS.formtoemail_remote then %>
  493. <input type="hidden" name="user_id" value="<%= model.nonCSS.formtoemail_userid %>">
  494. <input type="hidden" name="form_id" value="<%= model.nonCSS.formtoemail_formid %>">
  495. <% end %>
  496. <p style="margin-top:0 !important;"><label for="field1"><%= model.nonCSS.selectionName %></label>
  497. <input id="field1" class="gather" name="name" type="text" size="30" tabindex="1" /></p>
  498. <p><label for="field2"><%= model.nonCSS.selectionEmail %></label>
  499. <input id="field2" class="gather" name="email" type="text" size="30" tabindex="2" /></p>
  500. <% if model.nonCSS.selectionTel_check then %>
  501. <p><label for="field3"><%= model.nonCSS.selectionTel %></label>
  502. <input id="field3" class="gather" name="<%= model.nonCSS.selectionTel %>" type="text" size="30" tabindex="3" /></p><% end %>
  503. <% if model.nonCSS.selectionURL_check then %>
  504. <p><label for="field4"><%= model.nonCSS.selectionURL %></label>
  505. <input id="field4" class="gather" name="<%= model.nonCSS.selectionURL %>" type="text" size="30" tabindex="4" /></p><% end %>
  506. <p><label><%= model.nonCSS.selectionComments %></label>
  507. <textarea name="<%= model.nonCSS.selectionComments %>" id="comments" tabindex="5" rows="1" cols="1"></textarea></p>
  508. <p class="submitbutton" style="margin-bottom:0 !important;"><input type="submit" class="submit" value="<%= model.nonCSS.selectionSubmit %>" /></p>
  509. </fieldset>
  510. </div>
  511. </form>
  512. <script type="text/javascript">
  513. var field1 = new LiveValidation( 'field1', {onlyOnSubmit: true } );
  514. field1.add( Validate.Presence, { failureMessage: "<%= model.nonCSS.selectionWarning %>" } );
  515. var field2 = new LiveValidation( 'field2', {onlyOnSubmit: true } );
  516. field2.add( Validate.Email, { failureMessage: "<%= model.nonCSS.emailWarning %>" } );
  517. field2.add( Validate.Presence, { failureMessage: "<%= model.nonCSS.selectionWarning %>" } );
  518. <% if model.nonCSS.selectionTel_check then %>
  519. var field3 = new LiveValidation( 'field3', {onlyOnSubmit: true } );
  520. field3.add( Validate.Presence, { failureMessage: "<%= model.nonCSS.selectionWarning %>" } );<% end %>
  521. </script>
  522. <% end %>
  523. </div>
  524. <div class="clear"></div>
  525. </div> <!-- /page_content home -->
  526. <% end %>
  527. </div> <!-- /gallery -->
  528. <% --[[ Include the page footer ]] %>
  529. <% if model.nonCSS.includeFooter then %>
  530. <div id="footer"<% if model.nonCSS.transparentBackground then %> style="background-color: transparent !important;"<% end %>>
  531. <div id="footer_content">
  532. <% if model.nonCSS.footerNav then %><p class="footer_text footer_nav" style="margin-bottom: 1em !important;"><% if model.nonCSS.menuItem1 then %><a href="$model.metadata.menuItem1.link" id="metadata.menuItem1.value" style="padding-left: 0 !important;">$model.metadata.menuItem1.value</a> <%= model.metadata.menuDivider.value %> <% end %><% if model.nonCSS.menuItem2 then %><a href="$model.metadata.menuItem2.link" id="metadata.menuItem2.value">$model.metadata.menuItem2.value</a> <%= model.metadata.menuDivider.value %> <% end %><% if model.nonCSS.menuItem3 then %><a href="$model.metadata.menuItem3.link" id="metadata.menuItem3.value">$model.metadata.menuItem3.value</a> <%= model.metadata.menuDivider.value %> <% end %><% if model.nonCSS.menuItem4 then %><a href="$model.metadata.menuItem4.link" id="metadata.menuItem4.value">$model.metadata.menuItem4.value</a> <%= model.metadata.menuDivider.value %> <% end %><% if model.nonCSS.menuItem5 then %><a href="$model.metadata.menuItem5.link" id="metadata.menuItem5.value">$model.metadata.menuItem5.value</a> <%= model.metadata.menuDivider.value %> <% end %><%= model.metadata.customMenu.value %><% if model.nonCSS.contactLink then %><a href="$model.metadata.contact.link" id="metadata.contact.value" style="padding-right: 0 !important;">$model.metadata.contact.value</a><% end %></p><% end %>
  533. <p<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.footer.text');"<% end %> class="footer_text">$model.metadata.footer.text
  534. <% if model.nonCSS.ttgCredit then %><br />Powered by <a href="http://lr.theturninggate.net" onclick="window.open(this.href); return false;">The Turning Gate (TTG)</a>.<% end %>
  535. </p>
  536. </div>
  537. </div>
  538. <% end %>
  539. </div> <!-- /wrapper -->
  540. <% if mode == 'publish' then %>
  541. <%= model.metadata.script.footer %>
  542. <% if model.nonCSS.disablerightclick then %>
  543. <script type="text/javascript">
  544. $(document).ready(function(){
  545. $(document).bind("contextmenu",function(e){
  546. return false;
  547. });
  548. });
  549. </script><% end %>
  550. <% if model.nonCSS.googleAnalytics then %>
  551. <script type="text/javascript">
  552. var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  553. document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  554. </script>
  555. <script type="text/javascript">
  556. try {
  557. var pageTracker = _gat._getTracker("<%= model.metadata.googleAnalytics.id %>");
  558. pageTracker._trackPageview();
  559. } catch(err) {}
  560. </script>
  561. <% end %>
  562. <% end %>
  563. <script src="$theRoot/resources/js/jquery.elastic-1.6.js" type="text/javascript" charset="utf-8"></script>
  564. <script type="text/javascript">
  565. $(document).ready(function(){
  566. $('textarea').elastic();
  567. });
  568. </script>
  569. </body>
  570. </html>
  1. --[[ Include the page head]] write( [[
  2. ]] )
  3. --[[ Define some variables to make locating other resources easier
  4. firstPage was defined in our manifest.]]
  5. local theRoot = "."
  6. write( [[
  7. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  8. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="]] )write( model.metadata.html.lang )write( [[" dir="]] )write( model.metadata.html.dir )write( [[">
  9. <head>
  10. <meta http-equiv="content-type" content="text/html; charset=]] )write( model.nonCSS.charset )write( [[" />
  11. ]] ) if model.nonCSS.metaTags then write( [[<meta name="author" content="]] )write( model.metadata.metaAuthor.value )write( [[" />
  12. <meta name="description" content="]] )write( model.metadata.metaDescription.value )write( [[" />
  13. <meta name="keywords" content="]] )write( model.metadata.metaKeywords.value )write( [[" />
  14. <meta name="generator" content="Adobe Photoshop Lightroom, TTG LR Pages" />]] ) end write( [[
  15. <title>]] )write( model.metadata.htmlTitle.value )write( [[</title>
  16. <link rel="shortcut icon" type="image/ico" href="]] )write( theRoot )write( [[/resources/images/favicon.ico" />
  17. <link rel="stylesheet" type="text/css" media="screen" href="]] )write( theRoot )write( [[/resources/css/gallery.css" />
  18. <script type="text/javascript" src="]] )write( theRoot )write( [[/resources/js/swfobject.js"></script>
  19. <script type="text/javascript" src="]] )write( theRoot )write( [[/resources/js/livevalidation.js"></script>
  20. <script type="text/javascript" src="]] )write( theRoot )write( [[/resources/js/jquery-1.4.2.min.js"></script>
  21. <script type="text/javascript" src="]] )write( theRoot )write( [[/resources/js/jquery.jfade.1.0.min.js"></script>
  22. ]] ) if model.nonCSS.gridType == 'iconic' then if model.nonCSS.captifyAnimation == 'never' then else write( [[<script type="text/javascript" src="]] )write( theRoot )write( [[/resources/js/captify.tiny.js"></script>]] ) end end write( [[
  23. ]] ) if model.nonCSS.home_galleryview then write( [[<link rel="stylesheet" type="text/css" media="screen" href="]] )write( theRoot )write( [[/resources/galleryview/galleryview.css" />
  24. <script type="text/javascript" src="]] )write( theRoot )write( [[/resources/galleryview/jquery.galleryview-2.1.1-pack.js"></script>
  25. <script type="text/javascript" src="]] )write( theRoot )write( [[/resources/galleryview/jquery.timers-1.2.js"></script>]] ) end write( [[
  26. ]] ) if model.nonCSS.indexAction == 'shadowbox' then write( [[
  27. <script type="text/javascript" src="]] )write( theRoot )write( [[/resources/shadowbox/shadowbox.js"></script>
  28. <script type="text/javascript">
  29. var options = {
  30. overlayColor: ']] )write( model.nonCSS.shadowboxOverlayWebColor )write( [[',
  31. overlayOpacity: 0.]] )write( model.nonCSS.shadowboxOverlayOpacity )write( [[,
  32. players: ]] .. "[" .. [['img','swf','flv','qt','wmp','iframe','html']] .. "]" .. [[
  33. };
  34. Shadowbox.init(options);
  35. </script>
  36. <link rel="stylesheet" type="text/css" media="screen" href="]] )write( theRoot )write( [[/resources/shadowbox/shadowbox.css" />
  37. <style type="text/css">
  38. #sb-nav-close { background-image:url(]] )write( theRoot )write( [[/resources/images/]] )write( model.nonCSS.shadowbox_controls )write( [[.png) !important; background-position: -64px 0; }
  39. #sb-nav-next { background-image:url(]] )write( theRoot )write( [[/resources/images/]] )write( model.nonCSS.shadowbox_controls )write( [[.png) !important; background-position: -32px 0; }
  40. #sb-nav-previous { background-image:url(]] )write( theRoot )write( [[/resources/images/]] )write( model.nonCSS.shadowbox_controls )write( [[.png) !important; background-position: -48px 0; }
  41. #sb-nav-play { background-image:url(]] )write( theRoot )write( [[/resources/images/]] )write( model.nonCSS.shadowbox_controls )write( [[.png) !important; background-position: -16px 0; }
  42. #sb-nav-pause { background-image:url(]] )write( theRoot )write( [[/resources/images/]] )write( model.nonCSS.shadowbox_controls )write( [[.png) !important; background-position: 0 0; }
  43. </style>
  44. ]] ) end write( [[
  45. <script type="text/javascript">
  46. $(function(){
  47. $(".albumBox").jFade({
  48. trigger: "mouseover",
  49. property: 'background',
  50. start: ']] )write( model.nonCSS.albumBox_color_ag )write( [[',
  51. end: ']] )write( model.nonCSS.albumBox_color_onhover_ag )write( [[',
  52. steps: 20,
  53. duration: 15
  54. }).jFade({
  55. trigger: "mouseout",
  56. property: 'background',
  57. start: ']] )write( model.nonCSS.albumBox_color_onhover_ag )write( [[',
  58. end: ']] )write( model.nonCSS.albumBox_color_ag )write( [[',
  59. steps: 20,
  60. duration: 15
  61. });
  62. });
  63. </script>
  64. ]] ) if model.nonCSS.includeFooter then if model.nonCSS.sticktobottom then write( [[
  65. <script type="text/javascript">
  66. <!--
  67. function printViewportDimensions() {
  68. var viewportwidth = $(window).width();
  69. var viewportheight = window.innerHeight ? window.innerHeight : $(window).height();
  70. $('#wrapper').css('min-height', (viewportheight-]] )write( model.nonCSS.footerHeight )write( [[) + 'px');
  71. }
  72. printViewportDimensions();
  73. $(function() {
  74. printViewportDimensions();
  75. $(window).resize(function()
  76. {
  77. printViewportDimensions();
  78. });
  79. });
  80. //-->
  81. </script>
  82. ]] ) end end write( [[
  83. ]] ) if model.nonCSS.gridType == 'iconic' then if model.nonCSS.captifyAnimation == 'never' then else write( [[
  84. <script type="text/javascript">
  85. <!--
  86. $(function(){
  87. $('img.captify').captify({
  88. speedOver: 'fast',
  89. speedOut: 'normal',
  90. hideDelay: 500,
  91. animation: ']] )write( model.nonCSS.captifyAnimation )write( [[',
  92. prefix: '',
  93. opacity: '0.7',
  94. className: 'caption-]] )write( model.nonCSS.captifyPosition )write( [[',
  95. position: ']] )write( model.nonCSS.captifyPosition )write( [[',
  96. spanWidth: '100%'
  97. });
  98. });
  99. //-->
  100. </script>
  101. ]] ) end end write( [[
  102. <style type="text/css">
  103. ]] ) if mode == "preview" then write( [[#wrapper { min-height: 100%; }]] ) end write( [[
  104. #page_content {
  105. -moz-border-radius: ]] )write( model.nonCSS.page_content_corners )write( [[px;
  106. -webkit-border-radius: ]] )write( model.nonCSS.page_content_corners )write( [[px;
  107. }
  108. .albumBox]] ) if model.nonCSS.gridType == 'iconic' then write( [[, .albumBoxContent]] ) end write( [[ {
  109. background-color: #]] )write( model.nonCSS.albumBox_color_ag )write( [[;
  110. -moz-border-radius: ]] )write( model.nonCSS.albumBoxCorners )write( [[px;
  111. -webkit-border-radius: ]] )write( model.nonCSS.albumBoxCorners )write( [[px;
  112. }
  113. #inputfields {
  114. -moz-border-radius: ]] )write( model.nonCSS.selectionInputCorners )write( [[px;
  115. -webkit-border-radius: ]] )write( model.nonCSS.selectionInputCorners )write( [[px;
  116. }
  117. ]] ) if model.nonCSS.gridType == 'iconic' then write( [[
  118. ]] ) if model.nonCSS.captifyAnimation == 'never' then write( [[
  119. .albumBoxContent, img.captify {
  120. width: ]] )write( math.floor( model.nonCSS.albumBoxWidth - ( model.nonCSS.albumBoxBorderWidth * 2 ) ) )write( [[px;
  121. height: ]] )write( math.floor( model.nonCSS.albumBoxHeight - ( model.nonCSS.albumBoxBorderWidth * 2 ) ) )write( [[px;
  122. }
  123. .albumBoxContent {
  124. padding: 0 !important;
  125. }
  126. img.captify {
  127. opacity: 0; filter:alpha(opacity=0);
  128. }
  129. ]] ) else write( [[
  130. .caption-top, .caption-bottom {
  131. color: ]] )write( model.nonCSS.albumTitleColor )write( [[;
  132. padding: 0.5em;
  133. font-weight: ]] )write( model.appearance.albumTitle[ 'font-weight' ] )write( [[;
  134. font-size: ]] )write( model.nonCSS.albumTitle_fontsize )write( [[px;
  135. font-family: ]] )write( model.appearance.albumTitle[ 'font-family' ] )write( [[;
  136. border: 0px solid ]] )write( model.nonCSS.albumTitleBorderColor )write( [[;
  137. background: ]] )write( model.nonCSS.albumTitleBGColor )write( [[;
  138. text-shadow: 1px 1px 0 ]] )write( model.nonCSS.albumTitleShadowColor )write( [[;
  139. }
  140. .caption-top {
  141. border-width: 0px 0px ]] )write( model.nonCSS.albumTitle_border )write( [[px 0px;
  142. }
  143. .caption-bottom {
  144. border-width: ]] )write( model.nonCSS.albumTitle_border )write( [[px 0px 0px 0px;
  145. }
  146. .caption a, .caption a {
  147. border: 0 none;
  148. text-decoration: none;
  149. background: #000000;
  150. padding: 0.3em;
  151. }
  152. .caption a:hover, .caption a:hover {
  153. background: #202020;
  154. }
  155. .albumBoxContent, img.captify {
  156. width: ]] )write( math.floor( model.nonCSS.albumBoxWidth - ( model.nonCSS.albumBoxBorderWidth * 2 ) ) )write( [[px;
  157. height: ]] )write( math.floor( model.nonCSS.albumBoxHeight - ( model.nonCSS.albumBoxBorderWidth * 2 ) ) )write( [[px;
  158. }
  159. .albumBoxContent {
  160. padding: 0 !important;
  161. }
  162. img.captify {
  163. opacity: 0; filter:alpha(opacity=0);
  164. }
  165. ]] ) end end write( [[
  166. ]] ) if model.nonCSS.home_galleryview then write( [[
  167. /*
  168. -- GALLERYVIEW-2 -- */
  169. #gallery { visibility: hidden; }
  170. .gallery {
  171. margin: 0 auto;
  172. background-color: ]] )write( model.nonCSS.galleryviewBGC )write( [[;
  173. border-color: ]] )write( model.nonCSS.galleryviewBC )write( [[;
  174. ]] ) if model.nonCSS.homeConfiguration == "imageleftcopyright" then write( [[float: left;]] ) elseif model.nonCSS.homeConfiguration == "copyleftimageright" then write( [[float: right;]] ) end write( [[
  175. }
  176. .loader {
  177. background-color: ]] )write( model.nonCSS.galleryviewBGC )write( [[;
  178. }
  179. .panel {
  180. margin: 0 auto;
  181. text-align: center;
  182. }
  183. .panel img {
  184. left: 0 !important;
  185. }
  186. .panel .overlay-background {
  187. background: ]] )write( model.nonCSS.overlaybackground )write( [[;
  188. }
  189. .panel .panel-overlay {
  190. color: ]] )write( model.nonCSS.overlaytext )write( [[;
  191. }
  192. .panel .panel-overlay a {
  193. color: ]] )write( model.nonCSS.overlayhyperlink )write( [[;
  194. }
  195. .panel .panel-overlay, .panel .overlay-background {
  196. padding: 10px 5px 5px;
  197. height: ]] )write( model.nonCSS.overlayHeight )write( [[px;
  198. text-align: ]] )write( model.appearance[ 'overlay_text' ][ 'text-align' ] )write( [[;
  199. }
  200. #page_content p.overlay_title {
  201. margin: 0 0 4px 0 !important;
  202. padding: 0;
  203. line-height: 1em;
  204. font-size: ]] )write( model.nonCSS.overlayTitle )write( [[px;
  205. }
  206. #page_content p.overlay_caption {
  207. margin: 0 !important;
  208. padding: 0;
  209. line-height: 1em;
  210. font-size: ]] )write( model.nonCSS.overlayCaption )write( [[px;
  211. }
  212. .frame .img_wrap {
  213. border: 1px solid ]] )write( model.nonCSS.galleryviewframesBC )write( [[;
  214. }
  215. .frame.current .img_wrap {
  216. border-color: ]] )write( model.nonCSS.galleryviewframecurrentBC )write( [[;
  217. }
  218. .pointer {
  219. border-color: ]] )write( model.nonCSS.galleryviewframecurrentBC )write( [[;
  220. }
  221. ]] ) end write( [[
  222. ]] ) if model.nonCSS.sticktobottom then write( [[
  223. #footer { position: absolute; bottom: 0; left: 0; }]] ) end write( [[
  224. </style>
  225. ]] ) if mode == 'publish' then write( [[
  226. <!-- compliance patch for microsoft browsers -->
  227. <!--]] .. "[" .. [[if lt IE 8]] .. "]" .. [[>
  228. <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
  229. <!]] .. "[" .. [[endif]] .. "]" .. [[-->
  230. ]] ) end write( [[
  231. ]] ) if mode == 'preview' then write( [[
  232. <script type="text/javascript">
  233. window.AgMode = "]] )write( mode )write( [[";
  234. window.AgOnLoad = function() {
  235. tellLightroomWhatImagesWeAreUsing();
  236. setActiveImageSize( "]] )write( mySize )write( [[" );
  237. ]] ) if image then write( [[
  238. callCallback( "showInPhotoBin", "]] )write( image.imageID )write( [[" );
  239. ]] ) end write( [[
  240. }
  241. </script>
  242. <script type="text/javascript" src="]] )write( theRoot )write( [[/resources_preview/js/live_update.js"></script>
  243. ]] ) end write( [[
  244. ]] )write( model.metadata.style.head )write( [[
  245. ]] ) if mode == "publish" then write( [[
  246. ]] )write( model.metadata.script.head )write( [[
  247. ]] ) end write( [[
  248. </head>
  249. <body id="contact">
  250. ]] ) --[[ Include the page header]] write( [[
  251. ]] )
  252. --[[ Define some variables to make locating other resources easier
  253. firstPage was defined in our manifest.]]
  254. local theRoot = "."
  255. write( [[
  256. <div id="wrapper">
  257. ]] ) if model.nonCSS.idplateLocation == "header" then write( [[
  258. <div id="header_container">
  259. <div id="header"]] ) if model.nonCSS.fixHeaderWidth then write( [[ style="width: ]] )write( model.nonCSS.fixedHeaderWidth )write( [[px !important;"]] ) end write( [[>
  260. <h1]] ) if model.nonCSS.idplate then write( [[ style="background-image: url(]] ) if model.nonCSS.shareResources then write( model.nonCSS.pathToResources )write( [[images/idplate.png]] ) else write( theRoot )write( [[/resources/images/idplate.png]] ) end write( [[); background-repeat: no-repeat; background-position: ]] )write( model.nonCSS.idplate_X )write( [[% ]] )write( model.nonCSS.idplate_Y )write( [[%;"]] ) end write( [[><a href="]] )write( model.metadata.headerlink.value )write( [["><span>]] )write( model.metadata.htmlTitle.value )write( [[</span></a></h1>
  261. </div> <!-- /header -->
  262. </div>
  263. <div id="menu">
  264. <div id="menuContent"]] ) if model.nonCSS.fixHeaderWidth then write( [[ style="width: ]] )write( model.nonCSS.fixedHeaderWidth )write( [[px !important;"]] ) end write( [[>
  265. <p style="margin-left: ]] )write( model.nonCSS.menuPaddingLeft )write( [[px !important; margin-right: ]] )write( model.nonCSS.menuPaddingRight )write( [[px !important;">]] ) if model.nonCSS.menuItem1 then write( [[<a href="]] )write( model.metadata.menuItem1.link )write( [[" id="metadata.menuItem1.value" class="menufirst">]] )write( model.metadata.menuItem1.value )write( [[</a> ]] )write( model.metadata.menuDivider.value )write( [[ ]] ) end if model.nonCSS.menuItem2 then write( [[<a href="]] ) if mode == 'preview' then write( [[galleryindex.html]] ) else write( [[galleryindex.php]] ) end write( [[" id="metadata.menuItem2.value">]] )write( model.metadata.menuItem2.value )write( [[</a> ]] )write( model.metadata.menuDivider.value )write( [[ ]] ) end if model.nonCSS.menuItem3 then write( [[<a href="]] )write( model.metadata.menuItem3.link )write( [[" id="metadata.menuItem3.value">]] )write( model.metadata.menuItem3.value )write( [[</a> ]] )write( model.metadata.menuDivider.value )write( [[ ]] ) end if model.nonCSS.menuItem4 then write( [[<a href="]] )write( model.metadata.menuItem4.link )write( [[" id="metadata.menuItem4.value">]] )write( model.metadata.menuItem4.value )write( [[</a> ]] )write( model.metadata.menuDivider.value )write( [[ ]] ) end if model.nonCSS.menuItem5 then write( [[<a href="]] )write( model.metadata.menuItem5.link )write( [[" id="metadata.menuItem5.value">]] )write( model.metadata.menuItem5.value )write( [[</a> ]] )write( model.metadata.menuDivider.value )write( [[ ]] ) end write( model.metadata.customMenu.value )write( [[<a href="]] )write( model.metadata.contact.link )write( [[" id="metadata.contact.value" class="menulast">]] )write( model.metadata.contact.value )write( [[</a></p>
  266. </div>
  267. </div> <!-- /menu -->
  268. ]] ) elseif model.nonCSS.idplateLocation == "menu" then write( [[
  269. <div id="header_container">
  270. <div id="header"]] ) if model.nonCSS.fixHeaderWidth then write( [[ style="width: ]] )write( model.nonCSS.fixedHeaderWidth )write( [[px !important;"]] ) end write( [[>
  271. </div> <!-- /header -->
  272. </div>
  273. <div id="menu">
  274. <div id="menuContent" ]] ) if model.nonCSS.idplate then write( [[
  275. style="]] ) if model.nonCSS.fixHeaderWidth then write( [[width: ]] )write( model.nonCSS.fixedHeaderWidth )write( [[px !important; ]] ) end write( [[background-image: url(]] ) if model.nonCSS.shareResources then write( model.nonCSS.pathToResources )write( [[images/idplate.png]] ) else write( theRoot )write( [[/resources/images/idplate.png]] ) end write( [[); background-repeat: no-repeat; background-position: ]] )write( model.nonCSS.idplate_X )write( [[% ]] )write( model.nonCSS.idplate_Y )write( [[%;"]] ) end write( [[>
  276. <p style="margin-left: ]] )write( model.nonCSS.menuPaddingLeft )write( [[px !important; margin-right: ]] )write( model.nonCSS.menuPaddingRight )write( [[px !important;">]] ) if model.nonCSS.menuItem1 then write( [[<a href="]] )write( model.metadata.menuItem1.link )write( [[" id="metadata.menuItem1.value" class="menufirst">]] )write( model.metadata.menuItem1.value )write( [[</a> ]] )write( model.metadata.menuDivider.value )write( [[ ]] ) end if model.nonCSS.menuItem2 then write( [[<a href="]] ) if mode == 'preview' then write( [[galleryindex.html]] ) else write( [[galleryindex.php]] ) end write( [[" id="metadata.menuItem2.value">]] )write( model.metadata.menuItem2.value )write( [[</a> ]] )write( model.metadata.menuDivider.value )write( [[ ]] ) end if model.nonCSS.menuItem3 then write( [[<a href="]] )write( model.metadata.menuItem3.link )write( [[" id="metadata.menuItem3.value">]] )write( model.metadata.menuItem3.value )write( [[</a> ]] )write( model.metadata.menuDivider.value )write( [[ ]] ) end if model.nonCSS.menuItem4 then write( [[<a href="]] )write( model.metadata.menuItem4.link )write( [[" id="metadata.menuItem4.value">]] )write( model.metadata.menuItem4.value )write( [[</a> ]] )write( model.metadata.menuDivider.value )write( [[ ]] ) end if model.nonCSS.menuItem5 then write( [[<a href="]] )write( model.metadata.menuItem5.link )write( [[" id="metadata.menuItem5.value">]] )write( model.metadata.menuItem5.value )write( [[</a> ]] )write( model.metadata.menuDivider.value )write( [[ ]] ) end write( model.metadata.customMenu.value )write( [[<a href="]] )write( model.metadata.contact.link )write( [[" id="metadata.contact.value" class="menulast">]] )write( model.metadata.contact.value )write( [[</a></p>
  277. </div>
  278. </div> <!-- /menu -->
  279. ]] ) elseif model.nonCSS.idplateLocation == "beneath" then write( [[
  280. <div id="menu" style="margin-bottom: 0 !important;">
  281. <div id="menuContent"]] ) if model.nonCSS.fixHeaderWidth then write( [[ style="width: ]] )write( model.nonCSS.fixedHeaderWidth )write( [[px !important;"]] ) end write( [[>
  282. <p style="margin-left: ]] )write( model.nonCSS.menuPaddingLeft )write( [[px !important; margin-right: ]] )write( model.nonCSS.menuPaddingRight )write( [[px !important;">]] ) if model.nonCSS.menuItem1 then write( [[<a href="]] )write( model.metadata.menuItem1.link )write( [[" id="metadata.menuItem1.value" class="menufirst">]] )write( model.metadata.menuItem1.value )write( [[</a> ]] )write( model.metadata.menuDivider.value )write( [[ ]] ) end if model.nonCSS.menuItem2 then write( [[<a href="]] ) if mode == 'preview' then write( [[galleryindex.html]] ) else write( [[galleryindex.php]] ) end write( [[" id="metadata.menuItem2.value">]] )write( model.metadata.menuItem2.value )write( [[</a> ]] )write( model.metadata.menuDivider.value )write( [[ ]] ) end if model.nonCSS.menuItem3 then write( [[<a href="]] )write( model.metadata.menuItem3.link )write( [[" id="metadata.menuItem3.value">]] )write( model.metadata.menuItem3.value )write( [[</a> ]] )write( model.metadata.menuDivider.value )write( [[ ]] ) end if model.nonCSS.menuItem4 then write( [[<a href="]] )write( model.metadata.menuItem4.link )write( [[" id="metadata.menuItem4.value">]] )write( model.metadata.menuItem4.value )write( [[</a> ]] )write( model.metadata.menuDivider.value )write( [[ ]] ) end if model.nonCSS.menuItem5 then write( [[<a href="]] )write( model.metadata.menuItem5.link )write( [[" id="metadata.menuItem5.value">]] )write( model.metadata.menuItem5.value )write( [[</a> ]] )write( model.metadata.menuDivider.value )write( [[ ]] ) end write( model.metadata.customMenu.value )write( [[<a href="]] )write( model.metadata.contact.link )write( [[" id="metadata.contact.value" class="menulast">]] )write( model.metadata.contact.value )write( [[</a></p>
  283. </div>
  284. </div> <!-- /menu -->
  285. <div id="header_container">
  286. <div id="header"]] ) if model.nonCSS.fixHeaderWidth then write( [[ style="width: ]] )write( model.nonCSS.fixedHeaderWidth )write( [[px !important;"]] ) end write( [[>
  287. <h1]] ) if model.nonCSS.idplate then write( [[ style="background-image: url(]] ) if model.nonCSS.shareResources then write( model.nonCSS.pathToResources )write( [[images/idplate.png]] ) else write( theRoot )write( [[/resources/images/idplate.png]] ) end write( [[); background-repeat: no-repeat; background-position: ]] )write( model.nonCSS.idplate_X )write( [[% ]] )write( model.nonCSS.idplate_Y )write( [[%;"]] ) end write( [[><a href="]] )write( model.metadata.headerlink.value )write( [["><span>]] )write( model.metadata.htmlTitle.value )write( [[</span></a></h1>
  288. </div> <!-- /header -->
  289. </div>
  290. ]] ) end write( [[
  291. <div id="page">
  292. ]] ) if model.nonCSS.contactConfiguration == "imageleftcopyright" then write( [[
  293. <div id="page_content" class="contact">
  294. <img src="photos/]] )write( getImage(3).exportFilename )write( [[.jpg" class="page_img" width="]] )write( getImage(3).renditions.photos.width )write( [[" height="]] )write( getImage(3).renditions.photos.height )write( [[" alt="]] )write( getImage(3).metadata.alt )write( [[" style="float:left;" />
  295. <div class="copy" style="float:right; width: ]] )write( math.floor( model.nonCSS.contactWidth - ( model.nonCSS.page_content_padding * 2 ) - ( model.nonCSS.page_content_border * 2 ) - model.nonCSS.spacing - ( ( model.nonCSS.imagePadding + model.nonCSS.imageBorderWidth ) * 2 ) - getImage(3).renditions.photos.width ) )write( [[px;">
  296. ]] ) if model.nonCSS.includeContactHeading1 then write( [[<h2 id="metadata.contactHeading1.value" class="first heading heading_contact"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.contactHeading1.value');"]] ) end write( [[>]] )write( model.metadata.contactHeading1.value )write( [[</h2>]] ) end write( [[
  297. ]] ) if model.nonCSS.includeContactParagraph1 then write( [[<p id="nonCSS.contactParagraph1.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.contactParagraph1.value');"]] ) end write( [[>]] )write( model.metadata.contactParagraph1.value )write( [[</p>]] ) end write( [[
  298. ]] ) if model.nonCSS.includeContactHeading2 then write( [[<h2 id="metadata.contactHeading2.value" class="subsequent heading heading_contact"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.contactHeading2.value');"]] ) end write( [[>]] )write( model.metadata.contactHeading2.value )write( [[</h2>]] ) end write( [[
  299. ]] ) if model.nonCSS.includeContactParagraph2 then write( [[<p id="nonCSS.contactParagraph2.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.contactParagraph2.value');"]] ) end write( [[>]] )write( model.metadata.contactParagraph2.value )write( [[</p>]] ) end write( [[
  300. ]] ) if model.nonCSS.contactForm then write( [[
  301. ]] ) if model.nonCSS.formtoemail_remote then write( [[<form action="http://formtoemailremote.com/user_forms.php" method="post">]] ) else write( [[<form action="]] )write( theRoot )write( [[/resources/FormToEmail.php" method="post">]] ) end write( [[
  302. <div id="inputfields">
  303. <fieldset>
  304. <input name="galleryTitle" type="hidden" value="]] )write( model.metadata.htmlTitle.value )write( [[" size="30" />
  305. ]] ) if model.nonCSS.formtoemail_remote then write( [[
  306. <input type="hidden" name="user_id" value="]] )write( model.nonCSS.formtoemail_userid )write( [[">
  307. <input type="hidden" name="form_id" value="]] )write( model.nonCSS.formtoemail_formid )write( [[">
  308. ]] ) end write( [[
  309. <p style="margin-top:0 !important;"><label for="field1">]] )write( model.nonCSS.selectionName )write( [[</label>
  310. <input id="field1" class="gather" name="name" type="text" size="30" tabindex="1" /></p>
  311. <p><label for="field2">]] )write( model.nonCSS.selectionEmail )write( [[</label>
  312. <input id="field2" class="gather" name="email" type="text" size="30" tabindex="2" /></p>
  313. ]] ) if model.nonCSS.selectionTel_check then write( [[
  314. <p><label for="field3">]] )write( model.nonCSS.selectionTel )write( [[</label>
  315. <input id="field3" class="gather" name="]] )write( model.nonCSS.selectionTel )write( [[" type="text" size="30" tabindex="3" /></p>]] ) end write( [[
  316. ]] ) if model.nonCSS.selectionURL_check then write( [[
  317. <p><label for="field4">]] )write( model.nonCSS.selectionURL )write( [[</label>
  318. <input id="field4" class="gather" name="]] )write( model.nonCSS.selectionURL )write( [[" type="text" size="30" tabindex="4" /></p>]] ) end write( [[
  319. <p><label>]] )write( model.nonCSS.selectionComments )write( [[</label>
  320. <textarea name="]] )write( model.nonCSS.selectionComments )write( [[" id="comments" tabindex="5" rows="1" cols="1"></textarea></p>
  321. <p class="submitbutton" style="margin-bottom:0 !important;"><input type="submit" class="submit" value="]] )write( model.nonCSS.selectionSubmit )write( [[" /></p>
  322. </fieldset>
  323. </div>
  324. </form>
  325. <script type="text/javascript">
  326. var field1 = new LiveValidation( 'field1', {onlyOnSubmit: true } );
  327. field1.add( Validate.Presence, { failureMessage: "]] )write( model.nonCSS.selectionWarning )write( [[" } );
  328. var field2 = new LiveValidation( 'field2', {onlyOnSubmit: true } );
  329. field2.add( Validate.Email, { failureMessage: "]] )write( model.nonCSS.emailWarning )write( [[" } );
  330. field2.add( Validate.Presence, { failureMessage: "]] )write( model.nonCSS.selectionWarning )write( [[" } );
  331. ]] ) if model.nonCSS.selectionTel_check then write( [[
  332. var field3 = new LiveValidation( 'field3', {onlyOnSubmit: true } );
  333. field3.add( Validate.Presence, { failureMessage: "]] )write( model.nonCSS.selectionWarning )write( [[" } );]] ) end write( [[
  334. </script>
  335. ]] ) end write( [[
  336. </div>
  337. <div class="clear"></div>
  338. </div> <!-- /page_content home -->
  339. ]] ) elseif model.nonCSS.contactConfiguration == "copyleftimageright" then write( [[
  340. <div id="page_content" class="contact">
  341. <img src="photos/]] )write( getImage(3).exportFilename )write( [[.jpg" class="page_img" width="]] )write( getImage(3).renditions.photos.width )write( [[" height="]] )write( getImage(3).renditions.photos.height )write( [[" alt="]] )write( getImage(3).metadata.alt )write( [[" style="float:right;" />
  342. <div class="copy" style="float:left; width: ]] )write( math.floor( model.nonCSS.contactWidth - ( model.nonCSS.page_content_padding * 2 ) - ( model.nonCSS.page_content_border * 2 ) - model.nonCSS.spacing - ( ( model.nonCSS.imagePadding + model.nonCSS.imageBorderWidth ) * 2 ) - getImage(3).renditions.photos.width ) )write( [[px;">
  343. ]] ) if model.nonCSS.includeContactHeading1 then write( [[<h2 id="metadata.contactHeading1.value" class="first heading heading_contact"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.contactHeading1.value');"]] ) end write( [[>]] )write( model.metadata.contactHeading1.value )write( [[</h2>]] ) end write( [[
  344. ]] ) if model.nonCSS.includeContactParagraph1 then write( [[<p id="nonCSS.contactParagraph1.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.contactParagraph1.value');"]] ) end write( [[>]] )write( model.metadata.contactParagraph1.value )write( [[</p>]] ) end write( [[
  345. ]] ) if model.nonCSS.includeContactHeading2 then write( [[<h2 id="metadata.contactHeading2.value" class="subsequent heading heading_contact"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.contactHeading2.value');"]] ) end write( [[>]] )write( model.metadata.contactHeading2.value )write( [[</h2>]] ) end write( [[
  346. ]] ) if model.nonCSS.includeContactParagraph2 then write( [[<p id="nonCSS.contactParagraph2.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.contactParagraph2.value');"]] ) end write( [[>]] )write( model.metadata.contactParagraph2.value )write( [[</p>]] ) end write( [[
  347. ]] ) if model.nonCSS.contactForm then write( [[
  348. ]] ) if model.nonCSS.formtoemail_remote then write( [[<form action="http://formtoemailremote.com/user_forms.php" method="post">]] ) else write( [[<form action="]] )write( theRoot )write( [[/resources/FormToEmail.php" method="post">]] ) end write( [[
  349. <div id="inputfields">
  350. <fieldset>
  351. <input name="galleryTitle" type="hidden" value="]] )write( model.metadata.htmlTitle.value )write( [[" size="30" />
  352. ]] ) if model.nonCSS.formtoemail_remote then write( [[
  353. <input type="hidden" name="user_id" value="]] )write( model.nonCSS.formtoemail_userid )write( [[">
  354. <input type="hidden" name="form_id" value="]] )write( model.nonCSS.formtoemail_formid )write( [[">
  355. ]] ) end write( [[
  356. <p style="margin-top:0 !important;"><label for="field1">]] )write( model.nonCSS.selectionName )write( [[</label>
  357. <input id="field1" class="gather" name="name" type="text" size="30" tabindex="1" /></p>
  358. <p><label for="field2">]] )write( model.nonCSS.selectionEmail )write( [[</label>
  359. <input id="field2" class="gather" name="email" type="text" size="30" tabindex="2" /></p>
  360. ]] ) if model.nonCSS.selectionTel_check then write( [[
  361. <p><label for="field3">]] )write( model.nonCSS.selectionTel )write( [[</label>
  362. <input id="field3" class="gather" name="]] )write( model.nonCSS.selectionTel )write( [[" type="text" size="30" tabindex="3" /></p>]] ) end write( [[
  363. ]] ) if model.nonCSS.selectionURL_check then write( [[
  364. <p><label for="field4">]] )write( model.nonCSS.selectionURL )write( [[</label>
  365. <input id="field4" class="gather" name="]] )write( model.nonCSS.selectionURL )write( [[" type="text" size="30" tabindex="4" /></p>]] ) end write( [[
  366. <p><label>]] )write( model.nonCSS.selectionComments )write( [[</label>
  367. <textarea name="]] )write( model.nonCSS.selectionComments )write( [[" id="comments" tabindex="5" rows="1" cols="1"></textarea></p>
  368. <p class="submitbutton" style="margin-bottom:0 !important;"><input type="submit" class="submit" value="]] )write( model.nonCSS.selectionSubmit )write( [[" /></p>
  369. </fieldset>
  370. </div>
  371. </form>
  372. <script type="text/javascript">
  373. var field1 = new LiveValidation( 'field1', {onlyOnSubmit: true } );
  374. field1.add( Validate.Presence, { failureMessage: "]] )write( model.nonCSS.selectionWarning )write( [[" } );
  375. var field2 = new LiveValidation( 'field2', {onlyOnSubmit: true } );
  376. field2.add( Validate.Email, { failureMessage: "]] )write( model.nonCSS.emailWarning )write( [[" } );
  377. field2.add( Validate.Presence, { failureMessage: "]] )write( model.nonCSS.selectionWarning )write( [[" } );
  378. ]] ) if model.nonCSS.selectionTel_check then write( [[
  379. var field3 = new LiveValidation( 'field3', {onlyOnSubmit: true } );
  380. field3.add( Validate.Presence, { failureMessage: "]] )write( model.nonCSS.selectionWarning )write( [[" } );]] ) end write( [[
  381. </script>
  382. ]] ) end write( [[
  383. </div>
  384. <div class="clear"></div>
  385. </div> <!-- /page_content home -->
  386. ]] ) elseif model.nonCSS.contactConfiguration == "imageupcopydown" then write( [[
  387. <div id="page_content" class="contact">
  388. <img src="photos/]] )write( getImage(3).exportFilename )write( [[.jpg" class="page_img" width="]] )write( getImage(3).renditions.photos.width )write( [[" height="]] )write( getImage(3).renditions.photos.height )write( [[" alt="]] )write( getImage(3).metadata.alt )write( [[" style="margin: 0 0 20px 0 !important;" />
  389. <div class="copy" style="width: ]] )write( math.floor( model.nonCSS.contactWidth - ( model.nonCSS.page_content_padding * 2 ) - ( model.nonCSS.page_content_border * 2 ) ) )write( [[px;">
  390. ]] ) if model.nonCSS.includeContactHeading1 then write( [[<h2 id="metadata.contactHeading1.value" class="first heading heading_contact"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.contactHeading1.value');"]] ) end write( [[>]] )write( model.metadata.contactHeading1.value )write( [[</h2>]] ) end write( [[
  391. ]] ) if model.nonCSS.includeContactParagraph1 then write( [[<p id="nonCSS.contactParagraph1.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.contactParagraph1.value');"]] ) end write( [[>]] )write( model.metadata.contactParagraph1.value )write( [[</p>]] ) end write( [[
  392. ]] ) if model.nonCSS.includeContactHeading2 then write( [[<h2 id="metadata.contactHeading2.value" class="subsequent heading heading_contact"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.contactHeading2.value');"]] ) end write( [[>]] )write( model.metadata.contactHeading2.value )write( [[</h2>]] ) end write( [[
  393. ]] ) if model.nonCSS.includeContactParagraph2 then write( [[<p id="nonCSS.contactParagraph2.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.contactParagraph2.value');"]] ) end write( [[>]] )write( model.metadata.contactParagraph2.value )write( [[</p>]] ) end write( [[
  394. ]] ) if model.nonCSS.contactForm then write( [[
  395. ]] ) if model.nonCSS.formtoemail_remote then write( [[<form action="http://formtoemailremote.com/user_forms.php" method="post">]] ) else write( [[<form action="]] )write( theRoot )write( [[/resources/FormToEmail.php" method="post">]] ) end write( [[
  396. <div id="inputfields">
  397. <fieldset>
  398. <input name="galleryTitle" type="hidden" value="]] )write( model.metadata.htmlTitle.value )write( [[" size="30" />
  399. ]] ) if model.nonCSS.formtoemail_remote then write( [[
  400. <input type="hidden" name="user_id" value="]] )write( model.nonCSS.formtoemail_userid )write( [[">
  401. <input type="hidden" name="form_id" value="]] )write( model.nonCSS.formtoemail_formid )write( [[">
  402. ]] ) end write( [[
  403. <p style="margin-top:0 !important;"><label for="field1">]] )write( model.nonCSS.selectionName )write( [[</label>
  404. <input id="field1" class="gather" name="name" type="text" size="30" tabindex="1" /></p>
  405. <p><label for="field2">]] )write( model.nonCSS.selectionEmail )write( [[</label>
  406. <input id="field2" class="gather" name="email" type="text" size="30" tabindex="2" /></p>
  407. ]] ) if model.nonCSS.selectionTel_check then write( [[
  408. <p><label for="field3">]] )write( model.nonCSS.selectionTel )write( [[</label>
  409. <input id="field3" class="gather" name="]] )write( model.nonCSS.selectionTel )write( [[" type="text" size="30" tabindex="3" /></p>]] ) end write( [[
  410. ]] ) if model.nonCSS.selectionURL_check then write( [[
  411. <p><label for="field4">]] )write( model.nonCSS.selectionURL )write( [[</label>
  412. <input id="field4" class="gather" name="]] )write( model.nonCSS.selectionURL )write( [[" type="text" size="30" tabindex="4" /></p>]] ) end write( [[
  413. <p><label>]] )write( model.nonCSS.selectionComments )write( [[</label>
  414. <textarea name="]] )write( model.nonCSS.selectionComments )write( [[" id="comments" tabindex="5" rows="1" cols="1"></textarea></p>
  415. <p class="submitbutton" style="margin-bottom:0 !important;"><input type="submit" class="submit" value="]] )write( model.nonCSS.selectionSubmit )write( [[" /></p>
  416. </fieldset>
  417. </div>
  418. </form>
  419. <script type="text/javascript">
  420. var field1 = new LiveValidation( 'field1', {onlyOnSubmit: true } );
  421. field1.add( Validate.Presence, { failureMessage: "]] )write( model.nonCSS.selectionWarning )write( [[" } );
  422. var field2 = new LiveValidation( 'field2', {onlyOnSubmit: true } );
  423. field2.add( Validate.Email, { failureMessage: "]] )write( model.nonCSS.emailWarning )write( [[" } );
  424. field2.add( Validate.Presence, { failureMessage: "]] )write( model.nonCSS.selectionWarning )write( [[" } );
  425. ]] ) if model.nonCSS.selectionTel_check then write( [[
  426. var field3 = new LiveValidation( 'field3', {onlyOnSubmit: true } );
  427. field3.add( Validate.Presence, { failureMessage: "]] )write( model.nonCSS.selectionWarning )write( [[" } );]] ) end write( [[
  428. </script>
  429. ]] ) end write( [[
  430. </div>
  431. <div class="clear"></div>
  432. </div> <!-- /page_content home -->
  433. ]] ) elseif model.nonCSS.contactConfiguration == "copyupimagedown" then write( [[
  434. <div id="page_content" class="contact">
  435. <div class="copy" style="width: ]] )write( math.floor( model.nonCSS.contactWidth - ( model.nonCSS.page_content_padding * 2 ) - ( model.nonCSS.page_content_border * 2 ) ) )write( [[px;">
  436. ]] ) if model.nonCSS.includeContactHeading1 then write( [[<h2 id="metadata.contactHeading1.value" class="first heading heading_contact"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.contactHeading1.value');"]] ) end write( [[>]] )write( model.metadata.contactHeading1.value )write( [[</h2>]] ) end write( [[
  437. ]] ) if model.nonCSS.includeContactParagraph1 then write( [[<p id="nonCSS.contactParagraph1.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.contactParagraph1.value');"]] ) end write( [[>]] )write( model.metadata.contactParagraph1.value )write( [[</p>]] ) end write( [[
  438. ]] ) if model.nonCSS.includeContactHeading2 then write( [[<h2 id="metadata.contactHeading2.value" class="subsequent heading heading_contact"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.contactHeading2.value');"]] ) end write( [[>]] )write( model.metadata.contactHeading2.value )write( [[</h2>]] ) end write( [[
  439. ]] ) if model.nonCSS.includeContactParagraph2 then write( [[<p id="nonCSS.contactParagraph2.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.contactParagraph2.value');"]] ) end write( [[>]] )write( model.metadata.contactParagraph2.value )write( [[</p>]] ) end write( [[
  440. ]] ) if model.nonCSS.contactForm then write( [[
  441. ]] ) if model.nonCSS.formtoemail_remote then write( [[<form action="http://formtoemailremote.com/user_forms.php" method="post">]] ) else write( [[<form action="]] )write( theRoot )write( [[/resources/FormToEmail.php" method="post">]] ) end write( [[
  442. <div id="inputfields">
  443. <fieldset>
  444. <input name="galleryTitle" type="hidden" value="]] )write( model.metadata.htmlTitle.value )write( [[" size="30" />
  445. ]] ) if model.nonCSS.formtoemail_remote then write( [[
  446. <input type="hidden" name="user_id" value="]] )write( model.nonCSS.formtoemail_userid )write( [[">
  447. <input type="hidden" name="form_id" value="]] )write( model.nonCSS.formtoemail_formid )write( [[">
  448. ]] ) end write( [[
  449. <p style="margin-top:0 !important;"><label for="field1">]] )write( model.nonCSS.selectionName )write( [[</label>
  450. <input id="field1" class="gather" name="name" type="text" size="30" tabindex="1" /></p>
  451. <p><label for="field2">]] )write( model.nonCSS.selectionEmail )write( [[</label>
  452. <input id="field2" class="gather" name="email" type="text" size="30" tabindex="2" /></p>
  453. ]] ) if model.nonCSS.selectionTel_check then write( [[
  454. <p><label for="field3">]] )write( model.nonCSS.selectionTel )write( [[</label>
  455. <input id="field3" class="gather" name="]] )write( model.nonCSS.selectionTel )write( [[" type="text" size="30" tabindex="3" /></p>]] ) end write( [[
  456. ]] ) if model.nonCSS.selectionURL_check then write( [[
  457. <p><label for="field4">]] )write( model.nonCSS.selectionURL )write( [[</label>
  458. <input id="field4" class="gather" name="]] )write( model.nonCSS.selectionURL )write( [[" type="text" size="30" tabindex="4" /></p>]] ) end write( [[
  459. <p><label>]] )write( model.nonCSS.selectionComments )write( [[</label>
  460. <textarea name="]] )write( model.nonCSS.selectionComments )write( [[" id="comments" tabindex="5" rows="1" cols="1"></textarea></p>
  461. <p class="submitbutton" style="margin-bottom:0 !important;"><input type="submit" class="submit" value="]] )write( model.nonCSS.selectionSubmit )write( [[" /></p>
  462. </fieldset>
  463. </div>
  464. </form>
  465. <script type="text/javascript">
  466. var field1 = new LiveValidation( 'field1', {onlyOnSubmit: true } );
  467. field1.add( Validate.Presence, { failureMessage: "]] )write( model.nonCSS.selectionWarning )write( [[" } );
  468. var field2 = new LiveValidation( 'field2', {onlyOnSubmit: true } );
  469. field2.add( Validate.Email, { failureMessage: "]] )write( model.nonCSS.emailWarning )write( [[" } );
  470. field2.add( Validate.Presence, { failureMessage: "]] )write( model.nonCSS.selectionWarning )write( [[" } );
  471. ]] ) if model.nonCSS.selectionTel_check then write( [[
  472. var field3 = new LiveValidation( 'field3', {onlyOnSubmit: true } );
  473. field3.add( Validate.Presence, { failureMessage: "]] )write( model.nonCSS.selectionWarning )write( [[" } );]] ) end write( [[
  474. </script>
  475. ]] ) end write( [[
  476. </div>
  477. <img src="photos/]] )write( getImage(3).exportFilename )write( [[.jpg" class="page_img" width="]] )write( getImage(3).renditions.photos.width )write( [[" height="]] )write( getImage(3).renditions.photos.height )write( [[" alt="]] )write( getImage(3).metadata.alt )write( [[" />
  478. <div class="clear"></div>
  479. </div> <!-- /page_content home -->
  480. ]] ) elseif model.nonCSS.contactConfiguration == "noimagecopycenter" then write( [[
  481. <div id="page_content" class="contact">
  482. <div class="copy" style="width: ]] )write( math.floor( model.nonCSS.contactWidth - ( model.nonCSS.page_content_padding * 2 ) - ( model.nonCSS.page_content_border * 2 ) ) )write( [[px;">
  483. ]] ) if model.nonCSS.includeContactHeading1 then write( [[<h2 id="metadata.contactHeading1.value" class="first heading heading_contact"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.contactHeading1.value');"]] ) end write( [[>]] )write( model.metadata.contactHeading1.value )write( [[</h2>]] ) end write( [[
  484. ]] ) if model.nonCSS.includeContactParagraph1 then write( [[<p id="nonCSS.contactParagraph1.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.contactParagraph1.value');"]] ) end write( [[>]] )write( model.metadata.contactParagraph1.value )write( [[</p>]] ) end write( [[
  485. ]] ) if model.nonCSS.includeContactHeading2 then write( [[<h2 id="metadata.contactHeading2.value" class="subsequent heading heading_contact"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.contactHeading2.value');"]] ) end write( [[>]] )write( model.metadata.contactHeading2.value )write( [[</h2>]] ) end write( [[
  486. ]] ) if model.nonCSS.includeContactParagraph2 then write( [[<p id="nonCSS.contactParagraph2.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.contactParagraph2.value');"]] ) end write( [[>]] )write( model.metadata.contactParagraph2.value )write( [[</p>]] ) end write( [[
  487. ]] ) if model.nonCSS.contactForm then write( [[
  488. ]] ) if model.nonCSS.formtoemail_remote then write( [[<form action="http://formtoemailremote.com/user_forms.php" method="post">]] ) else write( [[<form action="]] )write( theRoot )write( [[/resources/FormToEmail.php" method="post">]] ) end write( [[
  489. <div id="inputfields">
  490. <fieldset>
  491. <input name="galleryTitle" type="hidden" value="]] )write( model.metadata.htmlTitle.value )write( [[" size="30" />
  492. ]] ) if model.nonCSS.formtoemail_remote then write( [[
  493. <input type="hidden" name="user_id" value="]] )write( model.nonCSS.formtoemail_userid )write( [[">
  494. <input type="hidden" name="form_id" value="]] )write( model.nonCSS.formtoemail_formid )write( [[">
  495. ]] ) end write( [[
  496. <p style="margin-top:0 !important;"><label for="field1">]] )write( model.nonCSS.selectionName )write( [[</label>
  497. <input id="field1" class="gather" name="name" type="text" size="30" tabindex="1" /></p>
  498. <p><label for="field2">]] )write( model.nonCSS.selectionEmail )write( [[</label>
  499. <input id="field2" class="gather" name="email" type="text" size="30" tabindex="2" /></p>
  500. ]] ) if model.nonCSS.selectionTel_check then write( [[
  501. <p><label for="field3">]] )write( model.nonCSS.selectionTel )write( [[</label>
  502. <input id="field3" class="gather" name="]] )write( model.nonCSS.selectionTel )write( [[" type="text" size="30" tabindex="3" /></p>]] ) end write( [[
  503. ]] ) if model.nonCSS.selectionURL_check then write( [[
  504. <p><label for="field4">]] )write( model.nonCSS.selectionURL )write( [[</label>
  505. <input id="field4" class="gather" name="]] )write( model.nonCSS.selectionURL )write( [[" type="text" size="30" tabindex="4" /></p>]] ) end write( [[
  506. <p><label>]] )write( model.nonCSS.selectionComments )write( [[</label>
  507. <textarea name="]] )write( model.nonCSS.selectionComments )write( [[" id="comments" tabindex="5" rows="1" cols="1"></textarea></p>
  508. <p class="submitbutton" style="margin-bottom:0 !important;"><input type="submit" class="submit" value="]] )write( model.nonCSS.selectionSubmit )write( [[" /></p>
  509. </fieldset>
  510. </div>
  511. </form>
  512. <script type="text/javascript">
  513. var field1 = new LiveValidation( 'field1', {onlyOnSubmit: true } );
  514. field1.add( Validate.Presence, { failureMessage: "]] )write( model.nonCSS.selectionWarning )write( [[" } );
  515. var field2 = new LiveValidation( 'field2', {onlyOnSubmit: true } );
  516. field2.add( Validate.Email, { failureMessage: "]] )write( model.nonCSS.emailWarning )write( [[" } );
  517. field2.add( Validate.Presence, { failureMessage: "]] )write( model.nonCSS.selectionWarning )write( [[" } );
  518. ]] ) if model.nonCSS.selectionTel_check then write( [[
  519. var field3 = new LiveValidation( 'field3', {onlyOnSubmit: true } );
  520. field3.add( Validate.Presence, { failureMessage: "]] )write( model.nonCSS.selectionWarning )write( [[" } );]] ) end write( [[
  521. </script>
  522. ]] ) end write( [[
  523. </div>
  524. <div class="clear"></div>
  525. </div> <!-- /page_content home -->
  526. ]] ) end write( [[
  527. </div> <!-- /gallery -->
  528. ]] ) --[[ Include the page footer ]] write( [[
  529. ]] ) if model.nonCSS.includeFooter then write( [[
  530. <div id="footer"]] ) if model.nonCSS.transparentBackground then write( [[ style="background-color: transparent !important;"]] ) end write( [[>
  531. <div id="footer_content">
  532. ]] ) if model.nonCSS.footerNav then write( [[<p class="footer_text footer_nav" style="margin-bottom: 1em !important;">]] ) if model.nonCSS.menuItem1 then write( [[<a href="]] )write( model.metadata.menuItem1.link )write( [[" id="metadata.menuItem1.value" style="padding-left: 0 !important;">]] )write( model.metadata.menuItem1.value )write( [[</a> ]] )write( model.metadata.menuDivider.value )write( [[ ]] ) end if model.nonCSS.menuItem2 then write( [[<a href="]] )write( model.metadata.menuItem2.link )write( [[" id="metadata.menuItem2.value">]] )write( model.metadata.menuItem2.value )write( [[</a> ]] )write( model.metadata.menuDivider.value )write( [[ ]] ) end if model.nonCSS.menuItem3 then write( [[<a href="]] )write( model.metadata.menuItem3.link )write( [[" id="metadata.menuItem3.value">]] )write( model.metadata.menuItem3.value )write( [[</a> ]] )write( model.metadata.menuDivider.value )write( [[ ]] ) end if model.nonCSS.menuItem4 then write( [[<a href="]] )write( model.metadata.menuItem4.link )write( [[" id="metadata.menuItem4.value">]] )write( model.metadata.menuItem4.value )write( [[</a> ]] )write( model.metadata.menuDivider.value )write( [[ ]] ) end if model.nonCSS.menuItem5 then write( [[<a href="]] )write( model.metadata.menuItem5.link )write( [[" id="metadata.menuItem5.value">]] )write( model.metadata.menuItem5.value )write( [[</a> ]] )write( model.metadata.menuDivider.value )write( [[ ]] ) end write( model.metadata.customMenu.value ) if model.nonCSS.contactLink then write( [[<a href="]] )write( model.metadata.contact.link )write( [[" id="metadata.contact.value" style="padding-right: 0 !important;">]] )write( model.metadata.contact.value )write( [[</a>]] ) end write( [[</p>]] ) end write( [[
  533. <p]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.footer.text');"]] ) end write( [[ class="footer_text">]] )write( model.metadata.footer.text )write( [[
  534. ]] ) if model.nonCSS.ttgCredit then write( [[<br />Powered by <a href="http://lr.theturninggate.net" onclick="window.open(this.href); return false;">The Turning Gate (TTG)</a>.]] ) end write( [[
  535. </p>
  536. </div>
  537. </div>
  538. ]] ) end write( [[
  539. </div> <!-- /wrapper -->
  540. ]] ) if mode == 'publish' then write( [[
  541. ]] )write( model.metadata.script.footer )write( [[
  542. ]] ) if model.nonCSS.disablerightclick then write( [[
  543. <script type="text/javascript">
  544. $(document).ready(function(){
  545. $(document).bind("contextmenu",function(e){
  546. return false;
  547. });
  548. });
  549. </script>]] ) end write( [[
  550. ]] ) if model.nonCSS.googleAnalytics then write( [[
  551. <script type="text/javascript">
  552. var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  553. document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  554. </script>
  555. <script type="text/javascript">
  556. try {
  557. var pageTracker = _gat._getTracker("]] )write( model.metadata.googleAnalytics.id )write( [[");
  558. pageTracker._trackPageview();
  559. } catch(err) {}
  560. </script>
  561. ]] ) end write( [[
  562. ]] ) end write( [[
  563. <script src="]] )write( theRoot )write( [[/resources/js/jquery.elastic-1.6.js" type="text/javascript" charset="utf-8"></script>
  564. <script type="text/javascript">
  565. $(document).ready(function(){
  566. $('textarea').elastic();
  567. });
  568. </script>
  569. </body>
  570. </html>
  571. ]] )