Advertisement
str-wrs

Hera

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