From: Jakobus Schürz Date: Sun, 1 Oct 2023 20:59:27 +0000 (+0200) Subject: Merge branch 'showgroup-button' into better-navigation X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f8a1b7ea5643c72bc42c0a09a174c84124b296f2;p=friendica.git Merge branch 'showgroup-button' into better-navigation --- f8a1b7ea5643c72bc42c0a09a174c84124b296f2 diff --cc src/Content/Widget/VCard.php index d5a565f925,3e4f1e1d87..0d78fed4a4 --- a/src/Content/Widget/VCard.php +++ b/src/Content/Widget/VCard.php @@@ -119,8 -124,9 +124,10 @@@ class VCar '$unfollow_link' => $unfollow_link, '$wallmessage' => DI::l10n()->t('Message'), '$wallmessage_link' => $wallmessage_link, + '$mentioning' => DI::l10n()->t('Mention'), + '$post2group' => DI::l10n()->t('Post to group'), + '$showgroup' => DI::l10n()->t('Show group'), + '$showgroup_link' => $showgroup_link, - '$mentioning' => DI::l10n()->t('Mention'), ]); } } diff --cc src/Model/Contact.php index 02132c0f1d,d9f870f561..b6a3091532 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@@ -1246,11 -1231,9 +1246,11 @@@ class Contac 'network' => [DI::l10n()->t('Network Posts'), $posts_link, false], 'edit' => [DI::l10n()->t('View Contact'), $contact_url, false], 'pm' => [DI::l10n()->t('Send PM'), $pm_url, false], - 'mention' => [DI::l10n()->t('Mention'), DI::l10n()->t('Post to group'), $mention_url, false], 'follow' => [DI::l10n()->t('Connect/Follow'), $follow_link, true], 'unfollow' => [DI::l10n()->t('Unfollow'), $unfollow_link, true], ++ 'mention' => [DI::l10n()->t('Mention'), DI::l10n()->t('Post to group'), $mention_url, false], 'group' => [DI::l10n()->t('View group'), $group_link, $contact['forum'], true], + 'self' => [$self], ]; if (!empty($contact['pending'])) { diff --cc view/lang/de/strings.php index e9c35e6669,a1cd1e97fa..90be1bd34c --- a/view/lang/de/strings.php +++ b/view/lang/de/strings.php @@@ -2961,6 -2961,4 +2961,6 @@@ $a->strings['Connect Services'] = 'Verb $a->strings['Find Friends'] = 'Kontakte finden'; $a->strings['Last users'] = 'Letzte Nutzer'; $a->strings['Quick Start'] = 'Schnell-Start'; +$a->strings['Mention'] = 'Erwähne'; +$a->strings['Post to group'] = 'In Gruppe posten'; - + $a->strings['View group'] = 'Zeige Gruppe'; diff --cc view/templates/hovercard.tpl index 0fdcffaf24,a820e5c550..41236459a8 --- a/view/templates/hovercard.tpl +++ b/view/templates/hovercard.tpl @@@ -22,9 -22,9 +22,10 @@@ {{* @todo we have two different photo menus one for contacts and one for items at the network stream. We currently use the contact photo menu, so the items options are missing We need to move them *}}
{{if $profile.actions.pm}}{{$profile.actions.pm.0}}{{/if}} + {{if $profile.addr && !$profile.actions.self}}{{/if}}
+ {{if $profile.actions.group.2==1}}{{/if}} {{if $profile.actions.network}}{{/if}} {{if $profile.actions.edit}}{{/if}} {{if $profile.actions.follow}}{{/if}} diff --cc view/theme/frio/templates/widget/vcard.tpl index ecc47bea29,41c48aa390..5266f5be4e --- a/view/theme/frio/templates/widget/vcard.tpl +++ b/view/theme/frio/templates/widget/vcard.tpl @@@ -56,14 -56,14 +56,22 @@@
{{/if}} + {{if $contact.addr}} + + {{/if}} + {{if $contact.forum==1 || $contact.prv==1}} +
+ +
+ {{/if}}