'Sidebar Top',
'before_widget' => '
',
'after_widget' => '',
'before_title' => '',
));
if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => 'Sidebar Left',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
));
if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => 'Sidebar Right',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
));
if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => 'Sidebar Bottom',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
));
function mytheme_comment($comment, $args, $depth) {
$avatar = get_avatar($comment,$size='35',$default="" );
$t_imgpath = get_template_directory_uri().'/images/'; //get the image folder of current theme
$GLOBALS['comment'] = $comment; ?>
id="comment-">
ID)){
$class = 'page_item page-item-'.$pagg->ID.' current_page_item';
}else {
$class = 'page_item page-item-'.$pagg->ID;
}
$output = '';
$output .= $pagg->post_title;
$output .= ' ';
echo $output;
}
}
function my_wp_list_pages_sidebar(){
$pages = get_pages('offset=5&child_of=0&parent=0');
if ($pages){
echo 'Pages
';
foreach ($pages as $pagg) {
if (is_page($pagg->ID)){
$class = 'page_item page-item-'.$pagg->ID.' current_page_item';
}else {
$class = 'page_item page-item-'.$pagg->ID;
}
$output = '- ';
$output .= $pagg->post_title;
$output .= '
';
echo $output;
}
echo '
';
}
}
?>