diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-07-26 06:48:03 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-07-26 06:48:03 +0000 |
commit | bec12a215d52a391f7e2a625092f5d0e33cba28f (patch) | |
tree | 0358e83e425b1ea2fddd82a7a3c4eff57ad96f28 /modules/forum/forum-submitted.tpl.php | |
parent | 9299b401071cef4601c01776a743726c0f4dab06 (diff) | |
download | brdo-bec12a215d52a391f7e2a625092f5d0e33cba28f.tar.gz brdo-bec12a215d52a391f7e2a625092f5d0e33cba28f.tar.bz2 |
- Patch #158536 by dvessel: some more gentle massaging of template files. Trying to make it easier to discover the different template files.
Diffstat (limited to 'modules/forum/forum-submitted.tpl.php')
-rw-r--r-- | modules/forum/forum-submitted.tpl.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/modules/forum/forum-submitted.tpl.php b/modules/forum/forum-submitted.tpl.php new file mode 100644 index 000000000..79580c3aa --- /dev/null +++ b/modules/forum/forum-submitted.tpl.php @@ -0,0 +1,27 @@ +<?php +// $Id$ +/** + * @file forum-submitted.tpl.php + * Default theme implementation to format a simple string indicated when and + * by whom a topic was submitted. + * + * Available variables: + * + * - $author: The author of the post. + * - $time: How long ago the post was created. + * - $topic: An object with the raw data of the post. Unsafe, be sure + * to clean this data before printing. + * + * @see template_preprocess_forum_submitted() + * @see theme_forum_submitted() + */ +?> +<?php if ($time): ?> + <?php print t( + '@time ago<br />by !author', array( + '@time' => $time, + '!author' => $author, + )); ?> +<?php else: ?> + <?php print t('n/a'); ?> +<?php endif; ?> |