Fixed MenubarWidget.inc so that if the comic blog post isnt displayed on the homepage that it will disable the menubar mini navigation on the homepage as well, also the latest thumbnail widget will appear on the home page on the 'default' sidebar-right.php if the comic is set to not display on the home page.

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-12-22 14:32:51 -08:00
parent b0ad9bec80
commit 5ef1e94826
2 changed files with 5 additions and 2 deletions

View File

@ -10,6 +10,9 @@ if (!$comicpress_options['disable_lrsidebars_frontpage']) { ?>
the_widget('ComicPressCalendarWidget');
the_widget('ComicpressArchiveDropdownWidget','mode=monthly_archive');
}
if ($comicpress_options['disable_comic_frontpage']) {
the_widget('ComicPressLatestThumbnailWidget');
}
the_widget('WP_Widget_Search');
the_widget('WP_Widget_Pages');
the_widget('WP_Widget_Categories','hierarchical=1&count=1');

View File

@ -34,7 +34,7 @@ class ComicPressMenubarWidget extends WP_Widget {
<a href="<?php bloginfo('rss2_url') ?>" title="RSS Feed" class="menunav-rss">RSS</a>
<?php } ?>
<?php if ($comicpress_options['enable_navigation_in_menubar']) { ?>
<?php if (is_home()) {
<?php if (is_home() && !$comicpress_options['disable_comic_frontpage']) {
$comicFrontpage = new WP_Query(); $comicFrontpage->query('showposts=1&cat='.get_all_comic_categories_as_cat_string());
while ($comicFrontpage->have_posts()) : $comicFrontpage->the_post();
global $wp_query; $wp_query->is_single = true; ?>
@ -43,7 +43,7 @@ class ComicPressMenubarWidget extends WP_Widget {
</div>
<?php $wp_query->is_single = false;
endwhile;
} elseif (is_single() & in_comic_category()) { ?>
} elseif (is_single() && in_comic_category()) { ?>
<div class="menunav-prev">
<?php previous_comic_link('%link', '&lsaquo;'); ?>
</div>