Sidebar Register Array

//Register Sidebar Widgets
$sidebars = array('Home','Activity','Members','Groups','Blog');
foreach($sidebars as $sidebar) {
register_sidebar(array('name'=> $sidebar,
'before_widget' => '<div id="%1$s" class="widget %2$s"><div class="widget-inner">',
'after_widget' => '</div></div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
}

0 Comments

You must be logged in to post a comment.