-
Notifications
You must be signed in to change notification settings - Fork 0
/
node-nodeblock-default.tpl.php
49 lines (41 loc) · 1.52 KB
/
node-nodeblock-default.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
<?php
// $Id: node-nodeblock-default.tpl.php,v 1.1 2009/04/01 03:12:10 rz Exp $
/**
* @file node-nodeblock-default.tpl.php
*
* Theme implementation to display a nodeblock enabled block. This template is
* provided as a default implementation that will be called if no other node
* template is provided. Any node-[type] templates defined by the theme will
* take priority over this template. Also, a theme can override this template
* file to provide its own default nodeblock theme.
*
* Additional variables:
* - $nodeblock: Flag for the nodeblock context.
*/
?>
<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
<?php print $user_picture; ?>
<?php print render($title_prefix); ?>
<?php if (!$page && !$nodeblock): ?>
<h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
<?php endif; ?>
<?php print render($title_suffix); ?>
<?php if ($display_submitted): ?>
<div class="submitted">
<?php
print t('Submitted by !username on !datetime',
array('!username' => $name, '!datetime' => $date));
?>
</div>
<?php endif; ?>
<div class="content"<?php print $content_attributes; ?>>
<?php
// We hide the comments and links now so that we can render them later.
hide($content['comments']);
hide($content['links']);
print render($content);
?>
</div>
<?php print render($content['links']); ?>
<?php print render($content['comments']); ?>
</div>