]> git.mxchange.org Git - friendica.git/blobdiff - include/identity.php
vier: fix missing icons
[friendica.git] / include / identity.php
index 2230d98a42f66385948fbf8d6efafd15bda3ecc3..d87d891a5cdf3120ff350542b51602849c28e430 100644 (file)
@@ -4,7 +4,8 @@
  */
 
 require_once('include/forums.php');
-
+require_once('include/bbcode.php');
+require_once("mod/proxy.php");
 
 /**
  *
@@ -108,7 +109,6 @@ if(! function_exists('profile_load')) {
                else
                        $a->page['aside'] .= profile_sidebar($a->profile, $block);
 
-
                /*if(! $block)
                 $a->page['aside'] .= contact_block();*/
 
@@ -199,7 +199,7 @@ if(! function_exists('profile_sidebar')) {
 
                if (($profile['network'] != "") AND ($profile['network'] != NETWORK_DFRN)) {
                        $profile['network_name'] = format_network_name($profile['network'],$profile['url']);
-               } else 
+               } else
                        $profile['network_name'] = "";
 
                call_hooks('profile_sidebar_enter', $profile);
@@ -287,11 +287,11 @@ if(! function_exists('profile_sidebar')) {
                }
 
                // check if profile is a forum
-               if((x($profile['page-flags']) == 2)
-                               || (x($profile['page-flags']) == 5)
-                               || (x($profile['forum']))
-                               || (x($profile['prv']))
-                               || (x($profile['community'])))
+               if((intval($profile['page-flags']) == PAGE_COMMUNITY)
+                               || (intval($profile['page-flags']) == PAGE_PRVGROUP)
+                               || (intval($profile['forum']))
+                               || (intval($profile['prv']))
+                               || (intval($profile['community'])))
                        $account_type = t('Forum');
                else
                        $account_type = "";
@@ -360,6 +360,15 @@ if(! function_exists('profile_sidebar')) {
                        $p[$k] = $v;
                }
 
+               if (isset($p["about"]))
+                       $p["about"] = bbcode($p["about"]);
+
+               if (isset($p["location"]))
+                       $p["location"] = bbcode($p["location"]);
+
+               if (isset($p["photo"]))
+                       $p["photo"] = proxy_url($p["photo"], false, PROXY_SIZE_SMALL);
+
                if($a->theme['template_engine'] === 'internal')
                        $location = template_escape($location);