Skip to:
Content

BuddyPress.org

Changeset 7545


Ignore:
Timestamp:
11/09/2013 03:16:01 PM (11 years ago)
Author:
johnjamesjacoby
Message:

No humility. Bump notifications menu and navigation position to below Profile, and ensure that custom notifications toolbar menu now links to new notifications page for logged in user. See #5148.

Location:
trunk/bp-notifications
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-notifications/bp-notifications-adminbar.php

    r7521 r7545  
    2929    $alert_class   = (int) $count > 0 ? 'pending-count alert' : 'count no-alert';
    3030    $menu_title    = '<span id="ab-pending-notifications" class="' . $alert_class . '">' . $count . '</span>';
     31    $menu_link     = trailingslashit( bp_loggedin_user_domain() . bp_get_notifications_slug() );
    3132
    3233    // Add the top-level Notifications button
     
    3536        'id'        => 'bp-notifications',
    3637        'title'     => $menu_title,
    37         'href'      => bp_loggedin_user_domain(),
     38        'href'      => $menu_link,
    3839    ) );
    3940
     
    5253            'id'     => 'no-notifications',
    5354            'title'  => __( 'No new notifications', 'buddypress' ),
    54             'href'   => bp_loggedin_user_domain(),
     55            'href'   => $menu_link,
    5556        ) );
    5657    }
  • trunk/bp-notifications/bp-notifications-loader.php

    r7544 r7545  
    2727            BP_PLUGIN_DIR,
    2828            array(
    29                 'adminbar_myaccount_order' => 100
     29                'adminbar_myaccount_order' => 30
    3030            )
    3131        );
     
    109109            'name'                => sprintf( __( 'Notifications <span>%d</span>', 'buddypress' ), number_format_i18n( $count ) ),
    110110            'slug'                => $this->slug,
    111             'position'            => 60,
     111            'position'            => 30,
    112112            'screen_function'     => 'bp_notifications_screen_unread',
    113113            'default_subnav_slug' => 'unread',
Note: See TracChangeset for help on using the changeset viewer.