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