Advertisement
str-wrs

Cybele

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