Commits

Doug Stewart committed 345eb77

Assigning explicit id and class to all sidebar widgets in order to get along with BuddyPress better.

Should fix issue #3 (AJAX requests not firing for Groups widget).

  • Participants
  • Parent commits 8e4c87b

Comments (0)

Files changed (1)

File includes/functions/supports.php

 
 function lblg_register_sidebars() {
 	register_sidebar( array( 'name'=>'Primary',
-						   'before_widget' => '<li>', 
+						   'before_widget' => '<li id="%1$s" class="widget %2$s">', 
 						   'after_widget' => '</li>', 
 						   'before_title' => '<h4>', 
 						   'after_title' => '</h4>' ) );
 	register_sidebar( array( 'name'=>'Secondary', 
-						   'before_widget' => '<li>', 
+						   'before_widget' => '<li id="%1$s" class="widget %2$s">',
 						   'after_widget' => '</li>', 
 						   'before_title' => '<h4>', 
 						   'after_title' => '</h4>' ) );
 	register_sidebar( array( 'name'=>'Bottom-Left',
-						   'before_widget' => '<li>', 
+						   'before_widget' => '<li id="%1$s" class="widget %2$s">',
 						   'after_widget' => '</li>', 
 						   'before_title' => '<h4>', 
 						   'after_title' => '</h4>' ) );
 	register_sidebar( array( 'name'=>'Bottom-Right',
-						   'before_widget' => '<li>', 
+						   'before_widget' => '<li id="%1$s" class="widget %2$s">',
 						   'after_widget' => '</li>', 
 						   'before_title' => '<h4>', 
 						   'after_title' => '</h4>' ) );