summaryrefslogtreecommitdiff
path: root/modules/node/node.tpl.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/node/node.tpl.php')
-rw-r--r--modules/node/node.tpl.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/node/node.tpl.php b/modules/node/node.tpl.php
index aa470f850..c05d7e8bf 100644
--- a/modules/node/node.tpl.php
+++ b/modules/node/node.tpl.php
@@ -18,6 +18,7 @@
* - $node_url: Direct url of the current node.
* - $terms: the themed list of taxonomy term links output from theme_links().
* - $display_submitted: whether submission information should be displayed.
+ * - $contextual_links (array): An array of contextual links for the node.
* - $classes: String of classes that can be used to style contextually through
* CSS. It can be manipulated through the variable $classes_array from
* preprocess functions. The default values can be one or more of the following:
@@ -74,6 +75,10 @@
<?php print $user_picture; ?>
+ <?php if (!$page && $contextual_links): ?>
+ <?php print render($contextual_links); ?>
+ <?php endif; ?>
+
<?php if (!$page): ?>
<h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $node_title; ?></a></h2>
<?php endif; ?>