Projet

Général

Profil

Paste
Télécharger (711 octets) Statistiques
| Branche: | Révision:

root / drupal7 / modules / forum / forum-submitted.tpl.php @ 01dfd3b5

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; ?>