refactor sidebar areas, implements GH#9
This commit is contained in:
parent
175f07400d
commit
0b7b641e84
|
@ -764,71 +764,29 @@ add_filter('the_content','insert_comic_feed');
|
|||
// Register Sidebar and Define Widgets
|
||||
|
||||
if ( function_exists('register_sidebar') ) {
|
||||
register_sidebar(array('name'=>'Left Sidebar', 'before_widget' => '
|
||||
<div id="%1$s" class="widget %2$s">
|
||||
','after_widget' => '
|
||||
</div>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>
|
||||
' ));
|
||||
register_sidebar(array('name'=>'Right Sidebar','before_widget' => '
|
||||
<div id="%1$s" class="widget %2$s">
|
||||
','after_widget' => '
|
||||
</div>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>
|
||||
' ));
|
||||
register_sidebar(array('name'=>'Above Header','before_widget' => '
|
||||
<div id="%1$s" class="widget %2$s">
|
||||
','after_widget' => '
|
||||
</div>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>
|
||||
' ));
|
||||
register_sidebar(array('name'=>'Header','before_widget' => '
|
||||
<div id="%1$s" class="widget %2$s">
|
||||
','after_widget' => '
|
||||
</div>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>
|
||||
' ));
|
||||
register_sidebar(array('name'=>'Menubar','before_widget' => '
|
||||
<div id="%1$s" class="widget %2$s">
|
||||
','after_widget' => '
|
||||
</div>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>
|
||||
' ));
|
||||
register_sidebar(array('name'=>'Over Comic','before_widget' => '
|
||||
<div id="%1$s" class="widget %2$s">
|
||||
','after_widget' => '
|
||||
</div>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>
|
||||
' ));
|
||||
register_sidebar(array('name'=>'Left of Comic','before_widget' => '
|
||||
<div id="%1$s" class="widget %2$s">
|
||||
','after_widget' => '
|
||||
</div>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>
|
||||
' ));
|
||||
register_sidebar(array('name'=>'Right of Comic','before_widget' => '
|
||||
<div id="%1$s" class="widget %2$s">
|
||||
','after_widget' => '
|
||||
</div>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>
|
||||
' ));
|
||||
register_sidebar(array('name'=>'Under Comic','before_widget' => '
|
||||
<div id="%1$s" class="widget %2$s">
|
||||
','after_widget' => '
|
||||
</div>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>
|
||||
' ));
|
||||
register_sidebar(array('name'=>'Over Blog','before_widget' => '
|
||||
<div id="%1$s" class="widget %2$s">
|
||||
','after_widget' => '
|
||||
</div>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>
|
||||
' ));
|
||||
register_sidebar(array('name'=>'Blog','before_widget' => '
|
||||
<div id="%1$s" class="widget %2$s">
|
||||
','after_widget' => '
|
||||
</div>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>
|
||||
' ));
|
||||
register_sidebar(array('name'=>'Under Blog','before_widget' => '
|
||||
<div id="%1$s" class="widget %2$s">
|
||||
','after_widget' => '
|
||||
</div>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>
|
||||
' ));
|
||||
register_sidebar(array('name'=>'Footer','before_widget' => '
|
||||
<div id="%1$s" class="widget %2$s">
|
||||
','after_widget' => '
|
||||
</div>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>
|
||||
' ));
|
||||
foreach (array(
|
||||
__('Left Sidebar', 'comicpress'),
|
||||
__('Right Sidebar', 'comicpress'),
|
||||
__('Above Header', 'comicpress'),
|
||||
__('Header', 'comicpress'),
|
||||
__('Menubar', 'comicpress'),
|
||||
__('Over Comic', 'comicpress'),
|
||||
__('Left of Comic', 'comicpress'),
|
||||
__('Right of Comic', 'comicpress'),
|
||||
__('Under Comic', 'comicpress'),
|
||||
__('Over Blog', 'comicpress'),
|
||||
__('Blog', 'comicpress'),
|
||||
__('Under Blog', 'comicpress'),
|
||||
__('Footer', 'comicpress')
|
||||
) as $label) {
|
||||
register_sidebar(array(
|
||||
'name'=> $label,
|
||||
'before_widget' => '<div id="%1$s" class="widget %2$s">',
|
||||
'after_widget' => '</div>',
|
||||
'before_title' => '<h2 class="widgettitle">',
|
||||
'after_title' => '</h2>'
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
function storyline_category_list() {
|
||||
|
|
Loading…
Reference in New Issue