aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-08 15:20:12 -0800
committerfriendica <info@friendica.com>2014-01-08 15:20:12 -0800
commit79102218324e794bb7096e682d61841b570fc411 (patch)
treea6a9918b5d4a750fff4b932ecc1066db56ed8d30 /include/conversation.php
parentf1d6d5883238cec7384b5ac6b00b5d0321ecece5 (diff)
downloadvolse-hubzilla-79102218324e794bb7096e682d61841b570fc411.tar.gz
volse-hubzilla-79102218324e794bb7096e682d61841b570fc411.tar.bz2
volse-hubzilla-79102218324e794bb7096e682d61841b570fc411.zip
preparatory work for supporting a "list view" mode for conversations. This would be useful for forum-like channels and/or block-oriented themes.
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 99252027d..62db34974 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -782,6 +782,9 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional', $
// $tx1 = dba_timer();
$item_object = new Item($item);
$conv->add_thread($item_object);
+ if($page_mode === 'list')
+ $item_object->set_template('conv_list.tpl');
+
// $tx2 = dba_timer();
// if($mode === 'network')
// profiler($tx1,$tx2,'add thread ' . $item['id']);