From 4819d25219a7d682eb398dd082410c19bbece293 Mon Sep 17 00:00:00 2001 From: mindfaucet Date: Sun, 29 Nov 2009 17:39:05 -0700 Subject: [PATCH] Adjusted navigation order back to original design. In order of how far you are navigating, and buttons size reduction. Perhaps we can get an option in this widget for ordering the buttons. Could be useful for switching up the order of non-navigation buttons in this widget as well. Also I think we need to consider the user of Next and Previous in Chapter, we are treating and styling it like its similar to the chapter navigation button, but what it really is is a replacement for the Next and Previous buttons. As far as real world use of it, it acts exactly like the next and previous buttons for the chapter you are in, the only time it varies from the next previous is that it is disabled at the first and last comic of that chapter, therefor you would probably use it with chapter buttons, rather than with repetitive prev next buttons. The difference is if you have multiple series and then you would give them the option of next in series or next comic, again, both being next, and should probably duplicate the Next and Previous Graphic buttons or similar for the button images. --- widgets/GraphicalNavigationWidget.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/widgets/GraphicalNavigationWidget.inc b/widgets/GraphicalNavigationWidget.inc index 5a3c39c..8316407 100644 --- a/widgets/GraphicalNavigationWidget.inc +++ b/widgets/GraphicalNavigationWidget.inc @@ -178,15 +178,15 @@ class GraphicalNavigationWidget extends WP_Widget { */ function comicpress_display_navigation_order($order = array()) { return array( - 'first', 'previous', 'story_prev_in', 'story_prev', 'archives', 'random', 'comictitle', 'comments', 'buyprint', 'story_next', 'story_next_in', 'next', 'last' + 'first', 'story_prev', 'story_prev_in', 'previous', 'archives', 'random', 'comictitle', 'comments', 'buyprint', 'next', 'story_next_in', 'story_next', 'last' ); } function comicpress_navigation_grouping_details($details = array()) { return array( - 'comic_navi_left' => array('first', 'previous', 'story_prev_in', 'story_prev'), + 'comic_navi_left' => array('first', 'story_prev', 'story_prev_in', 'previous'), 'comic_navi_center' => true, - 'comic_navi_right' => array('story_next', 'story_next_in', 'next', 'last') + 'comic_navi_right' => array('next', 'story_next_in', 'story_next', 'last') ); }