diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-12 12:53:32 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-12 12:53:32 +0000 |
commit | ac8dc55c78d5f64b91a1eeda023cd1caff900511 (patch) | |
tree | fab8e17fd6dee907306e0b7c2a76a85dc6dc99bc /views/default | |
parent | 98f831208231f88580cc25fa65971aebe42e827c (diff) | |
download | elgg-ac8dc55c78d5f64b91a1eeda023cd1caff900511.tar.gz elgg-ac8dc55c78d5f64b91a1eeda023cd1caff900511.tar.bz2 |
Alternative river system trial. This is a test.
git-svn-id: https://code.elgg.org/elgg/trunk@2723 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/river/item/list.php | 17 | ||||
-rw-r--r-- | views/default/river/item/wrapper.php | 38 |
2 files changed, 55 insertions, 0 deletions
diff --git a/views/default/river/item/list.php b/views/default/river/item/list.php new file mode 100644 index 000000000..781c18a48 --- /dev/null +++ b/views/default/river/item/list.php @@ -0,0 +1,17 @@ +
+<div class="river_item_list">
+<?php
+
+ if (isset($vars['items']) && is_array($vars['items'])) {
+
+ if (!empty($vars['items']))
+ foreach($vars['items'] as $item) {
+
+ echo elgg_view_river_item($item);
+
+ }
+
+ }
+
+?>
+</div>
\ No newline at end of file diff --git a/views/default/river/item/wrapper.php b/views/default/river/item/wrapper.php new file mode 100644 index 000000000..efa377ceb --- /dev/null +++ b/views/default/river/item/wrapper.php @@ -0,0 +1,38 @@ +<?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-2009
+ * @link http://elgg.com/
+ */
+
+
+?>
+
+ <div class="river_item">
+ <div class="river_<?php echo $vars['item']->type; ?>">
+ <div class="river_<?php echo $vars['item']->subtype; ?>">
+ <div class="river_<?php echo $vars['item']->action_type; ?>">
+ <div class="river_<?php echo $vars['item']->type; ?>_<?php echo $vars['item']->subtype; ?>_<?php echo $vars['item']->action_type; ?>">
+ <span class="river_item_time">
+ <?php
+
+ echo $vars['body'];
+
+ ?>
+ (<?php
+
+ echo friendly_time($vars['item']->posted);
+
+ ?>)
+ </span>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
\ No newline at end of file |