Advertisement
yLii

Infinite Isotope 34b

Jan 17th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.63 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>{Title}</title>
  5.  
  6.  
  7. <script src="http://static.tumblr.com/iuvoef7/bXomx943d/jquery-1.7.1.min.js"></script>
  8.  
  9.  
  10.  
  11.  
  12. <!--don't understand why this script doesn't work -->
  13. <script src="http://static.tumblr.com/iuvoef7/hshmx93xt/jquery.isotope.min.js"></script>
  14.  
  15. <!-- for some reason this one works -->
  16. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.isotope/2.2.2/isotope.pkgd.min.js"></script>
  17.  
  18. <!--cellsbycolumn-->
  19. <script src="https://raw.githubusercontent.com/metafizzy/isotope-cells-by-column/master/cells-by-column.js"></script>
  20.  
  21. <!--cellsbyrow-->
  22. <script src="https://raw.githubusercontent.com/metafizzy/isotope-cells-by-row/master/cells-by-row.js"></script>
  23.  
  24. <!--fitcolumns-->
  25. <script src="https://raw.githubusercontent.com/metafizzy/isotope-fit-columns/master/fit-columns.js"></script>
  26.  
  27. <!--masonryhorizontal-->
  28. <script src="https://raw.githubusercontent.com/metafizzy/isotope-masonry-horizontal/master/masonry-horizontal.js"></script>
  29.  
  30.  
  31. <!--horizontal horiz-->
  32. <script src="https://raw.githubusercontent.com/metafizzy/isotope-horizontal/master/horizontal.js"></script>
  33.  
  34.  
  35.  
  36. <!--infinite scroll -->
  37. <script src="http://static.tumblr.com/iuvoef7/tIEmx9449/jquery.infinitescroll.min.js"></script>
  38.  
  39.  
  40. <!--smooth scrolling-->
  41. <script src="https://cdnjs.cloudflare.com/ajax/libs/smoothscroll/1.4.6/SmoothScroll.min.js"></script>
  42.  
  43.  
  44. <script>
  45.  
  46. //main function, called isotope
  47.  
  48.  
  49.  
  50.  
  51. var isotope = $(function(){
  52. var $container = $('#content').hide();
  53. $container.imagesLoaded(function(){
  54. $container.fadeIn().isotope({
  55. itemSelector : '.box',
  56. layoutMode : '{select:Layout Type}',
  57. masonry: {
  58. gutter: {text:Gutter Width}
  59. }
  60. {block:ifMasonryHorizontal}
  61. masonryHorizontal: {
  62. rowHeight: 50
  63. }
  64. {/block:ifMasonryHorizontal}
  65.  
  66. });
  67.  
  68. });
  69.  
  70.  
  71.  
  72.  
  73. //infinite scroll and callback
  74.  
  75.  
  76. $container.infinitescroll({
  77. navSelector : '#page_nav',
  78. nextSelector : '#page_nav a',
  79. itemSelector : '.box',
  80. loading: {
  81. finishedMsg: 'You have reached the end of the internet.',
  82. img: 'http://i.imgur.com/qkKy8.gif'
  83. }
  84. },
  85. // call Isotope as a callback
  86. function ( newElements ) {
  87. var $newElems = jQuery( newElements ).hide(); // hide to begin with
  88. $( newElements ).find('.photo-slideshow').pxuPhotoset({
  89. lightbox: true,
  90. rounded: false,
  91. gutter: ' {text:Gutter Width}px',
  92. borderRadius: '0px',
  93. highRes : true,
  94. captions : true,
  95. photoset: '.photo-slideshow',
  96. photoWrap: '.photo-data',
  97. photo: '.pxu-photo'
  98. });
  99. // ensure that images load before adding to masonry layout
  100. $newElems.imagesLoaded(function(){
  101. $newElems.fadeIn(); // fade in when ready
  102. $container.isotope( 'insert', $newElems );
  103.  
  104.  
  105. });
  106. }
  107.  
  108.  
  109. );
  110.  
  111. {block:ifManualInfiniteScroll}
  112. //manual infinite scroll
  113. $(window).unbind('.infscr');
  114. $('.load-more').click(function(){
  115. $container.infinitescroll('retrieve');
  116. return false
  117. });
  118. {/block:ifManualInfiniteScroll}
  119.  
  120.  
  121. }); //ending main function
  122.  
  123.  
  124.  
  125. $(document).ready(isotope);
  126.  
  127. </script>
  128.  
  129. <!--Responsive photosets-->
  130. <link href="https://static.tumblr.com/qudkd6d/OcDnl99gb/style.css" rel="stylesheet" type="text/css"/>
  131. <script src="https://static.tumblr.com/qudkd6d/Az6nkemqr/pxuphotoset.min.js"></script>
  132.  
  133. <script>
  134. $(document).ready(function(){
  135. $('.photo-slideshow').pxuPhotoset({
  136. lightbox: true,
  137. rounded: false,
  138. gutter: ' {text:Gutter Width}px',
  139. borderRadius: '0px',
  140. highRes : true,
  141. captions : true,
  142. photoset: '.photo-slideshow',
  143. photoWrap: '.photo-data',
  144. photo: '.pxu-photo'
  145. });
  146. });
  147. </script>
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154. <meta name="image:Background" content="" />
  155. <meta name="image:Lollipop Background" content="" />
  156. <meta name="image:Quote Background" content="" />
  157. <meta name="image:HeaderBackground" content="" />
  158.  
  159. <meta name="color:Background" content="#fbfbfb" />
  160. <meta name="color:Lightbox Background" content="#fff" />
  161. <meta name="color:Links" content="#ffa9b6" />
  162. <meta name="color:Text highlight" content="#d83e5c" />
  163. <meta name="color:Lollipop" content="#000000" />
  164. <meta name="color:Lollipop Hover" content="#b7512e" />
  165. <meta name="color:Hover" content="#b7512e" />
  166. <meta name="color:Scrollbar" content="#fed3f2" />
  167.  
  168. <meta name="font:Header Font" content="Arial" />
  169.  
  170.  
  171.  
  172.  
  173. <meta name="if:Captions" content="0" />
  174. <meta name="if:Fade" content="1" />
  175. <meta name="if:Head Space" content="1" />
  176. <meta name="if:Horizontal" content="0" />
  177. <meta name="if:Infinite Scroll" content="1" />
  178. <meta name="if:Manual Infinite Scroll" content="1" />
  179. <meta name="if:Masonry Horizontal" content="0" />
  180. <meta name="if:Sidebar" content="0" />
  181. <meta name="if:Stack Photoset" content="0" />
  182.  
  183. <meta name="select:Content Width" content="50%" />
  184. <meta name="select:Content Width" content="30%" />
  185. <meta name="select:Content Width" content="40%" />
  186. <meta name="select:Content Width" content="60%" />
  187. <meta name="select:Content Width" content="70%" />
  188. <meta name="select:Content Width" content="80%" />
  189. <meta name="select:Content Width" content="90%" />
  190. <meta name="select:Content Width" content="100%" />
  191.  
  192.  
  193.  
  194. <meta name="select:Fade Opacity" content="0.8" />
  195. <meta name="select:Fade Opacity" content="0.1" />
  196. <meta name="select:Fade Opacity" content="0.2" />
  197. <meta name="select:Fade Opacity" content="0.3" />
  198. <meta name="select:Fade Opacity" content="0.4" />
  199. <meta name="select:Fade Opacity" content="0.5" />
  200. <meta name="select:Fade Opacity" content="0.6" />
  201. <meta name="select:Fade Opacity" content="0.7" />
  202. <meta name="select:Fade Opacity" content="0.9" />
  203. <meta name="select:Fade Opacity" content="1.0" />
  204.  
  205.  
  206. <meta name="select:Float" content="margin:auto" title="Align Center" />
  207. <meta name="select:Float" content="float:left" title="Align Left" />
  208. <meta name="select:Float" content="float:right" title="Align Right" />
  209.  
  210.  
  211.  
  212.  
  213. <meta name="select:SideFloat" content="left" title="Left Sidebar" />
  214. <meta name="select:SideFloat" content="right" title="Right Sidebar" />
  215.  
  216.  
  217.  
  218.  
  219. <meta name="select:Layout Type" content="masonry" title="Masonry" />
  220. <meta name="select:Layout Type" content="cellsByColumn" title="Cells by Column" />
  221. <meta name="select:Layout Type" content="cellsByRow" title="Cells by Row" />
  222. <meta name="select:Layout Type" content="fitColumns" title="Fit Columns" />
  223. <meta name="select:Layout Type" content="fitRows" title="Fit Rows" />
  224. <meta name="select:Layout Type" content="horiz" title="Horizontal" />
  225.  
  226. <meta name="select:Layout Type" content="masonryHorizontal" title="Masonry Horizontal" />
  227. <meta name="select:Layout Type" content="vertical" title="Vertical" />
  228.  
  229.  
  230.  
  231.  
  232. <!--Post Width in relation to Content Width -->
  233. <meta name="select:Post Width" content="100%" />
  234. <meta name="select:Post Width" content="25%" />
  235. <meta name="select:Post Width" content="30%" />
  236. <meta name="select:Post Width" content="32%" />
  237. <meta name="select:Post Width" content="32.75%" />
  238. <meta name="select:Post Width" content="33.33%" />
  239. <meta name="select:Post Width" content="40%" />
  240. <meta name="select:Post Width" content="50%" />
  241. <meta name="select:Post Width" content="60%" />
  242. <meta name="select:Post Width" content="70%" />
  243. <meta name="select:Post Width" content="75%" />
  244. <meta name="select:Post Width" content="80%" />
  245. <meta name="select:Post Width" content="90%" />
  246.  
  247.  
  248. <meta name="text:Body Font" content="Open Sans" />
  249. <meta name="text:Header Font" content="Open Sans"/>
  250. <meta name="text:Link Font" content="Open Sans" />
  251. <meta name="text:Gutter Width" content="0" />
  252.  
  253.  
  254. <!--fonts-->
  255. <link href='http://fonts.googleapis.com/css?family={text:Body Font}' rel='stylesheet' type='text/css'>
  256. <link href='http://fonts.googleapis.com/css?family={text:Header Font}' rel='stylesheet' type='text/css'>
  257. <link href='http://fonts.googleapis.com/css?family={text:Link Font}' rel='stylesheet' type='text/css'>
  258.  
  259.  
  260.  
  261.  
  262.  
  263. <link rel="shortcut icon" href="{Favicon}">
  264. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  265. <link href="http://static.tumblr.com/wgijwsy/k1Hm9ei8b/normalize.css" rel="stylesheet" type="text/css" />
  266.  
  267.  
  268.  
  269.  
  270.  
  271. <style type="text/css">
  272. @font-face {font-family:"Accent";src:url('http://static.tumblr.com/m9qxvhq/mc9mhlhm3/accent.ttf');}
  273. @font-face {font-family:"Barkentina";src:url('http://static.tumblr.com/m9qxvhq/CH5mhn23p/barkentina_1.otf');}
  274. @font-face {font-family:"Blake";src:url('http://static.tumblr.com/m9qxvhq/bnRmhedq1/blake2.ttf');}
  275. @font-face {font-family:"Buffet";src:url('http://static.tumblr.com/m9qxvhq/0V2mhl3je/buffet_script.ttf');}
  276.  
  277. @font-face {font-family:"Jellyka";src:url('http://static.tumblr.com/iuvoef7/mNnojgowh/jellyka_bees_antique_handwriting.ttf');}
  278. @font-face {font-family:"Mayo";src:url('http://static.tumblr.com/m9qxvhq/dD6mhcpd0/mayonaise-condensed.otf');}
  279.  
  280.  
  281. @font-face {font-family:"Sachiko";src:url('http://static.tumblr.com/m9qxvhq/UTEmhi6ks/sachiko.ttf');}
  282. @font-face {font-family:"Sugah";src:url('http://static.tumblr.com/m9qxvhq/Dghmhi6ct/frenchsugar.ttf');}
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289. ::-webkit-scrollbar {width: 8px; height: 4px; background: {color:Background}; opacity:0.5;}
  290. ::-webkit-scrollbar-thumb { background-color: {color:Scrollbar}; -webkit-border-radius: 2ex; }
  291. ::-moz-scrollbar {width: 8px; height: 4px; background: {color:Background}; }
  292. ::-moz-scrollbar-thumb { background-color: {color:Scrollbar}; -moz-border-radius: 2ex; }
  293. ::-o-scrollbar {width: 8px; height: 4px; background: {color:Background}; }
  294. ::-o-scrollbar-thumb { background-color: {color:Scrollbar}; -o-border-radius: 2ex; }
  295.  
  296. {block:PermalinkPage}
  297. ::-webkit-scrollbar {width: 8px; height: 4px; background: {color:Background}; opacity:0.5;}
  298. ::-webkit-scrollbar-thumb { background-color: {color:Background}; -webkit-border-radius: 2ex; }
  299. ::-moz-scrollbar {width: 8px; height: 4px; background: {color:Background}; }
  300. ::-moz-scrollbar-thumb { background-color: {color:Background}; -moz-border-radius: 2ex; }
  301. ::-o-scrollbar {width: 8px; height: 4px; background: {color:Background}; }
  302. ::-o-scrollbar-thumb { background-color: {color:Background}; -o-border-radius: 2ex; }
  303. {block:PermalinkPage}
  304.  
  305.  
  306.  
  307.  
  308. ::selection {background: #d83e5c;color: #fff;}
  309. ::-moz-selection {background: #d83e5c;color: #fff;}
  310.  
  311.  
  312.  
  313.  
  314. html {
  315. width:100%;
  316. }
  317.  
  318.  
  319.  
  320. body {
  321. cursor:url(''), crosshair;
  322. background: {color:Background};
  323. width:100%;
  324. font-family:'{text:Body Font}';
  325.  
  326.  
  327. {block:PermalinkPage}
  328. height:100vh;
  329. overflow:hidden;
  330. {/block:PermalinkPage}
  331.  
  332. }
  333.  
  334.  
  335. {block:IfHeadSpace}
  336. .headspace{
  337. width:100%;
  338. height:21vh;
  339. padding-top:10vh;
  340. text-align:center;
  341. vertical-align:middle;
  342. font-size:50px;
  343. {/block:IfHeadSpace}
  344. font-family:{text:Header Font};
  345.  
  346.  
  347.  
  348. }
  349.  
  350. .header {
  351.  
  352. }
  353.  
  354.  
  355. #content-wrapper {
  356. width:100%;
  357. height:100%;
  358. }
  359.  
  360.  
  361. #content {
  362. {block:IfNotHorizontal}
  363. width:{select:Content Width};
  364. {select:Float};
  365. {/block:IfNotHorizontal}
  366. {block:IfHorizontal}
  367. height:{select:Content Width};
  368. max-height:100vh;
  369. vertical-align:middle;
  370. {/block:IfHorizontal}
  371.  
  372. {block:PermalinkPage}
  373. width:100%;
  374. {/block:PermalinkPage}
  375.  
  376. }
  377.  
  378.  
  379.  
  380.  
  381.  
  382. a, a:hover, a:visited {
  383. cursor:inherit;
  384. text-decoration:none;
  385. color:inherit;
  386. }
  387.  
  388. ul {
  389. list-style-type: none;
  390. }
  391.  
  392.  
  393. #nav {
  394. float: left;
  395. margin-top: 20px;
  396. position: fixed;
  397. z-index:1000;
  398. right:0px;
  399. margin-right:auto;
  400. position:fixed;
  401. }
  402.  
  403. #nav a {
  404. text-decoration: none;
  405. font-size: 15px;
  406. line-height: 25px;
  407. color: #595959;
  408. }
  409.  
  410. #nav a:hover {
  411. color: #393939;
  412. }
  413.  
  414. #nav a:active {
  415. color: #151515;
  416. }
  417.  
  418.  
  419. .tumblrAutoPager_page_info, .tumblrAutoPager_page_separator {display:none;}
  420. #infscr-loading {display:none;}
  421. .navigation {display:none!important;}
  422.  
  423.  
  424.  
  425. .isotope-item {
  426. z-index: 2;
  427. }
  428.  
  429. .isotope-hidden.isotope-item {
  430. pointer-events: none;
  431. z-index: 1;
  432. }
  433.  
  434. .isotope,
  435. .isotope .isotope-item {
  436. /* change duration value to whatever you like */
  437. -webkit-transition-duration: 0.8s;
  438. -moz-transition-duration: 0.8s;
  439. transition-duration: 0.8s;
  440. }
  441.  
  442. .isotope {
  443. -webkit-transition-property: height, width;
  444. -moz-transition-property: height, width;
  445. transition-property: height, width;
  446. }
  447.  
  448. .isotope .isotope-item {
  449. -webkit-transition-property: -webkit-transform, opacity;
  450. -moz-transition-property: -moz-transform, opacity;
  451. transition-property: transform, opacity;
  452. }
  453.  
  454.  
  455.  
  456. .box {
  457. cursor:inherit;
  458. margin-bottom:{text:Gutter Width}px;
  459. font-family:'{text:Body Font}';
  460. font-size:10px;
  461. {block:IfNotHorizontal}
  462. float: left;
  463. width:{select:Post Width};
  464. {/block:IfNotHorizontal}
  465.  
  466. {block:IfHorizontal}
  467. width:400px;
  468. {/block:IfHorizontal}
  469.  
  470.  
  471. {block:IfFade}
  472. opacity:{select:Fade Opacity};
  473. -webkit-transition-duration: 0.8s;
  474. -moz-transition-duration: 0.8s;
  475. transition-duration: 0.8s;
  476. {/block:IfFade}
  477.  
  478. }
  479.  
  480.  
  481.  
  482. .box:hover {
  483. {block:IfFade}
  484. opacity:1.0;
  485. -webkit-transition-duration: 0.8s;
  486. -moz-transition-duration: 0.8s;
  487. transition-duration: 0.8s;
  488. {/block:IfFade}
  489. }
  490.  
  491.  
  492. .text {
  493. height: 50vh;
  494. display:block;
  495. text-overflow: ellipsis;
  496. -o-text-overflow: ellipsis;
  497. -ms-text-overflow: ellipsis;
  498. overflow: hidden;
  499. white-space: nowrap;
  500. }
  501.  
  502.  
  503. .permalink-post {
  504. background:yellow;
  505. font-size:1.3vh;
  506. height:50vh;
  507. text-align:center;
  508. /* position: relative;
  509. top: 50%;
  510. transform: translateY(-50%); to vertial align*/
  511.  
  512. }
  513.  
  514. .permalink-post .permalink-text {
  515. height: 100%;
  516. display:block;
  517. text-overflow: ellipsis;
  518. -o-text-overflow: ellipsis;
  519. -ms-text-overflow: ellipsis;
  520. overflow: scroll;
  521. white-space: nowrap;
  522. }
  523.  
  524.  
  525. /* note the :first-chile thing doesn't work even with the img: specifier*/
  526. .permalink-photoset {background:cyan; width:100%; height:100%;}
  527. .permalink-photoset img { transform:translateX(-50%); position:absolute; height:50vh; width:auto; max-width:60vw; overflow-x:visible;
  528. counter-increment:number;
  529. -webkit-transition:opacity .6s ease-in-out;
  530. transition:opacity .6s ease-in-out;
  531. opacity:0; z-index:0;}
  532. .permalink-photoset img:first-child{ opacity:1; z-index:1;}
  533. .opaque {opacity:1.0; }
  534.  
  535.  
  536. .photo {
  537.  
  538. }
  539.  
  540. .photoset{
  541.  
  542. }
  543.  
  544.  
  545.  
  546. {block:IfHorizontal}
  547. {block:ifStackPhotoset}
  548. .photoset-wrap {}
  549. .photoset-wrap img { display: none; width:100%; }
  550. .photoset-wrap img:first-child { display: block; width:100%; }
  551. {/block:ifStackPhotoset}
  552. {/block:IfHorizontal}
  553.  
  554. {block:ifStackPhotoset}
  555. .photoset-wrap {}
  556. .photoset-wrap img { display: none; width:100%; }
  557. .photoset-wrap img:first-child { display: block; width:100%; }
  558. {/block:ifStackPhotoset}
  559.  
  560. .photocount, .photocount a {
  561. right:0px;
  562. bottom:0px;
  563. position:absolute;
  564. font-size:10px;
  565. font-family:;
  566. color:{color:Background};
  567. }
  568.  
  569.  
  570.  
  571.  
  572.  
  573. #vignette, .vignette{opacity:0!important;}.lightbox-caption {color:#000;}
  574. #tumblr_lightbox,.tmblr-lightbox{background:rgba({RGBcolor:Lightbox Background},0.8)!important;}
  575. #tumblr_lightbox img, .lightbox-image {box-shadow:none!important;border-radius:0px!important;}
  576.  
  577.  
  578.  
  579.  
  580.  
  581. .pagination {
  582. padding-top:5vh;
  583. height:20vh;
  584. width:100vw;
  585. bottom:0px;
  586. color:black;
  587. background:pink;
  588.  
  589. }
  590.  
  591. .load-more {
  592. font-family:'{text:Link Font}';
  593. left:50vw;
  594. margin-top:7vh;
  595. border:0;
  596. padding-top:2vh;
  597. padding-bottom:2vh;
  598. padding-left:10vw;
  599. padding-right:10vw;
  600. background:#f0f0f0;
  601. color:#9f9f9f;
  602. -webkit-transition-duration: 0.8s;
  603. -moz-transition-duration: 0.8s;
  604. transition-duration: 0.8s;
  605.  
  606. }
  607.  
  608.  
  609. .load-more:hover {
  610. background:{color:Links};
  611. color:{color:Background};
  612. -webkit-transition-duration: 0.8s;
  613. -moz-transition-duration: 0.8s;
  614. transition-duration: 0.8s;
  615. }
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624. {block:ifSidebar}
  625. {/block:ifSidebar}
  626. .sidebar {
  627. {select:SideFloat}:0px;
  628. float:{select:SideFloat};
  629. width:calc(100% - {select:Content Width} );
  630. background-color:cyan;
  631.  
  632. }
  633.  
  634.  
  635.  
  636.  
  637. .portrait {
  638. vertical-align:middle;
  639. border-radius:35px;
  640. opacity:0.7;
  641. -webkit-transition-duration: 0.8s;
  642. -moz-transition-duration: 0.8s;
  643. transition-duration: 0.8s;
  644. }
  645.  
  646.  
  647. .portrait:hover {
  648. opacity:1.0;
  649. border-radius:0px;
  650. -webkit-transition-duration: 0.8s;
  651. -moz-transition-duration: 0.8s;
  652. transition-duration: 0.8s;
  653.  
  654.  
  655. }
  656.  
  657.  
  658.  
  659. </style>
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669.  
  670. </head>
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683. <body>
  684.  
  685.  
  686.  
  687.  
  688. {block:IfHeadSpace}
  689. <div class="headspace"><a href="{BlogURL}" class="header">{Title}</a></div>
  690. {/block:IfHeadSpace}
  691.  
  692.  
  693.  
  694.  
  695. <div id="content-wrapper">
  696.  
  697. <div id="content">
  698. {block:Posts}
  699.  
  700. {block:IndexPage}
  701.  
  702. {block:Text}
  703. <div class="box text">
  704. <u><a href="{Permalink}">{Title}</a></u>
  705. {Body}
  706. </div>
  707. {/block:Text}
  708.  
  709.  
  710.  
  711. {block:Photo}
  712.  
  713. <a href="#">
  714. <img src="{PhotoURL-HighRes}" alt="{PhotoAlt}" class="box photo" onclick="Tumblr.Lightbox.init([{ width: {PhotoWidth-HighRes}, height: {PhotoHeight-HighRes}, low_res: '{PhotoURL-500}', high_res: '{PhotoURL-HighRes}' }]); $('body').toggleClass('tumblr_lightbox_active'); return false" />
  715. </a>
  716. {/block:Photo}
  717.  
  718.  
  719. {block:Photoset}
  720. <div class="box">
  721.  
  722. {block:ifNotStackPhotoset}
  723. <!--preset code to abide by pxu -->
  724. <div class="photo-slideshow" id="photoset_{PostID}" data-layout="{PhotosetLayout}">
  725.  
  726. {block:Photos}
  727. <div class="photo-data">
  728. <div class="pxu-photo">
  729. <img src="{PhotoURL-HighRes}" width="{PhotoWidth-500}" height="{PhotoHeight-500}" data-highres="{PhotoURL-HighRes}" data-width="{PhotoWidth-HighRes}" data-height="{PhotoHeight-HighRes}">
  730. </div>
  731. <a class="tumblr-box" rel="post-{PostID}" href="{PhotoURL-HighRes}">
  732. </a>
  733. </div>
  734. {/block:Photos}
  735. </div>
  736. {block:ifNotStackPhotoset}
  737.  
  738.  
  739.  
  740. {block:ifStackPhotoset}
  741. {block:IndexPage}
  742. <div class="photoset-wrap">
  743. {block:Photos}
  744. <!-- <a href="#"> for some reason loads all images in photoset-->
  745. <img src="{PhotoURL-HighRes}" alt="{PhotoAlt}" onclick="Tumblr.Lightbox.init([{ width: {PhotoWidth-HighRes}, height: {PhotoHeight-HighRes}, low_res: '{PhotoURL-500}', high_res: '{PhotoURL-HighRes}' }]); $('body').toggleClass('tumblr_lightbox_active'); return false" />
  746. <!-- </a> -->
  747.  
  748. {/block:Photos}
  749. <div class="photocount"><a href="{Permalink}">{PhotoCount}</a></div>
  750. </div>
  751. {/block:IndexPage}
  752. {/block:ifStackPhotoset}
  753.  
  754.  
  755.  
  756.  
  757. {block:ifCaptions}
  758. {Caption}
  759. {/block:ifCaptions}
  760.  
  761. </div>
  762. {/block:Photoset}
  763.  
  764. {/block:IndexPage}
  765.  
  766.  
  767.  
  768.  
  769. {block:PermalinkPage}
  770.  
  771.  
  772. <div class="permalink-post">
  773.  
  774. {block:Text}
  775. <div class="permalink-text">
  776. {Title}
  777. {Body}
  778. </div>
  779. {/block:Text}
  780.  
  781. {block:Photo}
  782. <img id ="{PhotoCount}" src="{PhotoURL-HighRes}" style="width:auto; height:100%; margin:auto"/>
  783. {block:Photo}
  784.  
  785. {block:Photoset}
  786. <div class="permalink-photoset" >
  787. {block:Photos}
  788. <img src="{PhotoURL-HighRes}" alt="{PhotoAlt}"
  789.  
  790. onClick="
  791. var $next = $(this).next('img');
  792. $(this).css('opacity','0');
  793. $(this).css('z-index','0');
  794. $next.css('opacity','1');
  795. $next.css('z-index','1');
  796. if ($next.length == 0) {
  797. $(this).parent().find('img:first-child').css('opacity','1');
  798. $(this).parent().find('img:first-child').css('z-index','1');
  799. }
  800.  
  801.  
  802.  
  803. "/>
  804.  
  805.  
  806. <!--
  807.  
  808.  
  809. var $next = $(this).next('img');
  810. if ($next.length != 0) {
  811. $(this).next('.photo').addClass('active');
  812. }
  813. else {
  814. $(this).parent('.post').find('.photo:first-child').addClass('active');
  815. }
  816.  
  817. -->
  818.  
  819. {/block:Photos}
  820. </div>
  821. <!-- <div style="width:300px; margin:auto;">{Photoset}</div> whole photoset-->
  822.  
  823. {block:Photoset}
  824.  
  825. </div>
  826.  
  827.  
  828. {/block:PermalinkPage}
  829.  
  830.  
  831.  
  832.  
  833. {/block:Posts}
  834. </div> <!--content-->
  835. </div> <!--content wrapper -->
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842.  
  843.  
  844.  
  845.  
  846.  
  847.  
  848.  
  849.  
  850.  
  851. {block:ifSidebar}
  852. {block:IndexPage}
  853. <div class="sidebar">
  854.  
  855. <center><img src="{PortraitURL-64}" class="portrait" /></center>
  856.  
  857. </div>
  858. {block:IndexPage}
  859. {/block:ifSidebar}
  860.  
  861.  
  862.  
  863. <div class="navigation">
  864. {block:Pagination}
  865. {block:NextPage}
  866. <p id="page_nav"><a style="float:right" href="{NextPage}" id="next">Older ?</a>
  867. {/block:NextPage}
  868. {block:PreviousPage}
  869. <a style="float:left" href="{PreviousPage}">? Newer</a></p>
  870. {/block:PreviousPage}
  871. {/block:Pagination}
  872. </div>
  873.  
  874.  
  875. {block:ifManualInfiniteScroll}
  876. {block:Pagination}
  877. <div class="pagination">
  878. <center><button class="load-more">load more</button></center>
  879. </div>
  880. {/block:Pagination}
  881. {/block:ifManualInfiniteScroll}
  882.  
  883.  
  884.  
  885. {block:PermalinkPage}
  886. {block:PermalinkPagination}
  887. {block:PreviousPost} <a href="{PreviousPost}" style="float:right; right:0px; bottom:0px; position:fixed;"> Older </a>{/block:PreviousPost}
  888. {block:NextPost}<a href="{NextPost}" style="float:left; left:0px; bottom:0px; position:fixed;">Newer</a> {/block:NextPost}
  889. {/block:PermalinkPagination}
  890. {block:PermalinkPage}
  891.  
  892.  
  893.  
  894. </body>
  895. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement