photos-albms widget: add some classes

This commit is contained in:
rabuzarus 2015-12-02 20:01:22 +01:00
parent cd7ec72b20
commit d963cdfe48
3 changed files with 15 additions and 21 deletions

View File

@ -286,13 +286,15 @@ if(! function_exists('profile_sidebar')) {
); );
} }
if((x($profile['page-flags']) == 1) // check if profile is a forum
|| (x($profile['page-flags']) == 2) if((x($profile['page-flags']) == 2)
|| (x($profile['page-flags']) == 5)) || (x($profile['page-flags']) == 5)
$account_type = page_type_translate($profile['page-flags']); || (x($profile['forum']))
|| (x($profile['prv']))
if(! $account_type) || (x($profile['community'])))
$account_type = (x($profile['forum']) || x($profile['prv']) || (x($profile['community'])) ? t('Forum') : ""); $account_type = t('Forum');
else
$account_type = "";
if((x($profile,'address') == 1) if((x($profile,'address') == 1)
|| (x($profile,'locality') == 1) || (x($profile,'locality') == 1)

View File

@ -37,14 +37,10 @@ function photos_init(&$a) {
$profile = get_profiledata_by_nick($nick, $a->profile_uid); $profile = get_profiledata_by_nick($nick, $a->profile_uid);
if((x($profile['page-flags']) == 1) if((x($profile['page-flags']) == 2) || (x($profile['page-flags']) == 5))
|| (x($profile['page-flags']) == 2) $account_type = t('Forum');
|| (x($profile['page-flags']) == 5)) { else
$account_type = page_type_translate($profile['page-flags']);
}
else {
$account_type = ""; $account_type = "";
}
$tpl = get_markup_template("vcard-widget.tpl"); $tpl = get_markup_template("vcard-widget.tpl");

View File

@ -33,14 +33,10 @@ function videos_init(&$a) {
$profile = get_profiledata_by_nick($nick, $a->profile_uid); $profile = get_profiledata_by_nick($nick, $a->profile_uid);
if((x($profile['page-flags']) == 1) if((x($profile['page-flags']) == 2) || (x($profile['page-flags']) == 5))
|| (x($profile['page-flags']) == 2) $account_type = t('Forum');
|| (x($profile['page-flags']) == 5)) { else
$account_type = page_type_translate($profile['page-flags']);
}
else {
$account_type = ""; $account_type = "";
}
$tpl = get_markup_template("vcard-widget.tpl"); $tpl = get_markup_template("vcard-widget.tpl");