1
|
|
2
|
|
3
|
|
4
|
<div class="node<?php if ($sticky&&$page == 0) { print " sticky"; } ?><?php if (!$status) { print " node-unpublished"; } ?> clear-block <?php if ($page == 0) { ?>node-in-list<?php }; ?>">
|
5
|
|
6
|
|
7
|
|
8
|
|
9
|
<?php if ($page == 0) { ?><h2 class="title"><a href="<?php print $node_url?>"><?php print $title?></a>
|
10
|
|
11
|
|
12
|
<?php
|
13
|
// if user can't read comments, we set comment number to 0
|
14
|
$comment_num = $node -> comment ? comment_num_all($node->nid) : 0;
|
15
|
?>
|
16
|
|
17
|
<?php if($comment_num > 0 || $node -> comment != 0 ): ?>
|
18
|
<span class="comment-cloud">
|
19
|
<?php if ($comment_num == 0 && ($node -> comment == 2)): ?>
|
20
|
|
21
|
<a href="<?php echo url('comment/reply/' . $node -> nid, array('fragment' => 'comment-form' ));?>"><img src="<?php echo base_path() . path_to_theme() ?>/images/plus.gif" alt="+" /></a>
|
22
|
|
23
|
<?php elseif($comment_num != 0): ?>
|
24
|
<?php echo l($comment_num, 'node/' . $node->nid, array('fragment' => 'comments'));?>
|
25
|
<?php endif; ?>
|
26
|
</span>
|
27
|
<?php endif; ?>
|
28
|
|
29
|
|
30
|
|
31
|
|
32
|
|
33
|
</h2><?php }; ?>
|
34
|
|
35
|
|
36
|
<?php if ($page != 0) { ?><div class="supermitted"><span class="submitted"><?php print $submitted?></span></div><?php }; ?>
|
37
|
|
38
|
|
39
|
<div class="content clear-block">
|
40
|
|
41
|
|
42
|
|
43
|
|
44
|
|
45
|
<?php if ($page != 0) { ?><?php if ($picture) { print $picture; }?><?php }; ?>
|
46
|
|
47
|
<?php print $content?></div>
|
48
|
|
49
|
|
50
|
|
51
|
<?php if ($terms): ?><div class="taxonomy">+ <?php print $terms?></div><?php endif; ?>
|
52
|
|
53
|
<?php if ($links) { ?><div class="links-to-left"><div class="links"><?php print $links?></div></div><?php }; ?>
|
54
|
<?php if ($page == 0) { ?><div class="submitted-to-right"><span class="submitted"><?php print $submitted?></span></div><?php }; ?>
|
55
|
|
56
|
</div>
|