aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-19 18:32:35 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-19 18:32:35 +0000
commitdd10d397db7725f87cac92ddfb862ae13b2388cb (patch)
tree05074747939c2040a24e44a1315ab25b7d39af43 /views
parent33bd12ba604a9345974da3097c3a960b9597003f (diff)
downloadelgg-dd10d397db7725f87cac92ddfb862ae13b2388cb.tar.gz
elgg-dd10d397db7725f87cac92ddfb862ae13b2388cb.tar.bz2
Modified river functions to use a common wrapper
git-svn-id: https://code.elgg.org/elgg/trunk@1004 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views')
-rw-r--r--views/default/river/wrapper.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/views/default/river/wrapper.php b/views/default/river/wrapper.php
new file mode 100644
index 000000000..804f4a198
--- /dev/null
+++ b/views/default/river/wrapper.php
@@ -0,0 +1,33 @@
+<?php
+
+ /**
+ * Elgg river item wrapper.
+ * Wraps all river items.
+ *
+ * @package Elgg
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.com/
+ */
+
+?>
+
+<div class="river_item">
+
+ <p class="river_<?php echo $vars['log']->object_class; ?>_<?php echo $vars['log']->event; ?>">
+ <?php
+
+ echo $vars['entry'];
+
+ ?>
+ <span class="river_item_time">
+ (<?php
+
+ echo friendly_time($vars['log']->time_created);
+
+ ?>)
+ </span>
+ </p>
+
+</div> \ No newline at end of file