tumblrthemetester

Hello Nature Theme

Mar 11th, 2013
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.13 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>{Title}{block:PostTitle} - {PostTitle}{/block:PostTitle}</title>
  7. {block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description}
  8. <link rel="shortcut icon" href="{Favicon}">
  9. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  10. <meta name="image:portrait" content="http://static.tumblr.com/x9muzdu/RD9maz9ei/image416.png"/>
  11. <meta name="text:Link 1" content="theme"/>
  12. <meta name="text:Link 1 URL" content="http://tumblr themes.me"/>
  13. <meta name="text:Link 2" content=""/>
  14. <meta name="text:Link 2 URL" content=""/>
  15. <meta name="text:Link 3" content=""/>
  16. <meta name="text:Link 3 URL" content=""/>
  17. <meta name="text:Link 4" content=""/>
  18. <meta name="text:Link 4 URL" content=""/>
  19. <meta name="text:Link 5" content=""/>
  20. <meta name="text:Link 5 URL" content=""/>
  21. <meta name="text:Link 6" content=""/>
  22. <meta name="text:Link 6 URL" content=""/>
  23. <meta name="text:Link 7" content=""/>
  24. <meta name="text:Link 7 URL" content=""/>
  25. <meta name="text:Link 8" content=""/>
  26. <meta name="text:Link 8 URL" content=""/>
  27. <meta name="text:Home Label" content="Home"/>
  28. <meta name="text:Ask Label" content="Ask"/>
  29. <meta name="text:Submit Label" content="Submit"/>
  30. <meta name="text:Archive Label" content="history"/>
  31. <meta name="if:Show Archive Link" content="1"/>
  32. <meta name="if:Show Submit Link" content="1"/>
  33. <meta name="if:Show Title" content="1"/>
  34. <meta name="if:Show Tags" content="0"/>
  35. <meta name="if:Animation" content="1"/>
  36. <meta name="if:To Top Button" content="0"/>
  37. <meta name="if:Infinite Scroll" content="1"/>
  38. <meta name="if:Show Captions" content="0"/>
  39. <meta name="if:Show Tags" content="0"/>
  40. <meta name="image:Background" content=""/>
  41. <meta name="image:Sidebar" content=""/>
  42. <script type="text/javascript" src="http://static.tumblr.com/uiqhh9x/jkEm9tb4p/jquery-1.8.1.min.js"></script>
  43. <link rel="stylesheet" type="text/css" href="http://static.tumblr.com/cpaytv3/2V1m9r58l/reset.css">
  44. <script type="text/javascript"
  45. src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
  46. <script type="text/javascript" src="http://static.tumblr.com/dbek3sy/iBElrgjim/jquerymasonry.js"></script>
  47. <script type="text/javascript" src="http://static.tumblr.com/dbek3sy/Qyblrgjfn/jqueryinfintescroll.js"></script>
  48. <link href='http://fonts.googleapis.com/css?family=Berkshire+Swash' rel='stylesheet' type='text/css'>
  49.  
  50. <script src="scripts/jquery-1.4.2.min.js" type="text/javascript"></script>
  51. <script src="scripts/jquery-scrolltofixed-min.js" type="text/javascript"></script>
  52.  
  53. <style type="text/css">
  54. body {
  55. color: #080606;background: #c9ff23 url({image:Background});
  56. font-family: Century Gothic;
  57. font-size: 12px;
  58. line-height: 1.5em;
  59. }
  60. p {margin:0 0 .75em 0} p:last-child {margin:0}
  61. a {
  62. color: #666666;
  63. text-decoration:none;
  64. {block:IfAnimation}-webkit-transition:all .2s ease;-moz-transition:all .2s ease;transition:all .2s ease;-o-transition:all .2s ease;{/block:IfAnimation}}
  65. a:hover {color: #ffffff; }
  66. blockquote {quotes: "" "" "'" "'"; margin: 0.75em 0 .75em .75em;padding-left: 1.5em;
  67. line-height: 100%;border-left: solid 4px #EDEDED;
  68. }
  69. @font-face {
  70. font-family: 'BebasNeueRegular';
  71. src: url('http://www.fontsquirrel.com/utils/load_demo_font.php?font=960/BebasNeue-webfont.eot');
  72. src: url('http://www.fontsquirrel.com/utils/load_demo_font.php?font=960/BebasNeue-webfont.eot?#iefix') format('embedded-opentype'),
  73. url('http://www.fontsquirrel.com/utils/load_demo_font.php?font=960/BebasNeue-webfont.woff') format('woff'),
  74. url('http://www.fontsquirrel.com/utils/load_demo_font.php?font=960/BebasNeue-webfont.ttf') format('truetype'),
  75. url('http://www.fontsquirrel.com/utils/load_demo_font.php?font=960/BebasNeue-webfont.svg#BebasNeueRegular') format('svg');
  76. font-weight: normal;
  77. font-style: normal;
  78.  
  79. }
  80.  
  81. h1 {
  82. color:#c8fc28;
  83. font-family: 'BebasNeueRegular';
  84. font-size: 44px;
  85. line-height: 1.5em;font-weight: normal;
  86. }
  87. ul {
  88. margin: 0px 1.5em .75em;}
  89. li {
  90. margin: .75em 0;
  91. list-style-type: square;
  92. }
  93. .box img {
  94. display: block;
  95. max-width: 100%;}.m-i {
  96. display: block;
  97. line-height: 1px!important;
  98. }
  99. .menu-picture {
  100. line-height: 100%;
  101. display: inline-block;
  102. line-height: 0px!important;
  103. }
  104. .post-link{
  105. font-family: Century Gothic;
  106. font-size: 8px;
  107. line-height: 8px;
  108. }p.source{text-align: center;}
  109. .menu-picture {
  110. line-height: 100%;display: inline-block;
  111. }p.source{text-align: center;}
  112. h3 {
  113. font-size: 18px; font-weight: normal;
  114. }.tagged { text-align: center; line-height: 8px;font-size: 8px;}
  115. .text { padding: 5px;}p.question {
  116. margin-bottom: .375em;
  117. }
  118. p.words {
  119. padding: 6px;
  120. line-height: 1.5em;
  121. color: #333333;
  122. background: #ebebeb;
  123. }
  124. .response {
  125. background: #efefef;
  126. padding: 5px;
  127. margin-bottom: .75em;
  128. }.answer {
  129. text-align: center;
  130. }
  131. .post {
  132. position: relative;
  133. {block:IndexPage}
  134. width:265px;
  135. {/block:IndexPage}
  136. {block:PermalinkPage}
  137. width:265px;
  138. {/block:PermalinkPage}
  139. {block:indexpage}float: left;{/block:indexpage}
  140. {block:Permalinkpage}margin:5px auto!imporant;{block:Permalinkpage}
  141. background: #e3ff12;
  142. padding:3;
  143. margin:5px;
  144. }.box {position: relative;}
  145.  
  146. #side {
  147. position: relative;
  148. text-align: center;
  149. margin: 9px auto 3px;
  150. border-left: 5px #090a07 solid;
  151. width:500px;
  152. color:#fff;
  153. padding:20px;
  154. background: #090a07;
  155. }
  156.  
  157. #side img {
  158. max-width: 100%;
  159. }ul {margin-bottom: .75em;}
  160. #contain {
  161. width:562px;
  162. margin: 5px auto 0;
  163. }
  164. #content {
  165. margin-left:5px;
  166. width:562px;
  167. }
  168. a.top{
  169. font-family: 'BebasNeueRegular';
  170. color:#b7b7b7;
  171. background-color:#0e0c0c;
  172. font-size: 35px;
  173. padding:5px;
  174. letter-spacing:1px;
  175. padding-left: 22px;
  176. padding-right: 22px;
  177. padding-top:12px;
  178. line-height: 15px;
  179. text-align: center;
  180. font-weight: normal;
  181. text-decoration: none;
  182. text-transform: uppercase;
  183. -moz-transition: color,color 0.3s linear;
  184. -webkit-transition: color, color 0.3s linear;}
  185.  
  186. a.top:hover{
  187. color:#0e0c0c;
  188. background-color:#b7b7b7;
  189. -moz-transition: color,color,text-shadow 0.3s linear;
  190. -webkit-transition: color, color,text-shadow 0.3s linear;}
  191.  
  192.  
  193. #infscr-loading{position:absolute!important;width:16px!important;height:11px!important;margin-bottom:-16px!important;top:auto!important;bottom:0;left:50%!important}.post .perma{position: absolute;width: 100%;text-align: center;top: 0px;opacity: 0;filter:alpha(opacity=0);z-index: 10000;background: rgba(255, 255, 255, .75);font-size: 8px;height: 16px;line-height: 16px;text-transform: uppercase;{block:ifanimation}-webkit-transition: all 0.3s ease;-moz-transition: all 0.3s ease;transition: all 0.3s ease;-o-transition: all 0.3s ease;{/block:ifanimation}}.post:hover .perma{opacity: 1;filter:alpha(opacity=100);}.perma:hover{background: rgba(255, 255, 255, 100);}.perma a{color: #000000;}#fade{/*--Transparent background layer--*/display: none;/*--hidden by default--*/background: #000;position: fixed;left: 0;top: 0;width: 100%;height: 100%;opacity: .80;z-index: 9999;}.popup_block{display: none;/*--hidden by default--*/background: #fff;padding: 20px;border: 10px solid{color:Borders};float: left;font-size: 11px;position: fixed;top: 30%;left: 50%;z-index: 999999999;/*--CSS3 Box Shadows--*/-webkit-box-shadow: 0px 0px 20px #000;-moz-box-shadow: 0px 0px 20px #000;box-shadow: 0px 0px 20px #000;/*--CSS3 Rounded Corners--*/-webkit-border-radius: 10px;-moz-border-radius: 10px;border-radius: 10px;}.menu-link{margin: 0px 10px;} img.btn_close{float: right;margin: -20px -20px 0 0;}.box iframe {
  194. max-width: 100%;
  195. }.text img {max-width: 100%;}img {display: block;}.box img {display: block;}
  196. .post-info-data{text-align:center}.notes img{display:block;float:left;margin-right:.75em}ol.notes li{margin:.375em 0;list-style-type:none;line-height:16px}
  197.  
  198. #toTop{display:none;text-decoration:none;position:fixed;bottom:10px;right:10px;overflow:hidden;width:21px;height:21px;border:0;text-indent:100%;background:url(http://static.tumblr.com/uiqhh9x/372m6hyqw/up.png) no-repeat left top;opacity:.5;filter:alpha(opacity = 50);{block:IfAnimation}-webkit-transition:all .2s ease;-moz-transition:all .2s ease;transition:all .2s ease;-o-transition:all .2s ease;{/block:IfAnimation}}#toTopHover{width:21px;height:21px;display:block;overflow:hidden;float:left;opacity:0;-moz-opacity:0;filter:alpha(opacity=0);{block:IfAnimation}-webkit-transition:all .2s ease;-moz-transition:all .2s ease;transition:all .2s ease;-o-transition:all .2s ease;{/block:IfAnimation}}#toTop:hover{opacity:1;filter:alpha(opacity = 100)}#toTop:active,#toTop:focus{outline:0}
  199.  
  200. a.btn{position:absolute;z-index:999999;top:26px;right:3px;white-space:nowrap;outline:0;text-decoration:none;cursor:pointer;overflow:hidden;text-overflow:ellipsis;font:600 12px/18px "Helvetica Neue","HelveticaNeue",Helvetica,Arial,sans-serif;height:20px;padding:0 5px;-webkit-font-smoothing:antialiased;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;-webkit-transition-property:padding;-moz-transition-property:padding;-ms-transition-property:padding;-o-transition-property:padding;transition-property:padding;-webkit-transition-duration:.1s;-moz-transition-duration:.1s;-ms-transition-duration:.1s;-o-transition-duration:.1s;transition-duration:.1s;-webkit-transition-timing-function:ease;-moz-transition-timing-function:ease;-ms-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease}.btn{color:#fff;border:1px solid rgba(0,0,0,0.18);background:rgba(0,0,0,0.38);text-shadow:1px 1px 0 rgba(0,0,0,0.08)}a.btn,a.btn:hover{color:white!important}.btn{margin-bottom:5px;color:#fff;border:1px solid rgba(0,0,0,0.18);background:rgba(0,0,0,0.38);text-shadow:1px 1px 0 rgba(0,0,0,0.08);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.btn:hover::after,.btn:focus::after{background:rgba(255,255,255,0.09);color:white}.btn:active::after{background:rgba(255,255,255,0.18) color:white}.btn_label.show{display:block}.btn::after{position:absolute;top:0;right:0;bottom:0;left:0;content:'';-webkit-border-radius:inherit;-moz-border-radius:inherit;border-radius:inherit}.btn.icon::before{display:block;content:'';position:absolute;top:0;left:0;bottom:0;width:20px;border-radius:inherit;background:url('http://static.tumblr.com/tpqedpr/cQ1mbwb60/de.png') 0 0 no-repeat}.btn.theme::before{background-position:0 -0px}.btn img{width:15px}.btn.icon{padding-left:20px}.btn:active::after {background:rgba(255,255,255,0.18)}.clear {clear: both;} #pagination {display: none;} .clearfix:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.clearfix{display:inline-block}html[xmlns] .clearfix{display:block}* html .clearfix{height:1%}
  201. </style></head>
  202. <body>
  203.  
  204. <div id="contain" class="clearfix">
  205. <div id="side">
  206.  
  207. <div class="text">
  208. {block:IfShowTitle}<h1>{Title}</h1>{/block:IfShowTitle}<a href="/"><a href="/" class="m-i"><img class="menu-picture" src="{image:sidebar}"/></a><div id="description" >{Description}</div><p><BR><BR><a href="/" rel="links" class="top"><span>home</span></a><a href="/ask" rel="links" class="top"><span>ask</span></a><a href="/archive" rel="links" class="top"><span>history</span></a><a href="http://tumblrthemes.me/" rel="links" class="top"><span>themes</span></a></p>{block:IfNotInfiniteScroll}{block:Pagination}<div class="previous-next text">{block:PreviousPage}<a href="{PreviousPage}" class="next"><</a>{/block:PreviousPage}<span id="pages"> {CurrentPage} of {TotalPages} </span>{block:NextPage}<a href="{NextPage}" class="previous">></a>{/block:NextPage}</div>{/block:Pagination}{/block:IfNotInfiniteScroll}
  209. </div>
  210. </div>
  211. <div id="content">
  212. {block:Posts}
  213. <div class="post">
  214.  
  215. {block:Text}
  216. <div class="text">
  217. {block:Title}<h3>{Title}</h3>{/block:Title}
  218. {Body}
  219. <!-- permalink --> {block:IndexPage}
  220.  
  221. <!-- /permalink --> {/block:IndexPage}
  222. </div>
  223. {/block:Text}
  224.  
  225. {block:Quote}
  226. <div class="text quote">
  227. <p class="words">&#8220;{Quote}&#8221;</p>
  228. {block:Source}<p class="source">{Source}</p>{/block:Source}
  229. <!-- permalink --> {block:IndexPage}
  230.  
  231. <!-- /permalink --> {/block:IndexPage}
  232. </div>
  233. {/block:Quote}
  234.  
  235. {block:Link}
  236. <div class="text link">
  237. <h3><a href="{URL}" {Target}>{Name}</a></h3>
  238. {block:Description}{Description}{/block:Description}
  239. <!-- permalink --> {block:IndexPage}
  240.  
  241. <!-- /permalink --> {/block:IndexPage}
  242. </div>
  243. {/block:Link}
  244.  
  245. {block:Chat}
  246. <div class="text chat">
  247. <ul class="conversation">
  248. {block:Lines}
  249. <li class="line {Alt}">
  250. {block:Label}<span class="person">{Label}</span>{/block:Label}
  251. <span class="person-said">{Line}</span>
  252. </li>
  253. {/block:Lines}
  254. </ul>
  255. <!-- permalink --> {block:IndexPage}
  256.  
  257. <!-- /permalink --> {/block:IndexPage}
  258. </div>
  259. {/block:Chat}
  260.  
  261. {block:Audio}
  262. <div class="text audio">
  263. <p>{AudioPlayerBlack}</p>
  264. {block:IndexPage}{block:IfShowCaptions}
  265. {block:Caption}{Caption}{/block:Caption}
  266. {/block:IfShowCaptions}{/block:IndexPage}
  267. <!-- permalink --> {block:IndexPage}
  268.  
  269. <!-- /permalink --> {/block:IndexPage}
  270. </div>
  271. {/block:Audio}
  272.  
  273. {block:Answer}
  274. <div class="text answer">
  275. <div class="response">
  276. <p class="question">{Question}</p>
  277. <p>@{Asker}</p></div>
  278. {Answer}
  279. <!-- permalink --> {block:IndexPage}
  280.  
  281. <!-- /permalink --> {/block:IndexPage}
  282. </div>
  283. {/block:Answer}
  284.  
  285. {block:Photoset}
  286. <div class="photoset">
  287. <div class="box">
  288. <!-- permalink --> {block:IndexPage}
  289. <div class="perma"><a href="{Permalink}">Posted on {DayOfWeek}, {Month} {DayOfMonth}{DayOfMonthSuffix} with {NoteCountWithLabel}</a></div>
  290. <!-- /permalink --> {/block:IndexPage}
  291. {block:IndexPage}<center>{Photoset-250}</center>{/block:IndexPage}
  292. {block:PermalinkPage}{Photoset-500}{/block:PermalinkPage}
  293. </div>
  294. {block:IndexPage}{block:IfShowCaptions}
  295. {block:Caption}<div class="caption">{Caption}</div>{/block:Caption}
  296. {/block:IfShowCaptions}{/block:IndexPage}
  297. </div>
  298. {/block:Photoset}
  299.  
  300. {block:Video}
  301. <div class="video">
  302. <div class="box">
  303. <!-- permalink --> {block:IndexPage}
  304. <div class="perma"><a href="{Permalink}">Posted on {DayOfWeek}, {Month} {DayOfMonth}{DayOfMonthSuffix} with {NoteCountWithLabel}</a></div>
  305. <!-- /permalink --> {/block:IndexPage}
  306. {block:IndexPage}<center>{Video-250}</center>{/block:IndexPage}
  307. {block:PermalinkPage}{Video-500}{/block:PermalinkPage}
  308. </div>
  309. {block:IndexPage}{block:IfShowCaptions}
  310. {block:Caption}<div class="caption text">{Caption}</div>{/block:Caption}
  311. {/block:IfShowCaptions}{/block:IndexPage}
  312. </div>
  313. {/block:Video}
  314.  
  315. {block:Photo}
  316. <div class="photo">
  317. <div class="box">
  318. <!-- permalink --> {block:IndexPage}
  319. <div class="perma"><a href="{Permalink}">Posted on {DayOfWeek}, {Month} {DayOfMonth}{DayOfMonthSuffix} with {NoteCountWithLabel}</a></div>
  320. <!-- /permalink --> {/block:IndexPage}
  321. {block:IndexPage}
  322. <a href="{Permalink}"><img src="{PhotoURL-500}" alt="{PhotoAlt}" width="100%"/></a>
  323. {/block:IndexPage}
  324. {block:PermalinkPage}
  325. {LinkOpenTag}<img src="{PhotoURL-HighRes}" alt="{PhotoAlt}" width="500"/>{LinkCloseTag}
  326. {/block:PermalinkPage}
  327. </div>
  328. {block:IndexPage}{block:IfShowCaptions}
  329. {block:Caption}<div class="caption text">{Caption}</div>{/block:Caption}
  330. {/block:IfShowCaptions}{/block:IndexPage}
  331. </div>
  332. {/block:Photo}
  333.  
  334. {block:IfShowTags}{block:IndexPage}{block:HasTags}
  335. <div class="tagged"><p>{lang:Tagged}: {block:Tags}<a href="{TagURL}">#{Tag}</a> {/block:Tags}</p></div>
  336. {/block:HasTags}{/block:IndexPage}{/block:IfShowTags}
  337.  
  338. {block:PermalinkPage}
  339. <div id="post-info" class="text">
  340. {block:Caption}<div class="caption">{Caption}</div>{/block:Caption}
  341. {block:HasTags}
  342. <p class="tagged">{lang:Tagged}: {block:Tags}<a href="{TagURL}">#{Tag}</a> {/block:Tags}</p>
  343. {/block:HasTags}
  344. <p class="post-info-data">
  345. {block:Date}{12Hour}:{Minutes}:{Seconds} @ {MonthNumber}/{DayOfMonth}/{Year}<br/>{/block:Date}
  346. {block:NoteCount}{NoteCountWithLabel}<br />{/block:NoteCount}{block:RebloggedFrom}
  347. Reblogged from <a href="{ReblogParentURL}">{ReblogParentName}</a><br/>Posted by <a href="{ReblogRootURL}">{ReblogRootName}</a>{block:RebloggedFrom}</p>
  348. {block:PostNotes}
  349. {PostNotes}
  350. {/block:PostNotes}
  351. </div>
  352. {/block:PermalinkPage}
  353.  
  354. </div> <!-- end single post -->
  355. {block:ContentSource}
  356. <!-- {SourceURL}{block:SourceLogo}<img src="{BlackLogoURL}" width="{LogoWidth}" height="{LogoHeight}" alt="{SourceTitle}" /> {/block:SourceLogo} {block:NoSourceLogo}{SourceLink}{/block:NoSourceLogo} -->
  357. {/block:ContentSource}
  358. <!--{block:NoRebloggedFrom}{block:RebloggedFrom}{ReblogParentName}{/block:RebloggedFrom}{/block:NoRebloggedFrom} -->
  359. {/block:Posts}
  360. </div> <!-- end content -->
  361. <div class="loading"></div>
  362. </div> <!-- end containing div -->
  363. {block:IfInfiniteScroll}
  364. {block:Pagination}<ul id="pagination">
  365. {block:PreviousPage}
  366. <li><a href="{PreviousPage}"></a></li>
  367. {/block:PreviousPage}
  368. {block:JumpPagination length="5"}
  369. {block:CurrentPage}
  370. <li><span class="current_page numbersNav"><strong>{PageNumber}</strong></span></li>
  371. {/block:CurrentPage}
  372. {block:JumpPage}
  373. <li><a class="jump_page numbersNav" href="{URL}">{PageNumber}</a></li>
  374. {/block:JumpPage}
  375. {/block:JumpPagination}
  376. {block:NextPage}
  377. <li><a id="nextPage" href="{NextPage}"></a></li>
  378. {/block:NextPage}
  379. </ul>{/block:Pagination}
  380. {/block:IfInfiniteScroll}
  381. {block:IndexPage}
  382. <script type="text/javascript">
  383. $(window).load(function () {
  384. $('#content').masonry(),
  385. $('.masonryWrap').infinitescroll({
  386. navSelector : '#pagination',
  387. nextSelector : '#pagination a#nextPage',
  388. itemSelector : ".post, .loading",
  389. bufferPx : 40,
  390. loadingImg : "http://static.tumblr.com/uiqhh9x/38Em68qk4/loading.gif",
  391. loadingText : "<em></em>",
  392. },
  393. function() { $('#content').masonry({ appendedContent: $(this) }); }
  394. );
  395. });
  396. </script>
  397. {/block:IndexPage}
  398. {block:IfToTopButton}
  399. <script type="text/javascript">
  400. $(document).ready(function() {
  401. /*
  402. var defaults = {
  403. containerID: 'toTop', // fading element id
  404. containerHoverID: 'toTopHover', // fading element hover id
  405. scrollSpeed: 1200,
  406. easingType: 'linear'
  407. };
  408. */
  409.  
  410. $().UItoTop({ easingType: 'easeOutQuart' });
  411.  
  412. });
  413. </script>
  414. <a href="#" id="toTop" style="display: none; "><span id="toTopHover"></span>To Top</a>
  415. {/block:IfToTopButton}
  416. <div id="links" class="popup_block" style="line-height:100%;text-align:center;"><div style="font-size:16px;line-height:100%;margin-bottom: 0.75em;"><strong>LINKS</strong></div><div style="max-height:500px;line-height:150%;"><a class="menu-link" href="/">{text:home label}</a><a class="menu-link" href="/ask">{text:ask label}</a>{block:HasPages}<a class="menu-link" href="{URL}">{Label}</a>{/block:Pages}{/block:HasPages}{block:iflink1}<a class="menu-link" href="{text:link 1 url}">{text:link 1}</a>{/block:iflink1}{block:iflink2}<a class="menu-link" href="{text:link 2 url}">{text:link 2}</a>{/block:iflink2}{block:iflink3}<a class="menu-link" href="{text:link 3 url}">{text:link 3}</a>{/block:iflink3}{block:iflink4}<a class="menu-link" href="{text:link 4 url}">{text:link 4}</a>{/block:iflink4}{block:iflink5}<a class="menu-link" href="{text:link 5 url}">{text:link 5}</a>{/block:iflink5}{block:iflink6}<a class="menu-link" href="{text:link 6 url}">{text:link 6}</a>{/block:iflink6}{block:iflink7}<a class="menu-link" href="{text:link 7 url}">{text:link 7}</a>{/block:iflink7}{block:iflink8}<a class="menu-link" href="{text:link 8 url}">{text:link 8}</a>{/block:iflink8}{Block:IfShowArchiveLink}<a class="menu-link" class="menu-link" href="/archive">{text:Archive Label}</a>{/Block:IfShowArchiveLink}{block:SubmissionsEnabled}{block:IfShowSubmitLink}<a class="menu-link" class="menu-link" href="/submit">{text:Submit label}</a>{/block:IfShowSubmitLink}{/block:SubmissionsEnabled}</div></div>
  417.  
  418. <script type="text/javascript">
  419. $(document).ready(function() {
  420. //
  421. $('a.poplight[href^=#]').click(function() {
  422. var popID = $(this).attr('rel'); //Get Popup Name
  423. var popURL = $(this).attr('href'); //Get Popup href to define size
  424. var query= popURL.split('?');
  425. var dim= query[1].split('&');
  426. var popWidth = dim[0].split('=')[1]; //Gets the first query string value
  427. $('#' + popID).fadeIn().css({ 'width': Number( popWidth ) }).prepend('<a href="#" class="close"><img src="http://static.tumblr.com/iddq6cw/Atplvofrt/tooltip-closebutton.png" class="btn_close" title="Close" alt="Close" /></a>');
  428. var popMargTop = ($('#' + popID).height() + 80) / 2;
  429. var popMargLeft = ($('#' + popID).width() + 80) / 2;
  430. //Apply Margin to Popup
  431. $('#' + popID).css({
  432. 'margin-top' : -popMargTop,
  433. 'margin-left' : -popMargLeft
  434. });
  435. $('body').append('<div id="fade"></div>');
  436. $('#fade').css({'filter' : 'alpha(opacity=80)'}).fadeIn(); //Fade in the fade layer - .css({'filter' : 'alpha(opacity=80)'})
  437. return false;
  438. });
  439. $('a.close, #fade').live('click', function() {
  440. $('#fade , .popup_block').fadeOut(function() {
  441. $('#fade, a.close').remove(); //fade them both out
  442. });
  443. return false;
  444. });
  445. });
  446. </script>
  447. </body></html>
Add Comment
Please, Sign In to add comment