__( '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-">
    comment_parent ) $avatar_size = 39; echo get_avatar( $comment, $avatar_size ); printf( __( '%1$s on %2$s said:', 'encyclopedia' ), sprintf( '%s', get_comment_author_link() ), sprintf( '', esc_url( get_comment_link( $comment->comment_ID ) ), get_comment_time( 'c' ), sprintf( __( '%1$s at %2$s', 'encyclopedia' ), get_comment_date(), get_comment_time() ) ) ); ?> ', '' ); ?>
    comment_approved == '0' ) : ?>
    __( 'Reply ', 'encyclopedia' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>