X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fidentity.php;h=2dbf34587d1f0debcad45f2ffec0d1e1afc1855d;hb=c3ae4a03bb84dded24ce2643b58466f0abedf437;hp=b5791ba1e90672f75f8b8f61190c4c20bc808485;hpb=e61d6e030eefa00685020f44601d3363814a5dae;p=friendica.git diff --git a/include/identity.php b/include/identity.php index b5791ba1e9..2dbf34587d 100644 --- a/include/identity.php +++ b/include/identity.php @@ -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); @@ -360,6 +360,15 @@ if(! function_exists('profile_sidebar')) { $p[$k] = $v; } + if (isset($p["about"])) + $p["about"] = bbcode($p["about"]); + + if (isset($p["address"])) + $p["address"] = bbcode($p["address"]); + + if (isset($p["photo"])) + $p["photo"] = proxy_url($p["photo"], false, PROXY_SIZE_SMALL); + if($a->theme['template_engine'] === 'internal') $location = template_escape($location);