X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fdirectory.php;h=5f00b4f5a4a9ced5703cf8f26cd22cdb9f82390d;hb=6a8b96709e13b04a0657c25b4538c160e2118131;hp=0c60f04bf4be14cb8ff4a2b29363047813405924;hpb=19ccd658ebcf13a7cc208a3e460e44d152dda32f;p=friendica.git diff --git a/mod/directory.php b/mod/directory.php index 0c60f04bf4..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'),