forked from jarred/cargo-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.html
452 lines (439 loc) · 15.7 KB
/
theme.html
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
{block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description}
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>{Title}{block:PostSummary} - {PostSummary}{/block:PostSummary}</title>
<link rel="icon" href="{Favicon}"/>
<link rel="alternate" type="application/rss+xml" title="RSS" href="{RSS}" />
<link rel="stylesheet" type="text/css" href="http://static.tumblr.com/xhpdxdi/sr4ljv5mk/style.css" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>
<script type="text/javascript" src="http://static.tumblr.com/xhpdxdi/VGGkpy5vm/swfaddress.js"></script>
<script type="text/javascript" src="http://static.tumblr.com/xhpdxdi/zhlkpy5w3/jquery.cookie.js"></script>
<script type="text/javascript" src="http://mattclegg.com/magic.js"></script>
<script type="text/javascript">
// specify your default format. Options include "grid" and "list".
default_format = "grid"
//
{block:PermalinkPage}
is_index = false
var disqus_url = "{Permalink}";
var disqus_title="{block:PostTitle}{PostTitle}{/block:PostTitle}";
{/block:PermalinkPage}
{block:IndexPage}is_index = true{/block:IndexPage}
{block:PreviousPage}var previous_page = "{PreviousPage}"{/block:PreviousPage}
{block:NextPage}var next_page = "{NextPage}"{/block:NextPage}
//
</script>
<meta name="color:Page BG" content="#ffffff">
<meta name="color:Video BG" content="#000000">
<meta name="color:Regular and Quote BG" content="#08bcc3">
<meta name="color:Chat BG" content="#f392dd">
<meta name="color:Link BG" content="#a10789">
<meta name="color:Audio BG" content="#ff4040">
{block:IfDisqusShortname}<meta name="text:Disqus Shortname" content="{text:Disqus Shortname}"/>{/block:IfDisqusShortname}
<meta name="if:Show About In Nav" content="1"/>
<meta name="if:Show Following In Nav" content="1"/>
<style>
/* custom colours */
html, body{
background-color:{color:Page BG};
}
.post_thumb .hover_image .image {
background-color: {color:Regular and Quote BG};
}
.hover_text a { color: #fff;}
.grid .post_thumb .video{
background-color:{color:Video BG};
}
.grid .post_thumb .regular,
.grid .post_thumb .quote{
background-color:{color:Regular and Quote BG};
}
.grid .post_thumb .chat{
background-color:{color:Chat BG};
}
.grid .post_thumb .link{
background-color:{color:Link BG};
}
.grid .post_thumb .audio{
background-color:{color:Audio BG};
}
.regular img { max-width: 100%; }
#title_text {margin-left: 20px;padding-top: 10px;}
.copy li{
list-style: disc outside none;
margin-left: 15px;
padding-left: 10px;
}
{CustomCSS}
</style>
</head>
<body class="cargo {block:IndexPage}index{/block:IndexPage}{block:PermalinkPage}perma{/block:PermalinkPage}">
<div id="info" class="hide">
{block:NextPage}
<span class="next_page">{NextPage}</span>
{/block:NextPage}
</div>
<div id="title_text"></div>
<div id="loading"></div>
<div id="debug"></div>
<div id="main_column">
<!--{block:IndexPage}-->
<div class="list hide">
<!--{block:Posts}-->
<div class="post" id="post{PostID}">
<div class="gallery_hold"></div>
<div class="inner{block:HasTags}{block:Tags} {Tag}{/block:Tags}{/block:HasTags}">
{block:Regular}
<div class="regular">
{block:Title}<h2><a href="{Permalink}">{Title}</a></h2>{/block:Title}
<div class="copy">{Body}</div>
</div>
{/block:Regular}
{block:Photo}
<div class="photo">
{LinkOpenTag}<img src="{PhotoURL-500}" alt="{PhotoAlt}" class="the_photo" />{LinkCloseTag}
{block:Caption}
<div class="copy">{Caption}</div>
{/block:Caption}
</div>
{/block:Photo}
{block:Video}
<div class="video">
{Video-500}
{block:Caption}
<div class="copy">{Caption}</div>
{/block:Caption}
</div>
{/block:Video}
{block:Photoset}
<div class="photoset">{Photoset-500}</div>
{block:Caption}
<div class="copy">{Caption}</div>
{/block:Caption}
{/block:Photoset}
{block:Quote}
<div class="quote">
<div class="the_quote">{Quote}</div>
{block:Source}
<div class="copy">– {Source}</div>
{/block:Source}
</div>
{/block:Quote}
{block:Audio}
<div class="audio">
<div class="album_info">
{block:Artist}<span class="artist">{Artist}</span>{/block:Artist} – {block:TrackName}<span class="track">{TrackName}{/block:TrackName}
</div>
{block:AlbumArt}
<div class="album_art"><img src="{AlbumArtURL}" /></div>
{/block:AlbumArt}
<div class="player">{AudioPlayerBlack}</div>
{block:Caption}
<div class="copy">{Caption}{block:ExternalAudio}<p class="download"><a href="{ExternalAudioURL}">{lang:Download}</a></p>{/block:ExternalAudio}</div>
{/block:Caption}
</div>
{/block:Audio}
{block:Chat}
<div class="chat">
{block:Title}<h2><a href="{Permalink}">{Title}</a></h2>{/block:Title}
<div class="copy">
<ul class="chat">
{block:Lines}
<li class="{Alt} user_{UserNumber}">
{block:Label}
<span class="chat_label">{Label}</span>
{/block:Label}
<span class="chat_line">{Line}</span>
</li>
{/block:Lines}
</ul>
</div>
</div>
{/block:Chat}
{block:Link}
<h2><a href="{URL}" class="link" {Target}>{Name}</a></h2>
{block:Description}
<div class="copy">
<span class="description">{Description}</span>
</div>
{/block:Description}
{/block:Link}
<div class="info">
<p><a href="{Permalink}" class="date">{TimeAgo}</a> {block:NoteCount} <a href="{Permalink}#notes" class="notes">{NoteCountWithLabel}</a>{/block:NoteCount}{block:Photo}{block:HighRes} <a target="_blank" href="{PhotoURL-HighRes}" class="zoom_image">{lang:View high resolution}</a>{/block:HighRes}{/block:Photo}{block:IfDisqusShortname} <a href="{Permalink}#disqus_thread">{lang:View comments}</a>{/block:IfDisqusShortname}</p>
</div>
</div><!-- /.inner -->
</div><!-- /.post -->
<!--{/block:Posts}-->
</div>
<!--{/block:IndexPage}-->
<!--{block:IndexPage}-->
<div id="entry"></div>
<!--{/block:IndexPage}-->
<!--{block:PermalinkPage}-->
<div id="entry">
<!--{block:Posts}-->
<div class="gallery_hold"></div>
<div class="inner{block:HasTags}{block:Tags} {Tag}{/block:Tags}{/block:HasTags}">
{block:Regular}
<div class="regular">
{block:Title}<h2><a href="{Permalink}">{Title}</a></h2>{/block:Title}
<div class="copy">{Body}</div>
</div>
{/block:Regular}
{block:Photo}
<div class="photo">
{LinkOpenTag}<img src="{PhotoURL-500}" alt="{PhotoAlt}" class="the_photo" />{LinkCloseTag}
{block:Caption}
<div class="copy">{Caption}</div>
{/block:Caption}
</div>
{/block:Photo}
{block:Audio}
<div class="audio">
{block:AlbumArt}
<div class="album_art"><img src="{AlbumArtURL}" /></div>
{/block:AlbumArt}
<div class="player"> {AudioPlayerBlack} </div>
{block:Caption}
<div class="copy">{Caption}{block:ExternalAudio}<p class="download"><a href="{ExternalAudioURL}">{lang:Download}</a></p>{/block:ExternalAudio}</div>
{/block:Caption}
</div>
{/block:Audio}
{block:Video}
<div class="video">
{Video-500}
{block:Caption}
<div class="copy">{Caption}</div>
{/block:Caption}
</div>
{/block:Video}
{block:Photoset}
<div class="photoset">{Photoset-500}</div>
{block:Caption}
<div class="copy">{Caption}</div>
{/block:Caption}
{/block:Photoset}
{block:Quote}
<div class="quote">
<div class="the_quote">{Quote}</div>
{block:Source}
<div class="copy">– {Source}</div>
{/block:Source}
</div>
{/block:Quote}
{block:Chat}
<div class="chat">
{block:Title}<h2><a href="{Permalink}">{Title}</a></h2>{/block:Title}
<div class="copy">
<ul class="chat">
{block:Lines}
<li class="{Alt} user_{UserNumber}">
{block:Label}
<span class="chat_label">{Label}</span>
{/block:Label}
<span class="chat_line">{Line}</span>
</li>
{/block:Lines}
</div>
</div>
{/block:Chat}
{block:Link}
<h2><a href="{URL}" class="link" {Target}>{Name}</a></h2>
{block:Description}
<div class="copy">
<span class="description">{Description}</span>
</div>
{/block:Description}
{/block:Link}
<div class="info">
<p><span class="date">{lang:Posted TimeAgo}</span>{block:HasTags} & {lang:Filed under} {block:Tags} <a href="{TagURL}">{Tag}</a>, {/block:Tags}{/block:HasTags}{block:PostNotes} <a href="#notes">{NoteCountWithLabel}</a>{/block:PostNotes}{block:Audio} {PlayCountWithLabel}{/block:Audio}{block:Photo}{block:HighRes} <a target="_blank" href="{PhotoURL-HighRes}" class="zoom_image">{lang:View high resolution}</a>{/block:HighRes}{/block:Photo}</p>
</div>
</div><!-- /.inner -->
{block:PostNotes}
<a name="notes"></a>
<div class="notes_hold">
<h4>{lang:Notes}:</h4>
{PostNotes}
</div>
{/block:PostNotes}
<!--{/block:Posts}-->
{block:Permalink}
<div id="post_comments">
<div id="disqus_thread">
</div>
{/block:Permalink}
</div><!-- /#post_comments -->
</div><!-- /#entry -->
{block:IfDisqusShortname}
<div id="commentary">
{block:Permalink}
<div id="disqus_thread"></div>
<script type="text/javascript" src="http://disqus.com/forums/{text:Disqus Shortname}/embed.js"></script>
{/block:Permalink}
</div>
{/block:IfDisqusShortname}
<!-- {/block:PermalinkPage}-->
<!--{block:IndexPage}-->
<div id='grid_elements' class="line hide"></div>
<div class="grid hide">
<!--{block:Posts}-->
{block:Photo}
<div class="post_thumb" id="thumb_{PostID}">
<div class="image photo rounded">
<div class="hover_image bg rounded" style="background-image:url('{PhotoURL-250}')">
<div class="hover_text image rounded inner hide">{block:HasTags}{block:Tags}<a href="{TagURL}">{Tag}</a> {/block:Tags}{/block:HasTags}</div>
</div>
<div class="icon"></div>
</div>
</div>
{/block:Photo}
{block:Video}
<div class="post_thumb" id="thumb_{PostID}">
<div class="hover_image image video rounded">
<div class="hover_text image rounded inner hide">{block:HasTags}{block:Tags}<a href="{TagURL}">{Tag}</a> {/block:Tags}{/block:HasTags}</div>
<div class="icon"></div>
</div>
</div>
{/block:Video}
{block:Photoset}
<div class="post_thumb" id="thumb_{PostID}">
<div class="hover_image image photoset rounded">
<div class="thumbs rounded"></div>
<div class="icon"></div>
</div>
</div>
{/block:Photoset}
{block:Regular}
<div class="post_thumb" id="thumb_{PostID}">
<div class="hover_image image regular rounded">
<div class="inner">{block:Title}{Title}{/block:Title}</div>
</div>
</div>
{/block:Regular}
{block:Quote}
<div class="post_thumb" id="thumb_{PostID}">
<div class="hover_image image quote rounded">
<div class="inner">"{Quote}"</div>
</div>
</div>
{/block:Quote}
{block:Chat}
<div class="post_thumb" id="thumb_{PostID}">
<div class="hover_image image chat rounded">
<div class="inner">{block:Title}{Title}{/block:Title}</div>
</div>
</div>
{/block:Chat}
{block:Link}
<div class="post_thumb" id="thumb_{PostID}">
<div class="hover_image image link rounded">
<div class="inner">{Name}</div>
</div>
</div>
{/block:Link}
{block:Audio}
<div class="post_thumb" id="thumb_{PostID}">
<div class="hover_image image audio rounded">
{block:AlbumArt}
<div class="bg rounded" style="background-image:url('{AlbumArtURL}')"></div>
{/block:AlbumArt}
<div class="inner">{block:Artist}{Artist} – {/block:Artist}{block:TrackName}{TrackName}<br />{/block:TrackName}
{Caption}</div>
</div>
</div>
{/block:Audio}
<!--{/block:Posts}-->
<div class="clear_left"></div>
</div><!-- /.grid -->
<!--{block:IndexPage}-->
</div>
<div id="nav_list">
<h1><a href="/">{Title}</a></h1>
<ul class="faint" id="main_nav">
{block:HasPages}
{block:Pages}
<li><a href="{URL}" class="rounded">{Label}</a></li>
{/block:Pages}
{/block:HasPages}
{block:IfShowAboutInNav}
<li><a href="/#about" class="rounded" id='about-link'>{lang:About}</a></li>
{/block:IfShowAboutInNav}
{block:AskEnabled}
<li><a href="/ask">{AskLabel}</a></li>
{/block:AskEnabled}
{block:SubmissionsEnabled}
<li><a href="/submit">{SubmitLabel}</a></li>
{/block:SubmissionsEnabled}
{block:IfShowFollowingInNav}
<li><a href="/#following" class="rounded">{lang:Following}</a></li>
{/block:IfShowFollowingInNav}
</ul>
<!--{block:IndexPage}-->
<ul id="view_options" class="faint">
</ul>
{block:Pagination}
<ul>
{block:PreviousPage}
<li><a href="{PreviousPage}" class="rounded">← {lang:Previous page}</a></li>
{/block:PreviousPage}
{block:NextPage}
<li><a href="{NextPage}" class="rounded">{lang:Next page} →</a></li>
{/block:NextPage}
</ul>
{/block:Pagination}
<!--{/block:IndexPage}-->
<!--{block:PermalinkPage}-->
<ul class="faint">
<li><a href="/" class="rounded">← {lang:Home}</a></li>
</ul>
<br>
<p>{block:Posts}{lang:Posted on DayOfWeek the DayOfMonthWithSuffix of Month Year at FormattedTime}{/block:Posts}</p>
<br>
<!--{/block:PermalinkPage}-->
</div>
<div id="about" class="hide">
<h2>{lang:About}:</h2>
<div class="copy">
<p>{Description}</p>
</div>
</div>
{block:IfShowFollowingInNav}
<div id="following" class="hide">
<h2>{lang:Following}:</h2>
<div class="following_grid">
<div class="copy">
{block:Following}
{block:Followed}
<div class="i_follow">
<a class="image rounded" style="background-image:url('{FollowedPortraitURL-128}')" href="{FollowedURL}"></a>
<div class="info">
<a href="{FollowedURL}">{FollowedTitle}</a>
</div>
</div>
{/block:Followed}
{/block:Following}
<div class="clear_left"></div>
</div>
</div>
</div>
{/block:IfShowFollowingInNav}
{block:IfDisqusShortname}
<script type="text/javascript">
//<![CDATA[
(function() {
var links = document.getElementsByTagName('a');
var query = '?';
for(var i = 0; i < links.length; i++) {
if(links[i].href.indexOf('#disqus_thread') >= 0) {
query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&';
}
}
document.write('<script charset="utf-8" type="text/javascript" src="http://disqus.com/forums/{text:Disqus Shortname}/get_num_replies.js' + query + '"></' + 'script>');
})();
//]]>
</script>
{/block:IfDisqusShortname}
</body>
</html>