aboutsummaryrefslogtreecommitdiffstats
path: root/mod
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 /mod
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 'mod')
-rw-r--r--mod/channel.php1
-rw-r--r--mod/display.php1
-rw-r--r--mod/network.php1
-rw-r--r--mod/search.php1
4 files changed, 4 insertions, 0 deletions
diff --git a/mod/channel.php b/mod/channel.php
index 149936dd7..838107b96 100644
--- a/mod/channel.php
+++ b/mod/channel.php
@@ -233,6 +233,7 @@ function channel_content(&$a, $update = 0, $load = false) {
'$page' => (($a->pager['page'] != 1) ? $a->pager['page'] : 1),
'$search' => '',
'$order' => '',
+ '$list' => ((x($_REQUEST,'list')) ? intval($_REQUEST['list']) : 0),
'$file' => '',
'$cats' => (($category) ? $category : ''),
'$mid' => '',
diff --git a/mod/display.php b/mod/display.php
index 65114272a..b20eb3e4f 100644
--- a/mod/display.php
+++ b/mod/display.php
@@ -125,6 +125,7 @@ function display_content(&$a, $update = 0, $load = false) {
'$nouveau' => '0',
'$wall' => '0',
'$page' => (($a->pager['page'] != 1) ? $a->pager['page'] : 1),
+ '$list' => ((x($_REQUEST,'list')) ? intval($_REQUEST['list']) : 0),
'$search' => '',
'$order' => '',
'$file' => '',
diff --git a/mod/network.php b/mod/network.php
index 7f67f62d0..191fe55ed 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -237,6 +237,7 @@ function network_content(&$a, $update = 0, $load = false) {
'$spam' => (($spam) ? $spam : '0'),
'$nouveau' => (($nouveau) ? $nouveau : '0'),
'$wall' => '0',
+ '$list' => ((x($_REQUEST,'list')) ? intval($_REQUEST['list']) : 0),
'$page' => (($a->pager['page'] != 1) ? $a->pager['page'] : 1),
'$search' => (($search) ? $search : ''),
'$order' => $order,
diff --git a/mod/search.php b/mod/search.php
index 32c8ca38e..d13c613c2 100644
--- a/mod/search.php
+++ b/mod/search.php
@@ -96,6 +96,7 @@ function search_content(&$a,$update = 0, $load = false) {
'$spam' => '0',
'$nouveau' => '0',
'$wall' => '0',
+ '$list' => ((x($_REQUEST,'list')) ? intval($_REQUEST['list']) : 0),
'$page' => (($a->pager['page'] != 1) ? $a->pager['page'] : 1),
'$search' => (($tag) ? urlencode('#') : '') . $search,
'$order' => '',