Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/13/2013 01:09:52 AM (11 years ago)
Author:
boonebgorges
Message:

Adds 'widget' class to all BP widget wrappers

Manually adding the 'widget' class ensures that BP's styles and JS are applied
to widgets in themes that do not natively use the 'widget' class for wrapping
widgets (such as Twenty Ten).

Fixes #4869

Props r-a-y

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-widgets.php

    r6999 r7210  
    1818        $widget_ops = array(
    1919            'description' => __( 'A dynamic list of recently active, popular, and newest members', 'buddypress' ),
    20             'classname' => 'widget_bp_core_members_widget buddypress',
     20            'classname' => 'widget_bp_core_members_widget buddypress widget',
    2121        );
    2222        parent::__construct( false, $name = _x( '(BuddyPress) Members', 'widget name', 'buddypress' ), $widget_ops );
     
    151151        $widget_ops = array(
    152152            'description' => __( 'Avatars of users who are currently online', 'buddypress' ),
    153             'classname' => 'widget_bp_core_whos_online_widget buddypress',
     153            'classname' => 'widget_bp_core_whos_online_widget buddypress widget',
    154154        );
    155155        parent::__construct( false, $name = _x( "(BuddyPress) Who's Online", 'widget name', 'buddypress' ), $widget_ops );
     
    220220        $widget_ops = array(
    221221            'description' => __( 'Avatars of recently active members', 'buddypress' ),
    222             'classname' => 'widget_bp_core_recently_active_widget buddypress',
     222            'classname' => 'widget_bp_core_recently_active_widget buddypress widget',
    223223        );
    224224        parent::__construct( false, $name = _x( '(BuddyPress) Recently Active Members', 'widget name', 'buddypress' ), $widget_ops );
Note: See TracChangeset for help on using the changeset viewer.