[buddypress-trac] [BuddyPress] #2752: Add id and desription to default widget block

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sun Nov 21 11:32:31 UTC 2010


#2752: Add id and desription to default widget block
-------------------------+--------------------------------------------------
 Reporter:  karmatosed   |       Owner:     
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  1.3
Component:  Theme        |     Version:     
 Keywords:               |  
-------------------------+--------------------------------------------------
 Just like the new footer widgets I suggest the default ones have id and
 description added to them.

 Currently they read like this:

 {{{
 register_sidebar( array(
         'name'          => 'Sidebar',
         'before_widget' => '<div id="%1$s" class="widget %2$s">',
         'after_widget'  => '</div>',
         'before_title'  => '<h3 class="widgettitle">',
         'after_title'   => '</h3>'
 ) );
 }}}

 My suggestions would be to end up with something like this:


 {{{
 register_sidebar( array(
         'name'          => 'Sidebar',
         'id' => 'sidebar',
         'description' => __( 'The sidebar widget area', 'buddypress' ),
         'before_widget' => '<div id="%1$s" class="widget %2$s">',
         'after_widget'  => '</div>',
         'before_title'  => '<h3 class="widgettitle">',
         'after_title'   => '</h3>'
 ) );
 }}}

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2752>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list