]> git.mxchange.org Git - friendica.git/blobdiff - mod/directory.php
Issue 1779: There is now an atom feed link under the connect link on the profile...
[friendica.git] / mod / directory.php
index 46c4f38ad3f8cdf94fbf1eb01355f481b68b71b1..ad1d403f4d7d31ce9bf89dff014f48293265e702 100644 (file)
@@ -6,10 +6,10 @@ function directory_init(&$a) {
        if(local_user()) {
                require_once('include/contact_widgets.php');
 
-               $a->page['aside'] .= follow_widget();
-
                $a->page['aside'] .= findpeople_widget();
 
+               $a->page['aside'] .= follow_widget();
+
        }
        else {
                unset($_SESSION['theme']);
@@ -152,12 +152,14 @@ function directory_content(&$a) {
                        else {
                                $location_e = $location;
                        }
+                       
+                       $photo_menu = array(array(t("View Profile"), zrl($profile_link)));
 
                        $entry = array(
                                'id' => $rr['id'],
-                               'profile_link' => $profile_link,
-                               'photo' => proxy_url($a->get_cached_avatar_image($rr[$photo]), false, PROXY_SIZE_THUMB),
-                               'alt_text' => $rr['name'],
+                               'url' => $profile_link,
+                               'thumb' => proxy_url($a->get_cached_avatar_image($rr[$photo]), false, PROXY_SIZE_THUMB),
+                               'img_hover' => $rr['name'],
                                'name' => $rr['name'],
                                'details' => $pdesc . $details,
                                'page_type' => $page_type,
@@ -168,6 +170,7 @@ function directory_content(&$a) {
                                'marital'  => $marital,
                                'homepage' => $homepage,
                                'about' => $about,
+                               'photo_menu' => $photo_menu,
 
                        );
 
@@ -192,7 +195,7 @@ function directory_content(&$a) {
                        '$globaldir' => t('Global Directory'),
                        '$gdirpath' => $gdirpath,
                        '$desc' => t('Find on this site'),
-                       '$entries' => $entries,
+                       '$contacts' => $entries,
                        '$finding' => t('Finding:'),
                        '$findterm' => (strlen($search) ? $search : ""),
                        '$title' => t('Site Directory'),