Mercurial > defr > drupal > core
comparison modules/forum/forum-submitted.tpl.php @ 1:c1f4ac30525a 6.0
Drupal 6.0
| author | Franck Deroche <webmaster@defr.org> |
|---|---|
| date | Tue, 23 Dec 2008 14:28:28 +0100 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 0:5a113a1c4740 | 1:c1f4ac30525a |
|---|---|
| 1 <?php | |
| 2 // $Id: forum-submitted.tpl.php,v 1.3 2007/08/07 08:39:35 goba Exp $ | |
| 3 | |
| 4 /** | |
| 5 * @file forum-submitted.tpl.php | |
| 6 * Default theme implementation to format a simple string indicated when and | |
| 7 * by whom a topic was submitted. | |
| 8 * | |
| 9 * Available variables: | |
| 10 * | |
| 11 * - $author: The author of the post. | |
| 12 * - $time: How long ago the post was created. | |
| 13 * - $topic: An object with the raw data of the post. Unsafe, be sure | |
| 14 * to clean this data before printing. | |
| 15 * | |
| 16 * @see template_preprocess_forum_submitted() | |
| 17 * @see theme_forum_submitted() | |
| 18 */ | |
| 19 ?> | |
| 20 <?php if ($time): ?> | |
| 21 <?php print t( | |
| 22 '@time ago<br />by !author', array( | |
| 23 '@time' => $time, | |
| 24 '!author' => $author, | |
| 25 )); ?> | |
| 26 <?php else: ?> | |
| 27 <?php print t('n/a'); ?> | |
| 28 <?php endif; ?> |
