Beispiel #1
0
function thesis_post_content($post_count = false, $post_image = false)
{
    global $wp_query, $post, $thesis_design;
    thesis_hook_before_post($post_count);
    if ($post_image['show'] && $post_image['y'] == 'before-post') {
        echo $post_image['output'];
    }
    if ($wp_query->is_page && get_post_meta($post->ID, '_wp_page_template', true) == 'archives.php') {
        thesis_hook_archives_template();
    } elseif (($wp_query->is_home || $wp_query->is_archive || $wp_query->is_search) && $thesis_design->display['posts']['excerpts'] || ($wp_query->is_archive || $wp_query->is_search) && $thesis_design->display['archives']['style'] == 'excerpts') {
        the_excerpt();
    } else {
        the_content(thesis_read_more_text());
    }
    if ($wp_query->is_single || $wp_query->is_page) {
        link_pages('<p><strong>Pages:</strong> ', '</p>', 'number');
    }
    thesis_hook_after_post($post_count);
}
Beispiel #2
0
function thesis_post_content($post_count = false, $post_image = false)
{
    global $thesis;
    thesis_hook_before_post($post_count);
    if ($post_image['show'] && $post_image['y'] == 'before-post') {
        echo $post_image['output'];
    }
    if ((is_home() || is_archive() || is_search()) && $thesis['display']['posts']['excerpts'] || (is_archive() || is_search()) && $thesis['display']['archives']['style'] == 'excerpts') {
        the_excerpt();
    } else {
        the_content(thesis_read_more_text());
    }
    if (is_single() || is_page()) {
        link_pages('<p><strong>Pages:</strong> ', '</p>', 'number');
    }
    thesis_hook_after_post($post_count);
}