added sidebar definition pattern

This commit is contained in:
Kenneth Reitz
2010-05-20 06:40:58 -04:00
parent afb4a5ee84
commit 9352aa723f
2 changed files with 14 additions and 2 deletions
Vendored
BIN
View File
Binary file not shown.
+14 -2
View File
@@ -34,9 +34,21 @@ function custom_logo() { ?>
<?php get_bloginfo('template_directory'); ?>/img/logo-login.gif
) !important) }
</style>
<?php } ?>
<?php }
add_action('login_head', 'custom_logo');
// Add Sidebars
$sidebars = array(); // array('Home Sidebar', 'Other Sidebar');
foreach($sidebars as $name) {
register_sidebar(array('name'=> $name,
'before_widget' => '<div class="block">',
'after_widget' => '</div><div class="blockfooter"></div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
}
<?php add_action('login_head', 'custom_logo'); ?>