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
|
// Register Sidebar and Define Widgets
|
||||||
|
|
||||||
if ( function_exists('register_sidebar') ) {
|
if ( function_exists('register_sidebar') ) {
|
||||||
register_sidebar(array('name'=>'Left Sidebar', 'before_widget' => '
|
foreach (array(
|
||||||
<div id="%1$s" class="widget %2$s">
|
__('Left Sidebar', 'comicpress'),
|
||||||
','after_widget' => '
|
__('Right Sidebar', 'comicpress'),
|
||||||
</div>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>
|
__('Above Header', 'comicpress'),
|
||||||
' ));
|
__('Header', 'comicpress'),
|
||||||
register_sidebar(array('name'=>'Right Sidebar','before_widget' => '
|
__('Menubar', 'comicpress'),
|
||||||
<div id="%1$s" class="widget %2$s">
|
__('Over Comic', 'comicpress'),
|
||||||
','after_widget' => '
|
__('Left of Comic', 'comicpress'),
|
||||||
</div>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>
|
__('Right of Comic', 'comicpress'),
|
||||||
' ));
|
__('Under Comic', 'comicpress'),
|
||||||
register_sidebar(array('name'=>'Above Header','before_widget' => '
|
__('Over Blog', 'comicpress'),
|
||||||
<div id="%1$s" class="widget %2$s">
|
__('Blog', 'comicpress'),
|
||||||
','after_widget' => '
|
__('Under Blog', 'comicpress'),
|
||||||
</div>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>
|
__('Footer', 'comicpress')
|
||||||
' ));
|
) as $label) {
|
||||||
register_sidebar(array('name'=>'Header','before_widget' => '
|
register_sidebar(array(
|
||||||
<div id="%1$s" class="widget %2$s">
|
'name'=> $label,
|
||||||
','after_widget' => '
|
'before_widget' => '<div id="%1$s" class="widget %2$s">',
|
||||||
</div>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>
|
'after_widget' => '</div>',
|
||||||
' ));
|
'before_title' => '<h2 class="widgettitle">',
|
||||||
register_sidebar(array('name'=>'Menubar','before_widget' => '
|
'after_title' => '</h2>'
|
||||||
<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>
|
|
||||||
' ));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function storyline_category_list() {
|
function storyline_category_list() {
|
||||||
|
|
Loading…
Reference in New Issue