__( 'Encyclopedia_sidebar', 'encyclopedia' ),
'id' => 'sb0001',
'description' => '',
'class' => '',
'before_widget' => '
',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
));
}
add_action( 'widgets_init', 'encyclopedia_widgets_init' );
function encyclopedia_wp_title( $title, $sep ) {
if(is_feed()) return $title;
if(is_404()) $title= _e('Page not found','');
elseif (is_home()) $title= bloginfo('description')." - ".bloginfo('name');
elseif (is_category()) $title= single_cat_title();
elseif (is_date()) $title= _e('Archives', ''). " of ".bloginfo('name');
elseif (is_search()) $title= _e('Search results', '');
else $title=the_title();
return $title;
}
add_filter( 'wp_title', 'encyclopedia_wp_title', 10, 2 );
function my_comments_open( $open, $post_id ) {
$post = get_post( $post_id );
if ( 'page' == $post->post_type )
$open = false;
return $open;
}
add_filter( 'comments_open', 'my_comments_open', 10, 2 );
function encyclopedia_comment( $comment, $args, $depth ) {
$GLOBALS['comment'] = $comment;
switch ( $comment->comment_type ) :
case 'pingback' :
case 'trackback' :
?>
', '' ); ?>
id="li-comment-">