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:
parent
0a4c4d0f47
commit
cf51e18177
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue