]> git.mxchange.org Git - friendica.git/blobdiff - mod/photos.php
photos-albms widget: add some classes
[friendica.git] / mod / photos.php
index 3f8d3afafeaa5418583b635879a975215dab282e..6b97d7d4fb42bbb2231a91dbed4a0aa92b197e43 100644 (file)
@@ -37,18 +37,19 @@ function photos_init(&$a) {
 
                $profile = get_profiledata_by_nick($nick, $a->profile_uid);
 
-               if((x($profile['page-flags']) == 1)
-                               || (x($profile['page-flags']) == 2)
-                               || (x($profile['page-flags']) == 5))
-                       $account_type = page_type_translate($profile['page-flags']);
+               if((x($profile['page-flags']) == 2) || (x($profile['page-flags']) == 5))
+                       $account_type = t('Forum');
+               else
+                       $account_type = "";
 
                $tpl = get_markup_template("vcard-widget.tpl");
 
                $vcard_widget .= replace_macros($tpl, array(
-                       '$name' => $profile[name],
-                       '$photo' => $profile[photo],
-                       '$addr' => (($profile['addr'] != "") ? $profile['addr'] : ''),
+                       '$name' => $profile['name'],
+                       '$photo' => $profile['photo'],
+                       '$addr' => (($profile['addr'] != "") ? $profile['addr'] : ""),
                        '$account_type' => $account_type,
+                       '$pdesc' => (($profile['pdesc'] != "") ? $profile['pdesc'] : ""),
                ));