Merge branch 'master' of git@github.com:johnbintz/comicpress-2.8
This commit is contained in:
commit
72a5c5026f
|
@ -67,7 +67,7 @@ class widget_comicpress_graphical_navigation extends WP_Widget {
|
||||||
$ok = !empty($instance['archive_path']);
|
$ok = !empty($instance['archive_path']);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
switch ($which) {
|
switch ($which) {
|
||||||
case 'first':
|
case 'first':
|
||||||
|
@ -75,9 +75,9 @@ class widget_comicpress_graphical_navigation extends WP_Widget {
|
||||||
case 'previous':
|
case 'previous':
|
||||||
case 'story_prev':
|
case 'story_prev':
|
||||||
case 'story_next':
|
case 'story_next':
|
||||||
$link = get_permalink($target);
|
|
||||||
case 'next':
|
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) {
|
if ($ok) {
|
||||||
?><a href="<?php echo $link; ?>"
|
?><a href="<?php echo $link; ?>"
|
||||||
class="navi navi-<?php echo $which ; ?>"
|
class="navi navi-<?php echo $which ; ?>"
|
||||||
|
|
Loading…
Reference in New Issue