Skip to:
Content

Changeset 7210


Ignore:
Timestamp:
06/13/2013 01:09:52 AM (5 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

Location:
trunk
Files:
3 edited

Legend:

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

    r7067 r7210  
    2828        $widget_ops = array(
    2929            'description' => __( 'A list of recently published posts from across your network.', 'buddypress' ),
    30             'classname'   => 'widget_bp_blogs_widget buddypress',
     30            'classname'   => 'widget_bp_blogs_widget buddypress widget',
    3131        );
    3232        parent::__construct( false, $name = _x( '(BuddyPress) Recent Networkwide Posts', 'widget name', 'buddypress' ), $widget_ops );
  • 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 );
  • trunk/bp-groups/bp-groups-widgets.php

    r6999 r7210  
    2727        $widget_ops = array(
    2828            'description' => __( 'A dynamic list of recently active, popular, and newest groups', 'buddypress' ),
    29             'classname' => 'widget_bp_groups_widget buddypress',
     29            'classname' => 'widget_bp_groups_widget buddypress widget',
    3030        );
    3131        parent::__construct( false, _x( '(BuddyPress) Groups', 'widget name', 'buddypress' ), $widget_ops );
Note: See TracChangeset for help on using the changeset viewer.