'widget_comicpress_graphical_navigation', 'description' => __('Displays Graphical Navigation Buttons. (used in comic sidebars)','comicpress') ); $this->WP_Widget('graphicalnavigation', __('Comic Navigation (orig)','comicpress'), $widget_ops); } function widget($args, $instance) { global $wp_query, $post; if (is_home() || is_single()) { $this_permalink = get_permalink(); $temp_query = $wp_query->is_single; $wp_query->is_single = true; $prev_comic = get_previous_comic_permalink(); $next_comic = get_next_comic_permalink(); $wp_query->is_single = $temp_query; $temp_query = null; $first_comic = get_first_comic_permalink(); $last_comic = get_last_comic_permalink(); $prev_story = get_previous_storyline_start_permalink(); $next_story = get_next_storyline_start_permalink(); $latest_comic = get_permalink( get_terminal_post_in_category(get_all_comic_categories_as_cat_string(), false) ); ?>
'on', 'last' => 'on', 'story_prev' => 'off', 'story_next' => 'off', 'previous' => 'on', 'random' => 'off', 'archives' => 'off', 'comments' => 'off', 'next' => 'on', 'archive_path' => '', 'buyprint' => 'off', 'first_title' => 'First', 'last_title' => 'Latest', 'story_prev_title' => 'Chapter', 'story_next_title' => 'Chapter', 'previous_title' => 'Previous', 'random_title' => 'Random', 'archives_title' => 'Archives', 'comments_title' => 'Comments', 'next_title' => 'Next', 'buyprint_title' => 'Buy Print', 'comictitle' => 'off', 'nextgohome' => 'off', ) ); $first = $instance['first']; if (empty($first)) $first = 'on'; $last = $instance['last']; if (empty($last)) $last = 'on'; $story_prev = $instance['story_prev']; if (empty($story_prev)) $story_prev = 'off'; $story_next = $instance['story_next']; if (empty($story_next)) $story_next = 'off'; $previous = $instance['previous']; if (empty($previous)) $previous = 'on'; $random = $instance['random']; if (empty($random)) $random = 'off'; $archives = $instance['archives']; if (empty($archives)) $archives = 'off'; $comments = $instance['comments']; if (empty($comments)) $comments = 'off'; $archive_path = $instance['archive_path']; $next = $instance['next']; if (empty($next)) $next = 'on'; $buyprint = $instance['buyprint']; if (empty($buyprint)) $buyprint = 'off'; $comictitle = $instance['comictitle']; if (empty($comictitle)) $comictitle = 'off'; $nextgohome = $instance['nextgohome']; if (empty($nextgohome)) $nextgohome = 'off'; $first_title = $instance['first_title']; $last_title = $instance['last_title']; $story_prev_title = $instance['story_prev_title']; $story_next_title = $instance['story_next_title']; $previous_title = $instance['previous_title']; $random_title = $instance['random_title']; $archives_title = $instance['archives_title']; $comments_title = $instance['comments_title']; $next_title = $instance['next_title']; $buyprint_title = $instance['buyprint_title']; ?> />Off