diff --git a/classes/ComicPressNavigation.inc b/classes/ComicPressNavigation.inc index 938583e..b972b45 100644 --- a/classes/ComicPressNavigation.inc +++ b/classes/ComicPressNavigation.inc @@ -28,18 +28,18 @@ class ComicPressNavigation { // global previous/next foreach (array('previous', 'next') as $field) { - $nav[$field] = $this->_dbi->{"get_${field}_comic"}($categories, $post); + $nav[$field] = $this->_dbi->{"get_${field}_post"}($categories, $post); } // global first/last foreach (array('first', 'last') as $field) { - $nav[$field] = $this->_dbi->{"get_${field}_comic"}($categories); + $nav[$field] = $this->_dbi->{"get_${field}_post"}($categories); } if ($category = $this->_storyline->get_valid_post_category($post->ID)) { // storyline previous/next foreach (array('previous', 'next') as $field) { - $nav["storyline-${field}"] = $this->_dbi->{"get_${field}_comic"}($category, $post); + $nav["storyline-${field}"] = $this->_dbi->{"get_${field}_post"}($category, $post); } // adjacent storyline nodes @@ -47,7 +47,7 @@ class ComicPressNavigation { foreach ($valid as $field) { $all_adjacents = $this->_storyline->all_adjacent($category, $field); foreach ($all_adjacents as $adjacent_category) { - $result = $this->_dbi->get_first_comic($adjacent_category); + $result = $this->_dbi->get_first_post($adjacent_category); if (!empty($result)) { $nav["storyline-chapter-${field}"] = $result; break; } diff --git a/classes/ComicPressStoryline.inc b/classes/ComicPressStoryline.inc index b9566e0..a6e2d56 100644 --- a/classes/ComicPressStoryline.inc +++ b/classes/ComicPressStoryline.inc @@ -15,9 +15,13 @@ class ComicPressStoryline { * Get the flattened storyline from options. */ function get_flattened_storyline() { - $comicpress = &ComicPress::get_instance(); - if (isset($comicpress->comicpress_options['storyline_order'])) { - return $comicpress->comicpress_options['storyline_order']; + if (class_exists('ComicPress')) { + $comicpress = &ComicPress::get_instance(); + if (isset($comicpress->comicpress_options['storyline_order'])) { + return $comicpress->comicpress_options['storyline_order']; + } + } else { + return get_option("comicpress-storyline-category-order"); } return false; } diff --git a/comicpress-config.php b/comicpress-config.php index 09a30e0..4d01cb2 100644 --- a/comicpress-config.php +++ b/comicpress-config.php @@ -2,22 +2,22 @@ //COMIC CATEGORY -the WordPress ID # of your comic category (default "3") $comiccat = "3"; - + //BLOG CATEGORY - the WordPress ID of your blog category (default "1") -$blogcat = "4"; - +$blogcat = "5"; + //COMIC FOLDER - the folder your comics files are located in (default "comics") $comic_folder = "comics"; - + //RSS COMIC FOLDER - the folder your comic files are in for the RSS feed (default "comics") $rss_comic_folder = "comics-rss"; - + //ARCHIVE COMIC FOLDER - the folder your comic files are in for your archive pages (default "comics") $archive_comic_folder = "comics-archive"; - + //ARCHIVE COMIC WIDTH - the width your comics will appear on archive or search results (default "380") $archive_comic_width = "380"; - + //RSS COMIC WIDTH - ComicPress Manager plugin users only - the width your comics appear in the RSS feed (default "600"). $rss_comic_width = "600"; @@ -30,4 +30,4 @@ $mini_comic_width = "80"; //Minithumb Comic Folder - The folder for your your mini thumbs (default "comics-mini") $mini_comic_folder = "comics-mini"; -?> \ No newline at end of file +?> diff --git a/index.php b/index.php index c8c72cc..55ab1e0 100644 --- a/index.php +++ b/index.php @@ -13,13 +13,12 @@
- + - in_the_loop = true; $comicFrontpage = new WP_Query(); $comicFrontpage->query('showposts=1&cat='.get_all_comic_categories_as_cat_string()); - while ($comicFrontpage->have_posts()) : $comicFrontpage->the_post() ?> + while ($comicFrontpage->have_posts()) : $comicFrontpage->the_post() ?>
@@ -32,9 +31,9 @@
- + - + @@ -57,14 +56,14 @@
have_posts()) : $comicFrontpage->the_post(); display_comic_post(); $comicFrontPage->is_single = true; - comments_template(); + comments_template(); endwhile; ?> @@ -74,18 +73,18 @@ if ($disable_comic_frontpage != 'yes' && $disable_comic_blog_frontpage != 'yes' -
diff --git a/widgets/graphical-navigation.php b/widgets/graphical-navigation.php index fbf6b16..c3e45d4 100644 --- a/widgets/graphical-navigation.php +++ b/widgets/graphical-navigation.php @@ -241,9 +241,6 @@ class WidgetComicPressGraphicalStorylineNavigation extends WP_Widget { $storyline = new ComicPressStoryline(); $storyline->create_structure(get_option('comicpress-storyline-category-order')); - $dbi = ComicPressDBInterface::get_instance(); - $dbi->set_comic_categories($storyline->get_comic_categories()); - $navigation = new ComicPressNavigation(); $navigation->init($storyline); $post_nav = $navigation->get_post_nav($post);