Version 5.0.13
This commit is contained in:
1 parent
b89858b2ff
commit
5efe744c5f
1407 files changed
+69690
-30177
No files matched your search
@@ -24,6 +24,7 @@ use IPS\Helpers\Menu\Link;
|
||||
use IPS\Http\Url;
|
||||
use IPS\Member;
|
||||
use IPS\Output\UI\MenuExtension;
|
||||
use IPS\Platform\Bridge;
|
||||
use IPS\Request;
|
||||
use IPS\Settings;
|
||||
use IPS\Theme;
|
||||
@@ -61,10 +62,6 @@ class UserMenu
|
||||
}
|
||||
|
||||
$settingsLink = new Link( Url::internal( "app=core&module=system&controller=settings", "front", "settings" ), 'menu_settings', icon: 'fa-solid fa-gear', identifier: 'settings' );
|
||||
if( $member->members_bitoptions['email_messages_bounce'] )
|
||||
{
|
||||
$settingsLink->notificationIcon = 'fa-solid fa-triangle-exclamation';
|
||||
}
|
||||
$menu->add( $settingsLink );
|
||||
|
||||
foreach( Application::allExtensions( 'core', 'UserMenu', $member ) as $ext )
|
||||
@@ -168,10 +165,6 @@ class UserMenu
|
||||
$menu->add( new Link( $member->url(), 'menu_profile', '', icon:'fa-solid fa-user', identifier: 'profile' ) );
|
||||
$menu->add( new Link( $member->url()->setQueryString( 'do', 'edit' ), 'profile_edit', '', icon: 'fa-solid fa-pen-to-square', identifier: 'editProfile' ) );
|
||||
$settingsLink = new Link( Url::internal( "app=core&module=system&controller=settings", "front", "settings" ), "menu_settings", "", icon: 'fa-solid fa-gear', identifier: "settings" );
|
||||
if( $member->members_bitoptions['email_messages_bounce'] )
|
||||
{
|
||||
$settingsLink->notificationIcon = 'fa-solid fa-triangle-exclamation';
|
||||
}
|
||||
$menu->add( $settingsLink );
|
||||
|
||||
foreach( Application::allExtensions( 'core', 'UserMenu', $member ) as $ext )
|
||||
@@ -297,7 +290,7 @@ class UserMenu
|
||||
$menu->css = 'ipsButton ipsButton--overlay';
|
||||
|
||||
/* Only the logged in member should be able to modify the photos */
|
||||
if( explode( ':', $member->group['g_photo_max_vars'] )[0] )
|
||||
if( explode( ':', $member->group['g_photo_max_vars'] )[0] or ( Bridge::i()->featureIsEnabled( 'profile_gallery' ) and Settings::i()->cloud_profile_gallery ) )
|
||||
{
|
||||
$link = new Link( Url::internal( "app=core&module=members&controller=profile&do=editPhoto&id={$member->member_id}", 'front','edit_profile_photo', $member->members_seo_name ), 'profile_edit_photo_tab',icon: 'fa-regular fa-circle-user' );
|
||||
$link->dataAttributes['data-action'] = 'editPhoto';
|
||||
|
||||
Reference in new issue
Block a user