blob: 747cf83752b98a463097f2f6b8bb6ebd8ab5745b (
plain)
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
|
<?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; ?>
|