Skip to:
Content

Changeset 11608


Ignore:
Timestamp:
06/22/2017 11:36:24 PM (12 months ago)
Author:
mercime
Message:

Add BP tooltips for group admins/moderators in group header.

See #7188.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-template.php

    r11598 r11608  
    16331633            <?php foreach( (array) $group->admins as $admin ) { ?>
    16341634                <li>
    1635                     <a href="<?php echo bp_core_get_user_domain( $admin->user_id, $admin->user_nicename, $admin->user_login ) ?>"><?php echo bp_core_fetch_avatar( array( 'item_id' => $admin->user_id, 'email' => $admin->user_email, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $admin->user_id ) ) ) ) ?></a>
     1635                    <a href="<?php echo bp_core_get_user_domain( $admin->user_id, $admin->user_nicename, $admin->user_login ) ?>" class="bp-tooltip" data-bp-tooltip="<?php printf( ('%s'),  bp_core_get_user_displayname( $admin->user_id ) ); ?>"><?php echo bp_core_fetch_avatar( array( 'item_id' => $admin->user_id, 'email' => $admin->user_email, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $admin->user_id ) ) ) ) ?></a>
    16361636                </li>
    16371637            <?php } ?>
     
    16651665
    16661666                <li>
    1667                     <a href="<?php echo bp_core_get_user_domain( $mod->user_id, $mod->user_nicename, $mod->user_login ) ?>"><?php echo bp_core_fetch_avatar( array( 'item_id' => $mod->user_id, 'email' => $mod->user_email, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $mod->user_id ) ) ) ) ?></a>
     1667                    <a href="<?php echo bp_core_get_user_domain( $mod->user_id, $mod->user_nicename, $mod->user_login ) ?>" class="bp-tooltip" data-bp-tooltip="<?php printf( ('%s'),  bp_core_get_user_displayname( $mod->user_id ) ); ?>"><?php echo bp_core_fetch_avatar( array( 'item_id' => $mod->user_id, 'email' => $mod->user_email, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $mod->user_id ) ) ) ) ?></a>
    16681668                </li>
    16691669
  • trunk/src/bp-templates/bp-legacy/css/buddypress-rtl.css

    r11587 r11608  
    15211521}
    15221522
     1523#buddypress div#item-header div#item-actions a {
     1524    display: inline-block;
     1525}
     1526
    15231527#buddypress div#item-header ul {
    15241528    margin-bottom: 15px;
    1525     overflow: hidden;
     1529}
     1530
     1531#buddypress div#item-header ul:after {
     1532    clear: both;
     1533    content: "";
     1534    display: table;
    15261535}
    15271536
  • trunk/src/bp-templates/bp-legacy/css/buddypress.css

    r11587 r11608  
    15211521}
    15221522
     1523#buddypress div#item-header div#item-actions a {
     1524    display: inline-block;
     1525}
     1526
    15231527#buddypress div#item-header ul {
    15241528    margin-bottom: 15px;
    1525     overflow: hidden;
     1529}
     1530
     1531#buddypress div#item-header ul:after {
     1532    clear: both;
     1533    content: "";
     1534    display: table;
    15261535}
    15271536
Note: See TracChangeset for help on using the changeset viewer.