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="about">
  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.aboutConfiguration == "imageleftcopyright" then %>
  293. <div id="page_content" class="about">
  294. <% if model.nonCSS.about_stage then %>
  295. <style type="text/css">
  296. #about_frame { float: left; }
  297. </style>
  298. <% if model.nonCSS.about_galleryType == "none" then %>
  299. <div id="about_frame">
  300. <div id="about_flashcontent">
  301. <p style="margin: 0 !important; padding: 10px !important;">You have chosen to replace this image with a Flash gallery. Please select a Gallery Type from the Appearance pane so that we can properly prepare the stage for your gallery.</p>
  302. </div>
  303. </div>
  304. <% elseif model.nonCSS.about_galleryType == "autoviewer" then %>
  305. <% if mode == 'preview' then %>
  306. <div id="about_frame">
  307. <div id="about_flashcontent">
  308. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  309. <p><strong>Setup Instructions</strong></p>
  310. <p>Export an Autoviewer gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-autoviewer/">TTG Autoviewer</a> or Airtight Autoviewer web engine. Name the export folder "about_autoviewer" and copy it into the exported TTG Pages folder.</p>
  311. </div>
  312. </div>
  313. </div>
  314. <% else %>
  315. <div id="about_frame">
  316. <div id="about_flashcontent"></div>
  317. <script language="JavaScript">
  318. var flashvars = {
  319. // langOpenImage: "Open Image in New Window",
  320. // langAbout: "About",
  321. xmlURL: "gallery.xml"
  322. }
  323. var params = {
  324. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  325. scale: "noscale",
  326. base: "about_autoviewer/"
  327. }
  328. var attributes = {
  329. }
  330. swfobject.embedSWF("about_autoviewer/viewer.swf", "about_flashcontent", "100%", "100%", "8", false, flashvars, params, attributes);
  331. </script>
  332. </div>
  333. <% end %>
  334. <% elseif model.nonCSS.about_galleryType == "dimin" then %>
  335. <% if mode == 'preview' then %>
  336. <div id="about_frame">
  337. <div id="about_flashcontent">
  338. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  339. <p><strong>Setup Instructions</strong></p>
  340. <p>Export a gallery using the <a href="http://dimin.m6.net/software/lightroom/">DIMIN Slideshow</a> web engine. Name the export folder "about_dimin" and copy it into the exported TTG Pages folder.</p>
  341. </div>
  342. </div>
  343. </div>
  344. <% else %>
  345. <div id="about_frame">
  346. <div id="about_flashcontent">DIMIN Slideshow requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash here.</a></div>
  347. <script language="JavaScript">
  348. var flashvars = {
  349. width: "<%= model.nonCSS.about_gallery_width %>",
  350. height: "<%= model.nonCSS.about_gallery_height %>",
  351. file: "slideshow.xml"
  352. }
  353. var params = {
  354. allowfullscreen: "true",
  355. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  356. base: "about_dimin/"
  357. }
  358. var attributes = {
  359. }
  360. swfobject.embedSWF("about_dimin/imagerotator.swf", "about_flashcontent", "<%= model.nonCSS.about_gallery_width %>", "<%= model.nonCSS.about_gallery_height %>", "7", false, flashvars, params, attributes);
  361. </script>
  362. </div>
  363. <% end %>
  364. <% elseif model.nonCSS.about_galleryType == "flashnifties" then %>
  365. <% if mode == 'preview' then %>
  366. <div id="about_frame">
  367. <div id="about_flashcontent">
  368. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  369. <p><strong>Setup Instructions</strong></p>
  370. <p>Export a gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-flashnifties/">TTG Flashnifties</a> web engine. Name the export folder "about_flashnifties" and copy it into the exported TTG Pages folder.</p>
  371. </div>
  372. </div>
  373. </div>
  374. <% else %>
  375. <div id="about_frame">
  376. <div id="about_flashcontent">This gallery requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  377. <script language="JavaScript">
  378. var flashvars = {
  379. }
  380. var params = {
  381. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  382. base: "about_flashnifties/"
  383. }
  384. var attributes = {
  385. }
  386. swfobject.embedSWF("about_flashnifties/xmlGallery.swf", "about_flashcontent", "100%", "100%", "6", false, flashvars, params, attributes);
  387. </script>
  388. </div>
  389. <% end %>
  390. <% elseif model.nonCSS.about_galleryType == "flickr" then %>
  391. <% if mode == 'preview' then %>
  392. <div id="about_frame">
  393. <div id="about_flashcontent">
  394. <div id="flickr" style="padding:1em;font-size:11px;line-height:17px;">
  395. <p><strong>Flickr Setup</strong></p>
  396. <p>Input your Flickr username and the ID number of the Flickr Set you wish to display into the "Flickr Username" and "Flickr Set ID" fields, respectively.</p>
  397. <p>To get the Flickr Set ID, visit your set on Flickr. The URL for the set will look like this: http://www.flickr.com/photos/username/sets/<span style="color:#f00 !important;">#################</span>/.</p>
  398. <p>The number, shown here in red, is the set ID. Copy and paste that number into the "Flickr Set ID" field in the Appearance pane.</p>
  399. <p>TTG Stage will only display <strong>sets</strong>, not collections, nor photostreams. The gallery will not display here in the LR preview, but will appear in the exported gallery, or when previewed in a browser.</p>
  400. <p>The URL that will be displayed in your gallery is:</p>
  401. <p><a href="http://www.flickr.com/photos/<%=model.nonCSS.about_flickrUser %>/sets/<%= model.nonCSS.about_flickrSet %>/">http://www.flickr.com/photos/<%=model.nonCSS.about_flickrUser %>/sets/<%= model.nonCSS.about_flickrSet %>/</a></p>
  402. <p>Check that the URL is correct by clicking on it and verifying its destination.</p>
  403. </div>
  404. </div>
  405. </div>
  406. <% else %>
  407. <div id="about_frame">
  408. <div id="about_flashcontent">Flash is required to view this gallery. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  409. <script language="JavaScript">
  410. var flashvars = {
  411. offsite: "true",
  412. lang: "en-us",
  413. page_show_url: "/photos/<%= model.nonCSS.about_flickrUser %>/sets/<%= model.nonCSS.about_flickrSet %>/show/",
  414. set_id: "<%= model.nonCSS.about_flickrSet %>",
  415. page_show_back_url: "/photos/<%= model.nonCSS.about_flickrUser %>/sets/<%= model.nonCSS.about_flickrSet %>/",
  416. jump_to: ""
  417. }
  418. var params = {
  419. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  420. allowfullscreen: "true"
  421. }
  422. var attributes = {
  423. }
  424. swfobject.embedSWF("http://www.flickr.com/apps/slideshow/show.swf", "about_flashcontent", "100%", "100%", "7", false, flashvars, params, attributes);
  425. </script>
  426. </div>
  427. <% end %>
  428. <% elseif model.nonCSS.about_galleryType == "lightroomflashgallery" then %>
  429. <% if mode == 'preview' then %>
  430. <div id="about_frame">
  431. <div id="about_flashcontent">
  432. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  433. <p><strong>Setup Instructions</strong></p>
  434. <p>Export a gallery using the Lightroom Flash Gallery web engine. Name the export folder "about_lightroomflashgallery" and copy it into the exported TTG Pages folder.</p>
  435. </div>
  436. </div>
  437. </div>
  438. <% else %>
  439. <div id="about_frame">
  440. <div id="about_flashcontent">
  441. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  442. width="100%" height="100%"
  443. codebase="http://download.macromedia.com/pub/shockwave/
  444. cabs/flash/swflash.cab">
  445. <param name="movie" value="about_lightroomflashgallery/resources/gallery.swf"/>
  446. <param name="flashvars"
  447. value="livePreview=false
  448. &baseRefUrl=about_lightroomflashgallery/
  449. &groupxml=resources/mediaGroupData/group.xml
  450. &stylexml=resources/styles/style.xml
  451. &localText=resources/localization/localText.xml"/>
  452. <param name="id" value="gallery"/>
  453. <param name="quality" value="high"/>
  454. <param name="align" value="middle"/>
  455. <param name="name" value="gallery"/>
  456. <param name="bgcolor" value="#f7f7f7"/>
  457. <param name="allowScriptAccess" value="sameDomain"/>
  458. <param name="menu" value="true"/>
  459. <embed src="about_lightroomflashgallery/resources/gallery.swf"
  460. type="application/x-shockwave-flash"
  461. pluginspage="http://www.macromedia.com/go/getflashplayer"
  462. flashvars="livePreview=false
  463. &baseRefUrl=about_lightroomflashgallery/
  464. &groupxml=resources/mediaGroupData/group.xml
  465. &stylexml=resources/styles/style.xml
  466. &localText=resources/localization/localText.xml"
  467. width="100%" height="100%" quality="high" align="middle"
  468. allowScriptAccess="sameDomain">
  469. </embed>
  470. </object>
  471. </div>
  472. </div>
  473. <% end %>
  474. <% elseif model.nonCSS.about_galleryType == "monoslideshow" then %>
  475. <% if mode == 'preview' then %>
  476. <div id="about_frame">
  477. <div id="about_flashcontent">
  478. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  479. <p><strong>Setup Instructions</strong></p>
  480. <p>Export a gallery using the (discontinued) TTG MonoSlideshow web engine, or create a Monoslideshow gallery on your own. Name the export folder "about_monoslideshow" and copy it into the exported TTG Pages folder.</p>
  481. </div>
  482. </div>
  483. </div>
  484. <% else %>
  485. <div id="about_frame">
  486. <div id="about_flashcontent">
  487. <p><strong>Please install Flash® and turn on Javascript.</strong></p>
  488. </div>
  489. <script language="JavaScript">
  490. var flashvars = {
  491. showLogo: "false"
  492. }
  493. var params = {
  494. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  495. base: "about_monoslideshow/"
  496. }
  497. var attributes = {
  498. }
  499. swfobject.embedSWF("about_monoslideshow/monoslideshow.swf", "about_flashcontent", "100%", "100%", "7", false, flashvars, params, attributes);
  500. </script>
  501. </div>
  502. <% end %>
  503. <% elseif model.nonCSS.about_galleryType == "monoslideshow2" then %>
  504. <% if mode == 'preview' then %>
  505. <div id="about_frame">
  506. <div id="about_flashcontent">
  507. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  508. <p><strong>Setup Instructions</strong></p>
  509. <p>Export a gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-monoslideshow/">TTG MonoSlideshow</a> web engine. Name the export folder "about_monoslideshow" and copy it into the exported TTG Pages folder.</p>
  510. </div>
  511. </div>
  512. </div>
  513. <% else %>
  514. <div id="about_frame">
  515. <div id="about_flashcontent">
  516. <p>Please <a href="http://get.adobe.com/flashplayer/">install Flash®</a> and turn on Javascript.</p>
  517. </div>
  518. <script type="text/javascript">
  519. var flashvars = {showLogo: "false", showRegistration: "false"};
  520. var params = {allowScriptAccess: "sameDomain", allowfullscreen: "true", allowNetworking: "all", base: "about_monoslideshow/"};
  521. var attributes = {id: "monoslideshow", name: "monoslideshow", bgColor: "<%= model.nonCSS.about_stageBGC %>"};
  522. swfobject.embedSWF("about_monoslideshow/monoslideshow.swf", "about_flashcontent", "100%", "100%", "9", false, flashvars, params, attributes);
  523. </script>
  524. </div>
  525. <% end %>
  526. <% elseif model.nonCSS.about_galleryType == "polaroid" then %>
  527. <% if mode == 'preview' then %>
  528. <div id="about_frame">
  529. <div id="about_flashcontent">
  530. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  531. <p><strong>Setup Instructions</strong></p>
  532. <p>Export a gallery using the <a style="color:#e5a638 !important;" href="http://lightroom.theturninggate.net/flash-galleries/ttg-polaroid-gallery/">TTG Polaroid Gallery</a> web engine. Name the export folder "about_polaroid" and copy it into the exported TTG Pages folder.</p>
  533. </div>
  534. </div>
  535. </div>
  536. <% else %>
  537. <div id="about_frame">
  538. <div id="about_flashcontent">This gallery requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  539. <script language="JavaScript">
  540. var flashvars = {
  541. xmlURL: "photos.xml"
  542. }
  543. var params = {
  544. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  545. base: "about_polaroid/"
  546. }
  547. var attributes = {
  548. }
  549. swfobject.embedSWF("about_polaroid/polaroid.swf", "about_flashcontent", "100%", "100%", "8", false, flashvars, params, attributes);
  550. </script>
  551. </div>
  552. <% end %>
  553. <% elseif model.nonCSS.about_galleryType == "postcardviewer" then %>
  554. <% if mode == 'preview' then %>
  555. <div id="about_frame">
  556. <div id="about_flashcontent">
  557. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  558. <p><strong>Setup Instructions</strong></p>
  559. <p>Export a PostcardViewer gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-postcardviewer/">TTG PostcardViewer</a> or Airtight PostcardViewer web engine. Name the export folder "about_postcardviewer" and copy it into the exported TTG Pages folder.</p>
  560. </div>
  561. </div>
  562. </div>
  563. <% else %>
  564. <div id="about_frame">
  565. <div id="about_flashcontent">PostcardViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash here.</a> </div>
  566. <script language="JavaScript">
  567. var flashvars = {
  568. // langOpenImage: "Open Image in New Window",
  569. // langAbout: "About",
  570. xmlURL: "gallery.xml"
  571. }
  572. var params = {
  573. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  574. base: "about_postcardviewer/"
  575. }
  576. var attributes = {
  577. }
  578. swfobject.embedSWF("about_postcardviewer/viewer.swf", "about_flashcontent", "100%", "100%", "8", false, flashvars, params, attributes);
  579. </script>
  580. </div>
  581. <% end %>
  582. <% elseif model.nonCSS.about_galleryType == "simpleviewer" then %>
  583. <% if mode == 'preview' then %>
  584. <div id="about_frame">
  585. <div id="about_flashcontent">
  586. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  587. <p><strong>Setup Instructions</strong></p>
  588. <p>Export a Simpleviewer gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-simpleviewer/">TTG Simpleviewer</a> or Airtight Simpleviewer web engine. Name the export folder "about_simpleviewer" and copy it into the exported TTG Pages folder.</p>
  589. </div>
  590. </div>
  591. </div>
  592. <% else %>
  593. <div id="about_frame">
  594. <div id="about_flashcontent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  595. <script language="JavaScript">
  596. var flashvars = {
  597. // langOpenImage: "Open Image in New Window",
  598. // langAbout: "About",
  599. preloaderColor: "0xffffff",
  600. xmlDataPath: "gallery.xml"
  601. }
  602. var params = {
  603. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  604. base: "about_simpleviewer/"
  605. }
  606. var attributes = {
  607. }
  608. swfobject.embedSWF("about_simpleviewer/viewer.swf", "about_flashcontent", "100%", "100%", "7", false, flashvars, params, attributes);
  609. </script>
  610. </div>
  611. <% end %>
  612. <% elseif model.nonCSS.about_galleryType == "simpleviewer2" then %>
  613. <% if mode == 'preview' then %>
  614. <div id="about_frame">
  615. <div id="about_flashcontent">
  616. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  617. <p><strong>Setup Instructions</strong></p>
  618. <p>Export a Simpleviewer gallery using the <a style="color:#e5a638 !important;" href="http://lightroom.theturninggate.net/flash-galleries/ttg-simpleviewer/">TTG Simpleviewer-2</a> web engine. Name the export folder "about_simpleviewer" and copy it into the exported TTG Stage folder.</p>
  619. </div>
  620. </div>
  621. </div>
  622. <% else %>
  623. <div id="about_frame">
  624. <div id="about_flashcontent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  625. <script type="text/javascript">
  626. var flashvars = {};
  627. flashvars.baseURL="about_simpleviewer/";
  628. flashvars.galleryURL = "gallery.xml";
  629. var params = {};
  630. params.allowfullscreen = true;
  631. params.allowscriptaccess = "always";
  632. params.bgcolor = "<%= model.nonCSS.about_stageBGC %>";
  633. swfobject.embedSWF("about_simpleviewer/simpleviewer.swf", "about_flashcontent", "100%", "100%", "9.0.124", false, flashvars, params);
  634. </script>
  635. </div>
  636. <% end %>
  637. <% elseif model.nonCSS.about_galleryType == "slideshowpro" then %>
  638. <% if mode == 'preview' then %>
  639. <div id="about_frame">
  640. <div id="about_flashcontent">
  641. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  642. <p><strong>Setup Instructions</strong></p>
  643. <p>Export a gallery using the <a href="http://www.slideshowpro.net">Slideshow Pro</a> web engine. Name the export folder "about_slideshowpro" and copy it into the exported TTG Pages folder.</p>
  644. </div>
  645. </div>
  646. </div>
  647. <% else %>
  648. <div id="about_frame">
  649. <div id="about_flashcontent">
  650. This SlideShowPro photo gallery requires the Flash Player plugin and a web browser with JavaScript enabled.
  651. </div>
  652. <script language="JavaScript">
  653. <!--
  654. // Permalinks option
  655. function flashPutHref(href) { location.href = href; }
  656. // Expand browser option
  657. var eB = false;
  658. if (eB) {
  659. window.moveTo(0,0);
  660. window.resizeTo (screen.availWidth, screen.availHeight);
  661. }
  662. // swffit sizing
  663. var swf_pad = 20;
  664. function initSwffit(w,h) {
  665. // If you change name of the DIV the SWF is written at,
  666. // change 'flashcontent' to the name of your DIV.
  667. swffit.fit('about_flashcontent',w+swf_pad,h+swf_pad);
  668. }
  669. // SWFObject embed
  670. var flashvars = {
  671. paramXMLPath: "param.xml",
  672. initialURL: escape(document.location)
  673. }
  674. var params = {
  675. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  676. allowfullscreen: "true",
  677. base: "about_slideshowpro/"
  678. }
  679. var attributes = {}
  680. swfobject.embedSWF("about_slideshowpro/loader.swf", "about_flashcontent", "100%", "100%", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
  681. /* below required for google chrome embed issue */
  682. swffit.fit('about_flashcontent',0,0);
  683. -->
  684. </script>
  685. </div> <!-- /frame -->
  686. <% end %>
  687. <% end %>
  688. <% else %>
  689. <img src="photos/<%= getImage(2).exportFilename %>.jpg" class="page_img" width="<%= getImage(2).renditions.photos.width %>" height="<%= getImage(2).renditions.photos.height %>" alt="<%= getImage(2).metadata.alt %>" style="float:left;" />
  690. <% end %>
  691. <% if model.nonCSS.about_stage then %>
  692. <div class="copy" style="float:right; width: <%= math.floor( model.nonCSS.aboutWidth - ( model.nonCSS.page_content_padding * 2 ) - ( model.nonCSS.page_content_border * 2 ) - model.nonCSS.spacing - model.nonCSS.about_stage_width ) %>px;">
  693. <% else %>
  694. <div class="copy" style="float:right; width: <%= math.floor( model.nonCSS.aboutWidth - ( model.nonCSS.page_content_padding * 2 ) - ( model.nonCSS.page_content_border * 2 ) - model.nonCSS.spacing - ( ( model.nonCSS.imagePadding + model.nonCSS.imageBorderWidth ) * 2 ) - getImage(2).renditions.photos.width ) %>px;">
  695. <% end %>
  696. <% if model.nonCSS.includeAboutHeading1 then %><h2 id="metadata.aboutHeading1.value" class="first heading heading_about"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutHeading1.value');"<% end %>>$model.metadata.aboutHeading1.value</h2><% end %>
  697. <% if model.nonCSS.includeAboutParagraph1 then %><p id="nonCSS.aboutParagraph1.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutParagraph1.value');"<% end %>>$model.metadata.aboutParagraph1.value</p><% end %>
  698. <% if model.nonCSS.includeAboutHeading2 then %><h2 id="metadata.aboutHeading2.value" class="subsequent heading heading_about"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutHeading2.value');"<% end %>>$model.metadata.aboutHeading2.value</h2><% end %>
  699. <% if model.nonCSS.includeAboutParagraph2 then %><p id="nonCSS.aboutParagraph2.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutParagraph2.value');"<% end %>>$model.metadata.aboutParagraph2.value</p><% end %>
  700. <% if model.nonCSS.includeAboutHeading3 then %><h2 id="metadata.aboutHeading3.value" class="subsequent heading heading_about"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutHeading3.value');"<% end %>>$model.metadata.aboutHeading3.value</h2><% end %>
  701. <% if model.nonCSS.includeAboutParagraph3 then %><p id="nonCSS.aboutParagraph3.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutParagraph3.value');"<% end %>>$model.metadata.aboutParagraph3.value</p><% end %>
  702. <% if model.nonCSS.includeAboutHeading4 then %><h2 id="metadata.aboutHeading4.value" class="subsequent heading heading_about"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutHeading4.value');"<% end %>>$model.metadata.aboutHeading4.value</h2><% end %>
  703. <% if model.nonCSS.includeAboutParagraph4 then %><p id="nonCSS.aboutParagraph4.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutParagraph4.value');"<% end %>>$model.metadata.aboutParagraph4.value</p><% end %>
  704. <% if model.nonCSS.includeAboutHeading5 then %><h2 id="metadata.aboutHeading5.value" class="subsequent heading heading_about"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutHeading5.value');"<% end %>>$model.metadata.aboutHeading5.value</h2><% end %>
  705. <% if model.nonCSS.includeAboutParagraph5 then %><p id="nonCSS.aboutParagraph5.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutParagraph5.value');"<% end %>>$model.metadata.aboutParagraph5.value</p><% end %>
  706. </div>
  707. <div class="clear"></div>
  708. </div> <!-- /page_content home -->
  709. <% elseif model.nonCSS.aboutConfiguration == "copyleftimageright" then %>
  710. <div id="page_content" class="about">
  711. <% if model.nonCSS.about_stage then %>
  712. <style type="text/css">
  713. #about_frame { float: right; }
  714. </style>
  715. <% if model.nonCSS.about_galleryType == "none" then %>
  716. <div id="about_frame">
  717. <div id="about_flashcontent">
  718. <p style="margin: 0 !important;">You have chosen to replace this image with a Flash gallery. Please select a Gallery Type from the Appearance pane so that we can properly prepare the stage for your gallery.</p>
  719. </div>
  720. </div>
  721. <% elseif model.nonCSS.about_galleryType == "autoviewer" then %>
  722. <% if mode == 'preview' then %>
  723. <div id="about_frame">
  724. <div id="about_flashcontent">
  725. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  726. <p><strong>Setup Instructions</strong></p>
  727. <p>Export an Autoviewer gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-autoviewer/">TTG Autoviewer</a> or Airtight Autoviewer web engine. Name the export folder "about_autoviewer" and copy it into the exported TTG Pages folder.</p>
  728. </div>
  729. </div>
  730. </div>
  731. <% else %>
  732. <div id="about_frame">
  733. <div id="about_flashcontent"></div>
  734. <script language="JavaScript">
  735. var flashvars = {
  736. // langOpenImage: "Open Image in New Window",
  737. // langAbout: "About",
  738. xmlURL: "gallery.xml"
  739. }
  740. var params = {
  741. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  742. scale: "noscale",
  743. base: "about_autoviewer/"
  744. }
  745. var attributes = {
  746. }
  747. swfobject.embedSWF("about_autoviewer/viewer.swf", "about_flashcontent", "100%", "100%", "8", false, flashvars, params, attributes);
  748. </script>
  749. </div>
  750. <% end %>
  751. <% elseif model.nonCSS.about_galleryType == "dimin" then %>
  752. <% if mode == 'preview' then %>
  753. <div id="about_frame">
  754. <div id="about_flashcontent">
  755. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  756. <p><strong>Setup Instructions</strong></p>
  757. <p>Export a gallery using the <a href="http://dimin.m6.net/software/lightroom/">DIMIN Slideshow</a> web engine. Name the export folder "about_dimin" and copy it into the exported TTG Pages folder.</p>
  758. </div>
  759. </div>
  760. </div>
  761. <% else %>
  762. <div id="about_frame">
  763. <div id="about_flashcontent">DIMIN Slideshow requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash here.</a></div>
  764. <script language="JavaScript">
  765. var flashvars = {
  766. width: "<%= model.nonCSS.about_gallery_width %>",
  767. height: "<%= model.nonCSS.about_gallery_height %>",
  768. file: "slideshow.xml"
  769. }
  770. var params = {
  771. allowfullscreen: "true",
  772. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  773. base: "about_dimin/"
  774. }
  775. var attributes = {
  776. }
  777. swfobject.embedSWF("about_dimin/imagerotator.swf", "about_flashcontent", "<%= model.nonCSS.about_gallery_width %>", "<%= model.nonCSS.about_gallery_height %>", "7", false, flashvars, params, attributes);
  778. </script>
  779. </div>
  780. <% end %>
  781. <% elseif model.nonCSS.about_galleryType == "flashnifties" then %>
  782. <% if mode == 'preview' then %>
  783. <div id="about_frame">
  784. <div id="about_flashcontent">
  785. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  786. <p><strong>Setup Instructions</strong></p>
  787. <p>Export a gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-flashnifties/">TTG Flashnifties</a> web engine. Name the export folder "about_flashnifties" and copy it into the exported TTG Pages folder.</p>
  788. </div>
  789. </div>
  790. </div>
  791. <% else %>
  792. <div id="about_frame">
  793. <div id="about_flashcontent">This gallery requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  794. <script language="JavaScript">
  795. var flashvars = {
  796. }
  797. var params = {
  798. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  799. base: "about_flashnifties/"
  800. }
  801. var attributes = {
  802. }
  803. swfobject.embedSWF("about_flashnifties/xmlGallery.swf", "about_flashcontent", "100%", "100%", "6", false, flashvars, params, attributes);
  804. </script>
  805. </div>
  806. <% end %>
  807. <% elseif model.nonCSS.about_galleryType == "flickr" then %>
  808. <% if mode == 'preview' then %>
  809. <div id="about_frame">
  810. <div id="about_flashcontent">
  811. <div id="flickr" style="padding:1em;font-size:11px;line-height:17px;">
  812. <p><strong>Flickr Setup</strong></p>
  813. <p>Input your Flickr username and the ID number of the Flickr Set you wish to display into the "Flickr Username" and "Flickr Set ID" fields, respectively.</p>
  814. <p>To get the Flickr Set ID, visit your set on Flickr. The URL for the set will look like this: http://www.flickr.com/photos/username/sets/<span style="color:#f00 !important;">#################</span>/.</p>
  815. <p>The number, shown here in red, is the set ID. Copy and paste that number into the "Flickr Set ID" field in the Appearance pane.</p>
  816. <p>TTG Stage will only display <strong>sets</strong>, not collections, nor photostreams. The gallery will not display here in the LR preview, but will appear in the exported gallery, or when previewed in a browser.</p>
  817. <p>The URL that will be displayed in your gallery is:</p>
  818. <p><a href="http://www.flickr.com/photos/<%=model.nonCSS.about_flickrUser %>/sets/<%= model.nonCSS.about_flickrSet %>/">http://www.flickr.com/photos/<%=model.nonCSS.about_flickrUser %>/sets/<%= model.nonCSS.about_flickrSet %>/</a></p>
  819. <p>Check that the URL is correct by clicking on it and verifying its destination.</p>
  820. </div>
  821. </div>
  822. </div>
  823. <% else %>
  824. <div id="about_frame">
  825. <div id="about_flashcontent">Flash is required to view this gallery. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  826. <script language="JavaScript">
  827. var flashvars = {
  828. offsite: "true",
  829. lang: "en-us",
  830. page_show_url: "/photos/<%= model.nonCSS.about_flickrUser %>/sets/<%= model.nonCSS.about_flickrSet %>/show/",
  831. set_id: "<%= model.nonCSS.about_flickrSet %>",
  832. page_show_back_url: "/photos/<%= model.nonCSS.about_flickrUser %>/sets/<%= model.nonCSS.about_flickrSet %>/",
  833. jump_to: ""
  834. }
  835. var params = {
  836. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  837. allowfullscreen: "true"
  838. }
  839. var attributes = {
  840. }
  841. swfobject.embedSWF("http://www.flickr.com/apps/slideshow/show.swf", "about_flashcontent", "100%", "100%", "7", false, flashvars, params, attributes);
  842. </script>
  843. </div>
  844. <% end %>
  845. <% elseif model.nonCSS.about_galleryType == "lightroomflashgallery" then %>
  846. <% if mode == 'preview' then %>
  847. <div id="about_frame">
  848. <div id="about_flashcontent">
  849. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  850. <p><strong>Setup Instructions</strong></p>
  851. <p>Export a gallery using the Lightroom Flash Gallery web engine. Name the export folder "about_lightroomflashgallery" and copy it into the exported TTG Pages folder.</p>
  852. </div>
  853. </div>
  854. </div>
  855. <% else %>
  856. <div id="about_frame">
  857. <div id="about_flashcontent">
  858. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  859. width="100%" height="100%"
  860. codebase="http://download.macromedia.com/pub/shockwave/
  861. cabs/flash/swflash.cab">
  862. <param name="movie" value="about_lightroomflashgallery/resources/gallery.swf"/>
  863. <param name="flashvars"
  864. value="livePreview=false
  865. &baseRefUrl=about_lightroomflashgallery/
  866. &groupxml=resources/mediaGroupData/group.xml
  867. &stylexml=resources/styles/style.xml
  868. &localText=resources/localization/localText.xml"/>
  869. <param name="id" value="gallery"/>
  870. <param name="quality" value="high"/>
  871. <param name="align" value="middle"/>
  872. <param name="name" value="gallery"/>
  873. <param name="bgcolor" value="#f7f7f7"/>
  874. <param name="allowScriptAccess" value="sameDomain"/>
  875. <param name="menu" value="true"/>
  876. <embed src="about_lightroomflashgallery/resources/gallery.swf"
  877. type="application/x-shockwave-flash"
  878. pluginspage="http://www.macromedia.com/go/getflashplayer"
  879. flashvars="livePreview=false
  880. &baseRefUrl=about_lightroomflashgallery/
  881. &groupxml=resources/mediaGroupData/group.xml
  882. &stylexml=resources/styles/style.xml
  883. &localText=resources/localization/localText.xml"
  884. width="100%" height="100%" quality="high" align="middle"
  885. allowScriptAccess="sameDomain">
  886. </embed>
  887. </object>
  888. </div>
  889. </div>
  890. <% end %>
  891. <% elseif model.nonCSS.about_galleryType == "monoslideshow" then %>
  892. <% if mode == 'preview' then %>
  893. <div id="about_frame">
  894. <div id="about_flashcontent">
  895. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  896. <p><strong>Setup Instructions</strong></p>
  897. <p>Export a gallery using the (discontinued) TTG MonoSlideshow web engine, or create a Monoslideshow gallery on your own. Name the export folder "about_monoslideshow" and copy it into the exported TTG Pages folder.</p>
  898. </div>
  899. </div>
  900. </div>
  901. <% else %>
  902. <div id="about_frame">
  903. <div id="about_flashcontent">
  904. <p><strong>Please install Flash® and turn on Javascript.</strong></p>
  905. </div>
  906. <script language="JavaScript">
  907. var flashvars = {
  908. showLogo: "false"
  909. }
  910. var params = {
  911. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  912. base: "about_monoslideshow/"
  913. }
  914. var attributes = {
  915. }
  916. swfobject.embedSWF("about_monoslideshow/monoslideshow.swf", "about_flashcontent", "100%", "100%", "7", false, flashvars, params, attributes);
  917. </script>
  918. </div>
  919. <% end %>
  920. <% elseif model.nonCSS.about_galleryType == "monoslideshow2" then %>
  921. <% if mode == 'preview' then %>
  922. <div id="about_frame">
  923. <div id="about_flashcontent">
  924. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  925. <p><strong>Setup Instructions</strong></p>
  926. <p>Export a gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-monoslideshow/">TTG MonoSlideshow</a> web engine. Name the export folder "about_monoslideshow" and copy it into the exported TTG Pages folder.</p>
  927. </div>
  928. </div>
  929. </div>
  930. <% else %>
  931. <div id="about_frame">
  932. <div id="about_flashcontent">
  933. <p>Please <a href="http://get.adobe.com/flashplayer/">install Flash®</a> and turn on Javascript.</p>
  934. </div>
  935. <script type="text/javascript">
  936. var flashvars = {showLogo: "false", showRegistration: "false"};
  937. var params = {allowScriptAccess: "sameDomain", allowfullscreen: "true", allowNetworking: "all", base: "about_monoslideshow/"};
  938. var attributes = {id: "monoslideshow", name: "monoslideshow", bgColor: "<%= model.nonCSS.about_stageBGC %>"};
  939. swfobject.embedSWF("about_monoslideshow/monoslideshow.swf", "about_flashcontent", "100%", "100%", "9", false, flashvars, params, attributes);
  940. </script>
  941. </div>
  942. <% end %>
  943. <% elseif model.nonCSS.about_galleryType == "polaroid" then %>
  944. <% if mode == 'preview' then %>
  945. <div id="about_frame">
  946. <div id="about_flashcontent">
  947. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  948. <p><strong>Setup Instructions</strong></p>
  949. <p>Export a gallery using the <a style="color:#e5a638 !important;" href="http://lightroom.theturninggate.net/flash-galleries/ttg-polaroid-gallery/">TTG Polaroid Gallery</a> web engine. Name the export folder "about_polaroid" and copy it into the exported TTG Pages folder.</p>
  950. </div>
  951. </div>
  952. </div>
  953. <% else %>
  954. <div id="about_frame">
  955. <div id="about_flashcontent">This gallery requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  956. <script language="JavaScript">
  957. var flashvars = {
  958. xmlURL: "photos.xml"
  959. }
  960. var params = {
  961. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  962. base: "about_polaroid/"
  963. }
  964. var attributes = {
  965. }
  966. swfobject.embedSWF("about_polaroid/polaroid.swf", "about_flashcontent", "100%", "100%", "8", false, flashvars, params, attributes);
  967. </script>
  968. </div>
  969. <% end %>
  970. <% elseif model.nonCSS.about_galleryType == "postcardviewer" then %>
  971. <% if mode == 'preview' then %>
  972. <div id="about_frame">
  973. <div id="about_flashcontent">
  974. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  975. <p><strong>Setup Instructions</strong></p>
  976. <p>Export a PostcardViewer gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-postcardviewer/">TTG PostcardViewer</a> or Airtight PostcardViewer web engine. Name the export folder "about_postcardviewer" and copy it into the exported TTG Pages folder.</p>
  977. </div>
  978. </div>
  979. </div>
  980. <% else %>
  981. <div id="about_frame">
  982. <div id="about_flashcontent">PostcardViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash here.</a> </div>
  983. <script language="JavaScript">
  984. var flashvars = {
  985. // langOpenImage: "Open Image in New Window",
  986. // langAbout: "About",
  987. xmlURL: "gallery.xml"
  988. }
  989. var params = {
  990. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  991. base: "about_postcardviewer/"
  992. }
  993. var attributes = {
  994. }
  995. swfobject.embedSWF("about_postcardviewer/viewer.swf", "about_flashcontent", "100%", "100%", "8", false, flashvars, params, attributes);
  996. </script>
  997. </div>
  998. <% end %>
  999. <% elseif model.nonCSS.about_galleryType == "simpleviewer" then %>
  1000. <% if mode == 'preview' then %>
  1001. <div id="about_frame">
  1002. <div id="about_flashcontent">
  1003. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1004. <p><strong>Setup Instructions</strong></p>
  1005. <p>Export a Simpleviewer gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-simpleviewer/">TTG Simpleviewer</a> or Airtight Simpleviewer web engine. Name the export folder "about_simpleviewer" and copy it into the exported TTG Pages folder.</p>
  1006. </div>
  1007. </div>
  1008. </div>
  1009. <% else %>
  1010. <div id="about_frame">
  1011. <div id="about_flashcontent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  1012. <script language="JavaScript">
  1013. var flashvars = {
  1014. // langOpenImage: "Open Image in New Window",
  1015. // langAbout: "About",
  1016. preloaderColor: "0xffffff",
  1017. xmlDataPath: "gallery.xml"
  1018. }
  1019. var params = {
  1020. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  1021. base: "about_simpleviewer/"
  1022. }
  1023. var attributes = {
  1024. }
  1025. swfobject.embedSWF("about_simpleviewer/viewer.swf", "about_flashcontent", "100%", "100%", "7", false, flashvars, params, attributes);
  1026. </script>
  1027. </div>
  1028. <% end %>
  1029. <% elseif model.nonCSS.about_galleryType == "simpleviewer2" then %>
  1030. <% if mode == 'preview' then %>
  1031. <div id="about_frame">
  1032. <div id="about_flashcontent">
  1033. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1034. <p><strong>Setup Instructions</strong></p>
  1035. <p>Export a Simpleviewer gallery using the <a style="color:#e5a638 !important;" href="http://lightroom.theturninggate.net/flash-galleries/ttg-simpleviewer/">TTG Simpleviewer-2</a> web engine. Name the export folder "about_simpleviewer" and copy it into the exported TTG Stage folder.</p>
  1036. </div>
  1037. </div>
  1038. </div>
  1039. <% else %>
  1040. <div id="about_frame">
  1041. <div id="about_flashcontent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  1042. <script type="text/javascript">
  1043. var flashvars = {};
  1044. flashvars.baseURL="about_simpleviewer/";
  1045. flashvars.galleryURL = "gallery.xml";
  1046. var params = {};
  1047. params.allowfullscreen = true;
  1048. params.allowscriptaccess = "always";
  1049. params.bgcolor = "<%= model.nonCSS.about_stageBGC %>";
  1050. swfobject.embedSWF("about_simpleviewer/simpleviewer.swf", "about_flashcontent", "100%", "100%", "9.0.124", false, flashvars, params);
  1051. </script>
  1052. </div>
  1053. <% end %>
  1054. <% elseif model.nonCSS.about_galleryType == "slideshowpro" then %>
  1055. <% if mode == 'preview' then %>
  1056. <div id="about_frame">
  1057. <div id="about_flashcontent">
  1058. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1059. <p><strong>Setup Instructions</strong></p>
  1060. <p>Export a gallery using the <a href="http://www.slideshowpro.net">Slideshow Pro</a> web engine. Name the export folder "about_slideshowpro" and copy it into the exported TTG Pages folder.</p>
  1061. </div>
  1062. </div>
  1063. </div>
  1064. <% else %>
  1065. <div id="about_frame">
  1066. <div id="about_flashcontent">
  1067. This SlideShowPro photo gallery requires the Flash Player plugin and a web browser with JavaScript enabled.
  1068. </div>
  1069. <script language="JavaScript">
  1070. <!--
  1071. // Permalinks option
  1072. function flashPutHref(href) { location.href = href; }
  1073. // Expand browser option
  1074. var eB = false;
  1075. if (eB) {
  1076. window.moveTo(0,0);
  1077. window.resizeTo (screen.availWidth, screen.availHeight);
  1078. }
  1079. // swffit sizing
  1080. var swf_pad = 20;
  1081. function initSwffit(w,h) {
  1082. // If you change name of the DIV the SWF is written at,
  1083. // change 'flashcontent' to the name of your DIV.
  1084. swffit.fit('about_flashcontent',w+swf_pad,h+swf_pad);
  1085. }
  1086. // SWFObject embed
  1087. var flashvars = {
  1088. paramXMLPath: "param.xml",
  1089. initialURL: escape(document.location)
  1090. }
  1091. var params = {
  1092. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  1093. allowfullscreen: "true",
  1094. base: "about_slideshowpro/"
  1095. }
  1096. var attributes = {}
  1097. swfobject.embedSWF("about_slideshowpro/loader.swf", "about_flashcontent", "100%", "100%", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
  1098. /* below required for google chrome embed issue */
  1099. swffit.fit('about_flashcontent',0,0);
  1100. -->
  1101. </script>
  1102. </div> <!-- /frame -->
  1103. <% end %>
  1104. <% end %>
  1105. <% else %>
  1106. <img src="photos/<%= getImage(2).exportFilename %>.jpg" class="page_img" width="<%= getImage(2).renditions.photos.width %>" height="<%= getImage(2).renditions.photos.height %>" alt="<%= getImage(2).metadata.alt %>" style="float:right;" />
  1107. <% end %>
  1108. <% if model.nonCSS.about_stage then %>
  1109. <div class="copy" style="float:left; width: <%= math.floor( model.nonCSS.aboutWidth - ( model.nonCSS.page_content_padding * 2 ) - ( model.nonCSS.page_content_border * 2 ) - model.nonCSS.spacing - model.nonCSS.about_stage_width ) %>px;">
  1110. <% else %>
  1111. <div class="copy" style="float:left; width: <%= math.floor( model.nonCSS.aboutWidth - ( model.nonCSS.page_content_padding * 2 ) - ( model.nonCSS.page_content_border * 2 ) - model.nonCSS.spacing - ( ( model.nonCSS.imagePadding + model.nonCSS.imageBorderWidth ) * 2 ) - getImage(2).renditions.photos.width ) %>px;">
  1112. <% end %>
  1113. <% if model.nonCSS.includeAboutHeading1 then %><h2 id="metadata.aboutHeading1.value" class="first heading heading_about"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutHeading1.value');"<% end %>>$model.metadata.aboutHeading1.value</h2><% end %>
  1114. <% if model.nonCSS.includeAboutParagraph1 then %><p id="nonCSS.aboutParagraph1.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutParagraph1.value');"<% end %>>$model.metadata.aboutParagraph1.value</p><% end %>
  1115. <% if model.nonCSS.includeAboutHeading2 then %><h2 id="metadata.aboutHeading2.value" class="subsequent heading heading_about"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutHeading2.value');"<% end %>>$model.metadata.aboutHeading2.value</h2><% end %>
  1116. <% if model.nonCSS.includeAboutParagraph2 then %><p id="nonCSS.aboutParagraph2.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutParagraph2.value');"<% end %>>$model.metadata.aboutParagraph2.value</p><% end %>
  1117. <% if model.nonCSS.includeAboutHeading3 then %><h2 id="metadata.aboutHeading3.value" class="subsequent heading heading_about"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutHeading3.value');"<% end %>>$model.metadata.aboutHeading3.value</h2><% end %>
  1118. <% if model.nonCSS.includeAboutParagraph3 then %><p id="nonCSS.aboutParagraph3.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutParagraph3.value');"<% end %>>$model.metadata.aboutParagraph3.value</p><% end %>
  1119. <% if model.nonCSS.includeAboutHeading4 then %><h2 id="metadata.aboutHeading4.value" class="subsequent heading heading_about"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutHeading4.value');"<% end %>>$model.metadata.aboutHeading4.value</h2><% end %>
  1120. <% if model.nonCSS.includeAboutParagraph4 then %><p id="nonCSS.aboutParagraph4.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutParagraph4.value');"<% end %>>$model.metadata.aboutParagraph4.value</p><% end %>
  1121. <% if model.nonCSS.includeAboutHeading5 then %><h2 id="metadata.aboutHeading5.value" class="subsequent heading heading_about"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutHeading5.value');"<% end %>>$model.metadata.aboutHeading5.value</h2><% end %>
  1122. <% if model.nonCSS.includeAboutParagraph5 then %><p id="nonCSS.aboutParagraph5.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutParagraph5.value');"<% end %>>$model.metadata.aboutParagraph5.value</p><% end %>
  1123. </div>
  1124. <div class="clear"></div>
  1125. </div> <!-- /page_content home -->
  1126. <% elseif model.nonCSS.aboutConfiguration == "imageupcopydown" then %>
  1127. <div id="page_content" class="about">
  1128. <% if model.nonCSS.about_stage then %>
  1129. <style type="text/css">
  1130. #about_frame { margin: 0 auto 2em !important; }
  1131. </style>
  1132. <% if model.nonCSS.about_galleryType == "none" then %>
  1133. <div id="about_frame">
  1134. <div id="about_flashcontent">
  1135. <p style="margin: 0 !important;">You have chosen to replace this image with a Flash gallery. Please select a Gallery Type from the Appearance pane so that we can properly prepare the stage for your gallery.</p>
  1136. </div>
  1137. </div>
  1138. <% elseif model.nonCSS.about_galleryType == "autoviewer" then %>
  1139. <% if mode == 'preview' then %>
  1140. <div id="about_frame">
  1141. <div id="about_flashcontent">
  1142. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1143. <p><strong>Setup Instructions</strong></p>
  1144. <p>Export an Autoviewer gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-autoviewer/">TTG Autoviewer</a> or Airtight Autoviewer web engine. Name the export folder "about_autoviewer" and copy it into the exported TTG Pages folder.</p>
  1145. </div>
  1146. </div>
  1147. </div>
  1148. <% else %>
  1149. <div id="about_frame">
  1150. <div id="about_flashcontent"></div>
  1151. <script language="JavaScript">
  1152. var flashvars = {
  1153. // langOpenImage: "Open Image in New Window",
  1154. // langAbout: "About",
  1155. xmlURL: "gallery.xml"
  1156. }
  1157. var params = {
  1158. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  1159. scale: "noscale",
  1160. base: "about_autoviewer/"
  1161. }
  1162. var attributes = {
  1163. }
  1164. swfobject.embedSWF("about_autoviewer/viewer.swf", "about_flashcontent", "100%", "100%", "8", false, flashvars, params, attributes);
  1165. </script>
  1166. </div>
  1167. <% end %>
  1168. <% elseif model.nonCSS.about_galleryType == "dimin" then %>
  1169. <% if mode == 'preview' then %>
  1170. <div id="about_frame">
  1171. <div id="about_flashcontent">
  1172. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1173. <p><strong>Setup Instructions</strong></p>
  1174. <p>Export a gallery using the <a href="http://dimin.m6.net/software/lightroom/">DIMIN Slideshow</a> web engine. Name the export folder "about_dimin" and copy it into the exported TTG Pages folder.</p>
  1175. </div>
  1176. </div>
  1177. </div>
  1178. <% else %>
  1179. <div id="about_frame">
  1180. <div id="about_flashcontent">DIMIN Slideshow requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash here.</a></div>
  1181. <script language="JavaScript">
  1182. var flashvars = {
  1183. width: "<%= model.nonCSS.about_gallery_width %>",
  1184. height: "<%= model.nonCSS.about_gallery_height %>",
  1185. file: "slideshow.xml"
  1186. }
  1187. var params = {
  1188. allowfullscreen: "true",
  1189. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  1190. base: "about_dimin/"
  1191. }
  1192. var attributes = {
  1193. }
  1194. swfobject.embedSWF("about_dimin/imagerotator.swf", "about_flashcontent", "<%= model.nonCSS.about_gallery_width %>", "<%= model.nonCSS.about_gallery_height %>", "7", false, flashvars, params, attributes);
  1195. </script>
  1196. </div>
  1197. <% end %>
  1198. <% elseif model.nonCSS.about_galleryType == "flashnifties" then %>
  1199. <% if mode == 'preview' then %>
  1200. <div id="about_frame">
  1201. <div id="about_flashcontent">
  1202. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1203. <p><strong>Setup Instructions</strong></p>
  1204. <p>Export a gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-flashnifties/">TTG Flashnifties</a> web engine. Name the export folder "about_flashnifties" and copy it into the exported TTG Pages folder.</p>
  1205. </div>
  1206. </div>
  1207. </div>
  1208. <% else %>
  1209. <div id="about_frame">
  1210. <div id="about_flashcontent">This gallery requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  1211. <script language="JavaScript">
  1212. var flashvars = {
  1213. }
  1214. var params = {
  1215. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  1216. base: "about_flashnifties/"
  1217. }
  1218. var attributes = {
  1219. }
  1220. swfobject.embedSWF("about_flashnifties/xmlGallery.swf", "about_flashcontent", "100%", "100%", "6", false, flashvars, params, attributes);
  1221. </script>
  1222. </div>
  1223. <% end %>
  1224. <% elseif model.nonCSS.about_galleryType == "flickr" then %>
  1225. <% if mode == 'preview' then %>
  1226. <div id="about_frame">
  1227. <div id="about_flashcontent">
  1228. <div id="flickr" style="padding:1em;font-size:11px;line-height:17px;">
  1229. <p><strong>Flickr Setup</strong></p>
  1230. <p>Input your Flickr username and the ID number of the Flickr Set you wish to display into the "Flickr Username" and "Flickr Set ID" fields, respectively.</p>
  1231. <p>To get the Flickr Set ID, visit your set on Flickr. The URL for the set will look like this: http://www.flickr.com/photos/username/sets/<span style="color:#f00 !important;">#################</span>/.</p>
  1232. <p>The number, shown here in red, is the set ID. Copy and paste that number into the "Flickr Set ID" field in the Appearance pane.</p>
  1233. <p>TTG Stage will only display <strong>sets</strong>, not collections, nor photostreams. The gallery will not display here in the LR preview, but will appear in the exported gallery, or when previewed in a browser.</p>
  1234. <p>The URL that will be displayed in your gallery is:</p>
  1235. <p><a href="http://www.flickr.com/photos/<%=model.nonCSS.about_flickrUser %>/sets/<%= model.nonCSS.about_flickrSet %>/">http://www.flickr.com/photos/<%=model.nonCSS.about_flickrUser %>/sets/<%= model.nonCSS.about_flickrSet %>/</a></p>
  1236. <p>Check that the URL is correct by clicking on it and verifying its destination.</p>
  1237. </div>
  1238. </div>
  1239. </div>
  1240. <% else %>
  1241. <div id="about_frame">
  1242. <div id="about_flashcontent">Flash is required to view this gallery. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  1243. <script language="JavaScript">
  1244. var flashvars = {
  1245. offsite: "true",
  1246. lang: "en-us",
  1247. page_show_url: "/photos/<%= model.nonCSS.about_flickrUser %>/sets/<%= model.nonCSS.about_flickrSet %>/show/",
  1248. set_id: "<%= model.nonCSS.about_flickrSet %>",
  1249. page_show_back_url: "/photos/<%= model.nonCSS.about_flickrUser %>/sets/<%= model.nonCSS.about_flickrSet %>/",
  1250. jump_to: ""
  1251. }
  1252. var params = {
  1253. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  1254. allowfullscreen: "true"
  1255. }
  1256. var attributes = {
  1257. }
  1258. swfobject.embedSWF("http://www.flickr.com/apps/slideshow/show.swf", "about_flashcontent", "100%", "100%", "7", false, flashvars, params, attributes);
  1259. </script>
  1260. </div>
  1261. <% end %>
  1262. <% elseif model.nonCSS.about_galleryType == "lightroomflashgallery" then %>
  1263. <% if mode == 'preview' then %>
  1264. <div id="about_frame">
  1265. <div id="about_flashcontent">
  1266. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1267. <p><strong>Setup Instructions</strong></p>
  1268. <p>Export a gallery using the Lightroom Flash Gallery web engine. Name the export folder "about_lightroomflashgallery" and copy it into the exported TTG Pages folder.</p>
  1269. </div>
  1270. </div>
  1271. </div>
  1272. <% else %>
  1273. <div id="about_frame">
  1274. <div id="about_flashcontent">
  1275. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  1276. width="100%" height="100%"
  1277. codebase="http://download.macromedia.com/pub/shockwave/
  1278. cabs/flash/swflash.cab">
  1279. <param name="movie" value="about_lightroomflashgallery/resources/gallery.swf"/>
  1280. <param name="flashvars"
  1281. value="livePreview=false
  1282. &baseRefUrl=about_lightroomflashgallery/
  1283. &groupxml=resources/mediaGroupData/group.xml
  1284. &stylexml=resources/styles/style.xml
  1285. &localText=resources/localization/localText.xml"/>
  1286. <param name="id" value="gallery"/>
  1287. <param name="quality" value="high"/>
  1288. <param name="align" value="middle"/>
  1289. <param name="name" value="gallery"/>
  1290. <param name="bgcolor" value="#f7f7f7"/>
  1291. <param name="allowScriptAccess" value="sameDomain"/>
  1292. <param name="menu" value="true"/>
  1293. <embed src="about_lightroomflashgallery/resources/gallery.swf"
  1294. type="application/x-shockwave-flash"
  1295. pluginspage="http://www.macromedia.com/go/getflashplayer"
  1296. flashvars="livePreview=false
  1297. &baseRefUrl=about_lightroomflashgallery/
  1298. &groupxml=resources/mediaGroupData/group.xml
  1299. &stylexml=resources/styles/style.xml
  1300. &localText=resources/localization/localText.xml"
  1301. width="100%" height="100%" quality="high" align="middle"
  1302. allowScriptAccess="sameDomain">
  1303. </embed>
  1304. </object>
  1305. </div>
  1306. </div>
  1307. <% end %>
  1308. <% elseif model.nonCSS.about_galleryType == "monoslideshow" then %>
  1309. <% if mode == 'preview' then %>
  1310. <div id="about_frame">
  1311. <div id="about_flashcontent">
  1312. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1313. <p><strong>Setup Instructions</strong></p>
  1314. <p>Export a gallery using the (discontinued) TTG MonoSlideshow web engine, or create a Monoslideshow gallery on your own. Name the export folder "about_monoslideshow" and copy it into the exported TTG Pages folder.</p>
  1315. </div>
  1316. </div>
  1317. </div>
  1318. <% else %>
  1319. <div id="about_frame">
  1320. <div id="about_flashcontent">
  1321. <p><strong>Please install Flash® and turn on Javascript.</strong></p>
  1322. </div>
  1323. <script language="JavaScript">
  1324. var flashvars = {
  1325. showLogo: "false"
  1326. }
  1327. var params = {
  1328. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  1329. base: "about_monoslideshow/"
  1330. }
  1331. var attributes = {
  1332. }
  1333. swfobject.embedSWF("about_monoslideshow/monoslideshow.swf", "about_flashcontent", "100%", "100%", "7", false, flashvars, params, attributes);
  1334. </script>
  1335. </div>
  1336. <% end %>
  1337. <% elseif model.nonCSS.about_galleryType == "monoslideshow2" then %>
  1338. <% if mode == 'preview' then %>
  1339. <div id="about_frame">
  1340. <div id="about_flashcontent">
  1341. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1342. <p><strong>Setup Instructions</strong></p>
  1343. <p>Export a gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-monoslideshow/">TTG MonoSlideshow</a> web engine. Name the export folder "about_monoslideshow" and copy it into the exported TTG Pages folder.</p>
  1344. </div>
  1345. </div>
  1346. </div>
  1347. <% else %>
  1348. <div id="about_frame">
  1349. <div id="about_flashcontent">
  1350. <p>Please <a href="http://get.adobe.com/flashplayer/">install Flash®</a> and turn on Javascript.</p>
  1351. </div>
  1352. <script type="text/javascript">
  1353. var flashvars = {showLogo: "false", showRegistration: "false"};
  1354. var params = {allowScriptAccess: "sameDomain", allowfullscreen: "true", allowNetworking: "all", base: "about_monoslideshow/"};
  1355. var attributes = {id: "monoslideshow", name: "monoslideshow", bgColor: "<%= model.nonCSS.about_stageBGC %>"};
  1356. swfobject.embedSWF("about_monoslideshow/monoslideshow.swf", "about_flashcontent", "100%", "100%", "9", false, flashvars, params, attributes);
  1357. </script>
  1358. </div>
  1359. <% end %>
  1360. <% elseif model.nonCSS.about_galleryType == "polaroid" then %>
  1361. <% if mode == 'preview' then %>
  1362. <div id="about_frame">
  1363. <div id="about_flashcontent">
  1364. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1365. <p><strong>Setup Instructions</strong></p>
  1366. <p>Export a gallery using the <a style="color:#e5a638 !important;" href="http://lightroom.theturninggate.net/flash-galleries/ttg-polaroid-gallery/">TTG Polaroid Gallery</a> web engine. Name the export folder "about_polaroid" and copy it into the exported TTG Pages folder.</p>
  1367. </div>
  1368. </div>
  1369. </div>
  1370. <% else %>
  1371. <div id="about_frame">
  1372. <div id="about_flashcontent">This gallery requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  1373. <script language="JavaScript">
  1374. var flashvars = {
  1375. xmlURL: "photos.xml"
  1376. }
  1377. var params = {
  1378. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  1379. base: "about_polaroid/"
  1380. }
  1381. var attributes = {
  1382. }
  1383. swfobject.embedSWF("about_polaroid/polaroid.swf", "about_flashcontent", "100%", "100%", "8", false, flashvars, params, attributes);
  1384. </script>
  1385. </div>
  1386. <% end %>
  1387. <% elseif model.nonCSS.about_galleryType == "postcardviewer" then %>
  1388. <% if mode == 'preview' then %>
  1389. <div id="about_frame">
  1390. <div id="about_flashcontent">
  1391. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1392. <p><strong>Setup Instructions</strong></p>
  1393. <p>Export a PostcardViewer gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-postcardviewer/">TTG PostcardViewer</a> or Airtight PostcardViewer web engine. Name the export folder "about_postcardviewer" and copy it into the exported TTG Pages folder.</p>
  1394. </div>
  1395. </div>
  1396. </div>
  1397. <% else %>
  1398. <div id="about_frame">
  1399. <div id="about_flashcontent">PostcardViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash here.</a> </div>
  1400. <script language="JavaScript">
  1401. var flashvars = {
  1402. // langOpenImage: "Open Image in New Window",
  1403. // langAbout: "About",
  1404. xmlURL: "gallery.xml"
  1405. }
  1406. var params = {
  1407. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  1408. base: "about_postcardviewer/"
  1409. }
  1410. var attributes = {
  1411. }
  1412. swfobject.embedSWF("about_postcardviewer/viewer.swf", "about_flashcontent", "100%", "100%", "8", false, flashvars, params, attributes);
  1413. </script>
  1414. </div>
  1415. <% end %>
  1416. <% elseif model.nonCSS.about_galleryType == "simpleviewer" then %>
  1417. <% if mode == 'preview' then %>
  1418. <div id="about_frame">
  1419. <div id="about_flashcontent">
  1420. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1421. <p><strong>Setup Instructions</strong></p>
  1422. <p>Export a Simpleviewer gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-simpleviewer/">TTG Simpleviewer</a> or Airtight Simpleviewer web engine. Name the export folder "about_simpleviewer" and copy it into the exported TTG Pages folder.</p>
  1423. </div>
  1424. </div>
  1425. </div>
  1426. <% else %>
  1427. <div id="about_frame">
  1428. <div id="about_flashcontent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  1429. <script language="JavaScript">
  1430. var flashvars = {
  1431. // langOpenImage: "Open Image in New Window",
  1432. // langAbout: "About",
  1433. preloaderColor: "0xffffff",
  1434. xmlDataPath: "gallery.xml"
  1435. }
  1436. var params = {
  1437. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  1438. base: "about_simpleviewer/"
  1439. }
  1440. var attributes = {
  1441. }
  1442. swfobject.embedSWF("about_simpleviewer/viewer.swf", "about_flashcontent", "100%", "100%", "7", false, flashvars, params, attributes);
  1443. </script>
  1444. </div>
  1445. <% end %>
  1446. <% elseif model.nonCSS.about_galleryType == "simpleviewer2" then %>
  1447. <% if mode == 'preview' then %>
  1448. <div id="about_frame">
  1449. <div id="about_flashcontent">
  1450. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1451. <p><strong>Setup Instructions</strong></p>
  1452. <p>Export a Simpleviewer gallery using the <a style="color:#e5a638 !important;" href="http://lightroom.theturninggate.net/flash-galleries/ttg-simpleviewer/">TTG Simpleviewer-2</a> web engine. Name the export folder "about_simpleviewer" and copy it into the exported TTG Stage folder.</p>
  1453. </div>
  1454. </div>
  1455. </div>
  1456. <% else %>
  1457. <div id="about_frame">
  1458. <div id="about_flashcontent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  1459. <script type="text/javascript">
  1460. var flashvars = {};
  1461. flashvars.baseURL="about_simpleviewer/";
  1462. flashvars.galleryURL = "gallery.xml";
  1463. var params = {};
  1464. params.allowfullscreen = true;
  1465. params.allowscriptaccess = "always";
  1466. params.bgcolor = "<%= model.nonCSS.about_stageBGC %>";
  1467. swfobject.embedSWF("about_simpleviewer/simpleviewer.swf", "about_flashcontent", "100%", "100%", "9.0.124", false, flashvars, params);
  1468. </script>
  1469. </div>
  1470. <% end %>
  1471. <% elseif model.nonCSS.about_galleryType == "slideshowpro" then %>
  1472. <% if mode == 'preview' then %>
  1473. <div id="about_frame">
  1474. <div id="about_flashcontent">
  1475. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1476. <p><strong>Setup Instructions</strong></p>
  1477. <p>Export a gallery using the <a href="http://www.slideshowpro.net">Slideshow Pro</a> web engine. Name the export folder "about_slideshowpro" and copy it into the exported TTG Pages folder.</p>
  1478. </div>
  1479. </div>
  1480. </div>
  1481. <% else %>
  1482. <div id="about_frame">
  1483. <div id="about_flashcontent">
  1484. This SlideShowPro photo gallery requires the Flash Player plugin and a web browser with JavaScript enabled.
  1485. </div>
  1486. <script language="JavaScript">
  1487. <!--
  1488. // Permalinks option
  1489. function flashPutHref(href) { location.href = href; }
  1490. // Expand browser option
  1491. var eB = false;
  1492. if (eB) {
  1493. window.moveTo(0,0);
  1494. window.resizeTo (screen.availWidth, screen.availHeight);
  1495. }
  1496. // swffit sizing
  1497. var swf_pad = 20;
  1498. function initSwffit(w,h) {
  1499. // If you change name of the DIV the SWF is written at,
  1500. // change 'flashcontent' to the name of your DIV.
  1501. swffit.fit('about_flashcontent',w+swf_pad,h+swf_pad);
  1502. }
  1503. // SWFObject embed
  1504. var flashvars = {
  1505. paramXMLPath: "param.xml",
  1506. initialURL: escape(document.location)
  1507. }
  1508. var params = {
  1509. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  1510. allowfullscreen: "true",
  1511. base: "about_slideshowpro/"
  1512. }
  1513. var attributes = {}
  1514. swfobject.embedSWF("about_slideshowpro/loader.swf", "about_flashcontent", "100%", "100%", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
  1515. /* below required for google chrome embed issue */
  1516. swffit.fit('about_flashcontent',0,0);
  1517. -->
  1518. </script>
  1519. </div> <!-- /frame -->
  1520. <% end %>
  1521. <% end %>
  1522. <% else %>
  1523. <img src="photos/<%= getImage(2).exportFilename %>.jpg" class="page_img" width="<%= getImage(2).renditions.photos.width %>" height="<%= getImage(2).renditions.photos.height %>" alt="<%= getImage(2).metadata.alt %>" style="margin: 0 0 20px 0 !important;" />
  1524. <% end %>
  1525. <div class="copy" style="width: <%= math.floor( model.nonCSS.aboutWidth - ( model.nonCSS.page_content_padding * 2 ) - ( model.nonCSS.page_content_border * 2 ) ) %>px;">
  1526. <% if model.nonCSS.includeAboutHeading1 then %><h2 id="metadata.aboutHeading1.value" class="first heading heading_about"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutHeading1.value');"<% end %>>$model.metadata.aboutHeading1.value</h2><% end %>
  1527. <% if model.nonCSS.includeAboutParagraph1 then %><p id="nonCSS.aboutParagraph1.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutParagraph1.value');"<% end %>>$model.metadata.aboutParagraph1.value</p><% end %>
  1528. <% if model.nonCSS.includeAboutHeading2 then %><h2 id="metadata.aboutHeading2.value" class="subsequent heading heading_about"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutHeading2.value');"<% end %>>$model.metadata.aboutHeading2.value</h2><% end %>
  1529. <% if model.nonCSS.includeAboutParagraph2 then %><p id="nonCSS.aboutParagraph2.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutParagraph2.value');"<% end %>>$model.metadata.aboutParagraph2.value</p><% end %>
  1530. <% if model.nonCSS.includeAboutHeading3 then %><h2 id="metadata.aboutHeading3.value" class="subsequent heading heading_about"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutHeading3.value');"<% end %>>$model.metadata.aboutHeading3.value</h2><% end %>
  1531. <% if model.nonCSS.includeAboutParagraph3 then %><p id="nonCSS.aboutParagraph3.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutParagraph3.value');"<% end %>>$model.metadata.aboutParagraph3.value</p><% end %>
  1532. <% if model.nonCSS.includeAboutHeading4 then %><h2 id="metadata.aboutHeading4.value" class="subsequent heading heading_about"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutHeading4.value');"<% end %>>$model.metadata.aboutHeading4.value</h2><% end %>
  1533. <% if model.nonCSS.includeAboutParagraph4 then %><p id="nonCSS.aboutParagraph4.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutParagraph4.value');"<% end %>>$model.metadata.aboutParagraph4.value</p><% end %>
  1534. <% if model.nonCSS.includeAboutHeading5 then %><h2 id="metadata.aboutHeading5.value" class="subsequent heading heading_about"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutHeading5.value');"<% end %>>$model.metadata.aboutHeading5.value</h2><% end %>
  1535. <% if model.nonCSS.includeAboutParagraph5 then %><p id="nonCSS.aboutParagraph5.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutParagraph5.value');"<% end %>>$model.metadata.aboutParagraph5.value</p><% end %>
  1536. </div>
  1537. <div class="clear"></div>
  1538. </div> <!-- /page_content home -->
  1539. <% elseif model.nonCSS.aboutConfiguration == "copyupimagedown" then %>
  1540. <div id="page_content" class="about">
  1541. <div class="copy" style="width: <%= math.floor( model.nonCSS.aboutWidth - ( model.nonCSS.page_content_padding * 2 ) - ( model.nonCSS.page_content_border * 2 ) ) %>px;">
  1542. <% if model.nonCSS.includeAboutHeading1 then %><h2 id="metadata.aboutHeading1.value" class="first heading heading_about"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutHeading1.value');"<% end %>>$model.metadata.aboutHeading1.value</h2><% end %>
  1543. <% if model.nonCSS.includeAboutParagraph1 then %><p id="nonCSS.aboutParagraph1.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutParagraph1.value');"<% end %>>$model.metadata.aboutParagraph1.value</p><% end %>
  1544. <% if model.nonCSS.includeAboutHeading2 then %><h2 id="metadata.aboutHeading2.value" class="subsequent heading heading_about"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutHeading2.value');"<% end %>>$model.metadata.aboutHeading2.value</h2><% end %>
  1545. <% if model.nonCSS.includeAboutParagraph2 then %><p id="nonCSS.aboutParagraph2.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutParagraph2.value');"<% end %>>$model.metadata.aboutParagraph2.value</p><% end %>
  1546. <% if model.nonCSS.includeAboutHeading3 then %><h2 id="metadata.aboutHeading3.value" class="subsequent heading heading_about"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutHeading3.value');"<% end %>>$model.metadata.aboutHeading3.value</h2><% end %>
  1547. <% if model.nonCSS.includeAboutParagraph3 then %><p id="nonCSS.aboutParagraph3.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutParagraph3.value');"<% end %>>$model.metadata.aboutParagraph3.value</p><% end %>
  1548. <% if model.nonCSS.includeAboutHeading4 then %><h2 id="metadata.aboutHeading4.value" class="subsequent heading heading_about"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutHeading4.value');"<% end %>>$model.metadata.aboutHeading4.value</h2><% end %>
  1549. <% if model.nonCSS.includeAboutParagraph4 then %><p id="nonCSS.aboutParagraph4.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutParagraph4.value');"<% end %>>$model.metadata.aboutParagraph4.value</p><% end %>
  1550. <% if model.nonCSS.includeAboutHeading5 then %><h2 id="metadata.aboutHeading5.value" class="subsequent heading heading_about"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutHeading5.value');"<% end %>>$model.metadata.aboutHeading5.value</h2><% end %>
  1551. <% if model.nonCSS.includeAboutParagraph5 then %><p id="nonCSS.aboutParagraph5.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutParagraph5.value');"<% end %>>$model.metadata.aboutParagraph5.value</p><% end %>
  1552. </div>
  1553. <% if model.nonCSS.home_stage then %>
  1554. <style type="text/css">
  1555. #home_frame { margin: 2em auto 0 !important; }
  1556. </style>
  1557. <% if model.nonCSS.about_galleryType == "none" then %>
  1558. <div id="about_frame">
  1559. <div id="about_flashcontent">
  1560. <p style="margin: 0 !important;">You have chosen to replace this image with a Flash gallery. Please select a Gallery Type from the Appearance pane so that we can properly prepare the stage for your gallery.</p>
  1561. </div>
  1562. </div>
  1563. <% elseif model.nonCSS.about_galleryType == "autoviewer" then %>
  1564. <% if mode == 'preview' then %>
  1565. <div id="about_frame">
  1566. <div id="about_flashcontent">
  1567. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1568. <p><strong>Setup Instructions</strong></p>
  1569. <p>Export an Autoviewer gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-autoviewer/">TTG Autoviewer</a> or Airtight Autoviewer web engine. Name the export folder "about_autoviewer" and copy it into the exported TTG Pages folder.</p>
  1570. </div>
  1571. </div>
  1572. </div>
  1573. <% else %>
  1574. <div id="about_frame">
  1575. <div id="about_flashcontent"></div>
  1576. <script language="JavaScript">
  1577. var flashvars = {
  1578. // langOpenImage: "Open Image in New Window",
  1579. // langAbout: "About",
  1580. xmlURL: "gallery.xml"
  1581. }
  1582. var params = {
  1583. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  1584. scale: "noscale",
  1585. base: "about_autoviewer/"
  1586. }
  1587. var attributes = {
  1588. }
  1589. swfobject.embedSWF("about_autoviewer/viewer.swf", "about_flashcontent", "100%", "100%", "8", false, flashvars, params, attributes);
  1590. </script>
  1591. </div>
  1592. <% end %>
  1593. <% elseif model.nonCSS.about_galleryType == "dimin" then %>
  1594. <% if mode == 'preview' then %>
  1595. <div id="about_frame">
  1596. <div id="about_flashcontent">
  1597. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1598. <p><strong>Setup Instructions</strong></p>
  1599. <p>Export a gallery using the <a href="http://dimin.m6.net/software/lightroom/">DIMIN Slideshow</a> web engine. Name the export folder "about_dimin" and copy it into the exported TTG Pages folder.</p>
  1600. </div>
  1601. </div>
  1602. </div>
  1603. <% else %>
  1604. <div id="about_frame">
  1605. <div id="about_flashcontent">DIMIN Slideshow requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash here.</a></div>
  1606. <script language="JavaScript">
  1607. var flashvars = {
  1608. width: "<%= model.nonCSS.about_gallery_width %>",
  1609. height: "<%= model.nonCSS.about_gallery_height %>",
  1610. file: "slideshow.xml"
  1611. }
  1612. var params = {
  1613. allowfullscreen: "true",
  1614. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  1615. base: "about_dimin/"
  1616. }
  1617. var attributes = {
  1618. }
  1619. swfobject.embedSWF("about_dimin/imagerotator.swf", "about_flashcontent", "<%= model.nonCSS.about_gallery_width %>", "<%= model.nonCSS.about_gallery_height %>", "7", false, flashvars, params, attributes);
  1620. </script>
  1621. </div>
  1622. <% end %>
  1623. <% elseif model.nonCSS.about_galleryType == "flashnifties" then %>
  1624. <% if mode == 'preview' then %>
  1625. <div id="about_frame">
  1626. <div id="about_flashcontent">
  1627. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1628. <p><strong>Setup Instructions</strong></p>
  1629. <p>Export a gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-flashnifties/">TTG Flashnifties</a> web engine. Name the export folder "about_flashnifties" and copy it into the exported TTG Pages folder.</p>
  1630. </div>
  1631. </div>
  1632. </div>
  1633. <% else %>
  1634. <div id="about_frame">
  1635. <div id="about_flashcontent">This gallery requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  1636. <script language="JavaScript">
  1637. var flashvars = {
  1638. }
  1639. var params = {
  1640. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  1641. base: "about_flashnifties/"
  1642. }
  1643. var attributes = {
  1644. }
  1645. swfobject.embedSWF("about_flashnifties/xmlGallery.swf", "about_flashcontent", "100%", "100%", "6", false, flashvars, params, attributes);
  1646. </script>
  1647. </div>
  1648. <% end %>
  1649. <% elseif model.nonCSS.about_galleryType == "flickr" then %>
  1650. <% if mode == 'preview' then %>
  1651. <div id="about_frame">
  1652. <div id="about_flashcontent">
  1653. <div id="flickr" style="padding:1em;font-size:11px;line-height:17px;">
  1654. <p><strong>Flickr Setup</strong></p>
  1655. <p>Input your Flickr username and the ID number of the Flickr Set you wish to display into the "Flickr Username" and "Flickr Set ID" fields, respectively.</p>
  1656. <p>To get the Flickr Set ID, visit your set on Flickr. The URL for the set will look like this: http://www.flickr.com/photos/username/sets/<span style="color:#f00 !important;">#################</span>/.</p>
  1657. <p>The number, shown here in red, is the set ID. Copy and paste that number into the "Flickr Set ID" field in the Appearance pane.</p>
  1658. <p>TTG Stage will only display <strong>sets</strong>, not collections, nor photostreams. The gallery will not display here in the LR preview, but will appear in the exported gallery, or when previewed in a browser.</p>
  1659. <p>The URL that will be displayed in your gallery is:</p>
  1660. <p><a href="http://www.flickr.com/photos/<%=model.nonCSS.about_flickrUser %>/sets/<%= model.nonCSS.about_flickrSet %>/">http://www.flickr.com/photos/<%=model.nonCSS.about_flickrUser %>/sets/<%= model.nonCSS.about_flickrSet %>/</a></p>
  1661. <p>Check that the URL is correct by clicking on it and verifying its destination.</p>
  1662. </div>
  1663. </div>
  1664. </div>
  1665. <% else %>
  1666. <div id="about_frame">
  1667. <div id="about_flashcontent">Flash is required to view this gallery. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  1668. <script language="JavaScript">
  1669. var flashvars = {
  1670. offsite: "true",
  1671. lang: "en-us",
  1672. page_show_url: "/photos/<%= model.nonCSS.about_flickrUser %>/sets/<%= model.nonCSS.about_flickrSet %>/show/",
  1673. set_id: "<%= model.nonCSS.about_flickrSet %>",
  1674. page_show_back_url: "/photos/<%= model.nonCSS.about_flickrUser %>/sets/<%= model.nonCSS.about_flickrSet %>/",
  1675. jump_to: ""
  1676. }
  1677. var params = {
  1678. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  1679. allowfullscreen: "true"
  1680. }
  1681. var attributes = {
  1682. }
  1683. swfobject.embedSWF("http://www.flickr.com/apps/slideshow/show.swf", "about_flashcontent", "100%", "100%", "7", false, flashvars, params, attributes);
  1684. </script>
  1685. </div>
  1686. <% end %>
  1687. <% elseif model.nonCSS.about_galleryType == "lightroomflashgallery" then %>
  1688. <% if mode == 'preview' then %>
  1689. <div id="about_frame">
  1690. <div id="about_flashcontent">
  1691. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1692. <p><strong>Setup Instructions</strong></p>
  1693. <p>Export a gallery using the Lightroom Flash Gallery web engine. Name the export folder "about_lightroomflashgallery" and copy it into the exported TTG Pages folder.</p>
  1694. </div>
  1695. </div>
  1696. </div>
  1697. <% else %>
  1698. <div id="about_frame">
  1699. <div id="about_flashcontent">
  1700. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  1701. width="100%" height="100%"
  1702. codebase="http://download.macromedia.com/pub/shockwave/
  1703. cabs/flash/swflash.cab">
  1704. <param name="movie" value="about_lightroomflashgallery/resources/gallery.swf"/>
  1705. <param name="flashvars"
  1706. value="livePreview=false
  1707. &baseRefUrl=about_lightroomflashgallery/
  1708. &groupxml=resources/mediaGroupData/group.xml
  1709. &stylexml=resources/styles/style.xml
  1710. &localText=resources/localization/localText.xml"/>
  1711. <param name="id" value="gallery"/>
  1712. <param name="quality" value="high"/>
  1713. <param name="align" value="middle"/>
  1714. <param name="name" value="gallery"/>
  1715. <param name="bgcolor" value="#f7f7f7"/>
  1716. <param name="allowScriptAccess" value="sameDomain"/>
  1717. <param name="menu" value="true"/>
  1718. <embed src="about_lightroomflashgallery/resources/gallery.swf"
  1719. type="application/x-shockwave-flash"
  1720. pluginspage="http://www.macromedia.com/go/getflashplayer"
  1721. flashvars="livePreview=false
  1722. &baseRefUrl=about_lightroomflashgallery/
  1723. &groupxml=resources/mediaGroupData/group.xml
  1724. &stylexml=resources/styles/style.xml
  1725. &localText=resources/localization/localText.xml"
  1726. width="100%" height="100%" quality="high" align="middle"
  1727. allowScriptAccess="sameDomain">
  1728. </embed>
  1729. </object>
  1730. </div>
  1731. </div>
  1732. <% end %>
  1733. <% elseif model.nonCSS.about_galleryType == "monoslideshow" then %>
  1734. <% if mode == 'preview' then %>
  1735. <div id="about_frame">
  1736. <div id="about_flashcontent">
  1737. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1738. <p><strong>Setup Instructions</strong></p>
  1739. <p>Export a gallery using the (discontinued) TTG MonoSlideshow web engine, or create a Monoslideshow gallery on your own. Name the export folder "about_monoslideshow" and copy it into the exported TTG Pages folder.</p>
  1740. </div>
  1741. </div>
  1742. </div>
  1743. <% else %>
  1744. <div id="about_frame">
  1745. <div id="about_flashcontent">
  1746. <p><strong>Please install Flash® and turn on Javascript.</strong></p>
  1747. </div>
  1748. <script language="JavaScript">
  1749. var flashvars = {
  1750. showLogo: "false"
  1751. }
  1752. var params = {
  1753. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  1754. base: "about_monoslideshow/"
  1755. }
  1756. var attributes = {
  1757. }
  1758. swfobject.embedSWF("about_monoslideshow/monoslideshow.swf", "about_flashcontent", "100%", "100%", "7", false, flashvars, params, attributes);
  1759. </script>
  1760. </div>
  1761. <% end %>
  1762. <% elseif model.nonCSS.about_galleryType == "monoslideshow2" then %>
  1763. <% if mode == 'preview' then %>
  1764. <div id="about_frame">
  1765. <div id="about_flashcontent">
  1766. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1767. <p><strong>Setup Instructions</strong></p>
  1768. <p>Export a gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-monoslideshow/">TTG MonoSlideshow</a> web engine. Name the export folder "about_monoslideshow" and copy it into the exported TTG Pages folder.</p>
  1769. </div>
  1770. </div>
  1771. </div>
  1772. <% else %>
  1773. <div id="about_frame">
  1774. <div id="about_flashcontent">
  1775. <p>Please <a href="http://get.adobe.com/flashplayer/">install Flash®</a> and turn on Javascript.</p>
  1776. </div>
  1777. <script type="text/javascript">
  1778. var flashvars = {showLogo: "false", showRegistration: "false"};
  1779. var params = {allowScriptAccess: "sameDomain", allowfullscreen: "true", allowNetworking: "all", base: "about_monoslideshow/"};
  1780. var attributes = {id: "monoslideshow", name: "monoslideshow", bgColor: "<%= model.nonCSS.about_stageBGC %>"};
  1781. swfobject.embedSWF("about_monoslideshow/monoslideshow.swf", "about_flashcontent", "100%", "100%", "9", false, flashvars, params, attributes);
  1782. </script>
  1783. </div>
  1784. <% end %>
  1785. <% elseif model.nonCSS.about_galleryType == "polaroid" then %>
  1786. <% if mode == 'preview' then %>
  1787. <div id="about_frame">
  1788. <div id="about_flashcontent">
  1789. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1790. <p><strong>Setup Instructions</strong></p>
  1791. <p>Export a gallery using the <a style="color:#e5a638 !important;" href="http://lightroom.theturninggate.net/flash-galleries/ttg-polaroid-gallery/">TTG Polaroid Gallery</a> web engine. Name the export folder "about_polaroid" and copy it into the exported TTG Pages folder.</p>
  1792. </div>
  1793. </div>
  1794. </div>
  1795. <% else %>
  1796. <div id="about_frame">
  1797. <div id="about_flashcontent">This gallery requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  1798. <script language="JavaScript">
  1799. var flashvars = {
  1800. xmlURL: "photos.xml"
  1801. }
  1802. var params = {
  1803. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  1804. base: "about_polaroid/"
  1805. }
  1806. var attributes = {
  1807. }
  1808. swfobject.embedSWF("about_polaroid/polaroid.swf", "about_flashcontent", "100%", "100%", "8", false, flashvars, params, attributes);
  1809. </script>
  1810. </div>
  1811. <% end %>
  1812. <% elseif model.nonCSS.about_galleryType == "postcardviewer" then %>
  1813. <% if mode == 'preview' then %>
  1814. <div id="about_frame">
  1815. <div id="about_flashcontent">
  1816. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1817. <p><strong>Setup Instructions</strong></p>
  1818. <p>Export a PostcardViewer gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-postcardviewer/">TTG PostcardViewer</a> or Airtight PostcardViewer web engine. Name the export folder "about_postcardviewer" and copy it into the exported TTG Pages folder.</p>
  1819. </div>
  1820. </div>
  1821. </div>
  1822. <% else %>
  1823. <div id="about_frame">
  1824. <div id="about_flashcontent">PostcardViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash here.</a> </div>
  1825. <script language="JavaScript">
  1826. var flashvars = {
  1827. // langOpenImage: "Open Image in New Window",
  1828. // langAbout: "About",
  1829. xmlURL: "gallery.xml"
  1830. }
  1831. var params = {
  1832. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  1833. base: "about_postcardviewer/"
  1834. }
  1835. var attributes = {
  1836. }
  1837. swfobject.embedSWF("about_postcardviewer/viewer.swf", "about_flashcontent", "100%", "100%", "8", false, flashvars, params, attributes);
  1838. </script>
  1839. </div>
  1840. <% end %>
  1841. <% elseif model.nonCSS.about_galleryType == "simpleviewer" then %>
  1842. <% if mode == 'preview' then %>
  1843. <div id="about_frame">
  1844. <div id="about_flashcontent">
  1845. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1846. <p><strong>Setup Instructions</strong></p>
  1847. <p>Export a Simpleviewer gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-simpleviewer/">TTG Simpleviewer</a> or Airtight Simpleviewer web engine. Name the export folder "about_simpleviewer" and copy it into the exported TTG Pages folder.</p>
  1848. </div>
  1849. </div>
  1850. </div>
  1851. <% else %>
  1852. <div id="about_frame">
  1853. <div id="about_flashcontent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  1854. <script language="JavaScript">
  1855. var flashvars = {
  1856. // langOpenImage: "Open Image in New Window",
  1857. // langAbout: "About",
  1858. preloaderColor: "0xffffff",
  1859. xmlDataPath: "gallery.xml"
  1860. }
  1861. var params = {
  1862. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  1863. base: "about_simpleviewer/"
  1864. }
  1865. var attributes = {
  1866. }
  1867. swfobject.embedSWF("about_simpleviewer/viewer.swf", "about_flashcontent", "100%", "100%", "7", false, flashvars, params, attributes);
  1868. </script>
  1869. </div>
  1870. <% end %>
  1871. <% elseif model.nonCSS.about_galleryType == "simpleviewer2" then %>
  1872. <% if mode == 'preview' then %>
  1873. <div id="about_frame">
  1874. <div id="about_flashcontent">
  1875. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1876. <p><strong>Setup Instructions</strong></p>
  1877. <p>Export a Simpleviewer gallery using the <a style="color:#e5a638 !important;" href="http://lightroom.theturninggate.net/flash-galleries/ttg-simpleviewer/">TTG Simpleviewer-2</a> web engine. Name the export folder "about_simpleviewer" and copy it into the exported TTG Stage folder.</p>
  1878. </div>
  1879. </div>
  1880. </div>
  1881. <% else %>
  1882. <div id="about_frame">
  1883. <div id="about_flashcontent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  1884. <script type="text/javascript">
  1885. var flashvars = {};
  1886. flashvars.baseURL="about_simpleviewer/";
  1887. flashvars.galleryURL = "gallery.xml";
  1888. var params = {};
  1889. params.allowfullscreen = true;
  1890. params.allowscriptaccess = "always";
  1891. params.bgcolor = "<%= model.nonCSS.about_stageBGC %>";
  1892. swfobject.embedSWF("about_simpleviewer/simpleviewer.swf", "about_flashcontent", "100%", "100%", "9.0.124", false, flashvars, params);
  1893. </script>
  1894. </div>
  1895. <% end %>
  1896. <% elseif model.nonCSS.about_galleryType == "slideshowpro" then %>
  1897. <% if mode == 'preview' then %>
  1898. <div id="about_frame">
  1899. <div id="about_flashcontent">
  1900. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1901. <p><strong>Setup Instructions</strong></p>
  1902. <p>Export a gallery using the <a href="http://www.slideshowpro.net">Slideshow Pro</a> web engine. Name the export folder "about_slideshowpro" and copy it into the exported TTG Pages folder.</p>
  1903. </div>
  1904. </div>
  1905. </div>
  1906. <% else %>
  1907. <div id="about_frame">
  1908. <div id="about_flashcontent">
  1909. This SlideShowPro photo gallery requires the Flash Player plugin and a web browser with JavaScript enabled.
  1910. </div>
  1911. <script language="JavaScript">
  1912. <!--
  1913. // Permalinks option
  1914. function flashPutHref(href) { location.href = href; }
  1915. // Expand browser option
  1916. var eB = false;
  1917. if (eB) {
  1918. window.moveTo(0,0);
  1919. window.resizeTo (screen.availWidth, screen.availHeight);
  1920. }
  1921. // swffit sizing
  1922. var swf_pad = 20;
  1923. function initSwffit(w,h) {
  1924. // If you change name of the DIV the SWF is written at,
  1925. // change 'flashcontent' to the name of your DIV.
  1926. swffit.fit('about_flashcontent',w+swf_pad,h+swf_pad);
  1927. }
  1928. // SWFObject embed
  1929. var flashvars = {
  1930. paramXMLPath: "param.xml",
  1931. initialURL: escape(document.location)
  1932. }
  1933. var params = {
  1934. bgcolor: "<%= model.nonCSS.about_stageBGC %>",
  1935. allowfullscreen: "true",
  1936. base: "about_slideshowpro/"
  1937. }
  1938. var attributes = {}
  1939. swfobject.embedSWF("about_slideshowpro/loader.swf", "about_flashcontent", "100%", "100%", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
  1940. /* below required for google chrome embed issue */
  1941. swffit.fit('about_flashcontent',0,0);
  1942. -->
  1943. </script>
  1944. </div> <!-- /frame -->
  1945. <% end %>
  1946. <% end %>
  1947. <% else %>
  1948. <img src="photos/<%= getImage(2).exportFilename %>.jpg" class="page_img" width="<%= getImage(2).renditions.photos.width %>" height="<%= getImage(2).renditions.photos.height %>" alt="<%= getImage(2).metadata.alt %>" />
  1949. <% end %>
  1950. <div class="clear"></div>
  1951. </div> <!-- /page_content home -->
  1952. <% elseif model.nonCSS.aboutConfiguration == "noimagecopycenter" then %>
  1953. <div id="page_content" class="about">
  1954. <div class="copy" style="width: <%= math.floor( model.nonCSS.aboutWidth - ( model.nonCSS.page_content_padding * 2 ) - ( model.nonCSS.page_content_border * 2 ) ) %>px;">
  1955. <% if model.nonCSS.includeAboutHeading1 then %><h2 id="metadata.aboutHeading1.value" class="first heading heading_about"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutHeading1.value');"<% end %>>$model.metadata.aboutHeading1.value</h2><% end %>
  1956. <% if model.nonCSS.includeAboutParagraph1 then %><p id="nonCSS.aboutParagraph1.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutParagraph1.value');"<% end %>>$model.metadata.aboutParagraph1.value</p><% end %>
  1957. <% if model.nonCSS.includeAboutHeading2 then %><h2 id="metadata.aboutHeading2.value" class="subsequent heading heading_about"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutHeading2.value');"<% end %>>$model.metadata.aboutHeading2.value</h2><% end %>
  1958. <% if model.nonCSS.includeAboutParagraph2 then %><p id="nonCSS.aboutParagraph2.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutParagraph2.value');"<% end %>>$model.metadata.aboutParagraph2.value</p><% end %>
  1959. <% if model.nonCSS.includeAboutHeading3 then %><h2 id="metadata.aboutHeading3.value" class="subsequent heading heading_about"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutHeading3.value');"<% end %>>$model.metadata.aboutHeading3.value</h2><% end %>
  1960. <% if model.nonCSS.includeAboutParagraph3 then %><p id="nonCSS.aboutParagraph3.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutParagraph3.value');"<% end %>>$model.metadata.aboutParagraph3.value</p><% end %>
  1961. <% if model.nonCSS.includeAboutHeading4 then %><h2 id="metadata.aboutHeading4.value" class="subsequent heading heading_about"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutHeading4.value');"<% end %>>$model.metadata.aboutHeading4.value</h2><% end %>
  1962. <% if model.nonCSS.includeAboutParagraph4 then %><p id="nonCSS.aboutParagraph4.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutParagraph4.value');"<% end %>>$model.metadata.aboutParagraph4.value</p><% end %>
  1963. <% if model.nonCSS.includeAboutHeading5 then %><h2 id="metadata.aboutHeading5.value" class="subsequent heading heading_about"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutHeading5.value');"<% end %>>$model.metadata.aboutHeading5.value</h2><% end %>
  1964. <% if model.nonCSS.includeAboutParagraph5 then %><p id="nonCSS.aboutParagraph5.value"<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.aboutParagraph5.value');"<% end %>>$model.metadata.aboutParagraph5.value</p><% end %>
  1965. </div>
  1966. <div class="clear"></div>
  1967. </div> <!-- /page_content home -->
  1968. <% end %>
  1969. </div> <!-- /gallery -->
  1970. <% --[[ Include the page footer ]] %>
  1971. <% if model.nonCSS.includeFooter then %>
  1972. <div id="footer"<% if model.nonCSS.transparentBackground then %> style="background-color: transparent !important;"<% end %>>
  1973. <div id="footer_content">
  1974. <% 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 %>
  1975. <p<% if mode == "preview" then %> onclick="clickTarget (this, 'metadata.footer.text');"<% end %> class="footer_text">$model.metadata.footer.text
  1976. <% 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 %>
  1977. </p>
  1978. </div>
  1979. </div>
  1980. <% end %>
  1981. </div> <!-- /wrapper -->
  1982. <% if mode == 'publish' then %>
  1983. <%= model.metadata.script.footer %>
  1984. <% if model.nonCSS.disablerightclick then %>
  1985. <script type="text/javascript">
  1986. $(document).ready(function(){
  1987. $(document).bind("contextmenu",function(e){
  1988. return false;
  1989. });
  1990. });
  1991. </script><% end %>
  1992. <% if model.nonCSS.googleAnalytics then %>
  1993. <script type="text/javascript">
  1994. var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  1995. document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  1996. </script>
  1997. <script type="text/javascript">
  1998. try {
  1999. var pageTracker = _gat._getTracker("<%= model.metadata.googleAnalytics.id %>");
  2000. pageTracker._trackPageview();
  2001. } catch(err) {}
  2002. </script>
  2003. <% end %>
  2004. <% end %>
  2005. </body>
  2006. </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="about">
  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.aboutConfiguration == "imageleftcopyright" then write( [[
  293. <div id="page_content" class="about">
  294. ]] ) if model.nonCSS.about_stage then write( [[
  295. <style type="text/css">
  296. #about_frame { float: left; }
  297. </style>
  298. ]] ) if model.nonCSS.about_galleryType == "none" then write( [[
  299. <div id="about_frame">
  300. <div id="about_flashcontent">
  301. <p style="margin: 0 !important; padding: 10px !important;">You have chosen to replace this image with a Flash gallery. Please select a Gallery Type from the Appearance pane so that we can properly prepare the stage for your gallery.</p>
  302. </div>
  303. </div>
  304. ]] ) elseif model.nonCSS.about_galleryType == "autoviewer" then write( [[
  305. ]] ) if mode == 'preview' then write( [[
  306. <div id="about_frame">
  307. <div id="about_flashcontent">
  308. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  309. <p><strong>Setup Instructions</strong></p>
  310. <p>Export an Autoviewer gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-autoviewer/">TTG Autoviewer</a> or Airtight Autoviewer web engine. Name the export folder "about_autoviewer" and copy it into the exported TTG Pages folder.</p>
  311. </div>
  312. </div>
  313. </div>
  314. ]] ) else write( [[
  315. <div id="about_frame">
  316. <div id="about_flashcontent"></div>
  317. <script language="JavaScript">
  318. var flashvars = {
  319. // langOpenImage: "Open Image in New Window",
  320. // langAbout: "About",
  321. xmlURL: "gallery.xml"
  322. }
  323. var params = {
  324. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  325. scale: "noscale",
  326. base: "about_autoviewer/"
  327. }
  328. var attributes = {
  329. }
  330. swfobject.embedSWF("about_autoviewer/viewer.swf", "about_flashcontent", "100%", "100%", "8", false, flashvars, params, attributes);
  331. </script>
  332. </div>
  333. ]] ) end write( [[
  334. ]] ) elseif model.nonCSS.about_galleryType == "dimin" then write( [[
  335. ]] ) if mode == 'preview' then write( [[
  336. <div id="about_frame">
  337. <div id="about_flashcontent">
  338. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  339. <p><strong>Setup Instructions</strong></p>
  340. <p>Export a gallery using the <a href="http://dimin.m6.net/software/lightroom/">DIMIN Slideshow</a> web engine. Name the export folder "about_dimin" and copy it into the exported TTG Pages folder.</p>
  341. </div>
  342. </div>
  343. </div>
  344. ]] ) else write( [[
  345. <div id="about_frame">
  346. <div id="about_flashcontent">DIMIN Slideshow requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash here.</a></div>
  347. <script language="JavaScript">
  348. var flashvars = {
  349. width: "]] )write( model.nonCSS.about_gallery_width )write( [[",
  350. height: "]] )write( model.nonCSS.about_gallery_height )write( [[",
  351. file: "slideshow.xml"
  352. }
  353. var params = {
  354. allowfullscreen: "true",
  355. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  356. base: "about_dimin/"
  357. }
  358. var attributes = {
  359. }
  360. swfobject.embedSWF("about_dimin/imagerotator.swf", "about_flashcontent", "]] )write( model.nonCSS.about_gallery_width )write( [[", "]] )write( model.nonCSS.about_gallery_height )write( [[", "7", false, flashvars, params, attributes);
  361. </script>
  362. </div>
  363. ]] ) end write( [[
  364. ]] ) elseif model.nonCSS.about_galleryType == "flashnifties" then write( [[
  365. ]] ) if mode == 'preview' then write( [[
  366. <div id="about_frame">
  367. <div id="about_flashcontent">
  368. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  369. <p><strong>Setup Instructions</strong></p>
  370. <p>Export a gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-flashnifties/">TTG Flashnifties</a> web engine. Name the export folder "about_flashnifties" and copy it into the exported TTG Pages folder.</p>
  371. </div>
  372. </div>
  373. </div>
  374. ]] ) else write( [[
  375. <div id="about_frame">
  376. <div id="about_flashcontent">This gallery requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  377. <script language="JavaScript">
  378. var flashvars = {
  379. }
  380. var params = {
  381. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  382. base: "about_flashnifties/"
  383. }
  384. var attributes = {
  385. }
  386. swfobject.embedSWF("about_flashnifties/xmlGallery.swf", "about_flashcontent", "100%", "100%", "6", false, flashvars, params, attributes);
  387. </script>
  388. </div>
  389. ]] ) end write( [[
  390. ]] ) elseif model.nonCSS.about_galleryType == "flickr" then write( [[
  391. ]] ) if mode == 'preview' then write( [[
  392. <div id="about_frame">
  393. <div id="about_flashcontent">
  394. <div id="flickr" style="padding:1em;font-size:11px;line-height:17px;">
  395. <p><strong>Flickr Setup</strong></p>
  396. <p>Input your Flickr username and the ID number of the Flickr Set you wish to display into the "Flickr Username" and "Flickr Set ID" fields, respectively.</p>
  397. <p>To get the Flickr Set ID, visit your set on Flickr. The URL for the set will look like this: http://www.flickr.com/photos/username/sets/<span style="color:#f00 !important;">#################</span>/.</p>
  398. <p>The number, shown here in red, is the set ID. Copy and paste that number into the "Flickr Set ID" field in the Appearance pane.</p>
  399. <p>TTG Stage will only display <strong>sets</strong>, not collections, nor photostreams. The gallery will not display here in the LR preview, but will appear in the exported gallery, or when previewed in a browser.</p>
  400. <p>The URL that will be displayed in your gallery is:</p>
  401. <p><a href="http://www.flickr.com/photos/]] )write( model.nonCSS.about_flickrUser )write( [[/sets/]] )write( model.nonCSS.about_flickrSet )write( [[/">http://www.flickr.com/photos/]] )write( model.nonCSS.about_flickrUser )write( [[/sets/]] )write( model.nonCSS.about_flickrSet )write( [[/</a></p>
  402. <p>Check that the URL is correct by clicking on it and verifying its destination.</p>
  403. </div>
  404. </div>
  405. </div>
  406. ]] ) else write( [[
  407. <div id="about_frame">
  408. <div id="about_flashcontent">Flash is required to view this gallery. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  409. <script language="JavaScript">
  410. var flashvars = {
  411. offsite: "true",
  412. lang: "en-us",
  413. page_show_url: "/photos/]] )write( model.nonCSS.about_flickrUser )write( [[/sets/]] )write( model.nonCSS.about_flickrSet )write( [[/show/",
  414. set_id: "]] )write( model.nonCSS.about_flickrSet )write( [[",
  415. page_show_back_url: "/photos/]] )write( model.nonCSS.about_flickrUser )write( [[/sets/]] )write( model.nonCSS.about_flickrSet )write( [[/",
  416. jump_to: ""
  417. }
  418. var params = {
  419. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  420. allowfullscreen: "true"
  421. }
  422. var attributes = {
  423. }
  424. swfobject.embedSWF("http://www.flickr.com/apps/slideshow/show.swf", "about_flashcontent", "100%", "100%", "7", false, flashvars, params, attributes);
  425. </script>
  426. </div>
  427. ]] ) end write( [[
  428. ]] ) elseif model.nonCSS.about_galleryType == "lightroomflashgallery" then write( [[
  429. ]] ) if mode == 'preview' then write( [[
  430. <div id="about_frame">
  431. <div id="about_flashcontent">
  432. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  433. <p><strong>Setup Instructions</strong></p>
  434. <p>Export a gallery using the Lightroom Flash Gallery web engine. Name the export folder "about_lightroomflashgallery" and copy it into the exported TTG Pages folder.</p>
  435. </div>
  436. </div>
  437. </div>
  438. ]] ) else write( [[
  439. <div id="about_frame">
  440. <div id="about_flashcontent">
  441. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  442. width="100%" height="100%"
  443. codebase="http://download.macromedia.com/pub/shockwave/
  444. cabs/flash/swflash.cab">
  445. <param name="movie" value="about_lightroomflashgallery/resources/gallery.swf"/>
  446. <param name="flashvars"
  447. value="livePreview=false
  448. &baseRefUrl=about_lightroomflashgallery/
  449. &groupxml=resources/mediaGroupData/group.xml
  450. &stylexml=resources/styles/style.xml
  451. &localText=resources/localization/localText.xml"/>
  452. <param name="id" value="gallery"/>
  453. <param name="quality" value="high"/>
  454. <param name="align" value="middle"/>
  455. <param name="name" value="gallery"/>
  456. <param name="bgcolor" value="#f7f7f7"/>
  457. <param name="allowScriptAccess" value="sameDomain"/>
  458. <param name="menu" value="true"/>
  459. <embed src="about_lightroomflashgallery/resources/gallery.swf"
  460. type="application/x-shockwave-flash"
  461. pluginspage="http://www.macromedia.com/go/getflashplayer"
  462. flashvars="livePreview=false
  463. &baseRefUrl=about_lightroomflashgallery/
  464. &groupxml=resources/mediaGroupData/group.xml
  465. &stylexml=resources/styles/style.xml
  466. &localText=resources/localization/localText.xml"
  467. width="100%" height="100%" quality="high" align="middle"
  468. allowScriptAccess="sameDomain">
  469. </embed>
  470. </object>
  471. </div>
  472. </div>
  473. ]] ) end write( [[
  474. ]] ) elseif model.nonCSS.about_galleryType == "monoslideshow" then write( [[
  475. ]] ) if mode == 'preview' then write( [[
  476. <div id="about_frame">
  477. <div id="about_flashcontent">
  478. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  479. <p><strong>Setup Instructions</strong></p>
  480. <p>Export a gallery using the (discontinued) TTG MonoSlideshow web engine, or create a Monoslideshow gallery on your own. Name the export folder "about_monoslideshow" and copy it into the exported TTG Pages folder.</p>
  481. </div>
  482. </div>
  483. </div>
  484. ]] ) else write( [[
  485. <div id="about_frame">
  486. <div id="about_flashcontent">
  487. <p><strong>Please install Flash® and turn on Javascript.</strong></p>
  488. </div>
  489. <script language="JavaScript">
  490. var flashvars = {
  491. showLogo: "false"
  492. }
  493. var params = {
  494. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  495. base: "about_monoslideshow/"
  496. }
  497. var attributes = {
  498. }
  499. swfobject.embedSWF("about_monoslideshow/monoslideshow.swf", "about_flashcontent", "100%", "100%", "7", false, flashvars, params, attributes);
  500. </script>
  501. </div>
  502. ]] ) end write( [[
  503. ]] ) elseif model.nonCSS.about_galleryType == "monoslideshow2" then write( [[
  504. ]] ) if mode == 'preview' then write( [[
  505. <div id="about_frame">
  506. <div id="about_flashcontent">
  507. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  508. <p><strong>Setup Instructions</strong></p>
  509. <p>Export a gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-monoslideshow/">TTG MonoSlideshow</a> web engine. Name the export folder "about_monoslideshow" and copy it into the exported TTG Pages folder.</p>
  510. </div>
  511. </div>
  512. </div>
  513. ]] ) else write( [[
  514. <div id="about_frame">
  515. <div id="about_flashcontent">
  516. <p>Please <a href="http://get.adobe.com/flashplayer/">install Flash®</a> and turn on Javascript.</p>
  517. </div>
  518. <script type="text/javascript">
  519. var flashvars = {showLogo: "false", showRegistration: "false"};
  520. var params = {allowScriptAccess: "sameDomain", allowfullscreen: "true", allowNetworking: "all", base: "about_monoslideshow/"};
  521. var attributes = {id: "monoslideshow", name: "monoslideshow", bgColor: "]] )write( model.nonCSS.about_stageBGC )write( [["};
  522. swfobject.embedSWF("about_monoslideshow/monoslideshow.swf", "about_flashcontent", "100%", "100%", "9", false, flashvars, params, attributes);
  523. </script>
  524. </div>
  525. ]] ) end write( [[
  526. ]] ) elseif model.nonCSS.about_galleryType == "polaroid" then write( [[
  527. ]] ) if mode == 'preview' then write( [[
  528. <div id="about_frame">
  529. <div id="about_flashcontent">
  530. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  531. <p><strong>Setup Instructions</strong></p>
  532. <p>Export a gallery using the <a style="color:#e5a638 !important;" href="http://lightroom.theturninggate.net/flash-galleries/ttg-polaroid-gallery/">TTG Polaroid Gallery</a> web engine. Name the export folder "about_polaroid" and copy it into the exported TTG Pages folder.</p>
  533. </div>
  534. </div>
  535. </div>
  536. ]] ) else write( [[
  537. <div id="about_frame">
  538. <div id="about_flashcontent">This gallery requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  539. <script language="JavaScript">
  540. var flashvars = {
  541. xmlURL: "photos.xml"
  542. }
  543. var params = {
  544. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  545. base: "about_polaroid/"
  546. }
  547. var attributes = {
  548. }
  549. swfobject.embedSWF("about_polaroid/polaroid.swf", "about_flashcontent", "100%", "100%", "8", false, flashvars, params, attributes);
  550. </script>
  551. </div>
  552. ]] ) end write( [[
  553. ]] ) elseif model.nonCSS.about_galleryType == "postcardviewer" then write( [[
  554. ]] ) if mode == 'preview' then write( [[
  555. <div id="about_frame">
  556. <div id="about_flashcontent">
  557. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  558. <p><strong>Setup Instructions</strong></p>
  559. <p>Export a PostcardViewer gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-postcardviewer/">TTG PostcardViewer</a> or Airtight PostcardViewer web engine. Name the export folder "about_postcardviewer" and copy it into the exported TTG Pages folder.</p>
  560. </div>
  561. </div>
  562. </div>
  563. ]] ) else write( [[
  564. <div id="about_frame">
  565. <div id="about_flashcontent">PostcardViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash here.</a> </div>
  566. <script language="JavaScript">
  567. var flashvars = {
  568. // langOpenImage: "Open Image in New Window",
  569. // langAbout: "About",
  570. xmlURL: "gallery.xml"
  571. }
  572. var params = {
  573. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  574. base: "about_postcardviewer/"
  575. }
  576. var attributes = {
  577. }
  578. swfobject.embedSWF("about_postcardviewer/viewer.swf", "about_flashcontent", "100%", "100%", "8", false, flashvars, params, attributes);
  579. </script>
  580. </div>
  581. ]] ) end write( [[
  582. ]] ) elseif model.nonCSS.about_galleryType == "simpleviewer" then write( [[
  583. ]] ) if mode == 'preview' then write( [[
  584. <div id="about_frame">
  585. <div id="about_flashcontent">
  586. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  587. <p><strong>Setup Instructions</strong></p>
  588. <p>Export a Simpleviewer gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-simpleviewer/">TTG Simpleviewer</a> or Airtight Simpleviewer web engine. Name the export folder "about_simpleviewer" and copy it into the exported TTG Pages folder.</p>
  589. </div>
  590. </div>
  591. </div>
  592. ]] ) else write( [[
  593. <div id="about_frame">
  594. <div id="about_flashcontent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  595. <script language="JavaScript">
  596. var flashvars = {
  597. // langOpenImage: "Open Image in New Window",
  598. // langAbout: "About",
  599. preloaderColor: "0xffffff",
  600. xmlDataPath: "gallery.xml"
  601. }
  602. var params = {
  603. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  604. base: "about_simpleviewer/"
  605. }
  606. var attributes = {
  607. }
  608. swfobject.embedSWF("about_simpleviewer/viewer.swf", "about_flashcontent", "100%", "100%", "7", false, flashvars, params, attributes);
  609. </script>
  610. </div>
  611. ]] ) end write( [[
  612. ]] ) elseif model.nonCSS.about_galleryType == "simpleviewer2" then write( [[
  613. ]] ) if mode == 'preview' then write( [[
  614. <div id="about_frame">
  615. <div id="about_flashcontent">
  616. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  617. <p><strong>Setup Instructions</strong></p>
  618. <p>Export a Simpleviewer gallery using the <a style="color:#e5a638 !important;" href="http://lightroom.theturninggate.net/flash-galleries/ttg-simpleviewer/">TTG Simpleviewer-2</a> web engine. Name the export folder "about_simpleviewer" and copy it into the exported TTG Stage folder.</p>
  619. </div>
  620. </div>
  621. </div>
  622. ]] ) else write( [[
  623. <div id="about_frame">
  624. <div id="about_flashcontent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  625. <script type="text/javascript">
  626. var flashvars = {};
  627. flashvars.baseURL="about_simpleviewer/";
  628. flashvars.galleryURL = "gallery.xml";
  629. var params = {};
  630. params.allowfullscreen = true;
  631. params.allowscriptaccess = "always";
  632. params.bgcolor = "]] )write( model.nonCSS.about_stageBGC )write( [[";
  633. swfobject.embedSWF("about_simpleviewer/simpleviewer.swf", "about_flashcontent", "100%", "100%", "9.0.124", false, flashvars, params);
  634. </script>
  635. </div>
  636. ]] ) end write( [[
  637. ]] ) elseif model.nonCSS.about_galleryType == "slideshowpro" then write( [[
  638. ]] ) if mode == 'preview' then write( [[
  639. <div id="about_frame">
  640. <div id="about_flashcontent">
  641. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  642. <p><strong>Setup Instructions</strong></p>
  643. <p>Export a gallery using the <a href="http://www.slideshowpro.net">Slideshow Pro</a> web engine. Name the export folder "about_slideshowpro" and copy it into the exported TTG Pages folder.</p>
  644. </div>
  645. </div>
  646. </div>
  647. ]] ) else write( [[
  648. <div id="about_frame">
  649. <div id="about_flashcontent">
  650. This SlideShowPro photo gallery requires the Flash Player plugin and a web browser with JavaScript enabled.
  651. </div>
  652. <script language="JavaScript">
  653. <!--
  654. // Permalinks option
  655. function flashPutHref(href) { location.href = href; }
  656. // Expand browser option
  657. var eB = false;
  658. if (eB) {
  659. window.moveTo(0,0);
  660. window.resizeTo (screen.availWidth, screen.availHeight);
  661. }
  662. // swffit sizing
  663. var swf_pad = 20;
  664. function initSwffit(w,h) {
  665. // If you change name of the DIV the SWF is written at,
  666. // change 'flashcontent' to the name of your DIV.
  667. swffit.fit('about_flashcontent',w+swf_pad,h+swf_pad);
  668. }
  669. // SWFObject embed
  670. var flashvars = {
  671. paramXMLPath: "param.xml",
  672. initialURL: escape(document.location)
  673. }
  674. var params = {
  675. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  676. allowfullscreen: "true",
  677. base: "about_slideshowpro/"
  678. }
  679. var attributes = {}
  680. swfobject.embedSWF("about_slideshowpro/loader.swf", "about_flashcontent", "100%", "100%", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
  681. /* below required for google chrome embed issue */
  682. swffit.fit('about_flashcontent',0,0);
  683. -->
  684. </script>
  685. </div> <!-- /frame -->
  686. ]] ) end write( [[
  687. ]] ) end write( [[
  688. ]] ) else write( [[
  689. <img src="photos/]] )write( getImage(2).exportFilename )write( [[.jpg" class="page_img" width="]] )write( getImage(2).renditions.photos.width )write( [[" height="]] )write( getImage(2).renditions.photos.height )write( [[" alt="]] )write( getImage(2).metadata.alt )write( [[" style="float:left;" />
  690. ]] ) end write( [[
  691. ]] ) if model.nonCSS.about_stage then write( [[
  692. <div class="copy" style="float:right; width: ]] )write( math.floor( model.nonCSS.aboutWidth - ( model.nonCSS.page_content_padding * 2 ) - ( model.nonCSS.page_content_border * 2 ) - model.nonCSS.spacing - model.nonCSS.about_stage_width ) )write( [[px;">
  693. ]] ) else write( [[
  694. <div class="copy" style="float:right; width: ]] )write( math.floor( model.nonCSS.aboutWidth - ( model.nonCSS.page_content_padding * 2 ) - ( model.nonCSS.page_content_border * 2 ) - model.nonCSS.spacing - ( ( model.nonCSS.imagePadding + model.nonCSS.imageBorderWidth ) * 2 ) - getImage(2).renditions.photos.width ) )write( [[px;">
  695. ]] ) end write( [[
  696. ]] ) if model.nonCSS.includeAboutHeading1 then write( [[<h2 id="metadata.aboutHeading1.value" class="first heading heading_about"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutHeading1.value');"]] ) end write( [[>]] )write( model.metadata.aboutHeading1.value )write( [[</h2>]] ) end write( [[
  697. ]] ) if model.nonCSS.includeAboutParagraph1 then write( [[<p id="nonCSS.aboutParagraph1.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutParagraph1.value');"]] ) end write( [[>]] )write( model.metadata.aboutParagraph1.value )write( [[</p>]] ) end write( [[
  698. ]] ) if model.nonCSS.includeAboutHeading2 then write( [[<h2 id="metadata.aboutHeading2.value" class="subsequent heading heading_about"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutHeading2.value');"]] ) end write( [[>]] )write( model.metadata.aboutHeading2.value )write( [[</h2>]] ) end write( [[
  699. ]] ) if model.nonCSS.includeAboutParagraph2 then write( [[<p id="nonCSS.aboutParagraph2.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutParagraph2.value');"]] ) end write( [[>]] )write( model.metadata.aboutParagraph2.value )write( [[</p>]] ) end write( [[
  700. ]] ) if model.nonCSS.includeAboutHeading3 then write( [[<h2 id="metadata.aboutHeading3.value" class="subsequent heading heading_about"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutHeading3.value');"]] ) end write( [[>]] )write( model.metadata.aboutHeading3.value )write( [[</h2>]] ) end write( [[
  701. ]] ) if model.nonCSS.includeAboutParagraph3 then write( [[<p id="nonCSS.aboutParagraph3.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutParagraph3.value');"]] ) end write( [[>]] )write( model.metadata.aboutParagraph3.value )write( [[</p>]] ) end write( [[
  702. ]] ) if model.nonCSS.includeAboutHeading4 then write( [[<h2 id="metadata.aboutHeading4.value" class="subsequent heading heading_about"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutHeading4.value');"]] ) end write( [[>]] )write( model.metadata.aboutHeading4.value )write( [[</h2>]] ) end write( [[
  703. ]] ) if model.nonCSS.includeAboutParagraph4 then write( [[<p id="nonCSS.aboutParagraph4.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutParagraph4.value');"]] ) end write( [[>]] )write( model.metadata.aboutParagraph4.value )write( [[</p>]] ) end write( [[
  704. ]] ) if model.nonCSS.includeAboutHeading5 then write( [[<h2 id="metadata.aboutHeading5.value" class="subsequent heading heading_about"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutHeading5.value');"]] ) end write( [[>]] )write( model.metadata.aboutHeading5.value )write( [[</h2>]] ) end write( [[
  705. ]] ) if model.nonCSS.includeAboutParagraph5 then write( [[<p id="nonCSS.aboutParagraph5.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutParagraph5.value');"]] ) end write( [[>]] )write( model.metadata.aboutParagraph5.value )write( [[</p>]] ) end write( [[
  706. </div>
  707. <div class="clear"></div>
  708. </div> <!-- /page_content home -->
  709. ]] ) elseif model.nonCSS.aboutConfiguration == "copyleftimageright" then write( [[
  710. <div id="page_content" class="about">
  711. ]] ) if model.nonCSS.about_stage then write( [[
  712. <style type="text/css">
  713. #about_frame { float: right; }
  714. </style>
  715. ]] ) if model.nonCSS.about_galleryType == "none" then write( [[
  716. <div id="about_frame">
  717. <div id="about_flashcontent">
  718. <p style="margin: 0 !important;">You have chosen to replace this image with a Flash gallery. Please select a Gallery Type from the Appearance pane so that we can properly prepare the stage for your gallery.</p>
  719. </div>
  720. </div>
  721. ]] ) elseif model.nonCSS.about_galleryType == "autoviewer" then write( [[
  722. ]] ) if mode == 'preview' then write( [[
  723. <div id="about_frame">
  724. <div id="about_flashcontent">
  725. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  726. <p><strong>Setup Instructions</strong></p>
  727. <p>Export an Autoviewer gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-autoviewer/">TTG Autoviewer</a> or Airtight Autoviewer web engine. Name the export folder "about_autoviewer" and copy it into the exported TTG Pages folder.</p>
  728. </div>
  729. </div>
  730. </div>
  731. ]] ) else write( [[
  732. <div id="about_frame">
  733. <div id="about_flashcontent"></div>
  734. <script language="JavaScript">
  735. var flashvars = {
  736. // langOpenImage: "Open Image in New Window",
  737. // langAbout: "About",
  738. xmlURL: "gallery.xml"
  739. }
  740. var params = {
  741. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  742. scale: "noscale",
  743. base: "about_autoviewer/"
  744. }
  745. var attributes = {
  746. }
  747. swfobject.embedSWF("about_autoviewer/viewer.swf", "about_flashcontent", "100%", "100%", "8", false, flashvars, params, attributes);
  748. </script>
  749. </div>
  750. ]] ) end write( [[
  751. ]] ) elseif model.nonCSS.about_galleryType == "dimin" then write( [[
  752. ]] ) if mode == 'preview' then write( [[
  753. <div id="about_frame">
  754. <div id="about_flashcontent">
  755. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  756. <p><strong>Setup Instructions</strong></p>
  757. <p>Export a gallery using the <a href="http://dimin.m6.net/software/lightroom/">DIMIN Slideshow</a> web engine. Name the export folder "about_dimin" and copy it into the exported TTG Pages folder.</p>
  758. </div>
  759. </div>
  760. </div>
  761. ]] ) else write( [[
  762. <div id="about_frame">
  763. <div id="about_flashcontent">DIMIN Slideshow requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash here.</a></div>
  764. <script language="JavaScript">
  765. var flashvars = {
  766. width: "]] )write( model.nonCSS.about_gallery_width )write( [[",
  767. height: "]] )write( model.nonCSS.about_gallery_height )write( [[",
  768. file: "slideshow.xml"
  769. }
  770. var params = {
  771. allowfullscreen: "true",
  772. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  773. base: "about_dimin/"
  774. }
  775. var attributes = {
  776. }
  777. swfobject.embedSWF("about_dimin/imagerotator.swf", "about_flashcontent", "]] )write( model.nonCSS.about_gallery_width )write( [[", "]] )write( model.nonCSS.about_gallery_height )write( [[", "7", false, flashvars, params, attributes);
  778. </script>
  779. </div>
  780. ]] ) end write( [[
  781. ]] ) elseif model.nonCSS.about_galleryType == "flashnifties" then write( [[
  782. ]] ) if mode == 'preview' then write( [[
  783. <div id="about_frame">
  784. <div id="about_flashcontent">
  785. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  786. <p><strong>Setup Instructions</strong></p>
  787. <p>Export a gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-flashnifties/">TTG Flashnifties</a> web engine. Name the export folder "about_flashnifties" and copy it into the exported TTG Pages folder.</p>
  788. </div>
  789. </div>
  790. </div>
  791. ]] ) else write( [[
  792. <div id="about_frame">
  793. <div id="about_flashcontent">This gallery requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  794. <script language="JavaScript">
  795. var flashvars = {
  796. }
  797. var params = {
  798. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  799. base: "about_flashnifties/"
  800. }
  801. var attributes = {
  802. }
  803. swfobject.embedSWF("about_flashnifties/xmlGallery.swf", "about_flashcontent", "100%", "100%", "6", false, flashvars, params, attributes);
  804. </script>
  805. </div>
  806. ]] ) end write( [[
  807. ]] ) elseif model.nonCSS.about_galleryType == "flickr" then write( [[
  808. ]] ) if mode == 'preview' then write( [[
  809. <div id="about_frame">
  810. <div id="about_flashcontent">
  811. <div id="flickr" style="padding:1em;font-size:11px;line-height:17px;">
  812. <p><strong>Flickr Setup</strong></p>
  813. <p>Input your Flickr username and the ID number of the Flickr Set you wish to display into the "Flickr Username" and "Flickr Set ID" fields, respectively.</p>
  814. <p>To get the Flickr Set ID, visit your set on Flickr. The URL for the set will look like this: http://www.flickr.com/photos/username/sets/<span style="color:#f00 !important;">#################</span>/.</p>
  815. <p>The number, shown here in red, is the set ID. Copy and paste that number into the "Flickr Set ID" field in the Appearance pane.</p>
  816. <p>TTG Stage will only display <strong>sets</strong>, not collections, nor photostreams. The gallery will not display here in the LR preview, but will appear in the exported gallery, or when previewed in a browser.</p>
  817. <p>The URL that will be displayed in your gallery is:</p>
  818. <p><a href="http://www.flickr.com/photos/]] )write( model.nonCSS.about_flickrUser )write( [[/sets/]] )write( model.nonCSS.about_flickrSet )write( [[/">http://www.flickr.com/photos/]] )write( model.nonCSS.about_flickrUser )write( [[/sets/]] )write( model.nonCSS.about_flickrSet )write( [[/</a></p>
  819. <p>Check that the URL is correct by clicking on it and verifying its destination.</p>
  820. </div>
  821. </div>
  822. </div>
  823. ]] ) else write( [[
  824. <div id="about_frame">
  825. <div id="about_flashcontent">Flash is required to view this gallery. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  826. <script language="JavaScript">
  827. var flashvars = {
  828. offsite: "true",
  829. lang: "en-us",
  830. page_show_url: "/photos/]] )write( model.nonCSS.about_flickrUser )write( [[/sets/]] )write( model.nonCSS.about_flickrSet )write( [[/show/",
  831. set_id: "]] )write( model.nonCSS.about_flickrSet )write( [[",
  832. page_show_back_url: "/photos/]] )write( model.nonCSS.about_flickrUser )write( [[/sets/]] )write( model.nonCSS.about_flickrSet )write( [[/",
  833. jump_to: ""
  834. }
  835. var params = {
  836. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  837. allowfullscreen: "true"
  838. }
  839. var attributes = {
  840. }
  841. swfobject.embedSWF("http://www.flickr.com/apps/slideshow/show.swf", "about_flashcontent", "100%", "100%", "7", false, flashvars, params, attributes);
  842. </script>
  843. </div>
  844. ]] ) end write( [[
  845. ]] ) elseif model.nonCSS.about_galleryType == "lightroomflashgallery" then write( [[
  846. ]] ) if mode == 'preview' then write( [[
  847. <div id="about_frame">
  848. <div id="about_flashcontent">
  849. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  850. <p><strong>Setup Instructions</strong></p>
  851. <p>Export a gallery using the Lightroom Flash Gallery web engine. Name the export folder "about_lightroomflashgallery" and copy it into the exported TTG Pages folder.</p>
  852. </div>
  853. </div>
  854. </div>
  855. ]] ) else write( [[
  856. <div id="about_frame">
  857. <div id="about_flashcontent">
  858. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  859. width="100%" height="100%"
  860. codebase="http://download.macromedia.com/pub/shockwave/
  861. cabs/flash/swflash.cab">
  862. <param name="movie" value="about_lightroomflashgallery/resources/gallery.swf"/>
  863. <param name="flashvars"
  864. value="livePreview=false
  865. &baseRefUrl=about_lightroomflashgallery/
  866. &groupxml=resources/mediaGroupData/group.xml
  867. &stylexml=resources/styles/style.xml
  868. &localText=resources/localization/localText.xml"/>
  869. <param name="id" value="gallery"/>
  870. <param name="quality" value="high"/>
  871. <param name="align" value="middle"/>
  872. <param name="name" value="gallery"/>
  873. <param name="bgcolor" value="#f7f7f7"/>
  874. <param name="allowScriptAccess" value="sameDomain"/>
  875. <param name="menu" value="true"/>
  876. <embed src="about_lightroomflashgallery/resources/gallery.swf"
  877. type="application/x-shockwave-flash"
  878. pluginspage="http://www.macromedia.com/go/getflashplayer"
  879. flashvars="livePreview=false
  880. &baseRefUrl=about_lightroomflashgallery/
  881. &groupxml=resources/mediaGroupData/group.xml
  882. &stylexml=resources/styles/style.xml
  883. &localText=resources/localization/localText.xml"
  884. width="100%" height="100%" quality="high" align="middle"
  885. allowScriptAccess="sameDomain">
  886. </embed>
  887. </object>
  888. </div>
  889. </div>
  890. ]] ) end write( [[
  891. ]] ) elseif model.nonCSS.about_galleryType == "monoslideshow" then write( [[
  892. ]] ) if mode == 'preview' then write( [[
  893. <div id="about_frame">
  894. <div id="about_flashcontent">
  895. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  896. <p><strong>Setup Instructions</strong></p>
  897. <p>Export a gallery using the (discontinued) TTG MonoSlideshow web engine, or create a Monoslideshow gallery on your own. Name the export folder "about_monoslideshow" and copy it into the exported TTG Pages folder.</p>
  898. </div>
  899. </div>
  900. </div>
  901. ]] ) else write( [[
  902. <div id="about_frame">
  903. <div id="about_flashcontent">
  904. <p><strong>Please install Flash® and turn on Javascript.</strong></p>
  905. </div>
  906. <script language="JavaScript">
  907. var flashvars = {
  908. showLogo: "false"
  909. }
  910. var params = {
  911. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  912. base: "about_monoslideshow/"
  913. }
  914. var attributes = {
  915. }
  916. swfobject.embedSWF("about_monoslideshow/monoslideshow.swf", "about_flashcontent", "100%", "100%", "7", false, flashvars, params, attributes);
  917. </script>
  918. </div>
  919. ]] ) end write( [[
  920. ]] ) elseif model.nonCSS.about_galleryType == "monoslideshow2" then write( [[
  921. ]] ) if mode == 'preview' then write( [[
  922. <div id="about_frame">
  923. <div id="about_flashcontent">
  924. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  925. <p><strong>Setup Instructions</strong></p>
  926. <p>Export a gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-monoslideshow/">TTG MonoSlideshow</a> web engine. Name the export folder "about_monoslideshow" and copy it into the exported TTG Pages folder.</p>
  927. </div>
  928. </div>
  929. </div>
  930. ]] ) else write( [[
  931. <div id="about_frame">
  932. <div id="about_flashcontent">
  933. <p>Please <a href="http://get.adobe.com/flashplayer/">install Flash®</a> and turn on Javascript.</p>
  934. </div>
  935. <script type="text/javascript">
  936. var flashvars = {showLogo: "false", showRegistration: "false"};
  937. var params = {allowScriptAccess: "sameDomain", allowfullscreen: "true", allowNetworking: "all", base: "about_monoslideshow/"};
  938. var attributes = {id: "monoslideshow", name: "monoslideshow", bgColor: "]] )write( model.nonCSS.about_stageBGC )write( [["};
  939. swfobject.embedSWF("about_monoslideshow/monoslideshow.swf", "about_flashcontent", "100%", "100%", "9", false, flashvars, params, attributes);
  940. </script>
  941. </div>
  942. ]] ) end write( [[
  943. ]] ) elseif model.nonCSS.about_galleryType == "polaroid" then write( [[
  944. ]] ) if mode == 'preview' then write( [[
  945. <div id="about_frame">
  946. <div id="about_flashcontent">
  947. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  948. <p><strong>Setup Instructions</strong></p>
  949. <p>Export a gallery using the <a style="color:#e5a638 !important;" href="http://lightroom.theturninggate.net/flash-galleries/ttg-polaroid-gallery/">TTG Polaroid Gallery</a> web engine. Name the export folder "about_polaroid" and copy it into the exported TTG Pages folder.</p>
  950. </div>
  951. </div>
  952. </div>
  953. ]] ) else write( [[
  954. <div id="about_frame">
  955. <div id="about_flashcontent">This gallery requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  956. <script language="JavaScript">
  957. var flashvars = {
  958. xmlURL: "photos.xml"
  959. }
  960. var params = {
  961. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  962. base: "about_polaroid/"
  963. }
  964. var attributes = {
  965. }
  966. swfobject.embedSWF("about_polaroid/polaroid.swf", "about_flashcontent", "100%", "100%", "8", false, flashvars, params, attributes);
  967. </script>
  968. </div>
  969. ]] ) end write( [[
  970. ]] ) elseif model.nonCSS.about_galleryType == "postcardviewer" then write( [[
  971. ]] ) if mode == 'preview' then write( [[
  972. <div id="about_frame">
  973. <div id="about_flashcontent">
  974. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  975. <p><strong>Setup Instructions</strong></p>
  976. <p>Export a PostcardViewer gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-postcardviewer/">TTG PostcardViewer</a> or Airtight PostcardViewer web engine. Name the export folder "about_postcardviewer" and copy it into the exported TTG Pages folder.</p>
  977. </div>
  978. </div>
  979. </div>
  980. ]] ) else write( [[
  981. <div id="about_frame">
  982. <div id="about_flashcontent">PostcardViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash here.</a> </div>
  983. <script language="JavaScript">
  984. var flashvars = {
  985. // langOpenImage: "Open Image in New Window",
  986. // langAbout: "About",
  987. xmlURL: "gallery.xml"
  988. }
  989. var params = {
  990. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  991. base: "about_postcardviewer/"
  992. }
  993. var attributes = {
  994. }
  995. swfobject.embedSWF("about_postcardviewer/viewer.swf", "about_flashcontent", "100%", "100%", "8", false, flashvars, params, attributes);
  996. </script>
  997. </div>
  998. ]] ) end write( [[
  999. ]] ) elseif model.nonCSS.about_galleryType == "simpleviewer" then write( [[
  1000. ]] ) if mode == 'preview' then write( [[
  1001. <div id="about_frame">
  1002. <div id="about_flashcontent">
  1003. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1004. <p><strong>Setup Instructions</strong></p>
  1005. <p>Export a Simpleviewer gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-simpleviewer/">TTG Simpleviewer</a> or Airtight Simpleviewer web engine. Name the export folder "about_simpleviewer" and copy it into the exported TTG Pages folder.</p>
  1006. </div>
  1007. </div>
  1008. </div>
  1009. ]] ) else write( [[
  1010. <div id="about_frame">
  1011. <div id="about_flashcontent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  1012. <script language="JavaScript">
  1013. var flashvars = {
  1014. // langOpenImage: "Open Image in New Window",
  1015. // langAbout: "About",
  1016. preloaderColor: "0xffffff",
  1017. xmlDataPath: "gallery.xml"
  1018. }
  1019. var params = {
  1020. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  1021. base: "about_simpleviewer/"
  1022. }
  1023. var attributes = {
  1024. }
  1025. swfobject.embedSWF("about_simpleviewer/viewer.swf", "about_flashcontent", "100%", "100%", "7", false, flashvars, params, attributes);
  1026. </script>
  1027. </div>
  1028. ]] ) end write( [[
  1029. ]] ) elseif model.nonCSS.about_galleryType == "simpleviewer2" then write( [[
  1030. ]] ) if mode == 'preview' then write( [[
  1031. <div id="about_frame">
  1032. <div id="about_flashcontent">
  1033. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1034. <p><strong>Setup Instructions</strong></p>
  1035. <p>Export a Simpleviewer gallery using the <a style="color:#e5a638 !important;" href="http://lightroom.theturninggate.net/flash-galleries/ttg-simpleviewer/">TTG Simpleviewer-2</a> web engine. Name the export folder "about_simpleviewer" and copy it into the exported TTG Stage folder.</p>
  1036. </div>
  1037. </div>
  1038. </div>
  1039. ]] ) else write( [[
  1040. <div id="about_frame">
  1041. <div id="about_flashcontent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  1042. <script type="text/javascript">
  1043. var flashvars = {};
  1044. flashvars.baseURL="about_simpleviewer/";
  1045. flashvars.galleryURL = "gallery.xml";
  1046. var params = {};
  1047. params.allowfullscreen = true;
  1048. params.allowscriptaccess = "always";
  1049. params.bgcolor = "]] )write( model.nonCSS.about_stageBGC )write( [[";
  1050. swfobject.embedSWF("about_simpleviewer/simpleviewer.swf", "about_flashcontent", "100%", "100%", "9.0.124", false, flashvars, params);
  1051. </script>
  1052. </div>
  1053. ]] ) end write( [[
  1054. ]] ) elseif model.nonCSS.about_galleryType == "slideshowpro" then write( [[
  1055. ]] ) if mode == 'preview' then write( [[
  1056. <div id="about_frame">
  1057. <div id="about_flashcontent">
  1058. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1059. <p><strong>Setup Instructions</strong></p>
  1060. <p>Export a gallery using the <a href="http://www.slideshowpro.net">Slideshow Pro</a> web engine. Name the export folder "about_slideshowpro" and copy it into the exported TTG Pages folder.</p>
  1061. </div>
  1062. </div>
  1063. </div>
  1064. ]] ) else write( [[
  1065. <div id="about_frame">
  1066. <div id="about_flashcontent">
  1067. This SlideShowPro photo gallery requires the Flash Player plugin and a web browser with JavaScript enabled.
  1068. </div>
  1069. <script language="JavaScript">
  1070. <!--
  1071. // Permalinks option
  1072. function flashPutHref(href) { location.href = href; }
  1073. // Expand browser option
  1074. var eB = false;
  1075. if (eB) {
  1076. window.moveTo(0,0);
  1077. window.resizeTo (screen.availWidth, screen.availHeight);
  1078. }
  1079. // swffit sizing
  1080. var swf_pad = 20;
  1081. function initSwffit(w,h) {
  1082. // If you change name of the DIV the SWF is written at,
  1083. // change 'flashcontent' to the name of your DIV.
  1084. swffit.fit('about_flashcontent',w+swf_pad,h+swf_pad);
  1085. }
  1086. // SWFObject embed
  1087. var flashvars = {
  1088. paramXMLPath: "param.xml",
  1089. initialURL: escape(document.location)
  1090. }
  1091. var params = {
  1092. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  1093. allowfullscreen: "true",
  1094. base: "about_slideshowpro/"
  1095. }
  1096. var attributes = {}
  1097. swfobject.embedSWF("about_slideshowpro/loader.swf", "about_flashcontent", "100%", "100%", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
  1098. /* below required for google chrome embed issue */
  1099. swffit.fit('about_flashcontent',0,0);
  1100. -->
  1101. </script>
  1102. </div> <!-- /frame -->
  1103. ]] ) end write( [[
  1104. ]] ) end write( [[
  1105. ]] ) else write( [[
  1106. <img src="photos/]] )write( getImage(2).exportFilename )write( [[.jpg" class="page_img" width="]] )write( getImage(2).renditions.photos.width )write( [[" height="]] )write( getImage(2).renditions.photos.height )write( [[" alt="]] )write( getImage(2).metadata.alt )write( [[" style="float:right;" />
  1107. ]] ) end write( [[
  1108. ]] ) if model.nonCSS.about_stage then write( [[
  1109. <div class="copy" style="float:left; width: ]] )write( math.floor( model.nonCSS.aboutWidth - ( model.nonCSS.page_content_padding * 2 ) - ( model.nonCSS.page_content_border * 2 ) - model.nonCSS.spacing - model.nonCSS.about_stage_width ) )write( [[px;">
  1110. ]] ) else write( [[
  1111. <div class="copy" style="float:left; width: ]] )write( math.floor( model.nonCSS.aboutWidth - ( model.nonCSS.page_content_padding * 2 ) - ( model.nonCSS.page_content_border * 2 ) - model.nonCSS.spacing - ( ( model.nonCSS.imagePadding + model.nonCSS.imageBorderWidth ) * 2 ) - getImage(2).renditions.photos.width ) )write( [[px;">
  1112. ]] ) end write( [[
  1113. ]] ) if model.nonCSS.includeAboutHeading1 then write( [[<h2 id="metadata.aboutHeading1.value" class="first heading heading_about"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutHeading1.value');"]] ) end write( [[>]] )write( model.metadata.aboutHeading1.value )write( [[</h2>]] ) end write( [[
  1114. ]] ) if model.nonCSS.includeAboutParagraph1 then write( [[<p id="nonCSS.aboutParagraph1.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutParagraph1.value');"]] ) end write( [[>]] )write( model.metadata.aboutParagraph1.value )write( [[</p>]] ) end write( [[
  1115. ]] ) if model.nonCSS.includeAboutHeading2 then write( [[<h2 id="metadata.aboutHeading2.value" class="subsequent heading heading_about"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutHeading2.value');"]] ) end write( [[>]] )write( model.metadata.aboutHeading2.value )write( [[</h2>]] ) end write( [[
  1116. ]] ) if model.nonCSS.includeAboutParagraph2 then write( [[<p id="nonCSS.aboutParagraph2.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutParagraph2.value');"]] ) end write( [[>]] )write( model.metadata.aboutParagraph2.value )write( [[</p>]] ) end write( [[
  1117. ]] ) if model.nonCSS.includeAboutHeading3 then write( [[<h2 id="metadata.aboutHeading3.value" class="subsequent heading heading_about"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutHeading3.value');"]] ) end write( [[>]] )write( model.metadata.aboutHeading3.value )write( [[</h2>]] ) end write( [[
  1118. ]] ) if model.nonCSS.includeAboutParagraph3 then write( [[<p id="nonCSS.aboutParagraph3.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutParagraph3.value');"]] ) end write( [[>]] )write( model.metadata.aboutParagraph3.value )write( [[</p>]] ) end write( [[
  1119. ]] ) if model.nonCSS.includeAboutHeading4 then write( [[<h2 id="metadata.aboutHeading4.value" class="subsequent heading heading_about"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutHeading4.value');"]] ) end write( [[>]] )write( model.metadata.aboutHeading4.value )write( [[</h2>]] ) end write( [[
  1120. ]] ) if model.nonCSS.includeAboutParagraph4 then write( [[<p id="nonCSS.aboutParagraph4.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutParagraph4.value');"]] ) end write( [[>]] )write( model.metadata.aboutParagraph4.value )write( [[</p>]] ) end write( [[
  1121. ]] ) if model.nonCSS.includeAboutHeading5 then write( [[<h2 id="metadata.aboutHeading5.value" class="subsequent heading heading_about"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutHeading5.value');"]] ) end write( [[>]] )write( model.metadata.aboutHeading5.value )write( [[</h2>]] ) end write( [[
  1122. ]] ) if model.nonCSS.includeAboutParagraph5 then write( [[<p id="nonCSS.aboutParagraph5.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutParagraph5.value');"]] ) end write( [[>]] )write( model.metadata.aboutParagraph5.value )write( [[</p>]] ) end write( [[
  1123. </div>
  1124. <div class="clear"></div>
  1125. </div> <!-- /page_content home -->
  1126. ]] ) elseif model.nonCSS.aboutConfiguration == "imageupcopydown" then write( [[
  1127. <div id="page_content" class="about">
  1128. ]] ) if model.nonCSS.about_stage then write( [[
  1129. <style type="text/css">
  1130. #about_frame { margin: 0 auto 2em !important; }
  1131. </style>
  1132. ]] ) if model.nonCSS.about_galleryType == "none" then write( [[
  1133. <div id="about_frame">
  1134. <div id="about_flashcontent">
  1135. <p style="margin: 0 !important;">You have chosen to replace this image with a Flash gallery. Please select a Gallery Type from the Appearance pane so that we can properly prepare the stage for your gallery.</p>
  1136. </div>
  1137. </div>
  1138. ]] ) elseif model.nonCSS.about_galleryType == "autoviewer" then write( [[
  1139. ]] ) if mode == 'preview' then write( [[
  1140. <div id="about_frame">
  1141. <div id="about_flashcontent">
  1142. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1143. <p><strong>Setup Instructions</strong></p>
  1144. <p>Export an Autoviewer gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-autoviewer/">TTG Autoviewer</a> or Airtight Autoviewer web engine. Name the export folder "about_autoviewer" and copy it into the exported TTG Pages folder.</p>
  1145. </div>
  1146. </div>
  1147. </div>
  1148. ]] ) else write( [[
  1149. <div id="about_frame">
  1150. <div id="about_flashcontent"></div>
  1151. <script language="JavaScript">
  1152. var flashvars = {
  1153. // langOpenImage: "Open Image in New Window",
  1154. // langAbout: "About",
  1155. xmlURL: "gallery.xml"
  1156. }
  1157. var params = {
  1158. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  1159. scale: "noscale",
  1160. base: "about_autoviewer/"
  1161. }
  1162. var attributes = {
  1163. }
  1164. swfobject.embedSWF("about_autoviewer/viewer.swf", "about_flashcontent", "100%", "100%", "8", false, flashvars, params, attributes);
  1165. </script>
  1166. </div>
  1167. ]] ) end write( [[
  1168. ]] ) elseif model.nonCSS.about_galleryType == "dimin" then write( [[
  1169. ]] ) if mode == 'preview' then write( [[
  1170. <div id="about_frame">
  1171. <div id="about_flashcontent">
  1172. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1173. <p><strong>Setup Instructions</strong></p>
  1174. <p>Export a gallery using the <a href="http://dimin.m6.net/software/lightroom/">DIMIN Slideshow</a> web engine. Name the export folder "about_dimin" and copy it into the exported TTG Pages folder.</p>
  1175. </div>
  1176. </div>
  1177. </div>
  1178. ]] ) else write( [[
  1179. <div id="about_frame">
  1180. <div id="about_flashcontent">DIMIN Slideshow requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash here.</a></div>
  1181. <script language="JavaScript">
  1182. var flashvars = {
  1183. width: "]] )write( model.nonCSS.about_gallery_width )write( [[",
  1184. height: "]] )write( model.nonCSS.about_gallery_height )write( [[",
  1185. file: "slideshow.xml"
  1186. }
  1187. var params = {
  1188. allowfullscreen: "true",
  1189. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  1190. base: "about_dimin/"
  1191. }
  1192. var attributes = {
  1193. }
  1194. swfobject.embedSWF("about_dimin/imagerotator.swf", "about_flashcontent", "]] )write( model.nonCSS.about_gallery_width )write( [[", "]] )write( model.nonCSS.about_gallery_height )write( [[", "7", false, flashvars, params, attributes);
  1195. </script>
  1196. </div>
  1197. ]] ) end write( [[
  1198. ]] ) elseif model.nonCSS.about_galleryType == "flashnifties" then write( [[
  1199. ]] ) if mode == 'preview' then write( [[
  1200. <div id="about_frame">
  1201. <div id="about_flashcontent">
  1202. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1203. <p><strong>Setup Instructions</strong></p>
  1204. <p>Export a gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-flashnifties/">TTG Flashnifties</a> web engine. Name the export folder "about_flashnifties" and copy it into the exported TTG Pages folder.</p>
  1205. </div>
  1206. </div>
  1207. </div>
  1208. ]] ) else write( [[
  1209. <div id="about_frame">
  1210. <div id="about_flashcontent">This gallery requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  1211. <script language="JavaScript">
  1212. var flashvars = {
  1213. }
  1214. var params = {
  1215. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  1216. base: "about_flashnifties/"
  1217. }
  1218. var attributes = {
  1219. }
  1220. swfobject.embedSWF("about_flashnifties/xmlGallery.swf", "about_flashcontent", "100%", "100%", "6", false, flashvars, params, attributes);
  1221. </script>
  1222. </div>
  1223. ]] ) end write( [[
  1224. ]] ) elseif model.nonCSS.about_galleryType == "flickr" then write( [[
  1225. ]] ) if mode == 'preview' then write( [[
  1226. <div id="about_frame">
  1227. <div id="about_flashcontent">
  1228. <div id="flickr" style="padding:1em;font-size:11px;line-height:17px;">
  1229. <p><strong>Flickr Setup</strong></p>
  1230. <p>Input your Flickr username and the ID number of the Flickr Set you wish to display into the "Flickr Username" and "Flickr Set ID" fields, respectively.</p>
  1231. <p>To get the Flickr Set ID, visit your set on Flickr. The URL for the set will look like this: http://www.flickr.com/photos/username/sets/<span style="color:#f00 !important;">#################</span>/.</p>
  1232. <p>The number, shown here in red, is the set ID. Copy and paste that number into the "Flickr Set ID" field in the Appearance pane.</p>
  1233. <p>TTG Stage will only display <strong>sets</strong>, not collections, nor photostreams. The gallery will not display here in the LR preview, but will appear in the exported gallery, or when previewed in a browser.</p>
  1234. <p>The URL that will be displayed in your gallery is:</p>
  1235. <p><a href="http://www.flickr.com/photos/]] )write( model.nonCSS.about_flickrUser )write( [[/sets/]] )write( model.nonCSS.about_flickrSet )write( [[/">http://www.flickr.com/photos/]] )write( model.nonCSS.about_flickrUser )write( [[/sets/]] )write( model.nonCSS.about_flickrSet )write( [[/</a></p>
  1236. <p>Check that the URL is correct by clicking on it and verifying its destination.</p>
  1237. </div>
  1238. </div>
  1239. </div>
  1240. ]] ) else write( [[
  1241. <div id="about_frame">
  1242. <div id="about_flashcontent">Flash is required to view this gallery. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  1243. <script language="JavaScript">
  1244. var flashvars = {
  1245. offsite: "true",
  1246. lang: "en-us",
  1247. page_show_url: "/photos/]] )write( model.nonCSS.about_flickrUser )write( [[/sets/]] )write( model.nonCSS.about_flickrSet )write( [[/show/",
  1248. set_id: "]] )write( model.nonCSS.about_flickrSet )write( [[",
  1249. page_show_back_url: "/photos/]] )write( model.nonCSS.about_flickrUser )write( [[/sets/]] )write( model.nonCSS.about_flickrSet )write( [[/",
  1250. jump_to: ""
  1251. }
  1252. var params = {
  1253. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  1254. allowfullscreen: "true"
  1255. }
  1256. var attributes = {
  1257. }
  1258. swfobject.embedSWF("http://www.flickr.com/apps/slideshow/show.swf", "about_flashcontent", "100%", "100%", "7", false, flashvars, params, attributes);
  1259. </script>
  1260. </div>
  1261. ]] ) end write( [[
  1262. ]] ) elseif model.nonCSS.about_galleryType == "lightroomflashgallery" then write( [[
  1263. ]] ) if mode == 'preview' then write( [[
  1264. <div id="about_frame">
  1265. <div id="about_flashcontent">
  1266. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1267. <p><strong>Setup Instructions</strong></p>
  1268. <p>Export a gallery using the Lightroom Flash Gallery web engine. Name the export folder "about_lightroomflashgallery" and copy it into the exported TTG Pages folder.</p>
  1269. </div>
  1270. </div>
  1271. </div>
  1272. ]] ) else write( [[
  1273. <div id="about_frame">
  1274. <div id="about_flashcontent">
  1275. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  1276. width="100%" height="100%"
  1277. codebase="http://download.macromedia.com/pub/shockwave/
  1278. cabs/flash/swflash.cab">
  1279. <param name="movie" value="about_lightroomflashgallery/resources/gallery.swf"/>
  1280. <param name="flashvars"
  1281. value="livePreview=false
  1282. &baseRefUrl=about_lightroomflashgallery/
  1283. &groupxml=resources/mediaGroupData/group.xml
  1284. &stylexml=resources/styles/style.xml
  1285. &localText=resources/localization/localText.xml"/>
  1286. <param name="id" value="gallery"/>
  1287. <param name="quality" value="high"/>
  1288. <param name="align" value="middle"/>
  1289. <param name="name" value="gallery"/>
  1290. <param name="bgcolor" value="#f7f7f7"/>
  1291. <param name="allowScriptAccess" value="sameDomain"/>
  1292. <param name="menu" value="true"/>
  1293. <embed src="about_lightroomflashgallery/resources/gallery.swf"
  1294. type="application/x-shockwave-flash"
  1295. pluginspage="http://www.macromedia.com/go/getflashplayer"
  1296. flashvars="livePreview=false
  1297. &baseRefUrl=about_lightroomflashgallery/
  1298. &groupxml=resources/mediaGroupData/group.xml
  1299. &stylexml=resources/styles/style.xml
  1300. &localText=resources/localization/localText.xml"
  1301. width="100%" height="100%" quality="high" align="middle"
  1302. allowScriptAccess="sameDomain">
  1303. </embed>
  1304. </object>
  1305. </div>
  1306. </div>
  1307. ]] ) end write( [[
  1308. ]] ) elseif model.nonCSS.about_galleryType == "monoslideshow" then write( [[
  1309. ]] ) if mode == 'preview' then write( [[
  1310. <div id="about_frame">
  1311. <div id="about_flashcontent">
  1312. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1313. <p><strong>Setup Instructions</strong></p>
  1314. <p>Export a gallery using the (discontinued) TTG MonoSlideshow web engine, or create a Monoslideshow gallery on your own. Name the export folder "about_monoslideshow" and copy it into the exported TTG Pages folder.</p>
  1315. </div>
  1316. </div>
  1317. </div>
  1318. ]] ) else write( [[
  1319. <div id="about_frame">
  1320. <div id="about_flashcontent">
  1321. <p><strong>Please install Flash® and turn on Javascript.</strong></p>
  1322. </div>
  1323. <script language="JavaScript">
  1324. var flashvars = {
  1325. showLogo: "false"
  1326. }
  1327. var params = {
  1328. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  1329. base: "about_monoslideshow/"
  1330. }
  1331. var attributes = {
  1332. }
  1333. swfobject.embedSWF("about_monoslideshow/monoslideshow.swf", "about_flashcontent", "100%", "100%", "7", false, flashvars, params, attributes);
  1334. </script>
  1335. </div>
  1336. ]] ) end write( [[
  1337. ]] ) elseif model.nonCSS.about_galleryType == "monoslideshow2" then write( [[
  1338. ]] ) if mode == 'preview' then write( [[
  1339. <div id="about_frame">
  1340. <div id="about_flashcontent">
  1341. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1342. <p><strong>Setup Instructions</strong></p>
  1343. <p>Export a gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-monoslideshow/">TTG MonoSlideshow</a> web engine. Name the export folder "about_monoslideshow" and copy it into the exported TTG Pages folder.</p>
  1344. </div>
  1345. </div>
  1346. </div>
  1347. ]] ) else write( [[
  1348. <div id="about_frame">
  1349. <div id="about_flashcontent">
  1350. <p>Please <a href="http://get.adobe.com/flashplayer/">install Flash®</a> and turn on Javascript.</p>
  1351. </div>
  1352. <script type="text/javascript">
  1353. var flashvars = {showLogo: "false", showRegistration: "false"};
  1354. var params = {allowScriptAccess: "sameDomain", allowfullscreen: "true", allowNetworking: "all", base: "about_monoslideshow/"};
  1355. var attributes = {id: "monoslideshow", name: "monoslideshow", bgColor: "]] )write( model.nonCSS.about_stageBGC )write( [["};
  1356. swfobject.embedSWF("about_monoslideshow/monoslideshow.swf", "about_flashcontent", "100%", "100%", "9", false, flashvars, params, attributes);
  1357. </script>
  1358. </div>
  1359. ]] ) end write( [[
  1360. ]] ) elseif model.nonCSS.about_galleryType == "polaroid" then write( [[
  1361. ]] ) if mode == 'preview' then write( [[
  1362. <div id="about_frame">
  1363. <div id="about_flashcontent">
  1364. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1365. <p><strong>Setup Instructions</strong></p>
  1366. <p>Export a gallery using the <a style="color:#e5a638 !important;" href="http://lightroom.theturninggate.net/flash-galleries/ttg-polaroid-gallery/">TTG Polaroid Gallery</a> web engine. Name the export folder "about_polaroid" and copy it into the exported TTG Pages folder.</p>
  1367. </div>
  1368. </div>
  1369. </div>
  1370. ]] ) else write( [[
  1371. <div id="about_frame">
  1372. <div id="about_flashcontent">This gallery requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  1373. <script language="JavaScript">
  1374. var flashvars = {
  1375. xmlURL: "photos.xml"
  1376. }
  1377. var params = {
  1378. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  1379. base: "about_polaroid/"
  1380. }
  1381. var attributes = {
  1382. }
  1383. swfobject.embedSWF("about_polaroid/polaroid.swf", "about_flashcontent", "100%", "100%", "8", false, flashvars, params, attributes);
  1384. </script>
  1385. </div>
  1386. ]] ) end write( [[
  1387. ]] ) elseif model.nonCSS.about_galleryType == "postcardviewer" then write( [[
  1388. ]] ) if mode == 'preview' then write( [[
  1389. <div id="about_frame">
  1390. <div id="about_flashcontent">
  1391. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1392. <p><strong>Setup Instructions</strong></p>
  1393. <p>Export a PostcardViewer gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-postcardviewer/">TTG PostcardViewer</a> or Airtight PostcardViewer web engine. Name the export folder "about_postcardviewer" and copy it into the exported TTG Pages folder.</p>
  1394. </div>
  1395. </div>
  1396. </div>
  1397. ]] ) else write( [[
  1398. <div id="about_frame">
  1399. <div id="about_flashcontent">PostcardViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash here.</a> </div>
  1400. <script language="JavaScript">
  1401. var flashvars = {
  1402. // langOpenImage: "Open Image in New Window",
  1403. // langAbout: "About",
  1404. xmlURL: "gallery.xml"
  1405. }
  1406. var params = {
  1407. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  1408. base: "about_postcardviewer/"
  1409. }
  1410. var attributes = {
  1411. }
  1412. swfobject.embedSWF("about_postcardviewer/viewer.swf", "about_flashcontent", "100%", "100%", "8", false, flashvars, params, attributes);
  1413. </script>
  1414. </div>
  1415. ]] ) end write( [[
  1416. ]] ) elseif model.nonCSS.about_galleryType == "simpleviewer" then write( [[
  1417. ]] ) if mode == 'preview' then write( [[
  1418. <div id="about_frame">
  1419. <div id="about_flashcontent">
  1420. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1421. <p><strong>Setup Instructions</strong></p>
  1422. <p>Export a Simpleviewer gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-simpleviewer/">TTG Simpleviewer</a> or Airtight Simpleviewer web engine. Name the export folder "about_simpleviewer" and copy it into the exported TTG Pages folder.</p>
  1423. </div>
  1424. </div>
  1425. </div>
  1426. ]] ) else write( [[
  1427. <div id="about_frame">
  1428. <div id="about_flashcontent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  1429. <script language="JavaScript">
  1430. var flashvars = {
  1431. // langOpenImage: "Open Image in New Window",
  1432. // langAbout: "About",
  1433. preloaderColor: "0xffffff",
  1434. xmlDataPath: "gallery.xml"
  1435. }
  1436. var params = {
  1437. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  1438. base: "about_simpleviewer/"
  1439. }
  1440. var attributes = {
  1441. }
  1442. swfobject.embedSWF("about_simpleviewer/viewer.swf", "about_flashcontent", "100%", "100%", "7", false, flashvars, params, attributes);
  1443. </script>
  1444. </div>
  1445. ]] ) end write( [[
  1446. ]] ) elseif model.nonCSS.about_galleryType == "simpleviewer2" then write( [[
  1447. ]] ) if mode == 'preview' then write( [[
  1448. <div id="about_frame">
  1449. <div id="about_flashcontent">
  1450. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1451. <p><strong>Setup Instructions</strong></p>
  1452. <p>Export a Simpleviewer gallery using the <a style="color:#e5a638 !important;" href="http://lightroom.theturninggate.net/flash-galleries/ttg-simpleviewer/">TTG Simpleviewer-2</a> web engine. Name the export folder "about_simpleviewer" and copy it into the exported TTG Stage folder.</p>
  1453. </div>
  1454. </div>
  1455. </div>
  1456. ]] ) else write( [[
  1457. <div id="about_frame">
  1458. <div id="about_flashcontent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  1459. <script type="text/javascript">
  1460. var flashvars = {};
  1461. flashvars.baseURL="about_simpleviewer/";
  1462. flashvars.galleryURL = "gallery.xml";
  1463. var params = {};
  1464. params.allowfullscreen = true;
  1465. params.allowscriptaccess = "always";
  1466. params.bgcolor = "]] )write( model.nonCSS.about_stageBGC )write( [[";
  1467. swfobject.embedSWF("about_simpleviewer/simpleviewer.swf", "about_flashcontent", "100%", "100%", "9.0.124", false, flashvars, params);
  1468. </script>
  1469. </div>
  1470. ]] ) end write( [[
  1471. ]] ) elseif model.nonCSS.about_galleryType == "slideshowpro" then write( [[
  1472. ]] ) if mode == 'preview' then write( [[
  1473. <div id="about_frame">
  1474. <div id="about_flashcontent">
  1475. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1476. <p><strong>Setup Instructions</strong></p>
  1477. <p>Export a gallery using the <a href="http://www.slideshowpro.net">Slideshow Pro</a> web engine. Name the export folder "about_slideshowpro" and copy it into the exported TTG Pages folder.</p>
  1478. </div>
  1479. </div>
  1480. </div>
  1481. ]] ) else write( [[
  1482. <div id="about_frame">
  1483. <div id="about_flashcontent">
  1484. This SlideShowPro photo gallery requires the Flash Player plugin and a web browser with JavaScript enabled.
  1485. </div>
  1486. <script language="JavaScript">
  1487. <!--
  1488. // Permalinks option
  1489. function flashPutHref(href) { location.href = href; }
  1490. // Expand browser option
  1491. var eB = false;
  1492. if (eB) {
  1493. window.moveTo(0,0);
  1494. window.resizeTo (screen.availWidth, screen.availHeight);
  1495. }
  1496. // swffit sizing
  1497. var swf_pad = 20;
  1498. function initSwffit(w,h) {
  1499. // If you change name of the DIV the SWF is written at,
  1500. // change 'flashcontent' to the name of your DIV.
  1501. swffit.fit('about_flashcontent',w+swf_pad,h+swf_pad);
  1502. }
  1503. // SWFObject embed
  1504. var flashvars = {
  1505. paramXMLPath: "param.xml",
  1506. initialURL: escape(document.location)
  1507. }
  1508. var params = {
  1509. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  1510. allowfullscreen: "true",
  1511. base: "about_slideshowpro/"
  1512. }
  1513. var attributes = {}
  1514. swfobject.embedSWF("about_slideshowpro/loader.swf", "about_flashcontent", "100%", "100%", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
  1515. /* below required for google chrome embed issue */
  1516. swffit.fit('about_flashcontent',0,0);
  1517. -->
  1518. </script>
  1519. </div> <!-- /frame -->
  1520. ]] ) end write( [[
  1521. ]] ) end write( [[
  1522. ]] ) else write( [[
  1523. <img src="photos/]] )write( getImage(2).exportFilename )write( [[.jpg" class="page_img" width="]] )write( getImage(2).renditions.photos.width )write( [[" height="]] )write( getImage(2).renditions.photos.height )write( [[" alt="]] )write( getImage(2).metadata.alt )write( [[" style="margin: 0 0 20px 0 !important;" />
  1524. ]] ) end write( [[
  1525. <div class="copy" style="width: ]] )write( math.floor( model.nonCSS.aboutWidth - ( model.nonCSS.page_content_padding * 2 ) - ( model.nonCSS.page_content_border * 2 ) ) )write( [[px;">
  1526. ]] ) if model.nonCSS.includeAboutHeading1 then write( [[<h2 id="metadata.aboutHeading1.value" class="first heading heading_about"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutHeading1.value');"]] ) end write( [[>]] )write( model.metadata.aboutHeading1.value )write( [[</h2>]] ) end write( [[
  1527. ]] ) if model.nonCSS.includeAboutParagraph1 then write( [[<p id="nonCSS.aboutParagraph1.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutParagraph1.value');"]] ) end write( [[>]] )write( model.metadata.aboutParagraph1.value )write( [[</p>]] ) end write( [[
  1528. ]] ) if model.nonCSS.includeAboutHeading2 then write( [[<h2 id="metadata.aboutHeading2.value" class="subsequent heading heading_about"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutHeading2.value');"]] ) end write( [[>]] )write( model.metadata.aboutHeading2.value )write( [[</h2>]] ) end write( [[
  1529. ]] ) if model.nonCSS.includeAboutParagraph2 then write( [[<p id="nonCSS.aboutParagraph2.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutParagraph2.value');"]] ) end write( [[>]] )write( model.metadata.aboutParagraph2.value )write( [[</p>]] ) end write( [[
  1530. ]] ) if model.nonCSS.includeAboutHeading3 then write( [[<h2 id="metadata.aboutHeading3.value" class="subsequent heading heading_about"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutHeading3.value');"]] ) end write( [[>]] )write( model.metadata.aboutHeading3.value )write( [[</h2>]] ) end write( [[
  1531. ]] ) if model.nonCSS.includeAboutParagraph3 then write( [[<p id="nonCSS.aboutParagraph3.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutParagraph3.value');"]] ) end write( [[>]] )write( model.metadata.aboutParagraph3.value )write( [[</p>]] ) end write( [[
  1532. ]] ) if model.nonCSS.includeAboutHeading4 then write( [[<h2 id="metadata.aboutHeading4.value" class="subsequent heading heading_about"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutHeading4.value');"]] ) end write( [[>]] )write( model.metadata.aboutHeading4.value )write( [[</h2>]] ) end write( [[
  1533. ]] ) if model.nonCSS.includeAboutParagraph4 then write( [[<p id="nonCSS.aboutParagraph4.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutParagraph4.value');"]] ) end write( [[>]] )write( model.metadata.aboutParagraph4.value )write( [[</p>]] ) end write( [[
  1534. ]] ) if model.nonCSS.includeAboutHeading5 then write( [[<h2 id="metadata.aboutHeading5.value" class="subsequent heading heading_about"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutHeading5.value');"]] ) end write( [[>]] )write( model.metadata.aboutHeading5.value )write( [[</h2>]] ) end write( [[
  1535. ]] ) if model.nonCSS.includeAboutParagraph5 then write( [[<p id="nonCSS.aboutParagraph5.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutParagraph5.value');"]] ) end write( [[>]] )write( model.metadata.aboutParagraph5.value )write( [[</p>]] ) end write( [[
  1536. </div>
  1537. <div class="clear"></div>
  1538. </div> <!-- /page_content home -->
  1539. ]] ) elseif model.nonCSS.aboutConfiguration == "copyupimagedown" then write( [[
  1540. <div id="page_content" class="about">
  1541. <div class="copy" style="width: ]] )write( math.floor( model.nonCSS.aboutWidth - ( model.nonCSS.page_content_padding * 2 ) - ( model.nonCSS.page_content_border * 2 ) ) )write( [[px;">
  1542. ]] ) if model.nonCSS.includeAboutHeading1 then write( [[<h2 id="metadata.aboutHeading1.value" class="first heading heading_about"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutHeading1.value');"]] ) end write( [[>]] )write( model.metadata.aboutHeading1.value )write( [[</h2>]] ) end write( [[
  1543. ]] ) if model.nonCSS.includeAboutParagraph1 then write( [[<p id="nonCSS.aboutParagraph1.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutParagraph1.value');"]] ) end write( [[>]] )write( model.metadata.aboutParagraph1.value )write( [[</p>]] ) end write( [[
  1544. ]] ) if model.nonCSS.includeAboutHeading2 then write( [[<h2 id="metadata.aboutHeading2.value" class="subsequent heading heading_about"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutHeading2.value');"]] ) end write( [[>]] )write( model.metadata.aboutHeading2.value )write( [[</h2>]] ) end write( [[
  1545. ]] ) if model.nonCSS.includeAboutParagraph2 then write( [[<p id="nonCSS.aboutParagraph2.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutParagraph2.value');"]] ) end write( [[>]] )write( model.metadata.aboutParagraph2.value )write( [[</p>]] ) end write( [[
  1546. ]] ) if model.nonCSS.includeAboutHeading3 then write( [[<h2 id="metadata.aboutHeading3.value" class="subsequent heading heading_about"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutHeading3.value');"]] ) end write( [[>]] )write( model.metadata.aboutHeading3.value )write( [[</h2>]] ) end write( [[
  1547. ]] ) if model.nonCSS.includeAboutParagraph3 then write( [[<p id="nonCSS.aboutParagraph3.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutParagraph3.value');"]] ) end write( [[>]] )write( model.metadata.aboutParagraph3.value )write( [[</p>]] ) end write( [[
  1548. ]] ) if model.nonCSS.includeAboutHeading4 then write( [[<h2 id="metadata.aboutHeading4.value" class="subsequent heading heading_about"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutHeading4.value');"]] ) end write( [[>]] )write( model.metadata.aboutHeading4.value )write( [[</h2>]] ) end write( [[
  1549. ]] ) if model.nonCSS.includeAboutParagraph4 then write( [[<p id="nonCSS.aboutParagraph4.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutParagraph4.value');"]] ) end write( [[>]] )write( model.metadata.aboutParagraph4.value )write( [[</p>]] ) end write( [[
  1550. ]] ) if model.nonCSS.includeAboutHeading5 then write( [[<h2 id="metadata.aboutHeading5.value" class="subsequent heading heading_about"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutHeading5.value');"]] ) end write( [[>]] )write( model.metadata.aboutHeading5.value )write( [[</h2>]] ) end write( [[
  1551. ]] ) if model.nonCSS.includeAboutParagraph5 then write( [[<p id="nonCSS.aboutParagraph5.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutParagraph5.value');"]] ) end write( [[>]] )write( model.metadata.aboutParagraph5.value )write( [[</p>]] ) end write( [[
  1552. </div>
  1553. ]] ) if model.nonCSS.home_stage then write( [[
  1554. <style type="text/css">
  1555. #home_frame { margin: 2em auto 0 !important; }
  1556. </style>
  1557. ]] ) if model.nonCSS.about_galleryType == "none" then write( [[
  1558. <div id="about_frame">
  1559. <div id="about_flashcontent">
  1560. <p style="margin: 0 !important;">You have chosen to replace this image with a Flash gallery. Please select a Gallery Type from the Appearance pane so that we can properly prepare the stage for your gallery.</p>
  1561. </div>
  1562. </div>
  1563. ]] ) elseif model.nonCSS.about_galleryType == "autoviewer" then write( [[
  1564. ]] ) if mode == 'preview' then write( [[
  1565. <div id="about_frame">
  1566. <div id="about_flashcontent">
  1567. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1568. <p><strong>Setup Instructions</strong></p>
  1569. <p>Export an Autoviewer gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-autoviewer/">TTG Autoviewer</a> or Airtight Autoviewer web engine. Name the export folder "about_autoviewer" and copy it into the exported TTG Pages folder.</p>
  1570. </div>
  1571. </div>
  1572. </div>
  1573. ]] ) else write( [[
  1574. <div id="about_frame">
  1575. <div id="about_flashcontent"></div>
  1576. <script language="JavaScript">
  1577. var flashvars = {
  1578. // langOpenImage: "Open Image in New Window",
  1579. // langAbout: "About",
  1580. xmlURL: "gallery.xml"
  1581. }
  1582. var params = {
  1583. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  1584. scale: "noscale",
  1585. base: "about_autoviewer/"
  1586. }
  1587. var attributes = {
  1588. }
  1589. swfobject.embedSWF("about_autoviewer/viewer.swf", "about_flashcontent", "100%", "100%", "8", false, flashvars, params, attributes);
  1590. </script>
  1591. </div>
  1592. ]] ) end write( [[
  1593. ]] ) elseif model.nonCSS.about_galleryType == "dimin" then write( [[
  1594. ]] ) if mode == 'preview' then write( [[
  1595. <div id="about_frame">
  1596. <div id="about_flashcontent">
  1597. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1598. <p><strong>Setup Instructions</strong></p>
  1599. <p>Export a gallery using the <a href="http://dimin.m6.net/software/lightroom/">DIMIN Slideshow</a> web engine. Name the export folder "about_dimin" and copy it into the exported TTG Pages folder.</p>
  1600. </div>
  1601. </div>
  1602. </div>
  1603. ]] ) else write( [[
  1604. <div id="about_frame">
  1605. <div id="about_flashcontent">DIMIN Slideshow requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash here.</a></div>
  1606. <script language="JavaScript">
  1607. var flashvars = {
  1608. width: "]] )write( model.nonCSS.about_gallery_width )write( [[",
  1609. height: "]] )write( model.nonCSS.about_gallery_height )write( [[",
  1610. file: "slideshow.xml"
  1611. }
  1612. var params = {
  1613. allowfullscreen: "true",
  1614. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  1615. base: "about_dimin/"
  1616. }
  1617. var attributes = {
  1618. }
  1619. swfobject.embedSWF("about_dimin/imagerotator.swf", "about_flashcontent", "]] )write( model.nonCSS.about_gallery_width )write( [[", "]] )write( model.nonCSS.about_gallery_height )write( [[", "7", false, flashvars, params, attributes);
  1620. </script>
  1621. </div>
  1622. ]] ) end write( [[
  1623. ]] ) elseif model.nonCSS.about_galleryType == "flashnifties" then write( [[
  1624. ]] ) if mode == 'preview' then write( [[
  1625. <div id="about_frame">
  1626. <div id="about_flashcontent">
  1627. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1628. <p><strong>Setup Instructions</strong></p>
  1629. <p>Export a gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-flashnifties/">TTG Flashnifties</a> web engine. Name the export folder "about_flashnifties" and copy it into the exported TTG Pages folder.</p>
  1630. </div>
  1631. </div>
  1632. </div>
  1633. ]] ) else write( [[
  1634. <div id="about_frame">
  1635. <div id="about_flashcontent">This gallery requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  1636. <script language="JavaScript">
  1637. var flashvars = {
  1638. }
  1639. var params = {
  1640. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  1641. base: "about_flashnifties/"
  1642. }
  1643. var attributes = {
  1644. }
  1645. swfobject.embedSWF("about_flashnifties/xmlGallery.swf", "about_flashcontent", "100%", "100%", "6", false, flashvars, params, attributes);
  1646. </script>
  1647. </div>
  1648. ]] ) end write( [[
  1649. ]] ) elseif model.nonCSS.about_galleryType == "flickr" then write( [[
  1650. ]] ) if mode == 'preview' then write( [[
  1651. <div id="about_frame">
  1652. <div id="about_flashcontent">
  1653. <div id="flickr" style="padding:1em;font-size:11px;line-height:17px;">
  1654. <p><strong>Flickr Setup</strong></p>
  1655. <p>Input your Flickr username and the ID number of the Flickr Set you wish to display into the "Flickr Username" and "Flickr Set ID" fields, respectively.</p>
  1656. <p>To get the Flickr Set ID, visit your set on Flickr. The URL for the set will look like this: http://www.flickr.com/photos/username/sets/<span style="color:#f00 !important;">#################</span>/.</p>
  1657. <p>The number, shown here in red, is the set ID. Copy and paste that number into the "Flickr Set ID" field in the Appearance pane.</p>
  1658. <p>TTG Stage will only display <strong>sets</strong>, not collections, nor photostreams. The gallery will not display here in the LR preview, but will appear in the exported gallery, or when previewed in a browser.</p>
  1659. <p>The URL that will be displayed in your gallery is:</p>
  1660. <p><a href="http://www.flickr.com/photos/]] )write( model.nonCSS.about_flickrUser )write( [[/sets/]] )write( model.nonCSS.about_flickrSet )write( [[/">http://www.flickr.com/photos/]] )write( model.nonCSS.about_flickrUser )write( [[/sets/]] )write( model.nonCSS.about_flickrSet )write( [[/</a></p>
  1661. <p>Check that the URL is correct by clicking on it and verifying its destination.</p>
  1662. </div>
  1663. </div>
  1664. </div>
  1665. ]] ) else write( [[
  1666. <div id="about_frame">
  1667. <div id="about_flashcontent">Flash is required to view this gallery. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  1668. <script language="JavaScript">
  1669. var flashvars = {
  1670. offsite: "true",
  1671. lang: "en-us",
  1672. page_show_url: "/photos/]] )write( model.nonCSS.about_flickrUser )write( [[/sets/]] )write( model.nonCSS.about_flickrSet )write( [[/show/",
  1673. set_id: "]] )write( model.nonCSS.about_flickrSet )write( [[",
  1674. page_show_back_url: "/photos/]] )write( model.nonCSS.about_flickrUser )write( [[/sets/]] )write( model.nonCSS.about_flickrSet )write( [[/",
  1675. jump_to: ""
  1676. }
  1677. var params = {
  1678. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  1679. allowfullscreen: "true"
  1680. }
  1681. var attributes = {
  1682. }
  1683. swfobject.embedSWF("http://www.flickr.com/apps/slideshow/show.swf", "about_flashcontent", "100%", "100%", "7", false, flashvars, params, attributes);
  1684. </script>
  1685. </div>
  1686. ]] ) end write( [[
  1687. ]] ) elseif model.nonCSS.about_galleryType == "lightroomflashgallery" then write( [[
  1688. ]] ) if mode == 'preview' then write( [[
  1689. <div id="about_frame">
  1690. <div id="about_flashcontent">
  1691. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1692. <p><strong>Setup Instructions</strong></p>
  1693. <p>Export a gallery using the Lightroom Flash Gallery web engine. Name the export folder "about_lightroomflashgallery" and copy it into the exported TTG Pages folder.</p>
  1694. </div>
  1695. </div>
  1696. </div>
  1697. ]] ) else write( [[
  1698. <div id="about_frame">
  1699. <div id="about_flashcontent">
  1700. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  1701. width="100%" height="100%"
  1702. codebase="http://download.macromedia.com/pub/shockwave/
  1703. cabs/flash/swflash.cab">
  1704. <param name="movie" value="about_lightroomflashgallery/resources/gallery.swf"/>
  1705. <param name="flashvars"
  1706. value="livePreview=false
  1707. &baseRefUrl=about_lightroomflashgallery/
  1708. &groupxml=resources/mediaGroupData/group.xml
  1709. &stylexml=resources/styles/style.xml
  1710. &localText=resources/localization/localText.xml"/>
  1711. <param name="id" value="gallery"/>
  1712. <param name="quality" value="high"/>
  1713. <param name="align" value="middle"/>
  1714. <param name="name" value="gallery"/>
  1715. <param name="bgcolor" value="#f7f7f7"/>
  1716. <param name="allowScriptAccess" value="sameDomain"/>
  1717. <param name="menu" value="true"/>
  1718. <embed src="about_lightroomflashgallery/resources/gallery.swf"
  1719. type="application/x-shockwave-flash"
  1720. pluginspage="http://www.macromedia.com/go/getflashplayer"
  1721. flashvars="livePreview=false
  1722. &baseRefUrl=about_lightroomflashgallery/
  1723. &groupxml=resources/mediaGroupData/group.xml
  1724. &stylexml=resources/styles/style.xml
  1725. &localText=resources/localization/localText.xml"
  1726. width="100%" height="100%" quality="high" align="middle"
  1727. allowScriptAccess="sameDomain">
  1728. </embed>
  1729. </object>
  1730. </div>
  1731. </div>
  1732. ]] ) end write( [[
  1733. ]] ) elseif model.nonCSS.about_galleryType == "monoslideshow" then write( [[
  1734. ]] ) if mode == 'preview' then write( [[
  1735. <div id="about_frame">
  1736. <div id="about_flashcontent">
  1737. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1738. <p><strong>Setup Instructions</strong></p>
  1739. <p>Export a gallery using the (discontinued) TTG MonoSlideshow web engine, or create a Monoslideshow gallery on your own. Name the export folder "about_monoslideshow" and copy it into the exported TTG Pages folder.</p>
  1740. </div>
  1741. </div>
  1742. </div>
  1743. ]] ) else write( [[
  1744. <div id="about_frame">
  1745. <div id="about_flashcontent">
  1746. <p><strong>Please install Flash® and turn on Javascript.</strong></p>
  1747. </div>
  1748. <script language="JavaScript">
  1749. var flashvars = {
  1750. showLogo: "false"
  1751. }
  1752. var params = {
  1753. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  1754. base: "about_monoslideshow/"
  1755. }
  1756. var attributes = {
  1757. }
  1758. swfobject.embedSWF("about_monoslideshow/monoslideshow.swf", "about_flashcontent", "100%", "100%", "7", false, flashvars, params, attributes);
  1759. </script>
  1760. </div>
  1761. ]] ) end write( [[
  1762. ]] ) elseif model.nonCSS.about_galleryType == "monoslideshow2" then write( [[
  1763. ]] ) if mode == 'preview' then write( [[
  1764. <div id="about_frame">
  1765. <div id="about_flashcontent">
  1766. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1767. <p><strong>Setup Instructions</strong></p>
  1768. <p>Export a gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-monoslideshow/">TTG MonoSlideshow</a> web engine. Name the export folder "about_monoslideshow" and copy it into the exported TTG Pages folder.</p>
  1769. </div>
  1770. </div>
  1771. </div>
  1772. ]] ) else write( [[
  1773. <div id="about_frame">
  1774. <div id="about_flashcontent">
  1775. <p>Please <a href="http://get.adobe.com/flashplayer/">install Flash®</a> and turn on Javascript.</p>
  1776. </div>
  1777. <script type="text/javascript">
  1778. var flashvars = {showLogo: "false", showRegistration: "false"};
  1779. var params = {allowScriptAccess: "sameDomain", allowfullscreen: "true", allowNetworking: "all", base: "about_monoslideshow/"};
  1780. var attributes = {id: "monoslideshow", name: "monoslideshow", bgColor: "]] )write( model.nonCSS.about_stageBGC )write( [["};
  1781. swfobject.embedSWF("about_monoslideshow/monoslideshow.swf", "about_flashcontent", "100%", "100%", "9", false, flashvars, params, attributes);
  1782. </script>
  1783. </div>
  1784. ]] ) end write( [[
  1785. ]] ) elseif model.nonCSS.about_galleryType == "polaroid" then write( [[
  1786. ]] ) if mode == 'preview' then write( [[
  1787. <div id="about_frame">
  1788. <div id="about_flashcontent">
  1789. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1790. <p><strong>Setup Instructions</strong></p>
  1791. <p>Export a gallery using the <a style="color:#e5a638 !important;" href="http://lightroom.theturninggate.net/flash-galleries/ttg-polaroid-gallery/">TTG Polaroid Gallery</a> web engine. Name the export folder "about_polaroid" and copy it into the exported TTG Pages folder.</p>
  1792. </div>
  1793. </div>
  1794. </div>
  1795. ]] ) else write( [[
  1796. <div id="about_frame">
  1797. <div id="about_flashcontent">This gallery requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  1798. <script language="JavaScript">
  1799. var flashvars = {
  1800. xmlURL: "photos.xml"
  1801. }
  1802. var params = {
  1803. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  1804. base: "about_polaroid/"
  1805. }
  1806. var attributes = {
  1807. }
  1808. swfobject.embedSWF("about_polaroid/polaroid.swf", "about_flashcontent", "100%", "100%", "8", false, flashvars, params, attributes);
  1809. </script>
  1810. </div>
  1811. ]] ) end write( [[
  1812. ]] ) elseif model.nonCSS.about_galleryType == "postcardviewer" then write( [[
  1813. ]] ) if mode == 'preview' then write( [[
  1814. <div id="about_frame">
  1815. <div id="about_flashcontent">
  1816. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1817. <p><strong>Setup Instructions</strong></p>
  1818. <p>Export a PostcardViewer gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-postcardviewer/">TTG PostcardViewer</a> or Airtight PostcardViewer web engine. Name the export folder "about_postcardviewer" and copy it into the exported TTG Pages folder.</p>
  1819. </div>
  1820. </div>
  1821. </div>
  1822. ]] ) else write( [[
  1823. <div id="about_frame">
  1824. <div id="about_flashcontent">PostcardViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash here.</a> </div>
  1825. <script language="JavaScript">
  1826. var flashvars = {
  1827. // langOpenImage: "Open Image in New Window",
  1828. // langAbout: "About",
  1829. xmlURL: "gallery.xml"
  1830. }
  1831. var params = {
  1832. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  1833. base: "about_postcardviewer/"
  1834. }
  1835. var attributes = {
  1836. }
  1837. swfobject.embedSWF("about_postcardviewer/viewer.swf", "about_flashcontent", "100%", "100%", "8", false, flashvars, params, attributes);
  1838. </script>
  1839. </div>
  1840. ]] ) end write( [[
  1841. ]] ) elseif model.nonCSS.about_galleryType == "simpleviewer" then write( [[
  1842. ]] ) if mode == 'preview' then write( [[
  1843. <div id="about_frame">
  1844. <div id="about_flashcontent">
  1845. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1846. <p><strong>Setup Instructions</strong></p>
  1847. <p>Export a Simpleviewer gallery using the <a href="http://lightroom.theturninggate.net/flash-galleries/ttg-simpleviewer/">TTG Simpleviewer</a> or Airtight Simpleviewer web engine. Name the export folder "about_simpleviewer" and copy it into the exported TTG Pages folder.</p>
  1848. </div>
  1849. </div>
  1850. </div>
  1851. ]] ) else write( [[
  1852. <div id="about_frame">
  1853. <div id="about_flashcontent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  1854. <script language="JavaScript">
  1855. var flashvars = {
  1856. // langOpenImage: "Open Image in New Window",
  1857. // langAbout: "About",
  1858. preloaderColor: "0xffffff",
  1859. xmlDataPath: "gallery.xml"
  1860. }
  1861. var params = {
  1862. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  1863. base: "about_simpleviewer/"
  1864. }
  1865. var attributes = {
  1866. }
  1867. swfobject.embedSWF("about_simpleviewer/viewer.swf", "about_flashcontent", "100%", "100%", "7", false, flashvars, params, attributes);
  1868. </script>
  1869. </div>
  1870. ]] ) end write( [[
  1871. ]] ) elseif model.nonCSS.about_galleryType == "simpleviewer2" then write( [[
  1872. ]] ) if mode == 'preview' then write( [[
  1873. <div id="about_frame">
  1874. <div id="about_flashcontent">
  1875. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1876. <p><strong>Setup Instructions</strong></p>
  1877. <p>Export a Simpleviewer gallery using the <a style="color:#e5a638 !important;" href="http://lightroom.theturninggate.net/flash-galleries/ttg-simpleviewer/">TTG Simpleviewer-2</a> web engine. Name the export folder "about_simpleviewer" and copy it into the exported TTG Stage folder.</p>
  1878. </div>
  1879. </div>
  1880. </div>
  1881. ]] ) else write( [[
  1882. <div id="about_frame">
  1883. <div id="about_flashcontent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
  1884. <script type="text/javascript">
  1885. var flashvars = {};
  1886. flashvars.baseURL="about_simpleviewer/";
  1887. flashvars.galleryURL = "gallery.xml";
  1888. var params = {};
  1889. params.allowfullscreen = true;
  1890. params.allowscriptaccess = "always";
  1891. params.bgcolor = "]] )write( model.nonCSS.about_stageBGC )write( [[";
  1892. swfobject.embedSWF("about_simpleviewer/simpleviewer.swf", "about_flashcontent", "100%", "100%", "9.0.124", false, flashvars, params);
  1893. </script>
  1894. </div>
  1895. ]] ) end write( [[
  1896. ]] ) elseif model.nonCSS.about_galleryType == "slideshowpro" then write( [[
  1897. ]] ) if mode == 'preview' then write( [[
  1898. <div id="about_frame">
  1899. <div id="about_flashcontent">
  1900. <div id="gallerystage" style="padding:1em;font-size:11px;line-height:17px;">
  1901. <p><strong>Setup Instructions</strong></p>
  1902. <p>Export a gallery using the <a href="http://www.slideshowpro.net">Slideshow Pro</a> web engine. Name the export folder "about_slideshowpro" and copy it into the exported TTG Pages folder.</p>
  1903. </div>
  1904. </div>
  1905. </div>
  1906. ]] ) else write( [[
  1907. <div id="about_frame">
  1908. <div id="about_flashcontent">
  1909. This SlideShowPro photo gallery requires the Flash Player plugin and a web browser with JavaScript enabled.
  1910. </div>
  1911. <script language="JavaScript">
  1912. <!--
  1913. // Permalinks option
  1914. function flashPutHref(href) { location.href = href; }
  1915. // Expand browser option
  1916. var eB = false;
  1917. if (eB) {
  1918. window.moveTo(0,0);
  1919. window.resizeTo (screen.availWidth, screen.availHeight);
  1920. }
  1921. // swffit sizing
  1922. var swf_pad = 20;
  1923. function initSwffit(w,h) {
  1924. // If you change name of the DIV the SWF is written at,
  1925. // change 'flashcontent' to the name of your DIV.
  1926. swffit.fit('about_flashcontent',w+swf_pad,h+swf_pad);
  1927. }
  1928. // SWFObject embed
  1929. var flashvars = {
  1930. paramXMLPath: "param.xml",
  1931. initialURL: escape(document.location)
  1932. }
  1933. var params = {
  1934. bgcolor: "]] )write( model.nonCSS.about_stageBGC )write( [[",
  1935. allowfullscreen: "true",
  1936. base: "about_slideshowpro/"
  1937. }
  1938. var attributes = {}
  1939. swfobject.embedSWF("about_slideshowpro/loader.swf", "about_flashcontent", "100%", "100%", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
  1940. /* below required for google chrome embed issue */
  1941. swffit.fit('about_flashcontent',0,0);
  1942. -->
  1943. </script>
  1944. </div> <!-- /frame -->
  1945. ]] ) end write( [[
  1946. ]] ) end write( [[
  1947. ]] ) else write( [[
  1948. <img src="photos/]] )write( getImage(2).exportFilename )write( [[.jpg" class="page_img" width="]] )write( getImage(2).renditions.photos.width )write( [[" height="]] )write( getImage(2).renditions.photos.height )write( [[" alt="]] )write( getImage(2).metadata.alt )write( [[" />
  1949. ]] ) end write( [[
  1950. <div class="clear"></div>
  1951. </div> <!-- /page_content home -->
  1952. ]] ) elseif model.nonCSS.aboutConfiguration == "noimagecopycenter" then write( [[
  1953. <div id="page_content" class="about">
  1954. <div class="copy" style="width: ]] )write( math.floor( model.nonCSS.aboutWidth - ( model.nonCSS.page_content_padding * 2 ) - ( model.nonCSS.page_content_border * 2 ) ) )write( [[px;">
  1955. ]] ) if model.nonCSS.includeAboutHeading1 then write( [[<h2 id="metadata.aboutHeading1.value" class="first heading heading_about"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutHeading1.value');"]] ) end write( [[>]] )write( model.metadata.aboutHeading1.value )write( [[</h2>]] ) end write( [[
  1956. ]] ) if model.nonCSS.includeAboutParagraph1 then write( [[<p id="nonCSS.aboutParagraph1.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutParagraph1.value');"]] ) end write( [[>]] )write( model.metadata.aboutParagraph1.value )write( [[</p>]] ) end write( [[
  1957. ]] ) if model.nonCSS.includeAboutHeading2 then write( [[<h2 id="metadata.aboutHeading2.value" class="subsequent heading heading_about"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutHeading2.value');"]] ) end write( [[>]] )write( model.metadata.aboutHeading2.value )write( [[</h2>]] ) end write( [[
  1958. ]] ) if model.nonCSS.includeAboutParagraph2 then write( [[<p id="nonCSS.aboutParagraph2.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutParagraph2.value');"]] ) end write( [[>]] )write( model.metadata.aboutParagraph2.value )write( [[</p>]] ) end write( [[
  1959. ]] ) if model.nonCSS.includeAboutHeading3 then write( [[<h2 id="metadata.aboutHeading3.value" class="subsequent heading heading_about"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutHeading3.value');"]] ) end write( [[>]] )write( model.metadata.aboutHeading3.value )write( [[</h2>]] ) end write( [[
  1960. ]] ) if model.nonCSS.includeAboutParagraph3 then write( [[<p id="nonCSS.aboutParagraph3.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutParagraph3.value');"]] ) end write( [[>]] )write( model.metadata.aboutParagraph3.value )write( [[</p>]] ) end write( [[
  1961. ]] ) if model.nonCSS.includeAboutHeading4 then write( [[<h2 id="metadata.aboutHeading4.value" class="subsequent heading heading_about"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutHeading4.value');"]] ) end write( [[>]] )write( model.metadata.aboutHeading4.value )write( [[</h2>]] ) end write( [[
  1962. ]] ) if model.nonCSS.includeAboutParagraph4 then write( [[<p id="nonCSS.aboutParagraph4.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutParagraph4.value');"]] ) end write( [[>]] )write( model.metadata.aboutParagraph4.value )write( [[</p>]] ) end write( [[
  1963. ]] ) if model.nonCSS.includeAboutHeading5 then write( [[<h2 id="metadata.aboutHeading5.value" class="subsequent heading heading_about"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutHeading5.value');"]] ) end write( [[>]] )write( model.metadata.aboutHeading5.value )write( [[</h2>]] ) end write( [[
  1964. ]] ) if model.nonCSS.includeAboutParagraph5 then write( [[<p id="nonCSS.aboutParagraph5.value"]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.aboutParagraph5.value');"]] ) end write( [[>]] )write( model.metadata.aboutParagraph5.value )write( [[</p>]] ) end write( [[
  1965. </div>
  1966. <div class="clear"></div>
  1967. </div> <!-- /page_content home -->
  1968. ]] ) end write( [[
  1969. </div> <!-- /gallery -->
  1970. ]] ) --[[ Include the page footer ]] write( [[
  1971. ]] ) if model.nonCSS.includeFooter then write( [[
  1972. <div id="footer"]] ) if model.nonCSS.transparentBackground then write( [[ style="background-color: transparent !important;"]] ) end write( [[>
  1973. <div id="footer_content">
  1974. ]] ) 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( [[
  1975. <p]] ) if mode == "preview" then write( [[ onclick="clickTarget (this, 'metadata.footer.text');"]] ) end write( [[ class="footer_text">]] )write( model.metadata.footer.text )write( [[
  1976. ]] ) 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( [[
  1977. </p>
  1978. </div>
  1979. </div>
  1980. ]] ) end write( [[
  1981. </div> <!-- /wrapper -->
  1982. ]] ) if mode == 'publish' then write( [[
  1983. ]] )write( model.metadata.script.footer )write( [[
  1984. ]] ) if model.nonCSS.disablerightclick then write( [[
  1985. <script type="text/javascript">
  1986. $(document).ready(function(){
  1987. $(document).bind("contextmenu",function(e){
  1988. return false;
  1989. });
  1990. });
  1991. </script>]] ) end write( [[
  1992. ]] ) if model.nonCSS.googleAnalytics then write( [[
  1993. <script type="text/javascript">
  1994. var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  1995. document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  1996. </script>
  1997. <script type="text/javascript">
  1998. try {
  1999. var pageTracker = _gat._getTracker("]] )write( model.metadata.googleAnalytics.id )write( [[");
  2000. pageTracker._trackPageview();
  2001. } catch(err) {}
  2002. </script>
  2003. ]] ) end write( [[
  2004. ]] ) end write( [[
  2005. </body>
  2006. </html>]] )