Advertisement
str-wrs

Caerus

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