Ticket #3605: node-blog.tpl.php

File node-blog.tpl.php, 1.6 KB (added by koki, 15 years ago)

Blog node template

Line 
1<?php if ($is_front) : ?>
2
3<div class="node<?php print ($sticky) ? " sticky" : ""; ?>">
4 <?php if ($page == 0): ?>
5 <h2><a href="<?php print $node_url ?>" title="Read alone: <?php print $title ?>"><?php print $title ?></a></h2>
6 <?php endif; ?>
7 <?php print $picture ?>
8
9<?php if ($submitted) { ?>
10<span class="submitted">
11<div class="info">
12<?php if ($node->type == 'blog') {
13 print 'Posted to <a href="blog">Haiku Blog-O-Sphere</a> by ' . theme('username', $node) . ' on ' . format_date($node->created);
14 }
15?>
16<?php print '<span class="taxonomy">'. ($submitted ? '&nbsp;&nbsp;&nbsp;Tags:&nbsp;' : '') . $terms .'</span>' ?>
17</div>
18</span>
19<?php } ?>
20
21 <div class="content">
22 <?php print $content ?>
23 </div>
24 <?php if ($links): ?>
25 <?php if ($picture): ?>
26 <br class="clear" />
27 <?php endif; ?>
28 <div class="links"><?php print $links ?></div>
29 <?php endif; ?>
30</div>
31
32<?php else : ?>
33
34<div class="node<?php print ($sticky) ? " sticky" : ""; ?>">
35 <?php if ($page == 0): ?>
36 <h2><a href="<?php print $node_url ?>" title="Read alone: <?php print $title ?>"><?php print $title ?></a></h2>
37 <?php endif; ?>
38 <?php print $picture ?>
39
40 <div class="info">
41<?php {
42 print 'Posted by ' . theme('username', $node) . ' on ' . format_date($node->created) ;
43 }
44?>
45<?php print '<span class="taxonomy">'. ($submitted ? '&nbsp;&nbsp;&nbsp;Tags:&nbsp;' : '') . $terms .'</span>' ?></div>
46 <div class="content">
47 <?php print $content ?>
48 </div>
49 <?php if ($links): ?>
50 <?php if ($picture): ?>
51 <br class="clear" />
52 <?php endif; ?>
53 <div class="links"><?php print $links ?></div>
54 <?php endif; ?>
55</div>
56
57<?php endif; ?>