mirror of
https://github.com/friendica/friendica
synced 2025-04-23 15:50:25 +00:00
Preparation für multiple icon styles / improved code
This commit is contained in:
parent
c8a4b67414
commit
a4c5d7539c
368 changed files with 1949 additions and 1009 deletions
|
@ -921,6 +921,7 @@ class BBCode
|
|||
$contact = Contact::getByURL($attributes['profile'], false, ['network']);
|
||||
$network = $contact['network'] ?? Protocol::PHANTOM;
|
||||
|
||||
$gsid = ContactSelector::getServerIdForProfile($attributes['profile']);
|
||||
$tpl = Renderer::getMarkupTemplate('shared_content.tpl');
|
||||
$text .= self::SHARED_ANCHOR . Renderer::replaceMacros($tpl, [
|
||||
'$profile' => $attributes['profile'],
|
||||
|
@ -930,9 +931,8 @@ class BBCode
|
|||
'$link_title' => DI::l10n()->t('Link to source'),
|
||||
'$posted' => $attributes['posted'],
|
||||
'$guid' => $attributes['guid'],
|
||||
'$network_name' => ContactSelector::networkToName($network, $attributes['profile']),
|
||||
'$network_icon' => ContactSelector::networkToIcon($network, $attributes['profile']),
|
||||
'$network_svg' => ContactSelector::networkToSVG($network, $attributes['profile']),
|
||||
'$network_name' => ContactSelector::networkToName($network, '', $gsid),
|
||||
'$network_svg' => ContactSelector::networkToSVG($network, $gsid),
|
||||
'$content' => self::TOP_ANCHOR . self::setMentions(trim($content), 0, $network) . self::BOTTOM_ANCHOR,
|
||||
]);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue