Advertisement
str-wrs

Smother

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