From 8ed8388fc46240a342f67d6b53cdf651a163a621 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Wed, 21 Oct 2009 21:16:55 -0400 Subject: [PATCH] add next to home --- widgets/graphical-navigation.php | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/widgets/graphical-navigation.php b/widgets/graphical-navigation.php index c96b1f8..181c7b8 100644 --- a/widgets/graphical-navigation.php +++ b/widgets/graphical-navigation.php @@ -33,7 +33,7 @@ class widget_comicpress_graphical_navigation extends WP_Widget { * Get the random link URL. */ function comicpress_get_random_link_url($url = '') { - return bloginfo('url') . '/?randomcomic'; + return get_bloginfo('url') . '/?randomcomic'; } /** @@ -73,11 +73,13 @@ class widget_comicpress_graphical_navigation extends WP_Widget { case 'first': case 'last': case 'previous': - case 'next': case 'story_prev': case 'story_next': + $link = get_permalink($target); + case 'next': + if ($instance['nextgohome'] == 'on') { $link = get_bloginfo('url'); } if ($ok) { - ?>"> 'on', 'archive_path' => '', 'buyprint' => 'off', - 'comictitle' => 'off' + 'comictitle' => 'off', + 'nextgohome' => 'off' ); $title_defaults = array( @@ -265,7 +268,7 @@ class widget_comicpress_graphical_navigation extends WP_Widget { 'archives' => __('Archives', 'comicpress'), 'comments' => __('Comments', 'comicpress'), 'random' => __('Random', 'comicpress'), - 'buyprint' => __('Buy Print', 'comicpress'), + 'buyprint' => __('Buy Print', 'comicpress') ) as $field => $label) { $title_field = "${field}_title"; ?>
@@ -298,6 +301,16 @@ class widget_comicpress_graphical_navigation extends WP_Widget { value="" />
+
+ +
+