-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnode-news.tpl.php
41 lines (33 loc) · 1.29 KB
/
node-news.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
<?php
// default? need to delete if use default template
?>
<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
<div class="VoteHead">
<div class="PostHeadTitle <?php print('node-'.$node->type);?>">
<?php print render($title_prefix); ?>
<?php if($page):?>
<h2 class="title"<?php print $title_attributes; ?>><?php print $news_prefix.': '.$title; ?></h2>
<?php else:?>
<h2 <?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $news_prefix.': '.$title; ?></a></h2>
<?php endif?>
<?php if ($display_submitted): ?>
<div class="submitted">
<?php if(isset($paper_authors)) print('<p>'.$paper_authors.'</p>'); ?>
<?php print ('<p>'.$submitted.'</p>'); ?>
<?php if(isset($download))print('<p>'.$download.'</p>'); ?>
</div>
<?php endif; ?>
<?php print render($title_suffix); ?>
</div>
</div>
<div class="content"<?php print $content_attributes; ?>>
<?php
// We hide the comments and links now so that we can render them later.
if(isset($content['plus1_widget'])) hide($content['plus1_widget']);
hide($content['comments']);
hide($content['links']);
print render($content);
?>
</div>
<?php print render($content['comments']); ?>
</div>