Example #1
0
get_header();
?>

<div id="content" class="span8">
    <div class="padder">
        <div class="clear"></div>

        <?php 
do_action('bp_before_blog_home');
?>

        <?php 
if ($cap->posts_lists_style_home == 'magazine') {
    $args = array();
    $args['amount'] = get_option('posts_per_page', 9);
    $args['img_position'] = cc_get_magazine_style($cap->magazine_style_home);
    echo cc_list_posts($args);
    ?>

            <div class="navigation">
                <div class="alignleft"><?php 
    next_posts_link(__('&larr; Previous Entries', 'cc'));
    ?>
</div>
                <div class="alignright"><?php 
    previous_posts_link(__('Next Entries &rarr;', 'cc'));
    ?>
</div>
            </div>
        <?php 
} else {
Example #2
0
        $args['category_name'] = get_query_var('category_name');
        $magazine_style = $cap->magazine_style_taxonomy;
    } else {
        if ($cap->posts_lists_style_dates == 'magazine' && is_date()) {
            $args['year'] = get_query_var('year');
            $args['monthnum'] = get_query_var('monthnum');
            $magazine_style = $cap->magazine_style_dates;
        } else {
            if ($cap->posts_lists_style_author == 'magazine' && is_author()) {
                $args['author'] = get_query_var('author');
                $magazine_style = $cap->magazine_style_author;
            }
        }
    }
    if ($magazine_style) {
        $args['img_position'] = cc_get_magazine_style($magazine_style);
    }
}
if (is_tag()) {
    $args['tag'] = get_query_var('tag');
}
if (is_author()) {
    $args['author'] = get_query_var('author');
}
?>

            <header class="page-header">
                <h3 class="page-title">
                    <?php 
if (is_day()) {
    ?>