Advertisement
str-wrs

Pricus

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