2009-06-13 11:58:02 +00:00
|
|
|
<?php get_header() ?>
|
|
|
|
|
2009-07-01 00:02:33 +00:00
|
|
|
<div id="content" class="archive">
|
2009-06-13 11:58:02 +00:00
|
|
|
|
2009-06-30 23:53:35 +00:00
|
|
|
<div class="post-page-head"></div>
|
|
|
|
<div class="post-page">
|
2009-06-30 23:53:16 +00:00
|
|
|
<?php
|
|
|
|
$tmp_search = new WP_Query('s=' . wp_specialchars($_GET['s']) . '&show_posts=-1&posts_per_page=-1');
|
|
|
|
$count = $tmp_search->post_count;
|
|
|
|
?>
|
|
|
|
<h2 class="pagetitle">Transcript search for ‘<?php the_search_query() ?>’</h2>
|
|
|
|
Found <?php echo $count; ?> result<?php if ($count !== 1) { echo "s"; } ?>.
|
2009-06-30 23:53:35 +00:00
|
|
|
</div>
|
|
|
|
<div class="post-page-foot"></div>
|
|
|
|
|
|
|
|
<?php if (have_posts()) : ?>
|
|
|
|
|
|
|
|
<?php $posts = query_posts($query_string.'&order=asc');
|
|
|
|
while (have_posts()) : the_post() ?>
|
|
|
|
|
|
|
|
<?php if (in_comic_category()) { ?>
|
|
|
|
|
|
|
|
<div class="post-comic-head"></div>
|
|
|
|
<div class="post-comic">
|
2009-07-17 01:51:52 +00:00
|
|
|
<div class="comicdate">
|
|
|
|
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
|
|
|
</div>
|
|
|
|
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
|
|
|
By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> <?php edit_post_link('[edit this]'); ?> <br />
|
|
|
|
Posted in: <?php the_category(','); ?>
|
2009-06-30 23:53:35 +00:00
|
|
|
<div class="comicarchiveframe" style="width:<?php echo $archive_comic_width ?>px;">
|
2009-07-17 01:51:52 +00:00
|
|
|
<a href="<?php the_permalink() ?>"><img src="<?php the_comic_archive() ?>" alt="<?php the_title() ?>" title="<?php the_transcript() ?>" width="<?php echo $archive_comic_width ?>" /><br />
|
2009-06-30 23:53:35 +00:00
|
|
|
</div>
|
|
|
|
<br class="clear-margins" />
|
|
|
|
</div>
|
|
|
|
<div class="post-comic-foot"></div>
|
|
|
|
|
|
|
|
<?php } else { ?>
|
|
|
|
|
|
|
|
<div class="post-head"></div>
|
|
|
|
<div class="post">
|
2009-07-17 01:51:52 +00:00
|
|
|
<div class="comicdate">
|
|
|
|
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
|
|
|
</div>
|
|
|
|
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
|
|
|
By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> <?php edit_post_link('[edit this]'); ?> <br />
|
|
|
|
Posted in: <?php the_category(','); ?>
|
2009-06-30 23:53:35 +00:00
|
|
|
<?php the_excerpt() ?>
|
|
|
|
<br class="clear-margins" />
|
|
|
|
</div>
|
|
|
|
<div class="post-foot"></div>
|
|
|
|
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
<?php endwhile; ?>
|
|
|
|
|
2009-07-15 20:57:06 +00:00
|
|
|
<?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } else { ?>
|
|
|
|
<div class="pagenav">
|
|
|
|
<div class="pagenav-right"><?php next_posts_link('Next Page ›') ?></div>
|
|
|
|
<div class="pagenav-left"><?php previous_posts_link('‹ Previous Page') ?></div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
2009-06-30 23:53:35 +00:00
|
|
|
|
|
|
|
<?php else : ?>
|
|
|
|
|
|
|
|
<div class="post-page-head"></div>
|
|
|
|
<div class="post-page">
|
|
|
|
<h3>No transcripts found.</h3>
|
|
|
|
<p>Try another search?</p>
|
|
|
|
<p><?php include (TEMPLATEPATH . '/searchform-transcript.php') ?></p>
|
|
|
|
<br class="clear-margins" />
|
|
|
|
</div>
|
|
|
|
<div class="post-page-foot"></div>
|
|
|
|
|
|
|
|
<?php endif; ?>
|
2009-06-13 11:58:02 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php include(TEMPLATEPATH . '/sidebar.php') ?>
|
|
|
|
|
|
|
|
<?php get_footer() ?>
|