'widget_comicpress_graphical_navigation', 'description' => __('Displays Graphical Navigation Buttons. (used in comic sidebars)','comicpress') ); $this->WP_Widget('graphicalnavigation', __('Comic Navigation','comicpress'), $widget_ops); } function widget($args, $instance) { global $wp_query, $post; $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(); ?>
'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','comicpress'), 'last_title' => __('Latest','comicpress'), 'story_prev_title' => __('Chapter','comicpress'), 'story_next_title' => __('Chapter','comicpress'), 'previous_title' => __('Previous','comicpress'), 'random_title' => __('Random','comicpress'), 'archives_title' => __('Archives','comicpress'), 'comments_title' => __('Comments','comicpress'), 'next_title' => __('Next','comicpress'), 'buyprint_title' => __('Buy Print','comicpress') ) ); $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'; $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
Title:


  />Off
Title:


  />Off
Title:


  />Off
Title:


  />Off
Title:


  />Off
Title:


  />Off
Title:

Archive URL:


  />Off
Title:


  />Off
Title:


  />Off
Title: