*shakes fist at $post* I'll control you someday !

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-12-25 12:43:32 -08:00
parent 15ec1d1c08
commit c34a4d6f50
4 changed files with 6 additions and 5 deletions

View File

@ -83,7 +83,7 @@ class ComicPressMediaHandling {
// @codeCoverageIgnoreStart
function _abspath() {
return trailingslashit($this->_resolve_regex_path(realpath(ABSPATH)));
return trailingslashit($this->_resolve_regex_path(ABSPATH));
}
// @codeCoverageIgnoreEnd

View File

@ -105,6 +105,7 @@ function comicpress_display_comic_navigation() {
if (!$comicpress_options['disable_default_comic_nav']) {
$first_comic = get_first_comic_permalink();
$last_comic = get_last_comic_permalink();
$wp_query->is_single = true;
if (!is_search() && !is_archive() && !is_page() && in_comic_category()) { ?>
<div class="nav">
<?php if ( get_permalink() != $first_comic ) { ?><div class="nav-first"><a href="<?php echo $first_comic ?>"><?php _e('&lsaquo;&lsaquo; First','comicpress'); ?></a></div><?php } ?>

View File

@ -20,8 +20,8 @@
<?php } ?>
<?php
Protect();
if (!$comicpress_options['disable_comic_frontpage'] && is_home()) {
Protect();
$comic_query = 'showposts=1&cat='.get_all_comic_categories_as_cat_string();
$posts = query_posts($comic_query);
if (have_posts()) {
@ -30,9 +30,9 @@
display_comic_area();
endwhile;
}
Restore();
UnProtect();
}
Restore();
UnProtect();
if (is_single() & in_comic_category()) {
display_comic_area();
}

View File

@ -7,7 +7,7 @@ if (!$comicpress_options['disable_lrsidebars_frontpage']) { ?>
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left Sidebar') ) :
if (!is_cp_theme_layout('standard,v')) {
the_widget('ComicPressCalendarWidget');
the_widget('ComicPressArchiveDropdownWidget','mode=monthly_archive');
// the_widget('ComicPressArchiveDropdownWidget','mode=monthly_archive');
}
the_widget('ComicPressLatestComicsWidget');
endif;