mirror of
https://github.com/friendica/friendica
synced 2025-04-27 00:30:10 +00:00
Display the contact alias if the URL is no HTTP link
This commit is contained in:
parent
6d911a8f39
commit
4c3f2441f7
16 changed files with 528 additions and 303 deletions
|
@ -474,7 +474,6 @@ class Widget
|
|||
$thisday = substr($dnow, 4);
|
||||
$dnow = substr($dnow, 0, 8) . '01';
|
||||
$dthen = substr($dthen, 0, 8) . '01';
|
||||
|
||||
|
||||
/*
|
||||
* Starting with the current month, get the first and last days of every
|
||||
|
@ -494,7 +493,6 @@ class Widget
|
|||
|
||||
$ret[$dyear][] = [$str, $end_month, $start_month];
|
||||
$dnow = DateTimeFormat::utc($dnow . ' -1 month', 'Y-m-d');
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -506,7 +504,7 @@ class Widget
|
|||
$cutoff_year = intval(DateTimeFormat::localNow('Y')) - $visible_years;
|
||||
$cutoff = array_key_exists($cutoff_year, $ret);
|
||||
|
||||
$o = Renderer::replaceMacros(Renderer::getMarkupTemplate('widget/posted_date.tpl'),[
|
||||
$o = Renderer::replaceMacros(Renderer::getMarkupTemplate('widget/posted_date.tpl'), [
|
||||
'$title' => DI::l10n()->t('Archives'),
|
||||
'$size' => $visible_years,
|
||||
'$cutoff_year' => $cutoff_year,
|
||||
|
@ -540,7 +538,14 @@ class Widget
|
|||
['ref' => 'community', 'name' => DI::l10n()->t('Groups')],
|
||||
];
|
||||
|
||||
return self::filter('accounttype', DI::l10n()->t('Account Types'), '',
|
||||
DI::l10n()->t('All'), $base, $accounts, $accounttype);
|
||||
return self::filter(
|
||||
'accounttype',
|
||||
DI::l10n()->t('Account Types'),
|
||||
'',
|
||||
DI::l10n()->t('All'),
|
||||
$base,
|
||||
$accounts,
|
||||
$accounttype
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue