コード例 #1
0
ファイル: content.php プロジェクト: CherylMuniz/fashion
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);
}
コード例 #2
0
ファイル: loop.php プロジェクト: billerby/Surdeg
function thesis_page_loop()
{
    global $post, $thesis;
    while (have_posts()) {
        the_post();
        $post_image = thesis_post_image_info('image');
        thesis_hook_before_post_box();
        ?>
			<div class="post_box top" id="post-<?php 
        the_ID();
        ?>
">
				<?php 
        thesis_headline_area(false, $post_image);
        ?>
				<div class="format_text">
<?php 
        if (get_post_meta($post->ID, '_wp_page_template', true) == 'archives.php') {
            thesis_hook_archives_template();
        } else {
            thesis_post_content(false, $post_image);
        }
        ?>
				</div>
			</div>

<?php 
        thesis_hook_after_post_box();
        if (!$thesis['display']['comments']['disable_pages']) {
            comments_template();
        }
    }
}