comicpress-2.8/functions/dual-columns.php

32 lines
1.1 KiB
PHP
Raw Permalink Normal View History

<?php
function comicpress_dual_columns() {
global $comicpress_options; ?>
2009-11-20 05:02:23 +00:00
<div id="dualcolumns">
<div class="column_one">
<div class="column_one_header"></div>
<?php $blog_query = 'showposts='.$comicpress_options['blog_postcount'].'&cat="-'.exclude_comic_categories().'"&author='.$comicpress_options['author_column_one'].'&paged='.$paged;
2009-11-20 05:02:23 +00:00
$posts = query_posts($blog_query);
if (have_posts()) {
while (have_posts()) : the_post();
comicpress_display_post();
2009-11-20 05:02:23 +00:00
endwhile;
} ?>
<span class="viewpostsbyone">View all posts by: <?php the_author_posts_link(); ?><span><br />
</div>
<div class="column_two">
<div class="column_two_header"></div>
<?php $blog_query = 'showposts='.$comicpress_options['blog_postcount'].'&cat="-'.exclude_comic_categories().'"&author='.$comicpress_options['author_column_two'];
2009-11-20 05:02:23 +00:00
$posts = query_posts($blog_query);
if (have_posts()) {
while (have_posts()) : the_post();
comicpress_display_post();
2009-11-20 05:02:23 +00:00
endwhile;
} ?>
<span class="viewpostsbytwo">View all posts by: <?php the_author_posts_link(); ?></span><br />
</div>
<div class="clear"></div>
</div>
<?php }
?>