diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-08-29 04:16:15 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-08-29 04:16:15 +0000 |
commit | 770e0d54f9c5b33c4d01b5cefe652b61b132dc0c (patch) | |
tree | 1f4e71de273adab60b46791aad3beb673c3b05a1 /modules/node/node.tpl.php | |
parent | 5c5b3a149a928b4c6761a0b9161d383a83677ec7 (diff) | |
download | brdo-770e0d54f9c5b33c4d01b5cefe652b61b132dc0c.tar.gz brdo-770e0d54f9c5b33c4d01b5cefe652b61b132dc0c.tar.bz2 |
#364470 by stBorchert and JohnAlbin: Made theming of 'Submitted by author, on date' easier.
Diffstat (limited to 'modules/node/node.tpl.php')
-rw-r--r-- | modules/node/node.tpl.php | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/modules/node/node.tpl.php b/modules/node/node.tpl.php index 6ca204a5d..c3aa23539 100644 --- a/modules/node/node.tpl.php +++ b/modules/node/node.tpl.php @@ -17,8 +17,7 @@ * - $name: Themed username of node author output from theme_username(). * - $node_url: Direct url of the current node. * - $terms: the themed list of taxonomy term links output from theme_links(). - * - $submitted: themed submission information output from - * theme_node_submitted(). + * - $display_submitted: whether submission information should be displayed. * - $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: @@ -79,10 +78,15 @@ <h2><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2> <?php endif; ?> - <?php if ($submitted || !empty($content['links']['terms'])): ?> + <?php if ($display_submitted || !empty($content['links']['terms'])): ?> <div class="meta"> - <?php if ($submitted): ?> - <span class="submitted"><?php print $submitted; ?></span> + <?php if ($display_submitted): ?> + <span class="submitted"> + <?php + print t('Submitted by !username on @datetime', + array('!username' => $name, '@datetime' => $date)); + ?> + </span> <?php endif; ?> <?php if (!empty($content['links']['terms'])): ?> |