-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.tpl.php
65 lines (53 loc) · 1.94 KB
/
index.tpl.php
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
<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div id="nav">
<?php foreach($view->blogs as $blog_name => $posts): ?>
<a href="#<?php print $blog_name ?>"><img class="avatar" src="blogs/<?php print $blog_name ?>/avatar.png" /></a>
<?php endforeach; ?>
</div>
<div id="main-container">
<div id="main" class="wrapper clearfix">
<?php foreach($view->blogs as $blog_name => $posts): ?>
<article>
<header>
<h1 id="<?php print $blog_name; ?>"><a href="http://<?php print $blog_name ?>.tumblr.com" target="_blank"><img class="avatar" src="blogs/<?php print $blog_name ?>/avatar.png" /><?php print $blog_name; ?>.tumblr.com</a></h1>
<p></p>
</header>
<?php foreach($posts as $post): ?>
<section>
<?php if (isset($post->photos)):?>
<ul>
<?php foreach($post->photos as $i => $photo): ?>
<li><img src="<?php $filepath = sprintf('%s/photo%03d.png', create_post_path($post), $i + 1); print $filepath ?>" style="width: 500px"/></li>
<?php endforeach ?>
</ul>
<?php endif ?>
<div class="caption">
<?php print isset($post->caption) ? $post->caption : '' ?>
</div>
</section>
<?php endforeach ?>
</article>
<?php endforeach?>
</div> <!-- #main -->
</div> <!-- #main-container -->
<div id="footer-container">
<footer class="wrapper">
<h3>footer</h3>
</footer>
</div>
</body>
</html>