Advertisement
str-wrs

Pallas

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