Exemple #1
0
function thesis_post_box($classes = '', $post_count = false)
{
    $post_image = thesis_post_image_info('image');
    thesis_hook_before_post_box($post_count);
    echo "\t\t\t<div class=\"" . join(' ', get_post_class($classes)) . "\" id=\"post-" . get_the_ID() . "\">\n";
    thesis_hook_post_box_top($post_count);
    thesis_headline_area($post_count, $post_image);
    echo "\t\t\t\t<div class=\"format_text entry-content\">\n";
    thesis_post_content($post_count, $post_image);
    echo "\t\t\t\t</div>\n";
    thesis_hook_post_box_bottom($post_count);
    echo "\t\t\t</div>\n\n";
    thesis_hook_after_post_box($post_count);
}
Exemple #2
0
    function archive()
    {
        global $thesis_design;
        thesis_archive_intro();
        if ($thesis_design->display['archives']['style'] == 'titles') {
            $post_count = 1;
            while (have_posts()) {
                the_post();
                $classes = 'post_box';
                $post_image = thesis_post_image_info('image');
                if ($post_count == 1) {
                    $classes .= ' top';
                }
                thesis_hook_before_post_box($post_count);
                ?>
			<div <?php 
                post_class($classes);
                ?>
 id="post-<?php 
                the_ID();
                ?>
">
<?php 
                thesis_headline_area($post_count, $post_image);
                ?>
			</div>

<?php 
                thesis_hook_after_post_box($post_count);
                $post_count++;
            }
        } else {
            call_user_func(apply_filters('thesis_custom_loop', array('thesis_loop', 'home')));
        }
    }
Exemple #3
0
function thesis_archive_loop()
{
    global $thesis;
    thesis_hook_archive_info();
    if ($thesis['display']['archives']['style'] == 'titles') {
        $post_count = 1;
        while (have_posts()) {
            the_post();
            $classes = 'post_box';
            $post_image = thesis_post_image_info('image');
            if ($post_count == 1) {
                $classes .= ' top';
            }
            thesis_hook_before_post_box($post_count);
            ?>
			<div <?php 
            post_class($classes);
            ?>
 id="post-<?php 
            the_ID();
            ?>
">
				<?php 
            thesis_headline_area($post_count, $post_image);
            ?>
			</div>

<?php 
            thesis_hook_after_post_box($post_count);
            $post_count++;
        }
    } else {
        thesis_home_loop();
    }
}