]> git.mxchange.org Git - friendica.git/commitdiff
move friend suggestions to top of contact page, add default contact profile photos...
authorfriendica <info@friendica.com>
Tue, 20 Mar 2012 23:05:32 +0000 (16:05 -0700)
committerfriendica <info@friendica.com>
Tue, 20 Mar 2012 23:05:32 +0000 (16:05 -0700)
mod/contacts.php
mod/photo.php

index 78c8d40928c2b6461d2faa35539356a9d1128ee2..8aa51d00ae471cea524192f33eb5c6a0dd9b0c38 100755 (executable)
@@ -395,6 +395,11 @@ function contacts_content(&$a) {
        $nets = ((x($_GET,'nets')) ? notags(trim($_GET['nets'])) : '');
 
        $tabs = array(
+               array(
+                       'label' => t('Suggestions'),
+                       'url'   => $a->get_baseurl(true) . '/suggest', 
+                       'sel'   => '',
+               ),
                array(
                        'label' => t('All Contacts'),
                        'url'   => $a->get_baseurl(true) . '/contacts/all', 
index 4afdd366a4083af0f0d40e0213fdd4217803fcbc..3a702512005789bd187440d8cba585114b565641 100755 (executable)
@@ -115,8 +115,24 @@ function photo_init(&$a) {
        }
 
        if(! isset($data)) {
-               killme();
-               // NOTREACHED
+               if(isset($resolution)) {
+                       switch($resolution) {
+
+                               case 4:
+                                       $data = file_get_contents('images/person-175.jpg');
+                                       break;
+                               case 5:
+                                       $data = file_get_contents('images/person-80.jpg');
+                                       break;
+                               case 6:
+                                       $data = file_get_contents('images/person-48.jpg');
+                                       break;
+                               default:
+                                       killme();
+                                       // NOTREACHED
+                                       break;
+                       }
+               }
        }
 
        if(isset($customres) && $customres > 0 && $customres < 500) {