Browse Source

photos-albms widget: add some classes

pull/2131/head
rabuzarus 6 years ago
parent
commit
d963cdfe48
  1. 16
      include/identity.php
  2. 10
      mod/photos.php
  3. 10
      mod/videos.php

16
include/identity.php

@ -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)

10
mod/photos.php

@ -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");

10
mod/videos.php

@ -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");

Loading…
Cancel
Save