more nav_set_selected apps
This commit is contained in:
parent
1bdcfe5219
commit
27678a523c
@ -29,6 +29,8 @@ class Connections extends \Zotlabs\Web\Controller {
|
||||
notice( t('Permission denied.') . EOL);
|
||||
return login();
|
||||
}
|
||||
|
||||
nav_set_selected(t('Connections'));
|
||||
|
||||
$blocked = false;
|
||||
$hidden = false;
|
||||
@ -71,7 +73,6 @@ class Connections extends \Zotlabs\Web\Controller {
|
||||
$search_flags = " and abook_pending = 1 ";
|
||||
$head = t('New');
|
||||
$pending = true;
|
||||
nav_set_selected('intros');
|
||||
break;
|
||||
case 'ifpending':
|
||||
$r = q("SELECT COUNT(abook.abook_id) AS total FROM abook left join xchan on abook.abook_xchan = xchan.xchan_hash where abook_channel = %d and abook_pending = 1 and abook_self = 0 and abook_ignored = 0 and xchan_deleted = 0 and xchan_orphan = 0 ",
|
||||
@ -81,7 +82,6 @@ class Connections extends \Zotlabs\Web\Controller {
|
||||
$search_flags = " and abook_pending = 1 ";
|
||||
$head = t('New');
|
||||
$pending = true;
|
||||
nav_set_selected('intros');
|
||||
\App::$argv[1] = 'pending';
|
||||
}
|
||||
else {
|
||||
@ -91,7 +91,6 @@ class Connections extends \Zotlabs\Web\Controller {
|
||||
\App::$argc = 1;
|
||||
unset(\App::$argv[1]);
|
||||
}
|
||||
nav_set_selected('intros');
|
||||
break;
|
||||
// case 'unconnected':
|
||||
// $search_flags = " and abook_unconnected = 1 ";
|
||||
|
@ -77,7 +77,7 @@ class Directory extends \Zotlabs\Web\Controller {
|
||||
$pubforums = get_directory_setting($observer, 'pubforums');
|
||||
|
||||
$o = '';
|
||||
nav_set_selected('directory');
|
||||
nav_set_selected(t('Directory'));
|
||||
|
||||
if(x($_POST,'search'))
|
||||
$search = notags(trim($_POST['search']));
|
||||
|
@ -272,7 +272,7 @@ class Events extends \Zotlabs\Web\Controller {
|
||||
return;
|
||||
}
|
||||
|
||||
nav_set_selected('all_events');
|
||||
nav_set_selected(t('Events'));
|
||||
|
||||
if((argc() > 2) && (argv(1) === 'ignore') && intval(argv(2))) {
|
||||
$r = q("update event set dismissed = 1 where id = %d and uid = %d",
|
||||
|
@ -15,7 +15,7 @@ require_once('include/help.php');
|
||||
class Help extends \Zotlabs\Web\Controller {
|
||||
|
||||
function get() {
|
||||
nav_set_selected('help');
|
||||
nav_set_selected(t('Help'));
|
||||
|
||||
if($_REQUEST['search']) {
|
||||
$o .= '<div id="help-content" class="generic-content-wrapper">';
|
||||
|
@ -554,6 +554,8 @@ class Photos extends \Zotlabs\Web\Controller {
|
||||
$sql_item = item_permissions_sql($owner_uid,get_observer_hash());
|
||||
$sql_extra = permissions_sql($owner_uid,get_observer_hash(),'photo');
|
||||
$sql_attach = permissions_sql($owner_uid,get_observer_hash(),'attach');
|
||||
|
||||
nav_set_selected(t('Photos'));
|
||||
|
||||
$o = "";
|
||||
|
||||
|
@ -244,6 +244,8 @@ class Browser extends DAV\Browser\Plugin {
|
||||
|
||||
$a = false;
|
||||
|
||||
nav_set_selected(t('Files'));
|
||||
|
||||
\App::$page['content'] = $html;
|
||||
load_pdl();
|
||||
|
||||
|
Reference in New Issue
Block a user