]> git.mxchange.org Git - friendica.git/commitdiff
post/comment order options
authorFriendika <info@friendika.com>
Tue, 18 Oct 2011 01:24:23 +0000 (18:24 -0700)
committerFriendika <info@friendika.com>
Tue, 18 Oct 2011 01:24:23 +0000 (18:24 -0700)
mod/network.php

index 5aa39bf638c2d63b6a56e944c2142a59dae08522..9ab34ebb053f4ec78e6d222f84e6d85d0e3a0f24 100644 (file)
@@ -133,14 +133,28 @@ 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'] : ''),