Advertisement
str-wrs

Nereus

Oct 29th, 2015
3,315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.45 KB | None | 0 0
  1. <!--
  2.  
  3. THEME: NEREUS
  4. by acuite
  5.  
  6. - a simple header theme :)
  7. - don't steal this pls
  8. - enjoy, ilu (ノ◕ヮ◕)ノ*:・゚✧
  9.  
  10. - @acuite for more themes
  11.  
  12. -->
  13.  
  14. <html>
  15. <head>
  16.  
  17. <title>{Title}</title>
  18. <link rel="shortcut icon" href="{Favicon}">
  19. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  20. {block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description}
  21.  
  22. <meta name="image:Icon" content=""/>
  23.  
  24. <meta name="color:Text" content="#555"/>
  25. <meta name="color:Link" content="#999"/>
  26. <meta name="color:Hover" content="#97c5e0"/>
  27.  
  28. <meta name="if:Drop Links" content=""/>
  29. <meta name="if:Description" content=""/>
  30. <meta name="if:Paginate" content=""/>
  31. <meta name="if:Captions" content=""/>
  32.  
  33. <meta name="select:Tags" content="tshow" title="Show">
  34. <meta name="select:Tags" content="thide" title="Hide">
  35. <meta name="select:Tags" content="thover" title="Hover">
  36.  
  37. <meta name="text:Post" content="350"/>
  38. <meta name="text:Margin" content="75"/>
  39.  
  40. <meta name="text:Link 1" content="/"/>
  41. <meta name="text:Link 1 Title" content="one"/>
  42. <meta name="text:Link 2" content="/" />
  43. <meta name="text:Link 2 Title" content="two"/>
  44. <meta name="text:Link 3" content="/" />
  45. <meta name="text:Link 3 Title" content="three"/>
  46. <meta name="text:Link 4" content="/" />
  47. <meta name="text:Link 4 Title" content="four"/>
  48.  
  49. <link href="http://static.tumblr.com/qudkd6d/OcDnl99gb/style.css" rel="stylesheet" type="text/css"/>
  50. <link href='http://static.tumblr.com/8pnyeus/sXxofi7lt/outicons.css' rel='stylesheet' type='text/css'>
  51. <link href="https://fonts.googleapis.com/css?family=Overpass:300,300i,400,400i,600,600i,800,800i" rel="stylesheet">
  52.  
  53. <style type="text/css">
  54.  
  55. /* Scroll */
  56.  
  57. ::-webkit-scrollbar {width:11px;height:11px;background:#eee;}
  58. ::-webkit-scrollbar-thumb {background:rgba({RGBcolor:Link},0.5);}
  59. ::-webkit-scrollbar,::-webkit-scrollbar-thumb {
  60. border:5px solid #f8f8f8;
  61. }
  62.  
  63. /* Controls */
  64.  
  65. .tc .oi {font-size:15px;color:{color:Link};}
  66. .tc {position:fixed;top:15px;right:15px;cursor:pointer;}
  67. #tumblr_controls,.tmblr-iframe{-webkit-filter: invert(100%); -moz-filter: invert(100%); -o-filter: invert(100%); -ms-filter: invert(100%); filter: invert(100%);opacity:0;top:0!important;right:0!important;z-index:999999; padding:10px 30px 10px 10px;}
  68.  
  69. #tumblr_controls:hover,.tmblr-iframe:hover{opacity:0.5;}
  70.  
  71. /* General */
  72.  
  73. body {
  74. margin:0;
  75. color:{color:Text};
  76. background:#f8f8f8;
  77. font-smooth:always;
  78. -webkit-font-smoothing:antialiased;
  79. -moz-osx-font-smoothing: grayscale;
  80. }
  81.  
  82. a:link, a:active, a:visited {text-decoration:none;}
  83. body,p,pre,blockquote,big,small,sub,sup {font-size:11px;}
  84. body,p,pre,em{font-family:'Roboto',Helvetica,Arial,sans-serif;}
  85. a,.tags,.our_button,.like_button,#tumblr_controls,.tmblr-iframe,.tc {
  86. transition:0.5s ease;
  87. -o-transition:0.5s ease;
  88. -moz-transition:0.5s ease;
  89. -webkit-transition:0.5s ease;
  90. }
  91.  
  92. /* Credit & Scroll to Top */
  93.  
  94. .c,.top{position:fixed;right:30px;width:40px;}
  95. .c {bottom:30px;}
  96. .top {bottom:50px;display:none;}
  97.  
  98. /* Pagination */
  99.  
  100. .cp {font-weight:600;}
  101. .cp,.jp,.pag a{display:inline-block;vertical-align:middle;margin:0 10px;}
  102. .pag a i,.top{font-size:20px;}
  103. .pag {position:relative;}
  104. .load {cursor:pointer;display:block;}
  105. .c,.top,.pag,.load {text-align:center;}
  106. .c,.pag,.load {font-size:9px;letter-spacing:1px;text-transform:uppercase;}
  107. {block:ifnotPaginate}
  108. .pag,#infscr-loading {display:none!important;}
  109. {/block:ifnotPaginate}
  110.  
  111. /* Sizing Backups & Misc Aesthetics */
  112.  
  113. .header_content,.image,nav a,nav b,.p a,.p b{
  114. display:inline-block;
  115. vertical-align:middle;
  116. }
  117.  
  118. .entry_hold,.header_content,.image {
  119. background:#fff;
  120. border:1px solid #eee;
  121. }
  122.  
  123. /* Containers */
  124.  
  125. .center {
  126. position:relative;
  127. margin:{text:Margin}px auto;
  128. width:calc({text:Post}px + 2px);
  129. }
  130.  
  131. .entry img {max-width:100%;height:auto;}
  132. .entry{margin:{text:Margin}px 0px;}
  133.  
  134. /* Sidebar */
  135.  
  136. header {position:relative;font-size:0;text-align:center;}
  137.  
  138. .header_content {
  139. margin-left:10px;
  140. text-align:center;
  141. max-width:calc({text:Post}px - 68px - 20px);
  142. }
  143.  
  144. .image img{width:100%;}
  145. .image {width:50px;padding:3px;}
  146.  
  147. .desc{border-bottom:1px solid #eee;font-size:11px;padding:15px;}
  148. .lb {display:none;margin-top:5px;}
  149. nav {padding:8px;}
  150. nav a {font-size:10px;line-height:100%;}
  151. nav a:after {content:'/';opacity:0.5;margin:0 5px;}
  152. nav a:last-of-type:after {display:none;}
  153.  
  154. /* Titles */
  155.  
  156. a h2:hover {border-color:inherit;}
  157. h2 {
  158. margin:15px 15px 0;
  159. font-size:14px;
  160. line-height:100%;
  161. display:inline-block;
  162. font-weight:600;
  163. border-bottom:1px solid rgba({RGBcolor:Link},0.7);
  164. padding-bottom:2px;
  165. }
  166.  
  167. /* Permalinks */
  168.  
  169. .p {margin:10px 5px;font-size:0;text-transform:lowercase;}
  170. .p a {font-size:10px;line-height:100%;}
  171. .p a:after {content:'/';opacity:0.5;margin:0 5px;}
  172. .p a:last-of-type:after {display:none;}
  173. .entry:hover .thover{opacity:1;}
  174. .tshow,.thover{display:block;position:relative;}
  175. .thide {display:none;}
  176. .thover {opacity:0;}
  177. .tags {margin-top:5px;}
  178.  
  179. /* Quotes */
  180.  
  181. .src {
  182. margin-top:8px;
  183. display:inline-block;
  184. padding-bottom:2px;
  185. line-height:100%;
  186. border-bottom:1px solid #eee;
  187. }
  188.  
  189. .qut_hold {padding:25px;}
  190. .qut {font-size:15px;font-weight:300;line-height:130%;font-style:italic;}
  191.  
  192. /* Audio & Chat */
  193.  
  194. .chat {margin-top:-1px;}
  195. .lines,.chat h2 {margin:0;padding:15px;border-top:1px solid #eee;}
  196. .play {padding:10px;background:#e4e4e4;height:27px;width:27px;}
  197. .audio {font-size:0;padding:20px;}
  198. .play,.au {display:inline-block;vertical-align:middle;}
  199. .soundcloud_audio_player{padding:15px 0;}
  200. .au span.tn {font-size:13px;font-weight:800;}
  201. .au span {display:block;margin:5px 0;font-size:10px;line-height:100%;}
  202. .au {width:calc(100% - 62px);margin-left:15px;}
  203. .tumblr_audio_player {width:27px;height:27px;overflow:hidden;}
  204.  
  205. /* Text */
  206.  
  207. ol,ul {padding:0 0 0 20px;}
  208. li {margin:5px;}
  209. p,blockquote,pre,ul,ol{margin:5px 0;}
  210. blockquote p{margin:5px 0;}
  211. blockquote p:first-child{margin:0 0 5px;}
  212. blockquote p:last-child{margin:5px 0 0;}
  213. blockquote p:only-child{margin:0;}
  214. blockquote blockquote {margin:0;}
  215. blockquote{padding-left:10px;border-left:1px solid #eee;}
  216. pre {
  217. white-space:pre-wrap;
  218. white-space:-moz-pre-wrap;
  219. white-space:-pre-wrap;
  220. white-space:-o-pre-wrap;
  221. word-wrap:break-word;
  222. }
  223.  
  224. /* Captions */
  225.  
  226. .txt iframe,.cap iframe{display:block;max-width:100%;overflow:hidden;}
  227. .txt:not(.ans) .tumblr_parent:first-of-type {border:0;}
  228. .tumblr_parent blockquote {margin:5px 0;}
  229. .tumblr_parent {
  230. border:0;
  231. margin:0;
  232. padding:15px;
  233. border-top:1px solid #eee;
  234. }
  235.  
  236. a.tumblr_blog:hover {border-color:inherit;}
  237. a.tumblr_blog {border-bottom:1px solid rgba({RGBcolor:Link},0.25);}
  238. a.tumblr_blog:after {content:':';}
  239.  
  240. /* Video */
  241.  
  242. .video {overflow:hidden;}
  243. .vine-embed,#youtube_iframe {display:block;}
  244. .instagram-media {border-radius:0!important;box-shadow:none!important;}
  245.  
  246. /* Photosets */
  247.  
  248. #tumblr_lightbox,.tmblr-lightbox {
  249. background:rgba({RGBcolor:Background},0.99)!important;
  250. }
  251.  
  252. #vignette,#tumblr_lightbox_caption,.vignette,.lightbox-caption{
  253. opacity:0!important;
  254. }
  255.  
  256. #tumblr_lightbox_center_image, #tumblr_lightbox_left_image,
  257. #tumblr_lightbox_right_image, .lightbox-image {
  258. box-shadow:none!important;
  259. border-radius:0px!important;
  260. {block:ifRoundEdges}border-radius:4px!important;{/block:ifRoundEdges}
  261. }
  262.  
  263. /* Ask */
  264.  
  265. .ask {padding:20px;}
  266. .aski {margin:0 0 10px;line-height:20px;font-size:11px;font-weight:700;}
  267. .aski img {float:left;width:20px;margin-right:7px;border-radius:3px;}
  268.  
  269. /* Permalink Page + Postnotes */
  270.  
  271. .pph {text-transform:lowercase;}
  272. .perma {padding:15px;line-height:175%;}
  273. .pmt a:after {content:',';}
  274. .pmt a:last-of-type:after {content:'.';}
  275. .pn ol {margin:0;padding:0;list-style-type:none;}
  276. .pn li{margin:10px;font-size:8.5px;line-height:100%;}
  277. .pn,.pn img{display:none;}
  278. .pn {padding:10px;font-size:0;}
  279. .pnh,.more_notes_link,.notes_loading {display:block;font-weight:600;}
  280. .more_notes_link,.notes_loading {text-align:left!important;}
  281.  
  282. /* Tooltips */
  283.  
  284. #s-m-t-tooltip{
  285. max-width:200px;
  286. margin:15px;
  287. z-index:99999999;
  288. padding:6px;
  289. line-height:100%;
  290. word-wrap:break-word;
  291. word-break:break-all;
  292. background:#fff;
  293. }
  294.  
  295. /* Common Styles */
  296.  
  297. .ask,p,blockquote,.lines,.qut,.desc{line-height:150%;}
  298. a:hover, a h2:hover{color:{color:Hover};}
  299. a,.p,.perma,.src,.lines b,.tn,h2,.ask{color:{color:Link};}
  300.  
  301. /* Etc */
  302.  
  303. .notes img {width:0px;}
  304. img {margin:0px;display:block;}
  305.  
  306. </style>
  307. </head>
  308. <body>
  309.  
  310. <div class="tc"><i class="oi oi-menu"></i></div>
  311.  
  312. <div class="center">
  313.  
  314. <header>
  315. {block:ifIconImage}<a href="/"><div class="image"><img src="{image:Icon}"/></div></a>{/block:ifIconImage}
  316.  
  317. <div class="header_content">
  318. {block:ifDescription}
  319. {block:Description}<div class="desc">{Description}</div>{/block:Description}
  320. {/block:ifDescription}
  321.  
  322. <nav>
  323. <a href="/">index</a>
  324. <a href="/ask">message</a>
  325. {block:ifDropLinks}
  326. <a href="#" class="lh">navigate</a>
  327. <div class="lb">
  328. {/block:ifDropLinks}
  329. {block:ifLink1}
  330. {block:ifnotDropLinks}{/block:ifnotDropLinks}
  331. <a href="{text:Link 1}">{text:Link 1 Title}</a>
  332. {/block:ifLink1}{block:ifLink2}
  333. <a href="{text:Link 2}">{text:Link 2 Title}</a>
  334. {/block:ifLink2}{block:ifLink3}
  335. <a href="{text:Link 3}">{text:Link 3 Title}</a>
  336. {/block:ifLink3}{block:ifLink4}
  337. <a href="{text:Link 4}">{text:Link 4 Title}</a>
  338. {/block:ifLink4}
  339. {block:ifDropLinks}</div>{/block:ifDropLinks}
  340. </nav>
  341. </div>
  342. </header>
  343.  
  344. <div id="content">
  345. {block:Posts}
  346. <div class="entry">
  347. <div class="entry_hold">
  348.  
  349. {block:Text}
  350. {block:Title}<h2>{Title}</h2>{/block:Title}
  351. <div class="txt cap">{Body}</div>
  352. {/block:Text}
  353.  
  354. {block:Link}
  355. <a title="{URL}" href="{URL}"><h2>{Name}</h2></a>
  356. {block:Description}<div class="txt cap">{Description}</div>{/block:Description}
  357. {/block:Link}
  358.  
  359. {block:Photo}
  360. <a href="{Permalink}"><img src="{PhotoURL-HighRes}" alt="{PhotoAlt}"/></a>
  361. {/block:Photo}
  362.  
  363. {block:Photoset}
  364. <div class="photo-slideshow" id="photoset_{PostID}" data-layout="{PhotosetLayout}">{block:Photos}<div class="photo-data"><div class="pxu-photo"><img src="{PhotoURL-500}" width="{PhotoWidth-500}" height="{PhotoHeight-500}" data-highres="{PhotoURL-HighRes}" data-width="{PhotoWidth-HighRes}" data-height="{PhotoHeight-HighRes}"></div><a class="tumblr-box" rel="post-{PostID}" href="{PhotoURL-HighRes}"></a></div>{/block:Photos}</div>
  365. {/block:Photoset}
  366.  
  367. {block:Quote}
  368. <div class="qut_hold">
  369. <div class="qut">{Quote}</div>
  370. {block:Source}<div class="src">{Source}</div>{/block:Source}
  371. </div>
  372. {/block:Quote}
  373.  
  374. {block:Chat}
  375. <div class="chat">
  376. {block:Title}<h2>{Title}</h2>{/block:Title}
  377. {block:Lines}<div class="lines {Alt}"><div class="{Alt} user_{UserNumber}">{block:Label}<b>{Label}</b><br>{/block:Label}{Line}</div></div>{/block:Lines}
  378. </div>
  379. {/block:Chat}
  380.  
  381. {block:Audio}
  382. <div class="audio">
  383. {block:AudioPlayer}<div class="play">{AudioPlayerGrey}</div>{/block:AudioPlayer}
  384. <div class="au">
  385. {block:TrackName}<span class="tn">{TrackName}</span>{/block:TrackName}
  386. {block:Artist}<span>by {Artist}</span>{/block:Artist}
  387. </div>
  388. </div>
  389. {/block:Audio}
  390.  
  391. {block:Video}
  392. <div class="video">{Video-500}</div>
  393. {/block:Video}
  394.  
  395. {block:Answer}
  396. <div class="ask">
  397. <div class="aski"><img src="{AskerPortraitURL-24}">{Asker} said:</div>
  398. <div class="que">{Question}</div>
  399. </div>
  400. <div class="txt ans cap">{Answer}</div>
  401. {/block:Answer}
  402.  
  403. {block:ifCaptions}{block:Caption}<div class="cap">{Caption}</div>{/block:Caption}{/block:ifCaptions}
  404.  
  405. </div>
  406.  
  407. {block:IndexPage}<div class="p">
  408. <a href="{Permalink}">{NoteCount}</a>
  409. <a href="{Permalink}">{ShortMonth} {DayofMonth}</a>
  410. <a href="{ReblogURL}">reblog</a>
  411. {block:HasTags}<div class="tags {select:Tags}">{block:Tags}<a href="{TagURL}">{Tag}</a>{/block:Tags}</div>{/block:HasTags}
  412.  
  413. </div>{/block:IndexPage}
  414.  
  415. {block:PermalinkPage}
  416. {block:Date}
  417. <div class="pph">
  418. <div class="perma">
  419. posted {TimeAgo} on {DayofMonthWithSuffix} {Month}
  420. {block:RebloggedFrom}<br>
  421. via <a href="{ReblogParentURL}">{ReblogParentName}</a> &nbsp;&nbsp;&nbsp;
  422. source <a href="{ReblogRootURL}">{ReblogRootName}</a>
  423. {/block:RebloggedFrom}
  424.  
  425. {block:HasTags}<div class="pmt">tags: &nbsp;
  426. {block:Tags}<a href="{TagURL}">{Tag}</a> {/block:Tags}
  427. </div>{/block:HasTags}
  428. </div>
  429.  
  430. <a href="#" class="pnh">View {NoteCountWithLabel}</a>
  431.  
  432. {block:PostNotes}
  433. <div class="pn">{PostNotes}</div>
  434. {/block:PostNotes}
  435.  
  436. </div>
  437. {/block:Date}
  438. {/block:PermalinkPage}
  439.  
  440. {block:ContentSource}
  441. <!-- {SourceURL}{block:SourceLogo}<img src="{BlackLogoURL}"
  442. width="{LogoWidth}" height="{LogoHeight}" alt="{SourceTitle}" />
  443. {/block:SourceLogo}
  444. {block:NoSourceLogo}{SourceLink}{/block:NoSourceLogo} -->
  445. {/block:ContentSource}
  446.  
  447. <!--{block:NoRebloggedFrom}{block:RebloggedFrom}{ReblogParentName}{/block:RebloggedFrom}{/block:NoRebloggedFrom} -->
  448.  
  449. </div>
  450. {/block:Posts}
  451.  
  452. {block:ifPaginate}
  453. {block:Pagination}
  454. <div class="pag">
  455. {block:PreviousPage}
  456. <a href="{PreviousPage}"><i class="oi oi-chevron-left"></i></a>
  457. {/block:PreviousPage}
  458.  
  459. {block:JumpPagination length="3"}
  460. {block:CurrentPage}
  461. <span class="cp">{PageNumber}</span>
  462. {/block:CurrentPage}
  463. {block:JumpPage}
  464. <a class="jp" href="{URL}">{PageNumber}</a>
  465. {/block:JumpPage}
  466. {/block:JumpPagination}
  467.  
  468. {block:NextPage}
  469. <a href="{NextPage}"><i class="oi oi-chevron-right"></i></a>
  470. {/block:NextPage}
  471. </div>
  472. {/block:Pagination}
  473. {/block:ifPaginate}
  474.  
  475. </div>
  476.  
  477. {block:ifnotPaginate}
  478. {block:Pagination}
  479. <div class="pag">
  480. {block:PreviousPage}
  481. <a href="{PreviousPage}" class="prev">back</a>
  482. {/block:PreviousPage}
  483. {block:NextPage}
  484. <a href="{NextPage}" class="next">next</a>
  485. {/block:NextPage}
  486. </div>
  487.  
  488. {block:ifLoadMore}
  489. <a class="load">Load More</a>
  490. {/block:ifLoadMore}
  491. {/block:Pagination}
  492. {/block:ifnotPaginate}
  493.  
  494. </div>
  495.  
  496. <a href="#" class="top"><i class="oi oi-chevron-up"></i></a>
  497. <div class="c"><a href="http://acuite.tumblr.com">acuite</a></div>
  498.  
  499. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
  500. <script src="http://static.tumblr.com/qudkd6d/Az6nkemqr/pxuphotoset.min.js"></script>
  501. <script src ="//static.tumblr.com/fwgzvyf/l6jnyutne/shythemes.vr.js"></script>
  502. <script src="http://static.tumblr.com/rzl30kg/eAxm7a751/jquery.style-my-tooltips.js"></script>
  503. <script src="http://static.tumblr.com/wgg6svp/I8Yobwo15/unnest.min.js"></script>
  504. <script src="http://static.tumblr.com/wgijwsy/u2vm2hxv6/jquery.infinitescroll.min.js"></script>
  505. <script>
  506. // pxu photosets
  507. $(document).ready(function(){
  508. $('.photo-slideshow').pxuPhotoset({
  509. lightbox: true,
  510. rounded: false,
  511. gutter: '1px',
  512. photoset: '.photo-slideshow',
  513. photoWrap: '.photo-data',
  514. photo: '.pxu-photo'
  515. });
  516.  
  517.  
  518. // minimal soundcloud player © eoxk.tumblr
  519. $(document).ready(function(){
  520. var color = '{color:Link}'; // color of play button (hex)
  521. $('.soundcloud_audio_player').each(function(){
  522. $(this).attr({ src: $(this).attr('src').split('&')[0] + '&amp;liking=false&amp;sharing=false&amp;auto_play=false&amp;show_comments=false&amp;continuous_play=false&amp;buying=false&amp;show_playcount=false&amp;show_artwork=true&amp;origin=tumblr&amp;color=' + color.split('#')[1], height: 20, width: '100%' });
  523. });
  524. });
  525.  
  526.  
  527. // drop links & post notes
  528. $(document).ready(function(){
  529. $(".pn").hide();
  530. $(".pnh").show();$('.pnh').toggle(function(){
  531. $(".pn").slideDown(function(){});
  532. },function(){
  533. $(".pn").slideUp(function(){});
  534. });
  535. $(".lb").hide();
  536. $(".lh").show();$('.lh').toggle(function(){
  537. $(".lb").slideDown(function(){});
  538. },function(){
  539. $(".lb").slideUp(function(){});
  540. });
  541. });
  542.  
  543.  
  544. // scroll to top © html-tuts.com
  545. var amountScrolled = 500;
  546. $(window).scroll(function() {
  547. if ($(window).scrollTop() > amountScrolled) {
  548. $('a.top').fadeIn('slow');
  549. } else {
  550. $('a.top').fadeOut('slow');
  551. }
  552. });
  553. $('a.top').click(function() {
  554. $('body, html').animate({
  555. scrollTop: 0
  556. }, 'slow');
  557. return false;
  558. });
  559.  
  560.  
  561. // tooltips
  562. (function($){
  563. $(document).ready(function(){
  564. $("[title]").style_my_tooltips({
  565. tip_delay_time:200,
  566. tip_fade_speed:300
  567. }
  568. );
  569. });
  570. })(jQuery);
  571.  
  572.  
  573. /*
  574.  
  575. UN-NEST TUMBLR CAPTIONS PLUGIN
  576. 2016 @magnusthemes & @neothm
  577. source: http://neothm.com/post/148902138319
  578.  
  579. */
  580. $('.entry').unnest({
  581. yourCaption: ".cap",
  582. newCaptionUsername: false,
  583. originalPostCaptionUsername: false,
  584. tumblrAvatars: false,
  585. tumblrAvatarClass: ".user-pic",
  586. usernameColon: false
  587. });
  588.  
  589.  
  590. // infinite scroll
  591. {block:ifnotPaginate}
  592. var $container = $('#content');
  593. $container.infinitescroll({
  594. itemSelector: '.entry',
  595. navSelector: '.pag',
  596. nextSelector: '.next',
  597. loadingImg: ' ',
  598. loadingText: ' ',
  599. donetext: 'No more posts' ,
  600. bufferPx: 2000,
  601. {block:ifLoadMore}
  602. errorCallback: function(){
  603. jQuery('.load').delay(50).fadeOut();
  604. }
  605. {/block:ifLoadMore}
  606. },
  607. function( newElements ) {
  608. var $newElems = $( newElements );
  609. var $newElemsIDs = $newElems.map(function(){
  610. return this.id;
  611. }).get();
  612. console.log($newElems, $newElemsIDs);
  613. Tumblr.LikeButton.get_status_by_post_ids($newElemsIDs);
  614. $newElems.find('.photo-slideshow').pxuPhotoset({
  615. lightbox: true,
  616. rounded: false,
  617. gutter: '1px',
  618. photoset: '.photo-slideshow',
  619. photoWrap: '.photo-data',
  620. photo: '.pxu-photo'
  621. });
  622. resizeVideos();
  623. $newElems.unnest({
  624. yourCaption: ".cap",
  625. newCaptionUsername: true,
  626. originalPostCaptionUsername: true,
  627. tumblrAvatars: false,
  628. tumblrAvatarClass: ".user-pic",
  629. usernameColon: false
  630. });
  631. });
  632. {block:ifLoadMore}
  633. $(window).unbind(".infscr");
  634. $(".load").click(function(){
  635. $("#content").infinitescroll("retrieve");
  636. });
  637. {/block:ifLoadMore}
  638. {/block:ifnotPaginate}
  639. });
  640.  
  641. </script>
  642. </body>
  643. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement