10 )
$output = str_replace('%', number_format_i18n($number), ( false === $more ) ? __('% Comments') : $more);
elseif ( $number > 2 )
$output = str_replace('%', number_format_i18n($number), ( false === $threeto10 ) ? __('% Comments') : $threeto10);
elseif ( $number == 2 )
$output = ( false === $zero ) ? __('Two Comments') : $two;
elseif ( $number == 0 )
$output = ( false === $zero ) ? __('No Comments') : $zero;
else // must be one
$output = ( false === $one ) ? __('1 Comment') : $one;
echo apply_filters('comments_number', $output, $number);
}
function comments_popup_link_ar( $zero = false, $one = false, $two = false, $threeto10 = false, $more = false, $css_class = '', $none = false ) {
global $wpcommentspopupfile, $wpcommentsjavascript;
$id = get_the_ID();
if ( false === $zero ) $zero = __( 'No Comments' );
if ( false === $one ) $one = __( '1 Comment' );
if ( false === $two ) $two = __( 'two Comments' );
if ( false === $threeto10 ) $threeto10 = __( '% Comments' );
if ( false === $more ) $more = __( '% Comments' );
if ( false === $none ) $none = __( 'Comments Off' );
$number = get_comments_number( $id );
if ( 0 == $number && !comments_open() && !pings_open() ) {
echo '' . $none . '';
return;
}
if ( post_password_required() ) {
echo __('Enter your password to view comments.');
return;
}
echo ' 0 ) );
echo apply_filters( 'comments_popup_link_attributes', '' );
echo ' title="' . esc_attr( sprintf( __('Comment on %s'), $title ) ) . '">';
comments_number_ar( $zero, $one, $two, $threeto10, $more );
echo '';
}
?>