drxgonfly

THEME 04 - Multi Column

Aug 7th, 2017
907
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.89 KB | None | 0 0
  1. <!---------------------------------------
  2. THEME 04 (MULTICOLUMN) BY DRXGONFLY
  3. LAST UPDATED: March 3rd 2018
  4. RESOURCES
  5.  
  6. UNNESTED CAPTIONS:
  7. https://neothm.com/post/148902138319/un-nest-tumblr-captions-a-plugin-by
  8.  
  9. RESIZING VIDEOS:
  10. https://shythemes.tumblr.com/post/134536748863/tutorial-resizing-videos
  11.  
  12. PXU PHOTOSETS:
  13. https://shythemes.tumblr.com/post/148791415248/tutorial-masonry-with-infinite-scroll-and-pxu
  14.  
  15. LIKE/REBLOG BUTTONS:
  16. https://shythemes.tumblr.com/post/154249052918/text-like-and-reblog-buttons
  17.  
  18. TOOLTIPS:
  19. https://tutorial-baby.tumblr.com/post/74581118284/basic-tooltip-tutorial
  20.  
  21. LINEAR ICONS:
  22. https://linearicons.com/free
  23.  
  24. AUDIO POSTS:
  25. https://lmthemeslp-tut.tumblr.com/audio
  26.  
  27. TUMBLR CONTROLS FIX:
  28. https://cyantists.tumblr.com/post/163728517915/fix-tumblrs-new-controls-i-have-come-up-with-3
  29. ----------------------------------------->
  30. <html>
  31. <head>
  32. <!---------------------------------------
  33. META TAGS
  34. ----------------------------------------->
  35. <meta name="color:background color" content="#fff"/>
  36. <meta name="color:navbar background" content="#fff"/>
  37. <meta name="color:navigation links" content="#3BADB8"/>
  38. <meta name="color:text" content="#000"/>
  39. <meta name="color:links" content="#B056A5"/>
  40. <meta name="color:post background color" content="#fff"/>
  41. <meta name="color:permalink icons" content="#3BADB8"/>
  42. <meta name="color:pagination color" content="fff"/>
  43. <meta name="color:credit symbol" content="#ff8faf"/>
  44.  
  45. <meta name="text:background image" content="https://images5.alphacoders.com/529/529817.jpg"/>
  46. <meta name="text:ask link" content="/ask"/>
  47. <meta name="text:link one url" content="link one url" />
  48. <meta name="text:link one" content="link one" />
  49. <meta name="text:link two url" content="link two url" />
  50. <meta name="text:link two" content="link two" />
  51. <meta name="text:link three url" content="link three url" />
  52. <meta name="text:link three" content="link three" />
  53. <meta name="text:link four url" content="link four url" />
  54. <meta name="text:link four" content="link four" />
  55. <meta name="text:link five url" content="link five url" />
  56. <meta name="text:link five" content="link five" />
  57.  
  58. <meta name="if:show link four" content="1"/>
  59. <meta name="if:show link five" content="1"/>
  60. <meta name="if:250px posts" content="0"/>
  61. <meta name="if:300px posts" content="1"/>
  62. <meta name="if:400px posts" content="0"/>
  63. <meta name="if:show captions" content="0"/>
  64. <meta name="if:post background color" content="0"/>
  65. {block:ifinfinitescroll}
  66. <meta name="if:infinite scroll" content="1">
  67. {/block:ifinfinitescroll}
  68.  
  69. <title>{Title}{block:PostSummary}, {PostSummary}{/block:PostSummary}</title>
  70. {block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description}
  71. <link rel="shortcut icon" href="{Favicon}"/>
  72. <!---------------------------------------
  73. SCRIPTS & STYLESHEETS
  74. ----------------------------------------->
  75. <link rel="stylesheet" href="https://cdn.linearicons.com/free/1.0.0/icon-font.min.css"> <!--LINEAR ICONS-->
  76. <link href="https://file.myfontastic.com/qDbcTszXoEeyJ6PzE2deHY/icons.css" rel="stylesheet"> <!--credit symbol-->
  77. <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet"> <!--Google Fonts-->
  78. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <!--JQuery--->
  79. <script src="//static.tumblr.com/fwgzvyf/Oj1o08f6h/shythemes.vr.js"></script> <!---video resize--->
  80. <link href="https://static.tumblr.com/qudkd6d/OcDnl99gb/style.css" rel="stylesheet" type="text/css"/> <!--PXU PHOTOSET CSS--->
  81. <script src="https://static.tumblr.com/qudkd6d/Az6nkemqr/pxuphotoset.min.js"></script> <!--PXU PHOTOSET JQUERY--->
  82. <script src="https://static.tumblr.com/wgg6svp/OoTofxa0c/unnest.min.js"></script> <!-- UNNESTED CAPTIONS-->
  83. <script src="https://static.tumblr.com/iuw14ew/VSQma1786/jquery.style-my-tooltips.js"></script> <!--TOOLTIPS-->
  84. {block:ifinfinitescroll}
  85. <script src="https://static.tumblr.com/anzluor/ycPn74dop/jquery.infinitescroll.min.js"></script>{/block:ifinfinitescroll} <!--- infinite scroll script -->
  86. <script src="https://static.tumblr.com/anzluor/Np0nv9fs0/masonry.pkgd.min.js"></script> <!--- masonry script -->
  87. <script src="https://cdnjs.cloudflare.com/ajax/libs/smoothscroll/1.4.1/SmoothScroll.min.js"></script> <!--- smooth scroll script -->
  88.  
  89. </head>
  90. <style>
  91.  
  92. /********************************
  93. MAIN / BODY
  94. ********************************/
  95. *{margin:0 auto;}
  96.  
  97. iframe.tmblr-iframe { /*tumblr controls*/
  98. z-index:99999999999999!important;
  99. top:60px!important;
  100. right:0%!important;
  101. opacity:0.4;
  102. transform:scale(0.6);
  103. transform-origin:100% 0;
  104. -webkit-transform:scale(0.6);
  105. -webkit-transform-origin:100% 0;
  106. -o-transform:scale(0.6);
  107. -o-transform-origin:100% 0;
  108. -moz-transform:scale(0.6);
  109. -moz-transform-origin:100% 0;
  110. -ms-transform:scale(0.6);
  111. -ms-transform-origin:100% 0;}
  112.  
  113. iframe.tmblr-iframe:hover {opacity:0.6!important;}
  114.  
  115. a{text-decoration:none;color:{color:links};}
  116. img{max-width:100%;}
  117. body{
  118. background-color:{color:background color};
  119. background-image: url("{text:background image}");
  120. background-attachment:fixed;
  121. background-size:cover;
  122. font-family:source sans pro;
  123. font-size:16px;
  124. color:{color:text};
  125. }
  126.  
  127. /*SCROLL BAR*/
  128. ::-webkit-scrollbar{width:5px;height:5px;background-color:{color:links};}
  129. ::-webkit-scrollbar-track{border:5px solid {color:background color};background-color:{color:background color};}
  130. ::-webkit-scrollbar-thumb{border:1px solid {color:links};background-color:{color:links};}
  131.  
  132. /********************************
  133. NAV BAR
  134. ********************************/
  135. .navbar{
  136. height:60px;
  137. width:100%;
  138. background-color:{color:navbar background};
  139. position:fixed;
  140. z-index:9999999999999999999999999999;
  141. top:0;
  142. }
  143.  
  144. .navbar .title{
  145. float:left;
  146. color:{color:navigation links};
  147. text-transform:uppercase;
  148. font-size:25px;
  149. line-height:60px;
  150. margin-left:30px;
  151. cursor:pointer;
  152. }
  153.  
  154. .title:hover + .description{
  155. display:inline;
  156. }
  157.  
  158. .description{
  159. display:none;
  160. float:left;
  161. position:absolute;
  162. font-size:12px;
  163. line-height:12px;
  164. text-align:left;
  165. padding:60px 10px 10px 10px;
  166. z-index:-1;
  167. width:100%;
  168. left:0;
  169. text-transform:none;
  170. color:{color:navigation links};
  171. background-color:{color:navbar background};
  172. }
  173.  
  174. .description li{
  175. max-width:300px;
  176. float:left;
  177. left:0;
  178. text-align:center;
  179. list-style:none;
  180. }
  181.  
  182. .description:hover{
  183. display:inline;
  184. }
  185.  
  186. .navbar img{
  187. width:100px;
  188. height:100px;
  189. position:absolute;
  190. border-radius:100px;
  191. border:10px solid {color:navbar background};
  192. background-color:{color:navbar background};
  193. left:0;
  194. right:0;
  195. }
  196.  
  197. .nav_links{
  198. float:right;
  199. line-height:60px;
  200. }
  201.  
  202. .nav_links li {
  203. list-style:none;
  204. display:inline;
  205. padding:20px;
  206. }
  207.  
  208. .nav_links a {
  209. color:{color:navigation links};
  210. text-transform:uppercase;
  211. font-size:16px;
  212. }
  213.  
  214. /********************************
  215. NAV BAR DROPDOWN MENU
  216. ********************************/
  217. .drpbtn{
  218. list-style:none;
  219. display:inline;
  220. padding:20px;
  221. color:{color:navigation links};
  222. text-transform:uppercase;
  223. font-size:16px;
  224. cursor:pointer;
  225. }
  226.  
  227. .dropdown {
  228. display: inline-block;
  229. cursor:pointer;
  230. }
  231.  
  232. .dropdown-content {
  233. display:none;
  234. background-color: {color:navbar background};
  235. min-width: 160px;
  236. box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  237. z-index: 1;
  238. position:absolute;
  239. }
  240.  
  241. .dropdown-content a {
  242. color:{color:navigation links};
  243. text-transform:uppercase;
  244. font-size:16px;
  245. padding: 12px 16px;
  246. display: block;
  247. transition:ease-in-out.2s;
  248. line-height:20px;
  249. }
  250.  
  251. .dropdown-content a:hover {background-color: #f1f1f1;letter-spacing:3px;
  252. transition:ease-in-out.2s;}
  253.  
  254. .dropdown:hover .dropdown-content {
  255. display: block;
  256. }
  257. /********************************
  258. CONTAINER & POSTS
  259. ********************************/
  260. .container{
  261. margin:0 auto;
  262. width:1056px;
  263. margin-top:150px;
  264. margin-bottom:50px;
  265. position:relative;
  266. {block:permalinkpage}width:610px;{/block:permalinkpage}
  267. }
  268.  
  269. .posts{
  270. {block:if250pxposts}width:250px;{/block:if250pxposts}
  271. {block:if300pxposts}width:300px;{/block:if300pxposts}
  272. {block:if400pxposts}width:400px;{/block:if400pxposts}
  273. position:absolute;
  274. padding:20px;
  275. margin:5px 5px 10px 5px;
  276. border:1px solid {color:post background color};
  277. {block:ifpostbackgroundcolor}
  278. background-color:{color:post background color};
  279. {/block:ifpostbackgroundcolor}
  280. {block:permalinkpage}width:500px;margin:0 auto;{/block:permalinkpage}
  281. }
  282.  
  283. @media only screen and (min-width:0px) and (max-width:699px){
  284. .container{
  285. {block:if250pxposts}width:300px;{/block:if250pxposts}/*1 column*/
  286. {block:if300pxposts}width:300px;{/block:if300pxposts}/*1 column*/
  287. {block:if400pxposts}width:300px;{/block:if400pxposts}/*1 column*/
  288. {block:permalinkpage}width:300px;margin:0 auto;{/block:permalinkpage}
  289. }
  290.  
  291. .nav_links{display:none;}
  292. .nav_links2{float:right;line-height:60px;}
  293. .nav_links2 li {list-style:none;display:inline;padding:10px;}
  294. .nav_links2 a {color:{color:navigation links};text-transform:uppercase; font-size:16px;}
  295.  
  296. .dropdown-content {display:none;right:0px;background-color: {color:navbar background};min-width :160px;z-index: 1;position:absolute;}
  297. }
  298.  
  299. @media only screen and (min-width:700px) and (max-width:1099px){
  300. .container{
  301. {block:if250pxposts}width:906px;{/block:if250pxposts}/*3 columns*/
  302. {block:if300pxposts}width:704px;{/block:if300pxposts}/*2 columns*/
  303. {block:if400pxposts}width:452px;{/block:if400pxposts}/*1 column*/
  304. {block:permalinkpage}width:542px;{/block:permalinkpage}
  305. }
  306.  
  307. .nav_links{display:none;}
  308. .nav_links2{float:right;line-height:60px;}
  309. .nav_links2 li {list-style:none;display:inline;padding:10px;}
  310. .nav_links2 a {color:{color:navigation links};text-transform:uppercase; font-size:16px;}
  311.  
  312. .dropdown-content {display:none;right:0px;background-color: {color:navbar background};min-width :160px;z-index: 1;position:absolute;}
  313. }
  314.  
  315. @media only screen and (min-width:1100px) and (max-width:1400px){
  316. .container{
  317. {block:if250pxposts}width:1208px;{/block:if250pxposts}/*4 columns*/
  318. {block:if300pxposts}width:1056px;{/block:if300pxposts}/*3 columns*/
  319. {block:if400pxposts}width:904px;{/block:if400pxposts}/*2 columns*/
  320. {block:permalinkpage}width:542px;{/block:permalinkpage}
  321. }
  322.  
  323. .nav_links2{display:none;}
  324. }
  325.  
  326. @media only screen and (min-width:1401px) and (max-width:1700px){
  327. .container{
  328. {block:if250pxposts}width:1510px;{/block:if250pxposts}/*5 columns*/
  329. {block:if300pxposts}width:1408px;{/block:if300pxposts}/*4 columns*/
  330. {block:if400pxposts}width:1356px;{/block:if400pxposts}/*3 columns*/
  331. {block:permalinkpage}width:542px;{/block:permalinkpage}
  332. }
  333.  
  334. .nav_links2{display:none;}
  335. }
  336.  
  337. @media only screen and (min-width:1701px){
  338. .container{
  339. {block:if250pxposts}width:1812px;{/block:if250pxposts}/*6 columns*/
  340. {block:if300pxposts}width:1760px;{/block:if300pxposts}/*5 columns*/
  341. {block:if400pxposts}width:1808px;{/block:if400pxposts}/*4 columns*/
  342. {block:permalinkpage}width:542px;{/block:permalinkpage}
  343. }
  344.  
  345. .nav_links2{display:none;}
  346. }
  347.  
  348. .tumblr_video_container{
  349. {block:if250pxposts}width:250px; {/block:if250pxposts}
  350. {block:if300pxposts}width:300px;{/block:if300pxposts}
  351. {block:if400pxposts}width:400px;{/block:if400pxposts}
  352. {block:permalinkpage}width:542px;{/block:permalinkpage}
  353. margin:0;
  354. }
  355.  
  356. .asker{
  357. display:inline-block;
  358. vertical-align:middle;
  359. line-height:20px;
  360. }
  361.  
  362. a.asker{
  363. margin-bottom:5px;
  364. }
  365.  
  366. .asker img{
  367. width:20px;
  368. height:20px;
  369. }
  370. /********************************
  371. AUDIO POSTS
  372. ********************************/
  373. .cover{
  374. position:relative;
  375. {block:if250pxposts}width:250px; {/block:if250pxposts}
  376. {block:if300pxposts}width:300px;{/block:if300pxposts}
  377. {block:if400pxposts}width:400px;{/block:if400pxposts}
  378. {block:permalinkpage}width:542px;{/block:permalinkpage}
  379. z-index: 1;
  380. }
  381.  
  382. .playbutton {
  383. width:20px;
  384. height:30px;
  385. overflow:hidden;
  386. position:relative;
  387. z-index:100000;
  388. margin:15px 24px 13px 16px;
  389. }
  390.  
  391. .playbox{
  392. background-color:#fff;
  393. position:absolute;
  394. z-index:10000000;
  395. border-radius:100px;
  396. opacity:0.5;
  397. {block:if250pxposts}margin-top:100px; margin-left:95px;{/block:if250pxposts}
  398. {block:if300pxposts}margin-top:125px; margin-left:120px;{/block:if300pxposts}
  399. {block:if400pxposts}margin-top:175px; margin-left:175px;{/block:if400pxposts}
  400. {block:permalinkpage}margin-top:225px;margin-left:225px;{/block:permalinkpage}
  401. }
  402.  
  403. /********************************
  404. CAPTIONS & PERMA INFO
  405. ********************************/
  406. .tumblr_parent {padding:10px 0px;}
  407. .tumblr_parent blockquote{
  408. margin-left:0px;
  409. padding-left:20px;
  410. border-left:2px solid #eee;
  411. }
  412.  
  413. .tumblr_avatar,.tumblr_blog{
  414. display:inline-block;
  415. margin-bottom:10px;
  416. }
  417.  
  418. .tumblr_avatar{
  419. border-radius:50%;
  420. width:20px;
  421. vertical-align:middle;
  422. margin:3px 10px 3px 0px;
  423. }
  424.  
  425.  
  426. .posts p{margin:5px 0px;}
  427. .caption{padding:5px;margin-top:5px;}
  428. .permalinks{text-align:center;margin-top:10px;}
  429. .permalinks a{color:{color:permalink icons};}
  430.  
  431. .tooltip{
  432. display: inline;
  433. position: relative;
  434. }
  435.  
  436. #s-m-t-tooltip {
  437. max-width:300px;
  438. border-radius: 0px;
  439. padding:3px 4px 5px 4px;
  440. margin:20px 7px -2px 20px;
  441. background-color:#ffffff;
  442. border:1px solid #E0E0E0;
  443. font-family:source sans pro;
  444. font-size:9px;
  445. letter-spacing:2px;
  446. text-transform:uppercase;
  447. color:{color:text};
  448. z-index:999;
  449. }
  450.  
  451. .pagination{
  452. text-align:center;
  453. width:200px;
  454. height:50px;
  455. left:0;
  456. right:0;
  457. position:absolute;
  458. color:{color:pagination color};
  459. font-size:18px;
  460. z-index:999;
  461. }
  462.  
  463. .pagination span{
  464. color:{color:pagination color};
  465. font-size:14px;
  466. }
  467. /********************************
  468. NOTES STYLING
  469. ********************************/
  470. ol.notes {
  471. padding:0px;
  472. margin:25px 0px;
  473. list-style-type:none;
  474. height:auto;
  475. max-height:400px;
  476. overflow:auto;
  477. text-align:left;
  478. }
  479.  
  480. ol.notes li.note {padding:5px;}
  481.  
  482. ol.notes li.note img.avatar {
  483. vertical-align:-4px;
  484. margin-right:10px;
  485. width:16px;
  486. height:16px;
  487. float:left;
  488. border-radius:100%;
  489. }
  490.  
  491. ol.notes li.note span.action {font-weight:normal;}
  492. ol.notes li.note .answer_content {font-weight:normal;}
  493.  
  494. /********************************
  495. LIKE BUTTON
  496. ********************************/
  497. .like-b {
  498. position:relative;
  499. display:inline-block;
  500. height:1em;
  501. line-height:1em;
  502. overflow:hidden;
  503. margin-top:2px;
  504. margin-bottom:-1px;
  505. margin-left:2px;
  506. }
  507.  
  508. .like-b .like_button iframe {
  509. position:absolute;
  510. margin:0 auto;
  511. z-index:2;
  512. opacity:0;
  513. }
  514.  
  515. .like-b .liked + .b {color:red;}
  516.  
  517. #credit{position:fixed;bottom:0px;right:20px;height:50px;width:100%;}
  518. #credit i{font-size:30px;float:right;color:{color:credit symbol};}
  519.  
  520. </style>
  521. <body>
  522. <!---------------------------------------
  523. NAVBAR
  524. ----------------------------------------->
  525. <div class="navbar">
  526. <div class="title">{title}</div>
  527. <div class="description"><li>{description}</li></div>
  528. <center><img src="{PortraitURL-128}"></center>
  529.  
  530. <div class="nav_links">
  531. <li><a href="/"> <span class="lnr lnr-home"></span> home </a></li>
  532. <li><a href="{text:ask link}"> <span class="lnr lnr-bubble"></span> message </a></li>
  533. <li><a href="/submit"> <span class="lnr lnr-gift"></span> submit </a></li>
  534.  
  535. <li><div class="dropdown">
  536. <a class="dropbtn"> <span class="lnr lnr-link"></span> Extra Links</a>
  537. <div class="dropdown-content">
  538. <a href="{text:link one url}">{text:link one}</a>
  539. <a href="{text:link two url}">{text:link two}</a>
  540. <a href="{text:link three url}">{text:link three}</a>
  541. {block:ifshowlinkfour}
  542. <a href="{text:link four url}">{text:link four}</a>
  543. {/block:ifshowlinkfour}
  544. {block:ifshowlinkfive}
  545. <a href="{text:link five url}">{text:link five}</a>
  546. {/block:ifshowlinkfive}
  547. </div>
  548. </div> </li>
  549. <li><a href="/archive"> <span class="lnr lnr-bookmark"></span> archive </a></li>
  550. </div>
  551.  
  552. <!---------------------------------------
  553. NAVBAR LINKS WHEN PAGE IS TOO SMALL
  554. ----------------------------------------->
  555. <div class="nav_links2">
  556. <li><a href="/"> <span class="lnr lnr-home"></span></a></li>
  557. <li><a href="{text:ask link}"> <span class="lnr lnr-bubble"></span></a></li>
  558. <li><a href="/submit"> <span class="lnr lnr-gift"></span></a></li>
  559.  
  560. <li><div class="dropdown">
  561. <a class="dropbtn"> <span class="lnr lnr-link"></span></a>
  562. <div class="dropdown-content">
  563. <a href="{text:link one url}">{text:link one}</a>
  564. <a href="{text:link two url}">{text:link two}</a>
  565. <a href="{text:link three url}">{text:link three}</a>
  566. {block:ifshowlinkfour}
  567. <a href="{text:link four url}">{text:link four}</a>
  568. {/block:ifshowlinkfour}
  569. {block:ifshowlinkfive}
  570. <a href="{text:link five url}">{text:link five}</a>
  571. {/block:ifshowlinkfive}
  572. </div>
  573. </div> </li>
  574. <li><a href="/archive"> <span class="lnr lnr-bookmark"></span></a></li>
  575. </div>
  576.  
  577. </div>
  578. <!---------------------------------------
  579. CONTAINER & POSTS
  580. ----------------------------------------->
  581. <div class="container">
  582. {block:posts}
  583. <div class="posts">
  584.  
  585. <!---------------------------------------
  586. TEXT POSTS
  587. ----------------------------------------->
  588. {block:text}
  589. {block:title}{title}{/block:title}
  590. <div class="caption">{Body}</div>
  591. {/block:text}
  592.  
  593. <!---------------------------------------
  594. Q&A POSTS
  595. ----------------------------------------->
  596. {block:Answer}
  597. <div class="asker"><img src="{AskerPortraitURL-24}"style="border-radius:100%;"></div> {Asker} asked: {Question} <br> {Answer}
  598. {/block:Answer}
  599.  
  600. <!---------------------------------------
  601. QUOTE POSTS
  602. ----------------------------------------->
  603. {block:Quote}
  604. <h2>"{Quote}"</h2>
  605. {block:Source}<div class="source">{Source}</div>{/block:Source}
  606. {/block:Quote}
  607.  
  608. <!---------------------------------------
  609. LINK POSTS
  610. ----------------------------------------->
  611. {block:Link}
  612. <h1><a href="{URL}">{Name}</a></h1>
  613. {block:Description}{Description}{/block:Description}
  614. {/block:Link}
  615.  
  616. <!---------------------------------------
  617. CHAT POSTS
  618. ----------------------------------------->
  619. {block:Chat}
  620. {block:Title}<h1>{Title}</h1>{/block:Title}
  621. {block:Lines}
  622. {block:Label}<b>{Label}</b>{/block:Label}
  623. {Line}<br>
  624. {/block:Lines}
  625. {/block:Chat}
  626.  
  627. <!---------------------------------------
  628. PHOTO POSTS
  629. ----------------------------------------->
  630. {block:Photo}
  631. {LinkOpenTag}<img src="{PhotoURL-500}" width="540px" alt="{PhotoAlt}">{LinkCloseTag}
  632. <div class="caption" style="text-align:center">{block:IfShowCaptions}{block:Caption}{Caption}{/block:Caption}{/block:IfShowCaptions}</div>
  633. {/block:Photo}
  634.  
  635. <!---------------------------------------
  636. PHOTOSET POSTS
  637. ----------------------------------------->
  638. {block:Photoset}
  639. <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>
  640. {/block:Photos}</div><div class="caption" style="text-align:center">{block:IfShowCaptions}{block:Caption}{Caption}{/block:Caption}{/block:IfShowCaptions}</div>
  641. {/block:Photoset}
  642.  
  643. <!---------------------------------------
  644. AUDIO POSTS
  645. ----------------------------------------->
  646. {block:Audio}
  647. <div class="playbox"><div class="playbutton">{block:AudioPlayer}{AudioPlayerBlack}{/block:AudioPlayer}</div></div>
  648. {block:AlbumArt}
  649. <img src="{AlbumArtURL}" class="cover">
  650. {/block:AlbumArt}
  651. <div class="caption"style="text-align:center">{block:IfShowCaptions}{block:Caption}{Caption}{/block:Caption}{/block:IfShowCaptions}</div>
  652. {/block:Audio}
  653.  
  654. <!---------------------------------------
  655. VIDEO POSTS
  656. ----------------------------------------->
  657. {block:Video}
  658. <div class="video">{Video-500} </div>
  659. <div class="caption" style="text-align:center">{block:IfShowCaptions}{block:Caption}{Caption}{/block:Caption}{/block:IfShowCaptions}</div>
  660. {/block:Video}
  661.  
  662. <!---------------------------------------
  663. PERMALINK STUFF
  664. ----------------------------------------->
  665. {block:IndexPage}
  666. {block:date}
  667. <div class="permalinks"> <a title ="{ShortMonth} {DayofMonth}" href="{Permalink}"><span class="lnr lnr-clock"></span></a> <a class="like-b" href="#">{LikeButton}<span class="b"><span class ="lnr lnr-heart"></span> </span></a><a href="{ReblogURL}"> <span class="lnr lnr-sync"></span></a> <a title ="{block:NoteCount} {NoteCountWithLabel}{/block:NoteCount}" href="{Permalink}"><span class="lnr lnr-link"></span></a> {block:HasTags}<a title ="{block:Tags} #{Tag} {/block:Tags}" href="{TagURL}"><span class="lnr lnr-tag"></span></a>{/block:HasTags}
  668. </div>
  669.  
  670. {/block:date}
  671. {/block:IndexPage}
  672.  
  673. {block:permalinkpage}{block:date}<center>
  674. <a href="{Permalink}">{TimeAgo} on {ShortMonth} {DayofMonth}{DayofMonthSuffix} {Year}</a><a href="{Permalink}">{block:NoteCount} with {NoteCountWithLabel}{/block:NoteCount}</a> <br>
  675.  
  676. <div class="viasource">(Via <a href="{ReblogParentURL}">{ReblogParentName}</a>, Source {block:RebloggedFrom}<a href="{ReblogRootURL}">{ReblogRootName}</a> {/block:RebloggedFrom})</div>
  677. <br> {block:HasTags}<span class="lnr lnr-tag"></span>{block:Tags}<a href="{TagUrl}"> {Tag}, </a>{/block:Tags}{/block:HasTags}
  678. </center>
  679. {/block:date}
  680. {/block:PermalinkPage}
  681. {block:PostNotes}{PostNotes}{/block:PostNotes}
  682. </div>
  683. {/block:posts}
  684. <br>
  685. </div>
  686. <div class="pagination">
  687. {block:Pagination}{block:PreviousPage}<a href="{PreviousPage}"><span class="lnr lnr-chevron-left"></span></a> {/block:PreviousPage}{currentpage} / {totalpages} {block:NextPage}<a href="{NextPage}" id="next"><span class="lnr lnr-chevron-right"></span></a>{/block:NextPage}{/block:Pagination}
  688. </div>
  689.  
  690. <div id="credit">
  691. <a href="https://drxgonfly.tumblr.com"><i class="drx-drxgonfly-left" aria-hidden="true"></i></a>
  692. </div>
  693. <!---------------------------------------
  694. SCRIPTS
  695. ----------------------------------------->
  696. <script>
  697. $(function(){
  698. $('.photo-slideshow').pxuPhotoset({
  699. lightbox: true,
  700. rounded: false,
  701. gutter: '1px',
  702. photoset: '.photo-slideshow',
  703. photoWrap: '.photo-data',
  704. photo: '.pxu-photo'
  705. });
  706. var container = $('.container');
  707.  
  708. container.imagesLoaded(function(){
  709. container.masonry({
  710. itemSelector : '.posts'
  711. });
  712. });
  713.  
  714. {block:indexpage}
  715. {block:ifinfinitescroll}
  716. container.infinitescroll({
  717. navSelector : 'div.pagination',
  718. nextSelector : 'div.pagination a#next',
  719. itemSelector : '.posts',
  720. bufferPx : 2000,
  721. },
  722. function( newElements ) {
  723.  
  724. var $newElems = $( newElements ).css({ opacity: 0 });
  725.  
  726. $newElems.imagesLoaded(function(){
  727. $newElems.animate({ opacity: 1 });
  728. container.masonry( 'appended', $newElems, true );
  729. });
  730. $newElems.unnest({
  731. yourCaption: ".caption",
  732. wrapName: ".tumblr_parent",
  733. newCaptionUsername: false,
  734. originalPostCaptionUsername: true,
  735. tumblrAvatars: true,
  736. tumblrAvatarClass: ".tumblr_avatar",
  737. usernameColon: false
  738. });
  739.  
  740. $newElems.find('.photo-slideshow').pxuPhotoset({
  741. lightbox: true,
  742. rounded: false,
  743. gutter: '1px',
  744. photoset: '.photo-slideshow',
  745. photoWrap: '.photo-data',
  746. photo: '.pxu-photo'
  747. });
  748.  
  749. resizeVideos();
  750. }
  751. );
  752. {/block:ifinfinitescroll}
  753. {/block:indexpage}
  754.  
  755. });
  756. </script>
  757.  
  758.  
  759. <script> // UNNESTED CAPTIONS
  760. $(function(){ $('.posts').unnest({
  761. yourCaption: ".caption", //your caption selector, the div wrapping {Caption}
  762. wrapName: ".tumblr_parent", //the name of the captions’ new wrapper
  763. newCaptionUsername: false, //if the user adds a new caption, following a series of captions, show their username above the caption
  764. originalPostCaptionUsername: true, //for the original captions, or a user-added caption that previously didn’t have any, have their username on it
  765. tumblrAvatars: true, //”dashboard style” caption, have the avatar of the blog next to the username
  766. tumblrAvatarClass: ".tumblr_avatar", //class of the avatar next to the username
  767. usernameColon: false //if turned to false, removes the colon at the end of usernames
  768. }); }); </script>
  769.  
  770. <script>
  771.  
  772. (function($){ // TOOLTIPS
  773. $(document).ready(function(){
  774. $("a[title]").style_my_tooltips({
  775. tip_follows_cursor:true,
  776. tip_delay_time:90,
  777. tip_fade_speed:600,
  778. attribute:"title"
  779. });
  780. });
  781. })(jQuery);
  782.  
  783. </script>
  784. </body>
  785. </html>
Advertisement
Add Comment
Please, Sign In to add comment