Beispiel #1
0
/**
 * This is function comicpress_get_next_comic_permalink
 *
 * @return mixed false if no next comic permalink, else return the permalink
 *
 */
function comicpress_get_next_comic_permalink($in_same_category = false)
{
    $next_comic = comicpress_get_next_comic($in_same_category);
    if (is_object($next_comic)) {
        if (isset($next_comic->ID)) {
            return apply_filters('comicpress_get_next_comic_permalink', get_permalink($next_comic->ID));
        }
    }
    return false;
}
Beispiel #2
0
<?php

get_header();
if (comicpress_themeinfo('blogposts_with_comic')) {
    Protect();
    global $cur_date, $next_date, $prev_date;
    $cur_date = $next_date = $prev_date = null;
    $cur_date = mysql2date('Y-m-j', $post->post_date);
    $next_comic = comicpress_get_next_comic();
    $prev_comic = comicpress_get_previous_comic();
    if (!empty($next_comic)) {
        $next_comic = (array) $next_comic;
        $next_date = mysql2date('Y-m-j', $next_comic['post_date']);
    }
    if (!empty($prev_comic)) {
        $prev_comic = (array) $prev_comic;
        $prev_date = mysql2date('Y-m-j', $prev_comic['post_date']);
    }
    UnProtect();
}
if (have_posts()) {
    while (have_posts()) {
        the_post();
        $blog_query = 'showposts=' . comicpress_themeinfo('blog_postcount') . '&order=asc&cat=' . comicpress_exclude_comic_categories();
        if (!comicpress_in_comic_category() || comicpress_in_comic_category() && !comicpress_themeinfo('disable_comic_blog_single')) {
            comicpress_display_post();
            comments_template('', true);
            $blog_query = 'showposts=' . comicpress_themeinfo('blog_postcount') . '&order=asc&cat=' . comicpress_exclude_comic_categories();
        }
    }
    if (is_active_sidebar('blog')) {