- 024EB09A7A1A5CA5F6B74D2B79C670A866817A4D3433C6D6FC3C439D91F4DF5BC1B0DE26C63B6DCA5D7FC91FC6F2868DB42451AF38778FFDD0943974A025EAD2
+ 00ECF9ABE29F093F2E0F902BBD56B4A039E4B1EE79F81BC9014A0BCD5E1EAD803FDBFF57EF81C0634A2D37396DCBEFFC157665CF9AC6FCD0E8C03959060D6016
mp-wp/wp-includes/comment-template.php
(717 . 7)(717 . 7)
35411 echo ' dc:identifier="';
35412 the_permalink();
35413 echo '"'."\n";
35414 echo ' dc:title="'.str_replace('--', '--', wptexturize(strip_tags(get_the_title()))).'"'."\n";
35415 echo ' dc:title="'.str_replace('--', '--', strip_tags(get_the_title())).'"'."\n";
35416 echo ' trackback:ping="'.get_trackback_url().'"'." />\n";
35417 echo '</rdf:RDF>';
35418 }
(861 . 37)(861 . 6)
35420 }
35421
35422 /**
35423 * Displays the JS popup script to show a comment.
35424 *
35425 * If the $file parameter is empty, then the home page is assumed. The defaults
35426 * for the window are 400px by 400px.
35427 *
35428 * For the comment link popup to work, this function has to be called or the
35429 * normal comment link will be assumed.
35430 *
35431 * @since 0.71
35432 * @global string $wpcommentspopupfile The URL to use for the popup window
35433 * @global int $wpcommentsjavascript Whether to use JavaScript or not. Set when function is called
35434 *
35435 * @param int $width Optional. The width of the popup window
35436 * @param int $height Optional. The height of the popup window
35437 * @param string $file Optional. Sets the location of the popup window
35438 */
35439 function comments_popup_script($width=400, $height=400, $file='') {
35440 global $wpcommentspopupfile, $wpcommentsjavascript;
35441
35442 if (empty ($file)) {
35443 $wpcommentspopupfile = ''; // Use the index.
35444 } else {
35445 $wpcommentspopupfile = $file;
35446 }
35447
35448 $wpcommentsjavascript = 1;
35449 $javascript = "<script type='text/javascript'>\nfunction wpopen (macagna) {\n window.open(macagna, '_blank', 'width=$width,height=$height,scrollbars=yes,status=yes');\n}\n</script>\n";
35450 echo $javascript;
35451 }
35452
35453 /**
35454 * Displays the link to the comments popup window for the current post ID.
35455 *
35456 * Is not meant to be displayed on single posts and pages. Should be used on the
(899 . 8)(868 . 6)
35458 *
35459 * @since 0.71
35460 * @uses $id
35461 * @uses $wpcommentspopupfile
35462 * @uses $wpcommentsjavascript
35463 * @uses $post
35464 *
35465 * @param string $zero The string to display when no comments
(911 . 7)(878 . 7)
35467 * @return null Returns null on single posts and pages.
35468 */
35469 function comments_popup_link( $zero = 'No Comments', $one = '1 Comment', $more = '% Comments', $css_class = '', $none = 'Comments Off' ) {
35470 global $id, $wpcommentspopupfile, $wpcommentsjavascript, $post;
35471 global $id, $post;
35472
35473 if ( is_single() || is_page() )
35474 return;
(929 . 20)(896 . 11)
35476 }
35477
35478 echo '<a href="';
35479 if ( $wpcommentsjavascript ) {
35480 if ( empty( $wpcommentspopupfile ) )
35481 $home = get_option('home');
35482 else
35483 $home = get_option('siteurl');
35484 echo $home . '/' . $wpcommentspopupfile . '?comments_popup=' . $id;
35485 echo '" onclick="wpopen(this.href); return false"';
35486 } else { // if comments_popup_script() is not in the template, display simple comment link
35487 if ( 0 == $number )
35488 echo get_permalink() . '#respond';
35489 else
35490 comments_link();
35491 echo '"';
35492 }
35493 if ( 0 == $number )
35494 echo get_permalink() . '#respond';
35495 else
35496 comments_link();
35497 echo '"';
35498
35499 if ( !empty( $css_class ) ) {
35500 echo ' class="'.$css_class.'" ';
(999 . 7)(957 . 7)
35502 $link = '<a href="' . site_url('wp-login.php?redirect_to=' . get_permalink()) . '">' . $login_text . '</a>';
35503 else
35504 // Removed rel="nofollow" from here
35505 $link = "<a href='" . wp_specialchars( add_query_arg( 'replytocom', $comment->comment_ID ) ) . "#" . $respond_id . "' onclick='return addComment.moveForm(\"$add_below-$comment->comment_ID\", \"$comment->comment_ID\", \"$respond_id\", \"$post->ID\")'>$reply_text</a>";
35506 $link = "<a href='" . wp_specialchars( add_query_arg( 'replytocom', $comment->comment_ID ) ) . "#" . $respond_id . "'>$reply_text</a>";
35507 return apply_filters('comment_reply_link', $before . $link . $after, $args, $comment, $post);
35508 }
35509
(1052 . 7)(1010 . 7)
35511 $link = '<a href="' . site_url('wp-login.php?redirect_to=' . get_permalink()) . '">' . $login_text . '</a>';
35512 } else {
35513 // Removed rel="nofollow" from here
35514 $link = "<a href='" . get_permalink($post->ID) . "#$respond_id' onclick='return addComment.moveForm(\"$add_below-$post->ID\", \"0\", \"$respond_id\", \"$post->ID\")'>$reply_text</a>";
35515 $link = "<a href='" . get_permalink($post->ID) . "#$respond_id'>$reply_text</a>";
35516 }
35517 return apply_filters('post_comments_link', $before . $link . $after, $post);
35518 }