revert widgets/graphical-navigation.php

This commit is contained in:
John Bintz 2009-10-21 22:54:17 -04:00
parent 2ea08de74d
commit 67b8c4ee6a
1 changed files with 5 additions and 5 deletions

View File

@ -75,9 +75,9 @@ class widget_comicpress_graphical_navigation extends WP_Widget {
case 'previous':
case 'story_prev':
case 'story_next':
$link = get_permalink($target);
case 'next':
if ($instance['nextgohome'] == 'on') { $link = get_bloginfo('url'); }
$link = get_permalink($target->ID);
if (($which == 'next') && ($instance['nextgohome'] == 'on')) { $link = get_bloginfo('url'); }
if ($ok) {
?><a href="<?php echo $link; ?>"
class="navi navi-<?php echo $which ; ?>"
@ -183,8 +183,8 @@ class widget_comicpress_graphical_navigation extends WP_Widget {
$post_nav = $navigation->get_post_nav($post);
$storyline_to_nav_mapping = array(
'story_prev' => 'storyline-previous',
'story_next' => 'storyline-next'
'story_prev' => 'storyline-chapter-previous',
'story_next' => 'storyline-chapter-next'
);
$nav_links = array();