aboutsummaryrefslogtreecommitdiffstats
path: root/mod/network.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-10-17 18:24:23 -0700
committerFriendika <info@friendika.com>2011-10-17 18:24:23 -0700
commit0f24f3b5057b7b91d564eb6d9c66d76dd3507fc1 (patch)
tree69388bfecfc420a257cde52f881a3fd63f7e8c0e /mod/network.php
parent42a9817350ec0edd134a13e7af4c904ad5890147 (diff)
downloadvolse-hubzilla-0f24f3b5057b7b91d564eb6d9c66d76dd3507fc1.tar.gz
volse-hubzilla-0f24f3b5057b7b91d564eb6d9c66d76dd3507fc1.tar.bz2
volse-hubzilla-0f24f3b5057b7b91d564eb6d9c66d76dd3507fc1.zip
post/comment order options
Diffstat (limited to 'mod/network.php')
-rw-r--r--mod/network.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/mod/network.php b/mod/network.php
index 5aa39bf63..9ab34ebb0 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -133,15 +133,29 @@ function network_content(&$a, $update = 0) {
&& ($search_active == '')) {
$all_active = 'active';
}
+ $postord_active = '';
+
+ if($all_active && x($_GET,'order') && $_GET['order'] !== 'comment') {
+ $all_active = '';
+ $postord_active = 'active';
+ }
+
+
// tabs
$tabs = array(
array(
- 'label' => t('All'),
+ 'label' => t('Commented Order'),
'url'=>$a->get_baseurl() . '/' . str_replace('/new', '', $a->cmd) . ((x($_GET,'cid')) ? '?cid=' . $_GET['cid'] : ''),
'sel'=>$all_active,
),
array(
+ 'label' => t('Posted Order'),
+ 'url'=>$a->get_baseurl() . '/' . str_replace('/new', '', $a->cmd) . '?order=post' . ((x($_GET,'cid')) ? '?cid=' . $_GET['cid'] : ''),
+ 'sel'=>$postord_active,
+ ),
+
+ array(
'label' => t('New'),
'url' => $a->get_baseurl() . '/' . str_replace('/new', '', $a->cmd) . '/new' . ((x($_GET,'cid')) ? '/?cid=' . $_GET['cid'] : ''),
'sel' => $new_active,