X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fdirectory.php;h=06aeec622fffb5d0af21d163b12edeb8f6c6bae3;hb=46ba1a46f5b7b84f6e94fdbdbe87c4f1f320c90f;hp=625f6c95aca781eee24e1a3f895361f8c455e1b6;hpb=507f8ab4dfb1a31c97160f6f4ed1315f548d2642;p=friendica.git diff --git a/mod/directory.php b/mod/directory.php index 625f6c95ac..06aeec622f 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -99,7 +99,6 @@ function directory_content(&$a) { foreach($r as $rr) { - $community = ''; $itemurl= ''; $itemurl = (($rr['addr'] != "") ? $rr['addr'] : $rr['profile_url']); @@ -128,13 +127,6 @@ function directory_content(&$a) { // if(strlen($rr['gender'])) // $details .= '
' . t('Gender: ') . $rr['gender']; - - // show if account is a community account - /// @TODO The other page types should be also respected, but first we need a good - /// translatiion and systemwide consistency for displaying the page type - if((intval($rr['page-flags']) == PAGE_COMMUNITY) OR (intval($rr['page-flags']) == PAGE_PRVGROUP)) - $community = true; - $profile = $rr; if((x($profile,'address') == 1) @@ -159,7 +151,9 @@ function directory_content(&$a) { $location_e = $location; } - $photo_menu = array(array(t("View Profile"), zrl($profile_link))); + $photo_menu = array( + 'profile' => array(t("View Profile"), zrl($profile_link)) + ); $entry = array( 'id' => $rr['id'], @@ -169,7 +163,7 @@ function directory_content(&$a) { 'img_hover' => $rr['name'], 'name' => $rr['name'], 'details' => $details, - 'account_type' => ($community ? t('Forum') : ''), + 'account_type' => account_type($rr), 'profile' => $profile, 'location' => $location_e, 'tags' => $rr['pub_keywords'], @@ -204,7 +198,7 @@ function directory_content(&$a) { '$gdirpath' => $gdirpath, '$desc' => t('Find on this site'), '$contacts' => $entries, - '$finding' => t('Finding:'), + '$finding' => t('Results for:'), '$findterm' => (strlen($search) ? $search : ""), '$title' => t('Site Directory'), '$submit' => t('Find'),