Changeset 628 for trunk/wp-includes/template-functions.php
- Timestamp:
- 12/18/2003 09:36:13 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions.php
r624 r628 1465 1465 1466 1466 function comments_popup_script($width=400, $height=400, $file='wp-comments-popup.php') { 1467 global $ b2commentspopupfile, $b2trackbackpopupfile, $b2pingbackpopupfile, $b2commentsjavascript;1468 $ b2commentspopupfile = $file;1469 $ b2commentsjavascript = 1;1467 global $wpcommentspopupfile, $wptrackbackpopupfile, $wppingbackpopupfile, $wpcommentsjavascript; 1468 $wpcommentspopupfile = $file; 1469 $wpcommentsjavascript = 1; 1470 1470 $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"; 1471 1471 echo $javascript; … … 1473 1473 1474 1474 function comments_popup_link($zero='No Comments', $one='1 Comment', $more='% Comments', $CSSclass='', $none='Comments Off') { 1475 global $id, $ b2commentspopupfile, $b2commentsjavascript, $post, $wpdb, $tablecomments, $HTTP_COOKIE_VARS, $cookiehash;1475 global $id, $wpcommentspopupfile, $wpcommentsjavascript, $post, $wpdb, $tablecomments, $HTTP_COOKIE_VARS, $cookiehash; 1476 1476 global $querystring_start, $querystring_equal, $querystring_separator, $siteurl; 1477 1477 $number = $wpdb->get_var("SELECT COUNT(*) FROM $tablecomments WHERE comment_post_ID = $id AND comment_approved = '1'"); … … 1487 1487 } 1488 1488 echo '<a href="'; 1489 if ($ b2commentsjavascript) {1490 echo $ b2commentspopupfile.$querystring_start.'p'.$querystring_equal.$id.$querystring_separator.'c'.$querystring_equal.'1';1489 if ($wpcommentsjavascript) { 1490 echo $wpcommentspopupfile.$querystring_start.'p'.$querystring_equal.$id.$querystring_separator.'c'.$querystring_equal.'1'; 1491 1491 //echo get_permalink(); 1492 1492 echo '" onclick="wpopen(this.href); return false"';
Note: See TracChangeset
for help on using the changeset viewer.