Advertisement
str-wrs

Peitha

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