Fix Graphic Navigation widget to link to #respond or #comment according to comment count (function like the comments_popup_link()). Remove the 0 indicator to feel less negative for no comments as in the other comment links.

This commit is contained in:
mindfaucet 2009-12-21 18:28:17 -07:00
parent 0a4c4d0f47
commit cf51e18177
1 changed files with 2 additions and 2 deletions

View File

@ -132,9 +132,9 @@ class ComicPressGraphicalNavigationWidget extends WP_Widget {
case 'comments':
$temp_id = $id;
$id = $current->ID;
?><a href="<?php echo get_permalink($current); ?>#respond"
?><a href="<?php echo get_permalink($current); ?><?php comments_number('#respond', '#comments', '#comments'); ?>"
class="navi navi-comments"
title="<?php echo $instance['comments_title']; ?>"><span class="navi-comments-count"><?php comments_number('0', '1', '%'); ?></span><?php echo $instance['comments_title']; ?></a><?php
title="<?php echo $instance['comments_title']; ?>"><span class="navi-comments-count"><?php comments_number('', '1', '%'); ?></span><?php echo $instance['comments_title']; ?></a><?php
$id = $temp_id;
break;
case 'buyprint':