summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.26/modules/forum/forum-submitted.tpl.php
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.26/modules/forum/forum-submitted.tpl.php')
-rw-r--r--kolab.org/www/drupal-7.26/modules/forum/forum-submitted.tpl.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/kolab.org/www/drupal-7.26/modules/forum/forum-submitted.tpl.php b/kolab.org/www/drupal-7.26/modules/forum/forum-submitted.tpl.php
new file mode 100644
index 0000000..18fea8f
--- /dev/null
+++ b/kolab.org/www/drupal-7.26/modules/forum/forum-submitted.tpl.php
@@ -0,0 +1,30 @@
+<?php
+
+/**
+ * @file
+ * Formats a forum post submission string.
+ *
+ * The submission string indicates 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. Potentially unsafe. Be
+ * sure to clean this data before printing.
+ *
+ * @see template_preprocess_forum_submitted()
+ * @see theme_forum_submitted()
+ *
+ * @ingroup themeable
+ */
+?>
+<?php if ($time): ?>
+ <span class="submitted">
+ <?php print t('By !author @time ago', array(
+ '@time' => $time,
+ '!author' => $author,
+ )); ?>
+ </span>
+<?php else: ?>
+ <?php print t('n/a'); ?>
+<?php endif; ?>