Return to Snippet

Revision: 25074
at March 19, 2010 05:16 by gd6d


Initial Code
if ( function_exists('register_sidebar') ) {

    $allWidgetizedAreas = array("Homepage Left", "Homepage Right", "Sidebar One", "Movies", "Admin");
    
    foreach ($allWidgetizedAreas as $WidgetAreaName) {
    
        register_sidebar(array(
           'name'=> $WidgetAreaName,
           'before_widget' => '<div id="%1$s" class="widget %2$s left half">',
           'after_widget' => '</div>',
           'before_title' => '<h3 class="widgettitle">',
           'after_title' => '</h3>',
        ));
    
    }

}

Initial URL
http://digwp.com/2010/03/declare-multiple-widgetized-areas/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+DiggingIntoWordpress+%28Digging+Into+WordPress%29

Initial Description

                                

Initial Title
Declare Multiple Widgetized Areas

Initial Tags
wordpress

Initial Language
PHP