X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fdirectory.php;h=5f00b4f5a4a9ced5703cf8f26cd22cdb9f82390d;hb=7f2070ca91aca9e92f3ac4c5b714742c6f9ecc3b;hp=dfe8ec0d95f50e8a70ceaf5f6a3af53f68531cf6;hpb=4cff911939b263993eb41682ca558c975e2db01f;p=friendica.git diff --git a/mod/directory.php b/mod/directory.php index dfe8ec0d95..5f00b4f5a4 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -2,6 +2,17 @@ function directory_init(&$a) { $a->set_pager_itemspage(60); + + if(local_user()) { + require_once('include/contact_widgets.php'); + + $a->page['aside'] .= findpeople_widget(); + + } + else + unset($_SESSION['theme']); + + } @@ -22,9 +33,7 @@ function directory_content(&$a) { } $o = ''; - $o .= ''; - if(x($_SESSION,'theme')) - unset($_SESSION['theme']); + nav_set_selected('directory'); if(x($a->data,'search')) $search = notags(trim($a->data['search'])); @@ -45,12 +54,13 @@ function directory_content(&$a) { if($everything) $admin = ''; else - $admin = ''; + $admin = ''; } $o .= replace_macros($tpl, array( '$search' => $search, '$globaldir' => $globaldir, + '$desc' => t('Find on this site'), '$admin' => $admin, '$finding' => (strlen($search) ? '

' . t('Finding: ') . "'" . $search . "'" . '

' : ""), '$sitedir' => t('Site Directory'), @@ -138,7 +148,7 @@ function directory_content(&$a) { } else - notice( t("No entries \x28some entries may be hidden\x29.") . EOL); + info( t("No entries \x28some entries may be hidden\x29.") . EOL); return $o; -} \ No newline at end of file +}