]> git.mxchange.org Git - friendica.git/commitdiff
photos-albms widget: add some classes
authorrabuzarus <>
Wed, 2 Dec 2015 19:01:22 +0000 (20:01 +0100)
committerrabuzarus <>
Wed, 2 Dec 2015 19:01:22 +0000 (20:01 +0100)
include/identity.php
mod/photos.php
mod/videos.php

index b9984f10a0a92f868bbb193b11cdc7cb44ba4702..2230d98a42f66385948fbf8d6efafd15bda3ecc3 100644 (file)
@@ -286,13 +286,15 @@ if(! function_exists('profile_sidebar')) {
                        );
                }
 
-               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(! $account_type)
-                       $account_type = (x($profile['forum']) || x($profile['prv']) || (x($profile['community'])) ? t('Forum') : "");
+               // 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'])))
+                       $account_type = t('Forum');
+               else
+                       $account_type = "";
 
                if((x($profile,'address') == 1)
                                || (x($profile,'locality') == 1)
index 7ca850bc900c73c34f2f1f11b697f3da6311e8a0..6b97d7d4fb42bbb2231a91dbed4a0aa92b197e43 100644 (file)
@@ -37,14 +37,10 @@ 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']);
-               }
-               else {
+               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");
 
index de9feac06a385a91eb5ad86cc55257847b4cd7b0..707606769a9c88a2cbf5710f55ed18bda1a12364 100644 (file)
@@ -33,14 +33,10 @@ function videos_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']);
-               }
-               else {
+               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");