comparison modules/forum/forum-submitted.tpl.php @ 0:ff03f76ab3fe

initial version
author danieleb <danielebarchiesi@me.com>
date Wed, 21 Aug 2013 18:51:11 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:ff03f76ab3fe
1 <?php
2
3 /**
4 * @file
5 * Formats a forum post submission string.
6 *
7 * The submission string indicates when and by whom a topic was submitted.
8 *
9 * Available variables:
10 * - $author: The author of the post.
11 * - $time: How long ago the post was created.
12 * - $topic: An object with the raw data of the post. Potentially unsafe. Be
13 * sure to clean this data before printing.
14 *
15 * @see template_preprocess_forum_submitted()
16 * @see theme_forum_submitted()
17 *
18 * @ingroup themeable
19 */
20 ?>
21 <?php if ($time): ?>
22 <span class="submitted">
23 <?php print t('By !author @time ago', array(
24 '@time' => $time,
25 '!author' => $author,
26 )); ?>
27 </span>
28 <?php else: ?>
29 <?php print t('n/a'); ?>
30 <?php endif; ?>