Skip to:
Content

BuddyPress.org

Ticket #4869: 4869.diff

File 4869.diff, 4.3 KB (added by imath, 7 years ago)
  • bp-core/bp-core-widgets.php

     
    1515class BP_Core_Members_Widget extends WP_Widget {
    1616
    1717        function __construct() {
    18                 $widget_ops = array( 'description' => __( 'A dynamic list of recently active, popular, and newest members', 'buddypress' ) );
     18                $widget_ops = array( 'classname' => 'buddypress', 'description' => __( 'A dynamic list of recently active, popular, and newest members', 'buddypress' ) );
    1919                parent::__construct( false, $name = _x( '(BuddyPress) Members', 'widget name', 'buddypress' ), $widget_ops );
    2020
    2121                if ( is_active_widget( false, false, $this->id_base ) && !is_admin() && !is_network_admin() ) {
     
    143143class BP_Core_Whos_Online_Widget extends WP_Widget {
    144144
    145145        function __construct() {
    146                 $widget_ops = array( 'description' => __( 'Avatars of users who are currently online', 'buddypress' ) );
     146
     147                $widget_ops = array( 'classname' => 'buddypress', 'description' => __( 'Avatars of users who are currently online', 'buddypress' ) );
    147148                parent::__construct( false, $name = _x( "(BuddyPress) Who's Online", 'widget name', 'buddypress' ), $widget_ops );
    148149        }
    149150
     
    207208class BP_Core_Recently_Active_Widget extends WP_Widget {
    208209
    209210        function __construct() {
    210                 $widget_ops = array( 'description' => __( 'Avatars of recently active members', 'buddypress' ) );
     211                $widget_ops = array( 'classname' => 'buddypress', 'description' => __( 'Avatars of recently active members', 'buddypress' ) );
    211212                parent::__construct( false, $name = _x( '(BuddyPress) Recently Active Members', 'widget name', 'buddypress' ), $widget_ops );
    212213        }
    213214
  • bp-templates/bp-legacy/css/buddypress.css

     
    2525        6.8 - Headers, Lists and Tabs - Activity, Groups, Blogs, Forums
    2626        6.9 - Private Messaging Threads
    2727        6.10 - Extended Profiles
     28        6.11 - Widgets
    28297.0 - Media Queries
    2930        7.1 - Smartphones Landscape
    3031        7.2 - Smartphones Portrait
     
    13431344}
    13441345
    13451346/*--------------------------------------------------------------
    1346 6.9 - Extended Profiles
     13476.10 - Extended Profiles
    13471348--------------------------------------------------------------*/
    13481349
    13491350#buddypress div.profile h4 {
     
    13901391}
    13911392
    13921393/*--------------------------------------------------------------
     13946.11 - Widgets
     1395--------------------------------------------------------------*/
     1396.widget.buddypress div.item-avatar img.avatar {
     1397        float: left;
     1398        margin: 0 10px 15px 0;
     1399}
     1400
     1401.widget.buddypress span.activity {
     1402        display: inline-block;
     1403        font-size: 80%;
     1404        opacity: 0.8;
     1405        padding: 0;
     1406}
     1407
     1408.widget.buddypress div.item-options {
     1409        font-size: 90%;
     1410        margin: 0 0 1em 0;
     1411        padding: 1em 0;
     1412}
     1413
     1414.widget.buddypress div.item{
     1415        margin:0 0 1em 0;
     1416}
     1417
     1418.widget.buddypress div.item-meta,
     1419.widget.buddypress div.item-content {
     1420        font-size: 11px;
     1421        margin-left: 38px;
     1422}
     1423
     1424.widget.buddypress ul.item-list img.avatar {
     1425        height: 20px;
     1426        margin-right: 10px;
     1427        width: 20px;
     1428}
     1429.widget.buddypress div.item-avatar img {
     1430        height: 40px;
     1431        margin: 1px;
     1432        width: 40px;
     1433}
     1434
     1435.widget.buddypress div.avatar-block{
     1436        overflow: hidden;
     1437}
     1438
     1439/*--------------------------------------------------------------
    139314407.0 - Media Queries
    13941441--------------------------------------------------------------*/
    13951442/*--------------------------------------------------------------
  • bp-groups/bp-groups-widgets.php

     
    2424        }
    2525
    2626        function __construct() {
    27                 $widget_ops = array( 'description' => __( 'A dynamic list of recently active, popular, and newest groups', 'buddypress' ) );
     27                $widget_ops = array( 'classname' => 'buddypress', 'description' => __( 'A dynamic list of recently active, popular, and newest groups', 'buddypress' ) );
    2828                parent::__construct( false, _x( '(BuddyPress) Groups', 'widget name', 'buddypress' ), $widget_ops );
    2929
    3030                if ( is_active_widget( false, false, $this->id_base ) && !is_admin() && !is_network_admin() ) {