-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path4chan tumblr theme
868 lines (677 loc) · 21.1 KB
/
4chan tumblr theme
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
<!DOCTYPE html>
<head>
<!-- theme by Kanthala Raghu
http://kanthalaraghu.tumblr.com/
http://twitter.com/kanthalaraghu
http://facebook.com/kanthalaraghu0083
http://www.kanthalaraghu.com
Do not steal!
-->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name='text:Disqus Shortname' content='' />
<link href="https://fonts.googleapis.com/css?family=Karla|Montserrat|Varela+Round" rel="stylesheet">
{block:Description}
<meta name="description" content="{MetaDescription}" />
{/block:Description}
<title>{Title}</title>
{block:IfNotYotsubaFavicon}
<link rel="shortcut icon" href="{Favicon}">
{/block:IfNotYotsubaFavicon}
{block:IfYotsubaFavicon}
<link rel="shortcut icon" href="http://s.4cdn.org/image/favicon.ico">
{/block:IfYotsubaFavicon}
<link rel="alternate" type="application/rss+xml" href="{RSS}">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
</head>
<!-- photoset stylesheet by pixelunion! -->
<link href="https://static.tumblr.com/qudkd6d/OcDnl99gb/style.css" rel="stylesheet" type="text/css"/>
<!-- normalize -->
<link href="https://raw.githubusercontent.com/necolas/normalize.css/master/normalize.css" rel="stylesheet" type="text/css">
<meta name="color:Background" content="#ffffee">
<meta name="color:Gradient Top" content="#fed6ae">
<meta name="color:Gradient Bottom" content="#ffffee">
<meta name="color:Text" content="#800000">
<meta name="color:Link" content="#0000ee">
<meta name="color:Link Hover" content="#dd0000">
<meta name="color:Reply" content="#f0e0d6">
<meta name="color:Lines" content="#d9bfb7">
<meta name="color:Post Title" content="#cc1105">
<meta name="color:Names" content="#117743">
<meta name="color:Button Background" content="#9f403b">
<meta name="color:Button Border" content="#800201">
<meta name="color:Meme Arrows" content="#789922">
<meta name="image:Banner" content="https://secure.static.tumblr.com/65fb06ec471cd77cf293ddb9589269df/cqfswrg/auzon6t6z/tumblr_static_4d3yti1o1fcw00g08k0kks8o0.gif">
<meta name="if:Gradient Background" content="1">
<meta name="if:Anonymous" content="1">
<meta name="if:Spoiler Text" content="1">
<meta name="if:Borders" content="1">
<meta name="if:Infinite Scroll" content="1">
<meta name="if:Yotsuba Favicon" content="1">
<meta name="font:Font" content="helvetica, sans-serif">
<meta name="text:Font Size" content="13">
<style>
#submit_form,
#ask_form {
max-width:750px;
}
html {
min-height:100%;
}
body {
margin:0;
padding:0;
min-height:100%;
background:{color:Background};
{block:IfGradientBackground}
background:{color:Gradient Bottom};
background:-webkit-linear-gradient({color:Gradient Top}, {color:Gradient Bottom} 200px);
background:-o-linear-gradient({color:Gradient Top}, {color:Gradient Bottom} 200px);
background:-moz-linear-gradient({color:Gradient Top}, {color:Gradient Bottom} 200px);
background:linear-gradient({color:Gradient Top}, {color:Gradient Bottom} 200px);
{/block:IfGradientBackground}
color:{color:Text};
font-size:{text:Font Size}px;
font-family:{font:Font};
word-wrap:break-word;
}
a {
color:{color:Link};
}
a:hover {
color:{color:Link Hover};
}
img:not(.lightbox-image) {
max-width:100%;
height:auto;
}
blockquote:not(.reply),
q {
margin-left:0;
margin-right:0;
padding:0;
color:{color:Meme Arrows};
}
blockquote:not(.reply) > *:before,
q:before {
content:'>';
display:inline;
}
* > *:first-child {
margin-top:0;
}
* > *:last-child {
margin-bottom:0;
}
{block:IfSpoilerText}
s,
strike,
del {
background:black;
text-decoration:none;
color:black;
}
s:hover,
strike:hover,
del:hover {
color:white;
}
{/block:IfSpoilerText}
button {
background:none;
border:none;
padding:0;
}
.wrapper {
padding:10px;
min-height:100%;
}
.clearfix {
overflow:auto;
zoom:1;
}
/* top */
.links {
text-transform:lowercase;
}
header.top {
text-align:center;
width:84vw;
margin:0 auto;
padding:10px 0;
}
h1.title {
margin:10px 0;
}
.banner {
border:1px solid black;
}
.desc {
margin:0;
text-align:left;
max-width:400px;
margin:0 auto;
}
main {
border-bottom:1px solid {color:Lines};
margin:10px 0;
}
/* posts */
article {
border-top:1px solid {color:Lines};
}
.post-info {
margin:10px 0;
}
.post-info.closed {
opacity:0.5;
}
button::-moz-focus-inner {
border:0;
padding:0;
}
span.button {
display:inline-block;
height:{text:Font Size}px;
width:{text:Font Size}px;
position:relative;
margin-right:5px;
border-radius:3px;
border:1px solid {color:Button Border};
background:{color:Button Background};
background-repeat:no-repeat;
-webkit-background-size:cover;
-moz-background-size:cover;
-o-background-size:cover;
background-size:cover;
}
span.button.open {
background-image:url("https://cdn.rawgit.com/Spacetchi/tumblr/2d8ccc324e998316338001ee848720cb7177f72d/4chan/assets/minus.svg");
}
span.button.closed {
background-image:url("https://cdn.rawgit.com/Spacetchi/tumblr/2d8ccc324e998316338001ee848720cb7177f72d/4chan/assets/plus.svg");
}
span.button button {
width:100%;
height:100%;
position:absolute;
top:0;
left:0;
cursor:pointer;
}
article .title {
font-weight:bold;
color:{color:Post Title};
}
.name,
a.tumblr_blog {
font-weight:bold;
color:{color:Names};
}
.post-id {
text-decoration:none;
color:{color:Text};
}
article:nth-of-type(n) .media,
.reply img {
width:320px;
}
article:nth-of-type(2n) .media {
width:370px;
}
article:nth-of-type(3n) .media {
width:420px;
}
article:nth-of-type(4n) .media {
width:470px;
}
.media,
.audio-container,
.video-container {
float:left;
margin:0 10px 10px 0;
max-width:100%;
}
.media img {
cursor:pointer;
display:block;
width:100%;
}
.question {
font-weight:bold;
}
p.quote {
font-style:italic;
}
a.tumblr_blog {
font-weight:bold;
text-decoration:none;
display:inline;
}
.post.text .reply:first-of-type,
.post.answer .reply:first-of-type,
.post.chat .reply:first-of-type,
.post.quote .reply:first-of-type {
max-width:750px;
}
blockquote.reply {
margin:0 0 10px 0;
}
blockquote.reply:not(:first-of-type) {
background:{color:Reply};
padding:10px;
display:table;
max-width:500px;
{block:IfBorders}
border:1px solid {color:Lines};
{/block:IfBorders}
}
.reply:first-of-type > a.tumblr_blog:after {
content:':';
display:inline;
}
.post > *:last-child {
margin-bottom:10px;
}
.notes {
display:block;
border-top:1px solid {color:Lines};
margin:0;
padding:10px 0;
list-style-type:none;
}
.notes li {
background:{color:Reply};
padding:10px;
margin:0;
max-width:500px;
display:table;
{block:IfBorders}
border:1px solid {color:Lines};
{/block:IfBorders}
}
.notes li:not(:last-of-type) {
margin-bottom:10px;
}
.notes img {
display:none;
}
/* pagination */
nav.pagination {
margin:10px 0;
padding:10px;
{block:IfBorders}
border:1px solid {color:Lines};
{/block:IfBorders}
display:table;
background:{color:Reply};
}
.current {
font-weight:bold;
}
body:not(.__1) .infinite-container {
display:none;
}
button.infinite {
color:{color:Link};
text-decoration:underline;
font-family:{font:Font};
font-size:{text:Font Size}px;
cursor:pointer;
}
.infinite:hover {
color:{color:Link Hover};
}
</style>
<body class='__{block:JumpPagination length="10"}{block:CurrentPage}{PageNumber}{/block:CurrentPage}{/block:JumpPagination}'>
<div class="wrapper">
<nav class="links">
[
<a href="{BlogURL}" title="Home">hm</a> /
{block:HasPages}
{block:Pages}
<a href="{URL}" title="{Label}">{Label}</a> /
{/block:Pages}
{/block:HasPages}
{block:AskEnabled}
<a href="/ask" title="Ask">qa</a> /
{/block:AskEnabled}
{block:SubmissionsEnabled}
<a href="/submit" title="Submit">sm</a> /
{/block:SubmissionsEnabled}
<a href=http://www.kanthalaraghu.com title="Credit">thm</a>
]
[ <a href="{BlogURL}/archive" title="Archive">Archive</a> ]
</nav>
<header class="top">
<img src="{image:Banner}" class="banner" />
<h1 class="title">/{Name}/ - {Title}</h1>
<p class="desc">{Description}</p>
</header>
<main id="content">
{block:Posts}
<article class="post clearfix {PostType}">
<header class="post-info open">
{block:IndexPage}<span class="button open"><button class="hide-post"></button></span>{/block:IndexPage}
{block:Text}
{block:Title}<span class="title">{Title} </span>{/block:Title}
{/block:Text}
{block:Chat}
{block:Title}<span class="title">{Title} </span>{/block:Title}
{/block:Chat}
{block:Link}
<a href="{URL}" class="title">{Name} </a>
{/block:Link}
{block:Date}
<span class="name">{block:IfNotAnonymous}{block:RebloggedFrom}{ReblogRootName}{/block:RebloggedFrom}{block:NotReblog}{Name}{/block:NotReblog}{/block:IfNotAnonymous}{block:IfAnonymous}Anonymous{/block:IfAnonymous}</span> {DayOfMonthWithZero}/{MonthNumberWithZero}/{ShortYear}({ShortDayOfWeek}){24HourWithZero}:{Minutes}:{Seconds}
{block:NoteCount}
with {NoteCountWithLabel}
{/block:NoteCount}
<a href="{Permalink}" class="post-id">No.</a><a href="{Permalink}" class="post-id">{PostID}</a> {block:IndexPage} [<a href="{Permalink}">Reply</a>]{/block:IndexPage}
{block:PermalinkPage}
{block:HasTags}
<span class="tags">
{block:Tags}
<a href="{TagURL}">#{Tag}</a>
{/block:Tags}
</span><!-- tags -->
{/block:HasTags}
{/block:PermalinkPage}
{/block:Date}
</header><!-- post-info -->
<div class="post-content">
{block:Photo}
<div class="media make_lightbox"
data-width="{PhotoWidth-HighRes}"
data-height="{PhotoHeight-HighRes}"
data-lowres="{PhotoURL-500}" data-highres="{PhotoURL-HighRes}">
<img src="{PhotoURL-HighRes}" alt="{PhotoAlt}" class="photoset-img"/>
</div>
{block:Caption}
<div class="caption">{Caption}</div>
{/block:Caption}
{/block:Photo}
{block:Photoset}
<div class="media photo-slideshow" id="photoset_{PostID}" data-layout="{PhotosetLayout}">
{block:Photos}
<div class="photo-data">
<div class="pxu-photo">
<img alt="{PhotoAlt}"
src="{PhotoURL-500}"
width="{PhotoWidth-500}"
height="{PhotoHeight-500}"
data-highres="{PhotoURL-HighRes}"
data-width="{PhotoWidth-HighRes}"
data-height="{PhotoHeight-HighRes}"
class="{block:Exif}exif-yes{/block:Exif} {block:Caption}caption-yes{/block:Caption}"{block:Exif}
data-camera="{block:Camera}{Camera}{/block:Camera}"
data-iso="{block:ISO}{ISO}{/block:ISO}"
data-aperture="{block:Aperture}{Aperture}{/block:Aperture}"
data-exposure="{block:Exposure}{Exposure}{/block:Exposure}"
data-focal="{block:FocalLength}{FocalLength}{/block:FocalLength}"{/block:Exif} {block:Caption}
data-caption="{Caption}"{/block:Caption} />
</div><!-- pxu-photo -->
<div class="icons">
<a class="tumblr-box" rel="post-{PostID}" href="{PhotoURL-HighRes}">
<span class="zoom"></span>
</a>
</div><!-- icons -->
</div><!-- photo-data -->
{/block:Photos}
</div><!-- photo-slideshow -->
{block:Caption}
<div class="caption">{Caption}</div>
{/block:Caption}
{/block:Photoset}
{block:Text}
<div class="caption">{Body}</div>
{/block:Text}
{block:Quote}
<div class="caption">
<p class="quote">“{Quote}”</p>
{block:Source}
<p class="source">—{Source}</p>
{/block:Source}
</div>
{/block:Quote}
{block:Link}
{block:Description}
<div class="caption">{Description}</div>
{/block:Description}
{/block:Link}
{block:Chat}
<div class="caption">
{block:Lines}
<div class="{Alt} user_{UserNumber}">
{block:Label}
<span class="name">{Label}</span>{/block:Label}
{Line}
</div>
{/block:Lines}
</div><!-- caption -->
{/block:Chat}
{block:Video}
<div class="video-container">{Video-400}</div>
{block:Caption}
<div class="caption">{Caption}</div>
{/block:Caption}
{/block:Video}
{block:Audio}
<div class="audio-container">
{block:AudioEmbed}
{AudioEmbed-400 color="white"}
{/block:AudioEmbed}
</div><!-- audio -->
{block:Caption}
<div class="caption">{Caption}</div>
{/block:Caption}
{/block:Audio}
{block:Answer}
<div class="caption">
<span class="asker">{Asker} says: </span><span class="question">{Question}</span>
{block:Answerer}<p>{Answerer} answers: {/block:Answerer}</p><p class="answer">{Answer}</p>
</div><!-- caption -->
{/block:Answer}
</div><!-- post-content -->
</article>
{block:PermalinkPage}
{block:NoteCount}
{block:PostNotes}{PostNotes}{/block:PostNotes}
{/block:NoteCount}
{/block:PermalinkPage}
{/block:Posts}
{block:IfDisqusShortname}
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = '{text:Disqus Shortname}'; // Required - Enter shortname in Tumblr Theme Options
var disqus_url = '{Permalink}';
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
{/block:IfDisqusShortname}
</main>
{block:Pagination}
<nav class="pagination" id="pagination">
{block:IfInfiniteScroll}<span class="infinite-container">[<button id="infinite" class="infinite">All</button>]</span>{/block:IfInfiniteScroll}
{block:PreviousPage}[<a href="{PreviousPage}" class="back">Back</a>]{/block:PreviousPage}<!-- google chrome does weird whitespace collapsing here
-->{block:JumpPagination length="10"}<!-- google chrome does weird whitespace collapsing here--> {block:CurrentPage}[<span class="current">{PageNumber}</span>]{/block:CurrentPage}
{block:JumpPage}[<span class="jump"><a href="{URL}">{PageNumber}</a></span>]{/block:JumpPage}
{/block:JumpPagination}<!-- google chrome does weird whitespace collapsing here
-->{block:NextPage}[<a href="{NextPage}" class="next" id="next">Next</a>]{/block:NextPage}
</nav>
{/block:Pagination}
<nav class="links">
[
<a href="{BlogURL}" title="Home">hm</a> /
{block:HasPages}
{block:Pages}
<a href="{URL}" title="{Label}">{Label}</a> /
{/block:Pages}
{/block:HasPages}
{block:AskEnabled}
<a href="/ask" title="Ask">qa</a> /
{/block:AskEnabled}
{block:SubmissionsEnabled}
<a href="/submit" title="Submit">sm</a> /
{/block:SubmissionsEnabled}
<a href="http://fiveppi.tumblr.com/" title="Credit">thm</a>
]
[ <a href="{BlogURL}/archive" title="Archive">Archive</a> ]
</nav>
</div><!-- wrapper -->
<script type="text/javascript" src="http://static.tumblr.com/cqfswrg/1xXo902k0/jquery_photoset.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.photo-slideshow').pxuPhotoset({
'gutter' : '8px',
'rounded' : 'false',
}, function() {
// callback
});
});
</script>
<script src="http://static.tumblr.com/wgg6svp/jeWobvfj7/unnest.min.js" type="text/javascript"></script>
<script>
var lightbox = function() {
$('.make_lightbox').each(function(){
// this is just an element I let them click, it carries a series of data- attributes.
$(this).on('click',function(){
// when clicked. this is the newer jQuery click() handler that's only in v1.8+ so that may be something to note.
var lbArray = []; // create blank array.
var arrayContents = {
"width":$(this).data('width'),
"height":$(this).data('height'),
"low_res":$(this).data("lowres"),
"high_res":$(this).data('highres')
};
// make set of the data- attributes.
lbArray.push(arrayContents);
// push the set into the array.
Tumblr.Lightbox.init(lbArray,1);
// trigger Tumblr lightbox. the '1' is the number of photos it expects. specific to how tumblr has things set up.
$('body').toggleClass('tumblr_lightbox_active');
// use this to prevent the user from scrolling.
});
});
}
</script>
<script>
//unnests blockquotes
var callBlockquotes = function() {
$('.post-content').unNest({
yourCaption: ".caption", //your caption selector
wrapName: ".reply", //the name of the captions’ new wrapper
newCaptionUsername: false, //if the user adds a new caption, following a series of captions, show their username above the caption
originalPostCaptionUsername: false, //for the original captions, or a user-added caption that previously didn’t have any, have their username on it
tumblrAvatars: false, //”dashboard style” caption, have the avatar of the blog next to the username
usernameColon: false //if turned to false, removes the colon at the end of usernames bc :) seriously :) hwy :)
});
}
//takes all replys out of caption and appends them to post
var moveReply = function() {
$('.post-content').each(function(){
var post = this;
$(post).children('.caption').children('.reply').each(function() {
if ($(this).is(':first-of-type')) {
$(this).children('*').appendTo(post);
}
else {
$(this).appendTo(post);
}
});
$(post).children('.caption').detach();
});
}
//removes all empty paragraphs
var removeUnnecessary = function() {
$('p').each(function() {
if (this.innerHTML == '') {
$(this).detach();
}
});
}
//adds tumblr username to the last reply
var appendTumblr = function() {
$('.caption').each(function(){
var post = this;
$(post).children('.reply').each(function() {
if ( (this.innerHTML.indexOf('class="tumblr_blog"') == -1)
&& !($(this).is(':first-of-type')) ) {
$(this).prepend('<a class="tumblr_blog" href="{BlogURL}">{Name}</a>');
}
});
});
}
//toggle posts on button click
var togglePosts = function() {
$('main').on('click', '.hide-post', function() {
console.log("clicked");
$(this).parents('.post').children('.post-content').toggle();
$(this).parents('.post-info').toggleClass('open');
$(this).parents('.post-info').toggleClass('closed');
$(this).parents('.button').toggleClass('open');
$(this).parents('.button').toggleClass('closed');
});
}
var callbacks = function() {
lightbox();
removeUnnecessary();
appendTumblr();
}
$(document).ready(function() {
callBlockquotes();
togglePosts();
callbacks();
});
</script>
{block:IfInfiniteScroll}
<script type="text/javascript" src="http://static.tumblr.com/cqfswrg/k0bodz8wo/jquery_infinite-scroll.js"></script><!-- infinite scroll script -->
{block:IndexPage}
<script type="text/javascript">
var infinite = function() {
$('main#content').infinitescroll({
navSelector : "nav#pagination",
// selector for the paged navigation (it will be hidden)
nextSelector : "a#next",
// selector for the NEXT link (to page 2)
itemSelector : "article"
// selector for all items you'll retrieve
}, function(newElements) {
//photoset callback
$(newElements).find('.photo-slideshow').pxuPhotoset({
lightbox:"true",
rounded:"false",
borderRadius: '0px',
gutter:'8px',
photoset:'.photo-slideshow',
photoWrap:'.photo-data',
photo:'.pxu-photo'
});
//unnest callback
$(newElements).find('.post-content').unNest({
yourCaption: ".caption",
wrapName: ".reply",
newCaptionUsername: false,
originalPostCaptionUsername: false,
tumblrAvatars: false,
usernameColon: false
});
callbacks();
});
}
$('#infinite').click(function() {
infinite();
$('main#content').infinitescroll('retrieve');
});
</script>
{/block:IndexPage}
{/block:IfInfiniteScroll}
</body>
</html>