diff options
author | Friendika <info@friendika.com> | 2011-09-06 00:55:24 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-09-06 00:55:24 -0700 |
commit | eeecb412aa9296be1f61e99db7695e672b08861f (patch) | |
tree | 9e1203ff52da3ba17d723779f31115060ea85961 /mod | |
parent | 6eb6b8f9694b86eb976070bdb7d56feaea838647 (diff) | |
download | volse-hubzilla-eeecb412aa9296be1f61e99db7695e672b08861f.tar.gz volse-hubzilla-eeecb412aa9296be1f61e99db7695e672b08861f.tar.bz2 volse-hubzilla-eeecb412aa9296be1f61e99db7695e672b08861f.zip |
view bookmarks
Diffstat (limited to 'mod')
-rw-r--r-- | mod/network.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/mod/network.php b/mod/network.php index 1434f5d31..624fb8793 100644 --- a/mod/network.php +++ b/mod/network.php @@ -14,6 +14,9 @@ function network_init(&$a) { $a->page['aside'] = ''; $search = ((x($_GET,'search')) ? escape_tags($_GET['search']) : ''); + + // We need a better way of managing a growing argument list + $srchurl = '/network' . ((x($_GET,'cid')) ? '?cid=' . $_GET['cid'] : '') . ((x($_GET,'star')) ? '?star=' . $_GET['star'] : '') @@ -44,8 +47,9 @@ function network_init(&$a) { $a->page['aside'] .= '<div id="network-view-link">'; - if(($a->argc > 1 && $a->argv[1] === 'new') || ($a->argc > 2 && $a->argv[2] === 'new') || x($_GET,'search')) + if(($a->argc > 1 && $a->argv[1] === 'new') || ($a->argc > 2 && $a->argv[2] === 'new') || x($_GET,'search')) { $a->page['aside'] .= '<a href="' . $a->get_baseurl() . '/' . str_replace('/new', '', $a->cmd) . ((x($_GET,'cid')) ? '?cid=' . $_GET['cid'] : '') . '">' . t('View Conversations') . '</a></div>'; + } else { $a->page['aside'] .= '<a href="' . $a->get_baseurl() . '/' . $a->cmd . '/new' . ((x($_GET,'cid')) ? '/?cid=' . $_GET['cid'] : '') . '">' . t('View New Items') . '</a></div>'; @@ -65,6 +69,14 @@ function network_init(&$a) { . '<span class="network-star icon starred"></span>' . '<div class="clear"></div></div>'; + if(! $_GET['bmark']) + $a->page['aside'] .= '<div id="network-bmark-link">' + . '<a class="network-bmark" href="' . $a->get_baseurl() . '/' . $a->cmd + . ((x($_GET,'cid')) ? '/?cid=' . $_GET['cid'] : '') . '&bmark=1" >' + . t('View Bookmarks') . '</a>' + . '<div class="clear"></div></div>'; + + } $a->page['aside'] .= '</div>'; |