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:
parent
b0ad9bec80
commit
5ef1e94826
|
@ -10,6 +10,9 @@ if (!$comicpress_options['disable_lrsidebars_frontpage']) { ?>
|
||||||
the_widget('ComicPressCalendarWidget');
|
the_widget('ComicPressCalendarWidget');
|
||||||
the_widget('ComicpressArchiveDropdownWidget','mode=monthly_archive');
|
the_widget('ComicpressArchiveDropdownWidget','mode=monthly_archive');
|
||||||
}
|
}
|
||||||
|
if ($comicpress_options['disable_comic_frontpage']) {
|
||||||
|
the_widget('ComicPressLatestThumbnailWidget');
|
||||||
|
}
|
||||||
the_widget('WP_Widget_Search');
|
the_widget('WP_Widget_Search');
|
||||||
the_widget('WP_Widget_Pages');
|
the_widget('WP_Widget_Pages');
|
||||||
the_widget('WP_Widget_Categories','hierarchical=1&count=1');
|
the_widget('WP_Widget_Categories','hierarchical=1&count=1');
|
||||||
|
|
|
@ -34,7 +34,7 @@ class ComicPressMenubarWidget extends WP_Widget {
|
||||||
<a href="<?php bloginfo('rss2_url') ?>" title="RSS Feed" class="menunav-rss">RSS</a>
|
<a href="<?php bloginfo('rss2_url') ?>" title="RSS Feed" class="menunav-rss">RSS</a>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php if ($comicpress_options['enable_navigation_in_menubar']) { ?>
|
<?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());
|
$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();
|
||||||
global $wp_query; $wp_query->is_single = true; ?>
|
global $wp_query; $wp_query->is_single = true; ?>
|
||||||
|
@ -43,7 +43,7 @@ class ComicPressMenubarWidget extends WP_Widget {
|
||||||
</div>
|
</div>
|
||||||
<?php $wp_query->is_single = false;
|
<?php $wp_query->is_single = false;
|
||||||
endwhile;
|
endwhile;
|
||||||
} elseif (is_single() & in_comic_category()) { ?>
|
} elseif (is_single() && in_comic_category()) { ?>
|
||||||
<div class="menunav-prev">
|
<div class="menunav-prev">
|
||||||
<?php previous_comic_link('%link', '‹'); ?>
|
<?php previous_comic_link('%link', '‹'); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue