Compare commits
22 Commits
Author | SHA1 | Date |
---|---|---|
John Bintz | f6f459ed85 | |
John Bintz | cac287bc5d | |
John Bintz | 605f5e9386 | |
John Bintz | 44bc1e7ce8 | |
John Bintz | 877f588c07 | |
John Bintz | c4fc0e08bf | |
John Bintz | 16f5dda86f | |
John Bintz | 90aa7c111a | |
John Bintz | ba387cd1c2 | |
John Bintz | 83a5955ff0 | |
John Bintz | 96e19df82a | |
John Bintz | 4a5fe829a2 | |
John Bintz | c313dc14ae | |
John Bintz | c4b913b45b | |
John Bintz | 2a330b6fcf | |
John Bintz | 0885249d44 | |
John Bintz | db2b452119 | |
John Bintz | a41dd3ccf0 | |
John Bintz | 21d163cf9e | |
John Bintz | f4ab1c5821 | |
John Bintz | 71c643fd2c | |
John Bintz | 99331e439d |
|
@ -1,2 +1,2 @@
|
||||||
*~
|
*~
|
||||||
|
.directory
|
||||||
|
|
2
404.php
|
@ -11,6 +11,6 @@
|
||||||
<div class="post-page-foot"></div>
|
<div class="post-page-foot"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include(TEMPLATEPATH . '/sidebar.php') ?>
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
<?php get_footer() ?>
|
<?php get_footer() ?>
|
|
@ -120,12 +120,12 @@ $month['12'] = array('month' => 'December', 'days' => '31');
|
||||||
|
|
||||||
<div class="post-page-head"></div>
|
<div class="post-page-head"></div>
|
||||||
<div class="post-page">
|
<div class="post-page">
|
||||||
|
<?php while (have_posts()) : the_post() ?>
|
||||||
<h2 class="pagetitle"><span class="archive-year"><?php echo $archive_year ?></span> <?php the_title() ?></h2>
|
<div class="entry">
|
||||||
|
<h2 class="pagetitle"><span class="archive-year"><?php echo $archive_year; ?></span> <?php the_title() ?></h2>
|
||||||
<div class="entry">
|
<?php the_content(); ?>
|
||||||
<?php while (have_posts()) : the_post(); the_content(); endwhile; ?>
|
</div>
|
||||||
</div>
|
<?php endwhile; ?>
|
||||||
|
|
||||||
<div class="archive-yearlist">|
|
<div class="archive-yearlist">|
|
||||||
<?php $years = $wpdb->get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' ORDER BY post_date ASC");
|
<?php $years = $wpdb->get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' ORDER BY post_date ASC");
|
||||||
|
@ -166,6 +166,6 @@ $month['12'] = array('month' => 'December', 'days' => '31');
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include(TEMPLATEPATH . '/sidebar.php') ?>
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
<?php get_footer() ?>
|
<?php get_footer() ?>
|
|
@ -65,10 +65,12 @@ Template Name: Comic Storyline with Thumbs
|
||||||
|
|
||||||
<div class="post-page-head"></div>
|
<div class="post-page-head"></div>
|
||||||
<div class="post-page">
|
<div class="post-page">
|
||||||
<h2 class="pagetitle"><?php the_title() ?></h2>
|
<?php while (have_posts()) : the_post(); ?>
|
||||||
<div class="entry">
|
<div class="entry">
|
||||||
<?php while (have_posts()) : the_post(); the_content(); endwhile; ?>
|
<h2 class="pagetitle"><?php the_title() ?></h2>
|
||||||
</div>
|
<?php the_content(); ?>
|
||||||
|
</div>
|
||||||
|
<?php endwhile; ?>
|
||||||
<ul id="storyline" class="level-0">
|
<ul id="storyline" class="level-0">
|
||||||
<?php if (get_option('comicpress-enable-storyline-support') == 1) {
|
<?php if (get_option('comicpress-enable-storyline-support') == 1) {
|
||||||
if (($result = get_option("comicpress-storyline-category-order")) !== false) {
|
if (($result = get_option("comicpress-storyline-category-order")) !== false) {
|
||||||
|
@ -126,6 +128,6 @@ Template Name: Comic Storyline with Thumbs
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include(TEMPLATEPATH . '/sidebar.php') ?>
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
<?php get_footer() ?>
|
<?php get_footer() ?>
|
|
@ -64,11 +64,12 @@ Template Name: Comic Storyline Archive
|
||||||
<div id="content" class="narrowcolumn">
|
<div id="content" class="narrowcolumn">
|
||||||
|
|
||||||
<div class="post-page-head"></div>
|
<div class="post-page-head"></div>
|
||||||
<div class="post-page">
|
<?php while (have_posts()) : the_post() ?>
|
||||||
<h2 class="pagetitle"><?php the_title() ?></h2>
|
<div class="entry">
|
||||||
<div class="entry">
|
<h2 class="pagetitle"><?php the_title() ?></h2>
|
||||||
<?php while (have_posts()) : the_post(); the_content(); endwhile; ?>
|
<?php the_content(); ?>
|
||||||
</div>
|
</div>
|
||||||
|
<?php endwhile; ?>
|
||||||
<ul id="storyline" class="level-0">
|
<ul id="storyline" class="level-0">
|
||||||
<?php if (get_option('comicpress-enable-storyline-support') == 1) {
|
<?php if (get_option('comicpress-enable-storyline-support') == 1) {
|
||||||
if (($result = get_option("comicpress-storyline-category-order")) !== false) {
|
if (($result = get_option("comicpress-storyline-category-order")) !== false) {
|
||||||
|
@ -128,6 +129,6 @@ Template Name: Comic Storyline Archive
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include(TEMPLATEPATH . '/sidebar.php') ?>
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
<?php get_footer() ?>
|
<?php get_footer() ?>
|
|
@ -37,12 +37,12 @@ Template Name: Comic Year Archive
|
||||||
|
|
||||||
<div class="post-page-head"></div>
|
<div class="post-page-head"></div>
|
||||||
<div class="post-page">
|
<div class="post-page">
|
||||||
|
<?php while (have_posts()) : the_post() ?>
|
||||||
<h2 class="pagetitle"><span class="archive-year"><?php echo $archive_year; ?></span> <?php the_title() ?></h2>
|
<div class="entry">
|
||||||
|
<h2 class="pagetitle"><span class="archive-year"><?php echo $archive_year; ?></span> <?php the_title() ?></h2>
|
||||||
<div class="entry">
|
<?php the_content(); ?>
|
||||||
<?php while (have_posts()) : the_post(); the_content(); endwhile; ?>
|
</div>
|
||||||
</div>
|
<?php endwhile; ?>
|
||||||
|
|
||||||
<div class="archive-yearlist">|
|
<div class="archive-yearlist">|
|
||||||
<?php $years = $wpdb->get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' ORDER BY post_date ASC");
|
<?php $years = $wpdb->get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' ORDER BY post_date ASC");
|
||||||
|
@ -66,6 +66,6 @@ Template Name: Comic Year Archive
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include(TEMPLATEPATH . '/sidebar.php') ?>
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
<?php get_footer() ?>
|
<?php get_footer() ?>
|
|
@ -52,6 +52,6 @@ Template Name: Comic Archive
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include(TEMPLATEPATH . '/sidebar.php') ?>
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
<?php get_footer() ?>
|
<?php get_footer() ?>
|
186
archive.php
|
@ -1,90 +1,98 @@
|
||||||
<?php get_header() ?>
|
<?php get_header() ?>
|
||||||
|
|
||||||
<div id="content" class="archive">
|
<div id="content" class="narrowcolumn">
|
||||||
|
|
||||||
<?php if (have_posts()) : ?>
|
<?php if (have_posts()) : ?>
|
||||||
|
|
||||||
<div class="post-page-head"></div>
|
<div class="post-page-head"></div>
|
||||||
<div class="post-page">
|
<div class="post-page">
|
||||||
|
|
||||||
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
|
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
|
||||||
<?php /* Category Archive */ if (is_category()) { ?>
|
<?php /* Category Archive */ if (is_category()) { ?>
|
||||||
<div class="content"><h2 class="pagetitle">Archive for ‘<?php single_cat_title() ?>’</h2></div>
|
<div class="content"><h2 class="pagetitle">Archive for ‘<?php single_cat_title() ?>’</h2></div>
|
||||||
<?php /* Tag Archive */ } elseif( is_tag() ) { ?>
|
<?php /* Tag Archive */ } elseif( is_tag() ) { ?>
|
||||||
<div class="content"><h2 class="pagetitle">Posts Tagged ‘<?php single_tag_title() ?>’</h2></div>
|
<div class="content"><h2 class="pagetitle">Posts Tagged ‘<?php single_tag_title() ?>’</h2></div>
|
||||||
<?php /* Daily Archive */ } elseif (is_day()) { ?>
|
<?php /* Daily Archive */ } elseif (is_day()) { ?>
|
||||||
<div class="content"><h2 class="pagetitle">Archive for <?php the_time('F jS, Y') ?></h2></div>
|
<div class="content"><h2 class="pagetitle">Archive for <?php the_time('F jS, Y') ?></h2></div>
|
||||||
<?php /* Monthly Archive */ } elseif (is_month()) { ?>
|
<?php /* Monthly Archive */ } elseif (is_month()) { ?>
|
||||||
<div class="content"><h2 class="pagetitle">Archive for <?php the_time('F, Y') ?></h2></div>
|
<div class="content"><h2 class="pagetitle">Archive for <?php the_time('F, Y') ?></h2></div>
|
||||||
<?php /* Yearly Archive */ } elseif (is_year()) { ?>
|
<?php /* Yearly Archive */ } elseif (is_year()) { ?>
|
||||||
<div class="content"><h2 class="pagetitle">Archive for <?php the_time('Y') ?></h2></div>
|
<div class="content"><h2 class="pagetitle">Archive for <?php the_time('Y') ?></h2></div>
|
||||||
<?php /* Author Archive */ } elseif (is_author()) { ?>
|
<?php /* Author Archive */ } elseif (is_author()) { ?>
|
||||||
<div class="content"><h2 class="pagetitle">Author Archive</h2></div>
|
<div class="content"><h2 class="pagetitle">Author Archive</h2></div>
|
||||||
<?php /* Paged Archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
|
<?php /* Paged Archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
|
||||||
<div class="content"><h2 class="pagetitle">Archives</h2></div>
|
<div class="content"><h2 class="pagetitle">Archives</h2></div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<br class="clear-margins" />
|
<br class="clear-margins" />
|
||||||
</div>
|
</div>
|
||||||
<div class="post-page-foot"></div>
|
<div class="post-page-foot"></div>
|
||||||
|
|
||||||
<?php $posts = query_posts($query_string.'&order=asc');
|
<?php $posts = query_posts($query_string.'&order=asc');
|
||||||
while (have_posts()) : the_post() ?>
|
while (have_posts()) : the_post() ?>
|
||||||
|
|
||||||
<?php global $archive_comic_width; if (in_comic_category()) { ?>
|
<?php global $archive_comic_width; if (in_comic_category()) { ?>
|
||||||
|
|
||||||
<div class="post-comic-head"></div>
|
<div class="post-comic-head"></div>
|
||||||
<div class="post-comic">
|
<div class="post-comic">
|
||||||
<div class="comicarchiveframe" style="width:<?php echo $archive_comic_width; ?>px;">
|
<div class="comicarchiveframe" style="width:<?php echo $archive_comic_width; ?>px;">
|
||||||
<a href="<?php the_permalink() ?>"><img src="<?php the_comic_archive() ?>" alt="<?php the_title() ?>" title="Click for full size." width="<?php echo $archive_comic_width ?>" /><br />
|
<div class="comicdate">
|
||||||
<h3><?php the_title() ?></h3>
|
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
||||||
<small><?php the_time('F jS, Y') ?></small></a>
|
</div>
|
||||||
</div>
|
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
||||||
<br class="clear-margins" />
|
By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> <?php edit_post_link('[edit this]'); ?> <br />
|
||||||
</div>
|
Posted in: <?php the_category(','); ?>
|
||||||
<div class="post-comic-foot"></div>
|
<a href="<?php the_permalink() ?>"><img src="<?php the_comic_archive() ?>" alt="<?php the_title() ?>" title="Click for full size." width="<?php echo $archive_comic_width ?>" /><br />
|
||||||
|
<h3><?php the_title() ?></h3>
|
||||||
<?php } else { ?>
|
<small><?php the_time('F jS, Y') ?></small></a>
|
||||||
|
</div>
|
||||||
<div class="post-head"></div>
|
<br class="clear-margins" />
|
||||||
<div class="post archive">
|
</div>
|
||||||
<h3 id="post-<?php the_ID() ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute() ?>"><?php the_title() ?></a></h3>
|
<div class="post-comic-foot"></div>
|
||||||
<div class="postdate"><?php the_time('F jS, Y') ?></div>
|
|
||||||
<div class="entry"><?php the_content() ?></div>
|
<?php } else { ?>
|
||||||
<div class="tags">
|
|
||||||
<?php the_tags('└ Tags: ', ', ', ''); edit_post_link('Edit Post', ' [ ', ' ] ') ?>
|
<div class="post-head"></div>
|
||||||
</div>
|
<div class="post archive">
|
||||||
<div class="comment-link">
|
<h3 id="post-<?php the_ID() ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute() ?>"><?php the_title() ?></a></h3>
|
||||||
<?php if ('open' == $post->comment_status) { comments_popup_link('“Comment”', '“1 Comment”', '“% Comments”'); } ?>
|
<div class="postdate"><?php the_time('F jS, Y') ?></div>
|
||||||
</div>
|
<div class="entry"><?php the_content() ?></div>
|
||||||
<br class="clear-margins" />
|
<div class="tags">
|
||||||
</div>
|
<?php the_tags('└ Tags: ', ', ', ''); edit_post_link('Edit Post', ' [ ', ' ] ') ?>
|
||||||
<div class="post-foot"></div>
|
</div>
|
||||||
|
<div class="comment-link">
|
||||||
<?php } ?>
|
<?php if ('open' == $post->comment_status) { comments_popup_link('“Comment”', '“1 Comment”', '“% Comments”'); } ?>
|
||||||
|
</div>
|
||||||
<?php endwhile; ?>
|
<br class="clear-margins" />
|
||||||
|
</div>
|
||||||
<div class="pagenav">
|
<div class="post-foot"></div>
|
||||||
<div class="pagenav-right"><?php next_posts_link('Next Page ›') ?></div>
|
|
||||||
<div class="pagenav-left"><?php previous_posts_link('‹ Previous Page') ?></div>
|
<?php } ?>
|
||||||
<div class="clear"></div>
|
|
||||||
</div>
|
<?php endwhile; ?>
|
||||||
|
|
||||||
<?php else : ?>
|
<?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } else { ?>
|
||||||
|
<div class="pagenav">
|
||||||
<div class="post-head"></div>
|
<div class="pagenav-right"><?php next_posts_link('Next Page ›') ?></div>
|
||||||
<div class="post">
|
<div class="pagenav-left"><?php previous_posts_link('‹ Previous Page') ?></div>
|
||||||
<h3>No entries found.</h3>
|
<div class="clear"></div>
|
||||||
<p>Try another search?</p>
|
</div>
|
||||||
<p><?php include (TEMPLATEPATH . '/searchform.php') ?></p>
|
<?php } ?>
|
||||||
<br class="clear-margins" />
|
|
||||||
</div>
|
<?php else : ?>
|
||||||
<div class="post-foot"></div>
|
|
||||||
|
<div class="post-head"></div>
|
||||||
<?php endif; ?>
|
<div class="post">
|
||||||
|
<h3>No entries found.</h3>
|
||||||
</div>
|
<p>Try another search?</p>
|
||||||
|
<p><?php include (TEMPLATEPATH . '/searchform.php') ?></p>
|
||||||
<?php include(TEMPLATEPATH . '/sidebar.php') ?>
|
<br class="clear-margins" />
|
||||||
|
</div>
|
||||||
|
<div class="post-foot"></div>
|
||||||
|
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
<?php get_footer() ?>
|
<?php get_footer() ?>
|
|
@ -18,6 +18,6 @@ Template Name: Archives
|
||||||
<div class="post-page-foot"></div>
|
<div class="post-page-foot"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include(TEMPLATEPATH . '/sidebar.php') ?>
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
<?php get_footer() ?>
|
<?php get_footer() ?>
|
|
@ -0,0 +1,13 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
function buy_this_comic() {
|
||||||
|
$buythiscomic = get_post_meta( get_the_ID(), "buythiscomic", true );
|
||||||
|
if ( $buythiscomic !== 'sold' ) {
|
||||||
|
echo '<div class="buythis"><form method="post" action="/shop/">';
|
||||||
|
echo '<input type="hidden" name="comic" value="'.get_the_ID().'" />';
|
||||||
|
echo '<button class="buythisbutton" type="submit" value="submit" name="submit"></button></form></div>';
|
||||||
|
echo '<div class="clear"></div>';
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
|
@ -0,0 +1,106 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
Template Name: Buy Print
|
||||||
|
Template Author: Philip M. Hofer (Frumph)
|
||||||
|
Template URL: http://webcomicplanet.com/forum/
|
||||||
|
Template Author Email: philip@frumph.net
|
||||||
|
*/
|
||||||
|
get_header();
|
||||||
|
if (isset($_REQUEST['comic'])) $comicnum = $_REQUEST['comic'];
|
||||||
|
?>
|
||||||
|
|
||||||
|
<?php get_header() ?>
|
||||||
|
|
||||||
|
<div id="content" class="narrowcolumn">
|
||||||
|
<?php if (!empty($comicnum)): ?>
|
||||||
|
<?php $temppost = $post; ?>
|
||||||
|
<?php $post = & get_post( $comicnum ); ?>
|
||||||
|
<div class="post-page-head"></div>
|
||||||
|
<div class="post-page">
|
||||||
|
<div style="float:right;">
|
||||||
|
<br />
|
||||||
|
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/paypal.png" alt="Powered by Paypal" /><br />
|
||||||
|
</div>
|
||||||
|
<div style="float:left;">
|
||||||
|
<h2 class="pagetitle">Buy Print!</h2>
|
||||||
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
Comic ID - #<?php echo $comicnum; ?><br />
|
||||||
|
Title: <?php echo the_title(); ?><br />
|
||||||
|
<br />
|
||||||
|
<?php $post = & get_post( $comicnum ); ?>
|
||||||
|
<center>
|
||||||
|
<img src="<?php echo the_comic_archive(); ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" width="<?php echo $archive_comic_width; ?>" /><br />
|
||||||
|
<br />
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<td align="left" valign="center">
|
||||||
|
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
||||||
|
<input type="hidden" name="add" value="1">
|
||||||
|
<input type="hidden" name="cmd" value="_cart">
|
||||||
|
<input type="hidden" name="shipping2" value="5.75">
|
||||||
|
<input type="hidden" name="cn" value="Special Instructions (optional)">
|
||||||
|
<input type="hidden" name="cancel_return" value="http://comic.frumph.net/shop/">
|
||||||
|
<input type="hidden" name="item_name" value="Comic Strip">
|
||||||
|
<input type="hidden" name="notify_url" value="http://comic.frumph.net/shop/">
|
||||||
|
<input type="hidden" name="page_style" value="Frumph Agencies">
|
||||||
|
<input type="hidden" name="return" value="http://comic.frumph.net/shop/">
|
||||||
|
<input type="hidden" name="amount" value="23.00">
|
||||||
|
<input type="hidden" name="item_number" value="Comic ID (<?php echo $comicnum; ?>) - <?php echo the_title(); ?>">
|
||||||
|
<input type="hidden" name="business" value="frumph_dragon@yahoo.com">
|
||||||
|
<input type="hidden" name="shipping" value="4.75">
|
||||||
|
US/Canada<br>
|
||||||
|
$23 + $4.75 shipping<br />
|
||||||
|
<input type="image" src="<?php bloginfo('stylesheet_directory'); ?>/images/buynow_paypal.png" name="submit32" alt="Make payments with PayPal - it's fast, free and secure!" />
|
||||||
|
</form>
|
||||||
|
</td>
|
||||||
|
<td align="left" valign="center">
|
||||||
|
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
||||||
|
<input type="hidden" name="add" value="1">
|
||||||
|
<input type="hidden" name="cmd" value="_cart">
|
||||||
|
<input type="hidden" name="shipping2" value="20.00">
|
||||||
|
<input type="hidden" name="cn" value="Special Instructions (optional)">
|
||||||
|
<input type="hidden" name="cancel_return" value="http://comic.frumph.net/shop/">
|
||||||
|
<input type="hidden" name="item_name" value="Comic Strip">
|
||||||
|
<input type="hidden" name="notify_url" value="http://comic.frumph.net/shop/">
|
||||||
|
<input type="hidden" name="page_style" value="Frumph Agencies">
|
||||||
|
<input type="hidden" name="return" value="http://comic.frumph.net/shop/">
|
||||||
|
<input type="hidden" name="amount" value="23.00">
|
||||||
|
<input type="hidden" name="item_number" value="Comic ID (<?php echo $comicnum; ?>) - <?php echo the_title(); ?>">
|
||||||
|
<input type="hidden" name="business" value="frumph_dragon@yahoo.com">
|
||||||
|
<input type="hidden" name="shipping" value="12.00">
|
||||||
|
International<br>
|
||||||
|
$23 + $12.00 shipping<br />
|
||||||
|
<input type="image" src="<?php bloginfo('stylesheet_directory'); ?>/images/buynow_paypal.png" name="submit32" alt="Make payments with PayPal - it's fast, free and secure!" />
|
||||||
|
</form>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<br />
|
||||||
|
</center>
|
||||||
|
The purchase of this strip is based on availability. A Print of this strip is what you are purchasing.<br />
|
||||||
|
<br />
|
||||||
|
<?php $post = $temppost; ?>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div>
|
||||||
|
<?php else: ?>
|
||||||
|
<?php if (have_posts()) : while (have_posts()) : the_post() ?>
|
||||||
|
<div class="post-page-head"></div>
|
||||||
|
<div class="post-page" id="post-<?php the_ID() ?>">
|
||||||
|
<h2 class="pagetitle"><?php the_title() ?></h2>
|
||||||
|
<div class="entry">
|
||||||
|
<?php the_content() ?>
|
||||||
|
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')) ?>
|
||||||
|
</div>
|
||||||
|
<?php edit_post_link('Edit this page.', '<p>', '</p>') ?>
|
||||||
|
<br class="clear-margins" />
|
||||||
|
</div>
|
||||||
|
<div class="post-page-foot"></div>
|
||||||
|
<?php endwhile; endif; ?>
|
||||||
|
<?php comments_template(); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
|
<?php get_footer(); ?>
|
|
@ -0,0 +1,49 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
function comic_navigation() {
|
||||||
|
global $post, $wp_query;
|
||||||
|
$temppost = $post;
|
||||||
|
$temp_query = $wp_query;
|
||||||
|
$temp_single = $wp_query->is_single;
|
||||||
|
echo '<div id="comic_navi_wrapper">';
|
||||||
|
echo ' <div id="comic_navi_prev">';
|
||||||
|
$first_comic = get_first_comic_permalink();
|
||||||
|
if ($first_comic != get_permalink()) {
|
||||||
|
echo ' <a href="'.$first_comic.'" class="rollfirst" title="First"> </a>';
|
||||||
|
} else {
|
||||||
|
echo ' <img src="'.get_bloginfo('stylesheet_directory').'/images/disabled_firstroll.png" alt="At First" style="float:left;" class="disabled_navi" />';
|
||||||
|
}
|
||||||
|
$wp_query->is_single = true;
|
||||||
|
$prev_comic = get_permalink(get_adjacent_post(true, '', true));
|
||||||
|
if (!empty($prev_comic) && (get_permalink() != $first_comic)) {
|
||||||
|
echo ' <a href="'.$prev_comic.'" class="rollprev" title="Previous"> </a>';
|
||||||
|
} else {
|
||||||
|
echo ' <img src="'.get_bloginfo('stylesheet_directory').'/images/disabled_prevroll.png" alt="No Previous" style="float:left;" class="disabled_navi" />';
|
||||||
|
}
|
||||||
|
$wp_query->is_single = $temp_single;
|
||||||
|
echo ' </div>';
|
||||||
|
echo ' <div id="comic_navi_next">';
|
||||||
|
$last_comic = get_last_comic_permalink();
|
||||||
|
if ($last_comic != get_permalink()) {
|
||||||
|
echo ' <a href="/" class="rolllast" title="Last"> </a>';
|
||||||
|
} else {
|
||||||
|
echo ' <img src="'.get_bloginfo('stylesheet_directory').'/images/disabled_lastroll.png" alt="No Last" style="float: right;" class="disabled_navi" />';
|
||||||
|
}
|
||||||
|
$next_comic = get_permalink(get_adjacent_post(true, '', false));
|
||||||
|
if (!empty($next_comic) && (get_permalink() != $last_comic)) {
|
||||||
|
echo ' <a href="'.$next_comic.'" class="rollnext" title="Next"> </a>';
|
||||||
|
} else {
|
||||||
|
echo ' <img src="'.get_bloginfo('stylesheet_directory').'/images/disabled_nextroll.png" alt="No Next" style="float: right;" class="disabled_navi" />';
|
||||||
|
}
|
||||||
|
echo ' </div>';
|
||||||
|
echo ' <div class="clear"></div>';
|
||||||
|
echo '</div>';
|
||||||
|
$wp_query = $temp_query;
|
||||||
|
$wp_query->is_single = $temp_single;
|
||||||
|
$post = $temp_post;
|
||||||
|
$temp_post = null;
|
||||||
|
$temp_query = null;
|
||||||
|
$temp_single = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
//COMIC CATEGORY -the WordPress ID of your comic category (default "3").
|
//COMIC CATEGORY -the WordPress ID of your comic category (default "3").
|
||||||
$comiccat = "3";
|
$comiccat = "4";
|
||||||
|
|
||||||
//BLOG CATEGORY - the WordPress ID of your blog category (default "1").
|
//BLOG CATEGORY - the WordPress ID of your blog category (default "1").
|
||||||
$blogcat = "4";
|
$blogcat = "3";
|
||||||
|
|
||||||
//COMIC FOLDER - the folder your comics files are located in (default "comics")
|
//COMIC FOLDER - the folder your comics files are located in (default "comics")
|
||||||
$comic_folder = "comics";
|
$comic_folder = "comics";
|
||||||
|
|
|
@ -0,0 +1,232 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Better display of avatars in comments
|
||||||
|
* Should only be used in comment sections (may update in future)
|
||||||
|
* Checks for false empty commenter URLs 'http://' w/registered users
|
||||||
|
* Adds the class 'photo' to the image
|
||||||
|
* Adds a call to 'images/trackback.jpg' for trackbacks
|
||||||
|
* Adds a call to 'images/pingback.jpg' for pingbacks
|
||||||
|
*
|
||||||
|
* Filters should only return a string for an image URL for the avatar with class $avatar
|
||||||
|
* They should not get the avatar as this is done after the filter
|
||||||
|
*
|
||||||
|
* @since 0.2
|
||||||
|
* @filter
|
||||||
|
*/
|
||||||
|
function comicpress_avatar() {
|
||||||
|
global $comment;
|
||||||
|
|
||||||
|
$url = get_comment_author_url();
|
||||||
|
|
||||||
|
$comment_type = get_comment_type();
|
||||||
|
|
||||||
|
if($comment_type == 'trackback') :
|
||||||
|
$avatar = '/images/trackback.png';
|
||||||
|
|
||||||
|
elseif($comment_type == 'pingback') :
|
||||||
|
$avatar = '/images/pingback.png';
|
||||||
|
|
||||||
|
elseif(get_settings('avatar_default')):
|
||||||
|
$avatar = get_settings('avatar_default');
|
||||||
|
|
||||||
|
endif;
|
||||||
|
|
||||||
|
// $avatar = apply_filters('comicpress_avatar', $avatar);
|
||||||
|
if($url == true && $url != 'http://')
|
||||||
|
echo '<a href="' . $url . '" rel="external nofollow" title="' . wp_specialchars(get_comment_author(), 1) . '">';
|
||||||
|
|
||||||
|
if(function_exists('get_avatar') && $comment_type != 'pingback' && $comment_type != 'trackback' ) {
|
||||||
|
echo str_replace("alt='", "alt='".wp_specialchars(get_comment_author(), 1)."' title='".wp_specialchars(get_comment_author(), 1), get_avatar(get_comment_author_email(), 64));
|
||||||
|
} else {
|
||||||
|
echo '<img src="'.get_bloginfo('stylesheet_directory').$avatar.'" class="avatar photo" />';
|
||||||
|
}
|
||||||
|
|
||||||
|
if($url == true && $url != 'http://')
|
||||||
|
echo '</a>';
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Displays individual comments
|
||||||
|
* Uses the callback parameter for wp_list_comments
|
||||||
|
* Overwrites the default display of comments
|
||||||
|
*
|
||||||
|
* @since 0.2.3
|
||||||
|
*
|
||||||
|
* @param $comment The comment variable
|
||||||
|
* @param $args Array of arguments passed from wp_list_comments
|
||||||
|
* @param $depth What level the particular comment is
|
||||||
|
*/
|
||||||
|
function comicpress_comments_callback($comment, $args, $depth) {
|
||||||
|
$GLOBALS['comment'] = $comment;
|
||||||
|
$GLOBALS['comment_depth'] = $depth;
|
||||||
|
?>
|
||||||
|
|
||||||
|
<li id="comment-<?php comment_ID(); ?>" class="<?php comicpress_comment_class(); ?>">
|
||||||
|
|
||||||
|
<?php comicpress_avatar(); // Avatar filter ?>
|
||||||
|
<div class="comment-meta-data">
|
||||||
|
|
||||||
|
<div class="comment-author vcard">
|
||||||
|
<?php comicpress_comment_author(); ?><br />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<abbr class="comment-time" title="<?php comment_date(__('l, F jS, Y, g:i a','comicpress')); ?>">
|
||||||
|
<?php printf(__('%1$s at %2$s','comicpress'), get_comment_date(), get_comment_time()); ?>
|
||||||
|
</abbr>
|
||||||
|
|
||||||
|
<span class="separator">|</span> <a class="permalink" href="#comment-<?php echo str_replace('&', '&', get_comment_ID()); ?>" title="<?php _e('Permalink to comment','comicpress'); ?>"><?php _e('Permalink','comicpress'); ?></a>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if((get_option('thread_comments')) && ($args['type'] == 'all' || get_comment_type() == 'comment')) :
|
||||||
|
$max_depth = get_option('thread_comments_depth');
|
||||||
|
echo comment_reply_link(array(
|
||||||
|
'reply_text' => __('Reply','comicpress'),
|
||||||
|
'login_text' => __('Log in to reply.','comicpress'),
|
||||||
|
'depth' => $depth,
|
||||||
|
'max_depth' => $max_depth,
|
||||||
|
'before' => '<span class="separator">|</span> <span class="comment-reply-link">',
|
||||||
|
'after' => '</span>'
|
||||||
|
));
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
|
|
||||||
|
<?php edit_comment_link('<span class="edit">'.__('Edit','comicpress').'</span>',' <span class="separator">|</span> ',''); ?>
|
||||||
|
|
||||||
|
<?php if($comment->comment_approved == '0') : ?>
|
||||||
|
<em><?php _e('<span style=\"color:#ff0000;\">Your comment is awaiting moderation.</span>','comicpress'); ?></em>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<br class="clearfloat" />
|
||||||
|
<div class="comment-text">
|
||||||
|
<?php comment_text(); ?>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Ends the display of individual comments
|
||||||
|
* Uses the callback parameter for wp_list_comments
|
||||||
|
* Needs to be used in conjunction with comicpress_comments_callback
|
||||||
|
* Not needed but used just in case something is changed
|
||||||
|
*
|
||||||
|
* @since 0.2.3
|
||||||
|
*/
|
||||||
|
function comicpress_comments_end_callback() {
|
||||||
|
echo '</li>';
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets a class for each comment
|
||||||
|
* Sets alt, odd/even, and author/user classes
|
||||||
|
* Adds author, user, and reader classes
|
||||||
|
*
|
||||||
|
* @since 0.2
|
||||||
|
*/
|
||||||
|
function comicpress_comment_class() {
|
||||||
|
global $comment;
|
||||||
|
static $comment_alt;
|
||||||
|
$classes = array();
|
||||||
|
|
||||||
|
if(function_exists('get_comment_class'))
|
||||||
|
$classes = get_comment_class();
|
||||||
|
|
||||||
|
$classes[] = get_comment_type();;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* User classes
|
||||||
|
*/
|
||||||
|
if($comment->user_id > 0 && $user = get_userdata($comment->user_id)) :
|
||||||
|
|
||||||
|
$classes[] = 'user user-' . $user->user_nicename;
|
||||||
|
|
||||||
|
if($post = get_post($post_id)) :
|
||||||
|
if($comment->user_id === $post->post_author)
|
||||||
|
$classes[] = 'author author-' . $user->user_nicename;
|
||||||
|
endif;
|
||||||
|
else :
|
||||||
|
$classes[] = 'reader';
|
||||||
|
endif;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Alt classes
|
||||||
|
*/
|
||||||
|
if($comment_alt++ % 2) :
|
||||||
|
$classes[] = 'even';
|
||||||
|
$classes[] = 'alt';
|
||||||
|
else :
|
||||||
|
$classes[] = 'odd';
|
||||||
|
endif;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* http://microid.org
|
||||||
|
*/
|
||||||
|
$email = get_comment_author_email();
|
||||||
|
$url = get_comment_author_url();
|
||||||
|
if(!empty($email) && !empty($url)) {
|
||||||
|
$microid = 'microid-mailto+http:sha1:' . sha1(sha1('mailto:'.$email).sha1($url));
|
||||||
|
$classes[] = $microid;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$classes = join(' ', $classes);
|
||||||
|
|
||||||
|
echo $classes;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Properly displays comment author name/link
|
||||||
|
* bbPress and other external systems sometimes don't set a display name for registrations
|
||||||
|
* WP has problems if no display name is set
|
||||||
|
* WP gives registered users URL of 'http://' if none is set
|
||||||
|
*
|
||||||
|
* @since 0.2.2
|
||||||
|
*/
|
||||||
|
function comicpress_comment_author() {
|
||||||
|
global $comment;
|
||||||
|
|
||||||
|
$author = get_comment_author();
|
||||||
|
$url = get_comment_author_url();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Registered members w/o URL defaults to 'http://'
|
||||||
|
*/
|
||||||
|
if($url == 'http://')
|
||||||
|
$url = false;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Registered through bbPress sometimes leaves no display name
|
||||||
|
* Bug with bbPress 0.9 series and WP 2.5 (no later testing)
|
||||||
|
* 'Anonymous' should be localized according to WP, not the theme
|
||||||
|
*/
|
||||||
|
if($comment->user_id > 0) :
|
||||||
|
$user = get_userdata($comment->user_id);
|
||||||
|
if($user->display_name)
|
||||||
|
$author = $user->display_name;
|
||||||
|
elseif($user->user_nickname)
|
||||||
|
$author = $user->nickname;
|
||||||
|
elseif($user->user_nicename)
|
||||||
|
$author = $user->user_nicename;
|
||||||
|
else
|
||||||
|
$author = $user->user_login;
|
||||||
|
endif;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Display link and cite if URL is set
|
||||||
|
* Also properly cites trackbacks/pingbacks
|
||||||
|
*/
|
||||||
|
if($url) :
|
||||||
|
$output = '<cite title="' . $url . '">';
|
||||||
|
$output .= '<a href="' . $url . '" title="' . wp_specialchars($author, 1) . '" class="external nofollow">' . $author . '</a>';
|
||||||
|
$output .= '</cite>';
|
||||||
|
else :
|
||||||
|
$output = '<cite>';
|
||||||
|
$output .= $author;
|
||||||
|
$output .= '</cite>';
|
||||||
|
endif;
|
||||||
|
|
||||||
|
echo $output;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
126
comments.php
|
@ -1,93 +1,97 @@
|
||||||
<div id="content" class="narrowcolumn">
|
<div class="comment-wrap">
|
||||||
<div class="comment-wrap">
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
|
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
|
||||||
die ('Please do not load this page directly. Thanks!');
|
die ('Please do not load this page directly. Thanks!');
|
||||||
|
|
||||||
if ( post_password_required() ) { ?>
|
if ( post_password_required() ) { ?>
|
||||||
<p class="nocomments">This post is password protected. Enter the password to view comments.</p>
|
<p class="nocomments">This post is password protected. Enter the password to view comments.</p>
|
||||||
<?php
|
<?php
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( have_comments() ) : ?>
|
if ( have_comments() ) : ?>
|
||||||
|
|
||||||
<h3 id="comments"><?php comments_number('Discussion¬', 'Discussion¬', 'Discussion (%)¬' );?></h3>
|
<h3 id="comments"><?php comments_number('Discussion¬', 'Discussion¬', 'Discussion (%)¬' );?></h3>
|
||||||
|
|
||||||
<ol class="commentlist">
|
<ol class="commentlist">
|
||||||
<?php wp_list_comments(array('avatar_size'=>64)); ?>
|
<?php wp_list_comments(array(
|
||||||
</ol>
|
'type' => 'all',
|
||||||
<div class="pagenav">
|
'callback' => 'comicpress_comments_callback',
|
||||||
<div class="pagenav-right"><?php next_comments_link('Newer Comments ↑') ?></div>
|
'end-callback' => 'comicpress_comments_end_callback',
|
||||||
<div class="pagenav-left"><?php previous_comments_link('↓ Previous Comments') ?></div>
|
'avatar_size'=>64
|
||||||
<div class="clear"></div>
|
)
|
||||||
</div>
|
); ?>
|
||||||
<?php else : // this is displayed if there are no comments so far ?>
|
</ol>
|
||||||
|
<div class="pagenav">
|
||||||
|
<div class="pagenav-right"><?php next_comments_link('Newer Comments ↑') ?></div>
|
||||||
|
<div class="pagenav-left"><?php previous_comments_link('↓ Previous Comments') ?></div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div>
|
||||||
|
<?php else : // this is displayed if there are no comments so far ?>
|
||||||
|
|
||||||
<?php if ('open' == $post->comment_status) : ?>
|
<?php if ('open' == $post->comment_status) : ?>
|
||||||
<!-- If comments are open, but there are no comments. -->
|
<!-- If comments are open, but there are no comments. -->
|
||||||
|
|
||||||
<?php else : // comments are closed ?>
|
<?php else : // comments are closed ?>
|
||||||
<!-- If comments are closed. -->
|
<!-- If comments are closed. -->
|
||||||
<p class="nocomments">Comments are closed.</p>
|
<p class="nocomments">Comments are closed.</p>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
|
||||||
<?php if ('open' == $post->comment_status) : ?>
|
<?php if ('open' == $post->comment_status) : ?>
|
||||||
|
|
||||||
<div id="respond">
|
<div id="respond">
|
||||||
|
|
||||||
<h3><?php comment_form_title( 'Comment¬', 'Reply to %s¬' ); ?></h3>
|
<h3><?php comment_form_title( 'Comment¬', 'Reply to %s¬' ); ?></h3>
|
||||||
|
|
||||||
<div class="cancel-comment-reply">
|
<div class="cancel-comment-reply">
|
||||||
<small><?php cancel_comment_reply_link(); ?></small>
|
<small><?php cancel_comment_reply_link(); ?></small>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
|
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
|
||||||
<p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logged in</a> to post a comment.</p>
|
<p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logged in</a> to post a comment.</p>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
|
|
||||||
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
|
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
|
||||||
|
|
||||||
<?php if ( $user_ID ) : ?>
|
<?php if ( $user_ID ) : ?>
|
||||||
|
|
||||||
<p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Log out »</a></p>
|
<p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Log out »</a></p>
|
||||||
|
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
|
|
||||||
|
|
||||||
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
|
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
|
||||||
<label for="author"><small>NAME — <a href="http://gravatar.com">Get an avatar</a></small></label></p>
|
<label for="author"><small>NAME — <a href="http://gravatar.com">Get an avatar</a></small></label></p>
|
||||||
|
|
||||||
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
|
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
|
||||||
<label for="email"><small>EMAIL <?php if ($req) echo "— Required / not published"; ?> </small></label></p>
|
<label for="email"><small>EMAIL <?php if ($req) echo "— Required / not published"; ?> </small></label></p>
|
||||||
|
|
||||||
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
|
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
|
||||||
<label for="url"><small>WEBSITE</small></label></p>
|
<label for="url"><small>WEBSITE</small></label></p>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->
|
<!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->
|
||||||
|
|
||||||
<p><textarea name="comment" id="comment" cols="50" rows="5" tabindex="4"></textarea></p>
|
<p><textarea name="comment" id="comment" cols="50" rows="5" tabindex="4"></textarea></p>
|
||||||
|
|
||||||
<p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
|
<p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
|
||||||
<?php comment_id_fields(); ?>
|
<?php comment_id_fields(); ?>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
|
|
||||||
<?php do_action('comment_form', $post->ID); ?>
|
<?php do_action('comment_form', $post->ID); ?>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<?php endif; // If registration required and not logged in ?>
|
<?php endif; // If registration required and not logged in ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
|
@ -0,0 +1,67 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
// Custom Image Header
|
||||||
|
define('HEADER_TEXTCOLOR', '000');
|
||||||
|
define('HEADER_IMAGE', '%s/images/header-blank.png'); // %s is theme dir uri
|
||||||
|
define('HEADER_IMAGE_WIDTH', 760);
|
||||||
|
define('HEADER_IMAGE_HEIGHT', 140);
|
||||||
|
|
||||||
|
function theme_admin_header_style() {
|
||||||
|
?>
|
||||||
|
<style type="text/css">
|
||||||
|
#headimg {
|
||||||
|
width: <?php echo HEADER_IMAGE_WIDTH; ?>px;
|
||||||
|
height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
|
||||||
|
background: url(<?php header_image(); ?>) no-repeat center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#headimg h1, #headimg .description
|
||||||
|
{
|
||||||
|
text-decoration: none;
|
||||||
|
<?php
|
||||||
|
if ( 'blank' == get_header_textcolor() ) { ?>
|
||||||
|
display: none;
|
||||||
|
<?php } else {
|
||||||
|
// Otherwise, set the color to be the user selected one
|
||||||
|
?>
|
||||||
|
color: #<?php header_textcolor();?>;
|
||||||
|
<?php } ?>
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
|
||||||
|
function theme_header_style() {
|
||||||
|
?>
|
||||||
|
<style type="text/css">
|
||||||
|
#header
|
||||||
|
{
|
||||||
|
width: <?php echo HEADER_IMAGE_WIDTH; ?>px;
|
||||||
|
height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
|
||||||
|
background: url(<?php header_image(); ?>) no-repeat center;
|
||||||
|
}
|
||||||
|
|
||||||
|
<?php
|
||||||
|
// Has the text been hidden?
|
||||||
|
// If so, set display to equal none
|
||||||
|
if ( 'blank' == get_header_textcolor() ) { ?>
|
||||||
|
#header h1, #header .description {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
<?php } else {
|
||||||
|
// Otherwise, set the color to be the user selected one
|
||||||
|
?>
|
||||||
|
#header *
|
||||||
|
{
|
||||||
|
color: #<?php header_textcolor();?>;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
<?php } ?>
|
||||||
|
</style>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
if ( function_exists('add_custom_image_header') ) {
|
||||||
|
add_custom_image_header('theme_header_style', 'theme_admin_header_style');
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
|
@ -1,9 +1,13 @@
|
||||||
<div class="clear"></div><!-- Clears floated columns and sidebars -->
|
<div class="clear"></div><!-- Clears floated columns and sidebars -->
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
|
<center>
|
||||||
|
<?php if (function_exists('the_project_wonderful_ad')) { the_project_wonderful_ad('footer'); } ?>
|
||||||
|
</center>
|
||||||
<p>
|
<p>
|
||||||
<?php bloginfo('name') ?> is powered by <a href="http://wordpress.org/">WordPress</a> with <a href="http://comicpress.org/">ComicPress</a>
|
<?php bloginfo('name') ?> is powered by <a href="http://wordpress.org/">WordPress</a> with <a href="http://comicpress.org/">ComicPress</a>
|
||||||
| Subscribe: <a href="<?php bloginfo('rss2_url') ?>">RSS Feed</a>
|
| Subscribe: <a href="<?php bloginfo('rss2_url') ?>">RSS Feed</a> | <a href="#outside" onclick="scrollup(); return false;">Return to Top </a><br />
|
||||||
|
<a href="http://english-156752579142.spampoison.com"><img src="http://pics4.inxhost.com/images/sticker.gif" border="0" width="80" height="15"/></a>
|
||||||
<!-- <?php echo get_num_queries() ?> queries. <?php timer_stop(1) ?> seconds. -->
|
<!-- <?php echo get_num_queries() ?> queries. <?php timer_stop(1) ?> seconds. -->
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
1284
functions.php
13
header.php
|
@ -21,15 +21,20 @@
|
||||||
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name') ?> RSS Feed" href="<?php bloginfo('rss2_url') ?>" />
|
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name') ?> RSS Feed" href="<?php bloginfo('rss2_url') ?>" />
|
||||||
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name') ?> Atom Feed" href="<?php bloginfo('atom_url') ?>" />
|
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name') ?> Atom Feed" href="<?php bloginfo('atom_url') ?>" />
|
||||||
<link rel="pingback" href="<?php bloginfo('pingback_url') ?>" />
|
<link rel="pingback" href="<?php bloginfo('pingback_url') ?>" />
|
||||||
|
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/scroll.js"></script>
|
||||||
|
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
|
||||||
<?php wp_head() ?>
|
<?php wp_head() ?>
|
||||||
<!--[if lt IE 7]><script type="text/javascript" src="<?php bloginfo('template_directory') ?>/ie6submenus.js"></script><![endif]-->
|
<!--[if lt IE 7]><script type="text/javascript" src="<?php bloginfo('template_directory') ?>/js/ie6submenus.js"></script><![endif]-->
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body <?php if (function_exists('body_class')) { body_class(); } ?>>
|
||||||
|
|
||||||
<div id="page"><!-- Defines entire site width - Ends in Footer -->
|
<div id="page"><!-- Defines entire site width - Ends in Footer -->
|
||||||
|
|
||||||
<div id="header">
|
<div id="header">
|
||||||
|
<div class="headerad">
|
||||||
|
<?php if (function_exists('the_project_wonderful_ad')) { the_project_wonderful_ad('header'); } ?>
|
||||||
|
</div>
|
||||||
<h1><a href="<?php echo get_settings('home') ?>"><?php bloginfo('name') ?></a></h1>
|
<h1><a href="<?php echo get_settings('home') ?>"><?php bloginfo('name') ?></a></h1>
|
||||||
<div class="description"><?php bloginfo('description') ?></div>
|
<div class="description"><?php bloginfo('description') ?></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -51,9 +56,9 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul id="menu">
|
<ul id="menu">
|
||||||
<li><a href="<?php bloginfo('url') ?>">Home</a></li>
|
<li <?php if (is_home()) { ?> class="current_page_item"<?php } ?>><a href="<?php bloginfo('url'); ?>">Home</a></li>
|
||||||
<?php wp_list_pages('sort_column=menu_order&depth=4&title_li=') ?>
|
<?php wp_list_pages('sort_column=menu_order&depth=4&title_li=') ?>
|
||||||
<li><a href="<?php bloginfo('rss2_url') ?>">Subscribe</a></li>
|
<li><a href="<?php bloginfo('rss2_url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/data_rss.gif" class="rss" alt="RSS" /></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
|
|
|
@ -64,6 +64,6 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include(TEMPLATEPATH . '/sidebar.php') ?>
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
<?php get_footer() ?>
|
<?php get_footer() ?>
|
Before Width: | Height: | Size: 329 B After Width: | Height: | Size: 329 B |
Before Width: | Height: | Size: 321 B After Width: | Height: | Size: 321 B |
Before Width: | Height: | Size: 345 B After Width: | Height: | Size: 345 B |
Before Width: | Height: | Size: 288 B After Width: | Height: | Size: 288 B |
Before Width: | Height: | Size: 300 B After Width: | Height: | Size: 300 B |
Before Width: | Height: | Size: 270 B After Width: | Height: | Size: 270 B |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 150 B |
After Width: | Height: | Size: 215 B |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 209 B |
After Width: | Height: | Size: 215 B |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 215 B |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 7.2 KiB |
After Width: | Height: | Size: 746 B |
After Width: | Height: | Size: 6.7 KiB |
After Width: | Height: | Size: 351 B |
After Width: | Height: | Size: 6.1 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 646 B |
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 507 B |
185
index.php
|
@ -1,90 +1,97 @@
|
||||||
<?php get_header(); global $blog_postcount, $blogcat; $first_comic = get_first_comic_permalink() ?>
|
<?php get_header(); global $blog_postcount, $blogcat; $first_comic = get_first_comic_permalink() ?>
|
||||||
|
|
||||||
<?php if (!(is_paged())) { ?>
|
<?php if (!(is_paged())) { ?>
|
||||||
|
|
||||||
<?php $wp_query->in_the_loop = true; $comicFrontpage = new WP_Query(); $comicFrontpage->query('showposts=1&cat='.get_all_comic_categories_as_cat_string());
|
<?php $wp_query->in_the_loop = true; $comicFrontpage = new WP_Query(); $comicFrontpage->query('showposts=1&cat='.get_all_comic_categories_as_cat_string());
|
||||||
while ($comicFrontpage->have_posts()) : $comicFrontpage->the_post() ?>
|
while ($comicFrontpage->have_posts()) : $comicFrontpage->the_post() ?>
|
||||||
<div id="comic-head"></div>
|
<div id="comic-head"></div>
|
||||||
<div id="comic">
|
<div id="comic">
|
||||||
<img src="<?php the_comic() ?>" alt="<?php the_title() ?>" title="<?php the_hovertext() ?>" />
|
<img src="<?php the_comic() ?>" alt="<?php the_title() ?>" title="<?php the_hovertext() ?>" />
|
||||||
</div>
|
</div>
|
||||||
<div id="comic-foot"></div>
|
<div id="comic-foot"></div>
|
||||||
<?php endwhile; ?>
|
<?php // if (function_exists('buy_this_comic')) { buy_this_comic(); } ?>
|
||||||
|
<?php // if (function_exists('comic_navigation')) { comic_navigation(); } ?>
|
||||||
<div id="content" class="narrowcolumn">
|
<?php endwhile; ?>
|
||||||
|
|
||||||
<?php while ($comicFrontpage->have_posts()) : $comicFrontpage->the_post() ?>
|
<div id="content" class="narrowcolumn">
|
||||||
<div class="post-comic-head"></div>
|
|
||||||
<div class="post-comic">
|
<?php while ($comicFrontpage->have_posts()) : $comicFrontpage->the_post() ?>
|
||||||
<div class="nav">
|
<div class="post-comic-head"></div>
|
||||||
<div class="nav-first"><a href="<?php echo $first_comic ?>" title="Go to the First Comic">‹‹ First</a></div>
|
<div class="post-comic">
|
||||||
<div class="nav-previous"><?php global $wp_query; $wp_query->is_single = true; previous_comic_link('%link', '‹ Previous'); $wp_query->is_single = false ?></div>
|
<div class="nav">
|
||||||
</div>
|
<div class="nav-first"><a href="<?php echo $first_comic ?>" title="Go to the First Comic">‹‹ First</a></div>
|
||||||
<div class="comicdate">
|
<div class="nav-previous"><?php global $wp_query; $wp_query->is_single = true; previous_comic_link('%link', '‹ Previous'); $wp_query->is_single = false ?></div>
|
||||||
<?php the_time('F jS, Y') ?>
|
</div>
|
||||||
</div>
|
<div class="clear"></div>
|
||||||
<div class="clear"></div>
|
<?php if (get_option('comicpress-enable-storyline-support') == 1) { ?>
|
||||||
<?php if (get_option('comicpress-enable-storyline-support') == 1) { ?>
|
<ul class="storyline-cats"><li class="storyline-root"><?php the_category(' » </li><li>', multiple) ?></li></ul>
|
||||||
<ul class="storyline-cats"><li class="storyline-root"><?php the_category(' » </li><li>', multiple) ?></li></ul>
|
<?php } ?>
|
||||||
<?php } ?>
|
<div class="comicdate">
|
||||||
<h2>
|
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
||||||
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title() ?>"><?php the_title() ?></a>
|
</div>
|
||||||
</h2>
|
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
||||||
<div class="entry">
|
By <?php the_author(); ?> on <?php the_time('F jS, Y'); ?> <?php edit_post_link('Edit Post', ' [ ', ' ] '); ?> <br />
|
||||||
<?php the_content('↓ Read the rest of this entry...') ?>
|
Posted in: <?php the_category(','); ?>
|
||||||
</div>
|
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
|
||||||
<?php the_transcript('styled') ?>
|
<div class="entry">
|
||||||
<div class="tags">
|
<?php the_content('↓ Read the rest of this entry...') ?>
|
||||||
<?php the_tags('└ Tags: ', ', ', ''); edit_post_link('Edit Post', ' [ ', ' ] ') ?>
|
</div>
|
||||||
</div>
|
<?php the_transcript('styled') ?>
|
||||||
<div class="comment-link">
|
<div class="tags">
|
||||||
<?php if ('open' == $post->comment_status) { comments_popup_link('“Comment”', '“1 Comment”', '“% Comments”'); } ?>
|
<?php the_tags('└ Tags: ', ', ', ''); ?>
|
||||||
</div>
|
</div>
|
||||||
<br class="clear-margins" />
|
<div class="comment-link">
|
||||||
</div>
|
<?php if ('open' == $post->comment_status) { comments_popup_link('“Comment”', '“1 Comment”', '“% Comments”'); } ?>
|
||||||
<div class="post-comic-foot"></div>
|
</div>
|
||||||
<?php endwhile; ?>
|
<br class="clear-margins" />
|
||||||
|
</div>
|
||||||
<div id="blogheader"><!-- This area can be used for a heading above your main page blog posts --></div>
|
<div class="post-comic-foot"></div>
|
||||||
|
<?php endwhile; ?>
|
||||||
<?php } else { ?>
|
|
||||||
|
<div id="blogheader"><!-- This area can be used for a heading above your main page blog posts --></div>
|
||||||
<div id="content" class="narrowcolumn">
|
|
||||||
|
<?php } else { ?>
|
||||||
<?php } ?>
|
|
||||||
|
<div id="content" class="narrowcolumn">
|
||||||
<?php $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(); $wp_query->query('showposts='.$blog_postcount.'&cat=-'.$comiccat.'&paged='.$paged);
|
|
||||||
while ($wp_query->have_posts()) : $wp_query->the_post() ?>
|
<?php } ?>
|
||||||
<div class="post-head"></div>
|
|
||||||
<div class="post" id="post-<?php the_ID() ?>">
|
<?php $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(); $wp_query->query('showposts='.$blog_postcount.'&cat=-'.$comiccat.'&paged='.$paged);
|
||||||
<h3>
|
while ($wp_query->have_posts()) : $wp_query->the_post() ?>
|
||||||
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title() ?>"><?php the_title() ?></a>
|
<div class="post-head"></div>
|
||||||
</h3>
|
<div class="post" id="post-<?php the_ID() ?>">
|
||||||
<div class="postdate">
|
<div class="comicdate">
|
||||||
<?php the_time('F jS, Y') ?>
|
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="entry">
|
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
||||||
<?php the_content('↓ Read the rest of this entry...') ?>
|
By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> <?php edit_post_link('Edit Post', ' [ ', ' ] '); ?> <br />
|
||||||
</div>
|
Posted in: <?php the_category(','); ?>
|
||||||
<div class="tags">
|
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
|
||||||
<?php the_tags('└ Tags: ', ', ', ''); edit_post_link('Edit Post', ' [ ', ' ] ') ?>
|
<div class="entry">
|
||||||
</div>
|
<?php the_content('↓ Read the rest of this entry...') ?>
|
||||||
<div class="comment-link">
|
</div>
|
||||||
<?php if ('open' == $post->comment_status) { comments_popup_link('“Comment”', '“1 Comment”', '“% Comments”'); } ?>
|
<div class="tags">
|
||||||
</div>
|
<?php the_tags('└ Tags: ', ', ', ''); ?>
|
||||||
<div class="clear-margins"><br /></div>
|
</div>
|
||||||
</div>
|
<div class="comment-link">
|
||||||
<div class="post-foot"></div>
|
<?php if ('open' == $post->comment_status) { comments_popup_link('“Comment”', '“1 Comment”', '“% Comments”'); } ?>
|
||||||
<?php endwhile; ?>
|
</div>
|
||||||
<div class="pagenav">
|
<div class="clear-margins"><br /></div>
|
||||||
<div class="pagenav-right"><?php previous_posts_link('Newer Entries ↑') ?></div>
|
</div>
|
||||||
<div class="pagenav-left"><?php next_posts_link('↓ Previous Entries') ?></div>
|
<div class="post-foot"></div>
|
||||||
<div class="clear"></div>
|
<?php endwhile; ?>
|
||||||
</div>
|
|
||||||
<?php $wp_query = null; $wp_query = $temp ?>
|
<?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } else { ?>
|
||||||
|
<div class="pagenav">
|
||||||
</div>
|
<div class="pagenav-right"><?php previous_posts_link('Newer Entries ↑') ?></div>
|
||||||
|
<div class="pagenav-left"><?php next_posts_link('↓ Previous Entries') ?></div>
|
||||||
<?php include(TEMPLATEPATH . '/sidebar.php') ?>
|
<div class="clear"></div>
|
||||||
|
</div>
|
||||||
|
<?php } ?>
|
||||||
|
<?php $wp_query = null; $wp_query = $temp ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
<?php get_footer() ?>
|
<?php get_footer() ?>
|
|
@ -0,0 +1,14 @@
|
||||||
|
//Suckerfish Dropdown for IE6
|
||||||
|
|
||||||
|
sfHover = function() {
|
||||||
|
var sfEls = document.getElementById("menu").getElementsByTagName("LI");
|
||||||
|
for (var i=0; i<sfEls.length; i++) {
|
||||||
|
sfEls[i].onmouseover=function() {
|
||||||
|
this.className+=" sfhover";
|
||||||
|
}
|
||||||
|
sfEls[i].onmouseout=function() {
|
||||||
|
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (window.attachEvent) window.attachEvent("onload", sfHover);
|
|
@ -0,0 +1,28 @@
|
||||||
|
// JavaScript Document
|
||||||
|
|
||||||
|
var up_timer
|
||||||
|
|
||||||
|
function getPosition(){
|
||||||
|
yoko = document.body.scrollLeft || document.documentElement.scrollLeft;
|
||||||
|
tate = document.body.scrollTop || document.documentElement.scrollTop;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function pageup(x,y){
|
||||||
|
if(up_timer) clearTimeout(up_timer);
|
||||||
|
if(y >= 1){
|
||||||
|
getPosition();
|
||||||
|
var divisionY = (tate-(tate/5));
|
||||||
|
var Y = Math.floor(divisionY);
|
||||||
|
window.scrollTo(yoko,Y);
|
||||||
|
up_timer = setTimeout("pageup("+yoko+","+Y+")",2);
|
||||||
|
}else{
|
||||||
|
window.scrollTo(yoko,0);
|
||||||
|
clearTimeout(up_timer);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function scrollup(){
|
||||||
|
getPosition();
|
||||||
|
pageup(yoko,tate)
|
||||||
|
}
|
|
@ -20,6 +20,6 @@ Template Name: Links
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include(TEMPLATEPATH . '/sidebar.php') ?>
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
<?php get_footer() ?>
|
<?php get_footer() ?>
|
2
page.php
|
@ -17,6 +17,6 @@
|
||||||
<?php comments_template(); ?>
|
<?php comments_template(); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include(TEMPLATEPATH . '/sidebar.php') ?>
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
<?php get_footer() ?>
|
<?php get_footer() ?>
|
|
@ -1,72 +1,82 @@
|
||||||
<?php get_header() ?>
|
<?php get_header() ?>
|
||||||
|
|
||||||
<div id="content" class="archive">
|
<div id="content" class="narrowcolumn">
|
||||||
|
|
||||||
<div class="post-page-head"></div>
|
<div class="post-page-head"></div>
|
||||||
<div class="post-page">
|
<div class="post-page">
|
||||||
<?php
|
<?php
|
||||||
$tmp_search = new WP_Query('s=' . wp_specialchars($_GET['s']) . '&show_posts=-1&posts_per_page=-1');
|
$tmp_search = new WP_Query('s=' . wp_specialchars($_GET['s']) . '&show_posts=-1&posts_per_page=-1');
|
||||||
$count = $tmp_search->post_count;
|
$count = $tmp_search->post_count;
|
||||||
?>
|
?>
|
||||||
<h2 class="pagetitle">Transcript search for ‘<?php the_search_query() ?>’</h2>
|
<h2 class="pagetitle">Transcript search for ‘<?php the_search_query() ?>’</h2>
|
||||||
Found <?php echo $count; ?> result<?php if ($count !== 1) { echo "s"; } ?>.
|
Found <?php echo $count; ?> result<?php if ($count !== 1) { echo "s"; } ?>.
|
||||||
</div>
|
</div>
|
||||||
<div class="post-page-foot"></div>
|
<div class="post-page-foot"></div>
|
||||||
|
|
||||||
<?php if (have_posts()) : ?>
|
<?php if (have_posts()) : ?>
|
||||||
|
|
||||||
<?php $posts = query_posts($query_string.'&order=asc');
|
<?php $posts = query_posts($query_string.'&order=asc');
|
||||||
while (have_posts()) : the_post() ?>
|
while (have_posts()) : the_post() ?>
|
||||||
|
|
||||||
<?php if (in_comic_category()) { ?>
|
<?php if (in_comic_category()) { ?>
|
||||||
|
|
||||||
<div class="post-comic-head"></div>
|
<div class="post-comic-head"></div>
|
||||||
<div class="post-comic">
|
<div class="post-comic">
|
||||||
<div class="comicarchiveframe" style="width:<?php echo $archive_comic_width ?>px;">
|
<div class="comicdate">
|
||||||
<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 />
|
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
||||||
<h3><?php the_title() ?></h3>
|
</div>
|
||||||
<small><?php the_time('F jS, Y') ?></small></a>
|
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
||||||
</div>
|
By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> <?php edit_post_link('[edit this]'); ?> <br />
|
||||||
<br class="clear-margins" />
|
Posted in: <?php the_category(','); ?>
|
||||||
</div>
|
<div class="comicarchiveframe" style="width:<?php echo $archive_comic_width ?>px;">
|
||||||
<div class="post-comic-foot"></div>
|
<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 />
|
||||||
|
</div>
|
||||||
<?php } else { ?>
|
<br class="clear-margins" />
|
||||||
|
</div>
|
||||||
<div class="post-head"></div>
|
<div class="post-comic-foot"></div>
|
||||||
<div class="post">
|
|
||||||
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title() ?>"><?php the_title() ?></a></h3>
|
<?php } else { ?>
|
||||||
<div class="postdate"><?php the_time('F jS, Y') ?></div>
|
|
||||||
<?php the_excerpt() ?>
|
<div class="post-head"></div>
|
||||||
<br class="clear-margins" />
|
<div class="post">
|
||||||
</div>
|
<div class="comicdate">
|
||||||
<div class="post-foot"></div>
|
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
||||||
|
</div>
|
||||||
<?php } ?>
|
<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 />
|
||||||
<?php endwhile; ?>
|
Posted in: <?php the_category(','); ?>
|
||||||
|
<?php the_excerpt() ?>
|
||||||
<div class="pagenav">
|
<br class="clear-margins" />
|
||||||
<div class="pagenav-right"><?php next_posts_link('Next Page ›') ?></div>
|
</div>
|
||||||
<div class="pagenav-left"><?php previous_posts_link('‹ Previous Page') ?></div>
|
<div class="post-foot"></div>
|
||||||
<div class="clear"></div>
|
|
||||||
</div>
|
<?php } ?>
|
||||||
|
|
||||||
<?php else : ?>
|
<?php endwhile; ?>
|
||||||
|
|
||||||
<div class="post-page-head"></div>
|
<?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } else { ?>
|
||||||
<div class="post-page">
|
<div class="pagenav">
|
||||||
<h3>No transcripts found.</h3>
|
<div class="pagenav-right"><?php next_posts_link('Next Page ›') ?></div>
|
||||||
<p>Try another search?</p>
|
<div class="pagenav-left"><?php previous_posts_link('‹ Previous Page') ?></div>
|
||||||
<p><?php include (TEMPLATEPATH . '/searchform-transcript.php') ?></p>
|
<div class="clear"></div>
|
||||||
<br class="clear-margins" />
|
</div>
|
||||||
</div>
|
<?php } ?>
|
||||||
<div class="post-page-foot"></div>
|
|
||||||
|
<?php else : ?>
|
||||||
<?php endif; ?>
|
|
||||||
|
<div class="post-page-head"></div>
|
||||||
</div>
|
<div class="post-page">
|
||||||
|
<h3>No transcripts found.</h3>
|
||||||
<?php include(TEMPLATEPATH . '/sidebar.php') ?>
|
<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; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
<?php get_footer() ?>
|
<?php get_footer() ?>
|
152
search.php
|
@ -1,72 +1,82 @@
|
||||||
<?php get_header() ?>
|
<?php get_header() ?>
|
||||||
|
|
||||||
<div id="content" class="archive">
|
<div id="content" class="narrowcolumn">
|
||||||
|
|
||||||
<div class="post-page-head"></div>
|
<div class="post-page-head"></div>
|
||||||
<div class="post-page">
|
<div class="post-page">
|
||||||
<?php
|
<?php
|
||||||
$tmp_search = new WP_Query('s=' . wp_specialchars($_GET['s']) . '&show_posts=-1&posts_per_page=-1');
|
$tmp_search = new WP_Query('s=' . wp_specialchars($_GET['s']) . '&show_posts=-1&posts_per_page=-1');
|
||||||
$count = $tmp_search->post_count;
|
$count = $tmp_search->post_count;
|
||||||
?>
|
?>
|
||||||
<h2 class="pagetitle">Search for ‘<?php the_search_query() ?>’</h2>
|
<h2 class="pagetitle">Search for ‘<?php the_search_query() ?>’</h2>
|
||||||
Found <?php echo $count; ?> result<?php if ($count !== 1) { echo "s"; } ?>.
|
Found <?php echo $count; ?> result<?php if ($count !== 1) { echo "s"; } ?>.
|
||||||
</div>
|
</div>
|
||||||
<div class="post-page-foot"></div>
|
<div class="post-page-foot"></div>
|
||||||
|
|
||||||
<?php if (have_posts()) : ?>
|
<?php if (have_posts()) : ?>
|
||||||
|
|
||||||
<?php $posts = query_posts($query_string.'&order=asc');
|
<?php $posts = query_posts($query_string.'&order=asc');
|
||||||
while (have_posts()) : the_post() ?>
|
while (have_posts()) : the_post() ?>
|
||||||
|
|
||||||
<?php global $archive_comic_width; if (in_comic_category()) { ?>
|
<?php global $archive_comic_width; if (in_comic_category()) { ?>
|
||||||
|
|
||||||
<div class="post-comic-head"></div>
|
<div class="post-comic-head"></div>
|
||||||
<div class="post-comic">
|
<div class="post-comic">
|
||||||
<div class="comicarchiveframe" style="width:<?php echo $archive_comic_width ?>px;">
|
<div class="comicdate">
|
||||||
<a href="<?php the_permalink() ?>"><img src="<?php the_comic_archive() ?>" alt="Click for full size." title="Click for full size" width="<?php echo $archive_comic_width ?>" /><br />
|
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
||||||
<h3><?php the_title() ?></h3>
|
</div>
|
||||||
<small><?php the_time('F jS, Y') ?></small></a>
|
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
||||||
</div>
|
By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> <?php edit_post_link('[edit this]'); ?> <br />
|
||||||
<br class="clear-margins" />
|
Posted in: <?php the_category(','); ?>
|
||||||
</div>
|
<div class="comicarchiveframe" style="width:<?php echo $archive_comic_width ?>px;">
|
||||||
<div class="post-comic-foot"></div>
|
<a href="<?php the_permalink() ?>"><img src="<?php the_comic_archive() ?>" alt="Click for full size." title="Click for full size" width="<?php echo $archive_comic_width ?>" /><br />
|
||||||
|
</div>
|
||||||
<?php } else { ?>
|
<br class="clear-margins" />
|
||||||
|
</div>
|
||||||
<div class="post-head"></div>
|
<div class="post-comic-foot"></div>
|
||||||
<div class="post">
|
|
||||||
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title() ?>"><?php the_title() ?></a></h3>
|
<?php } else { ?>
|
||||||
<div class="postdate"><?php the_time('F jS, Y') ?></div>
|
|
||||||
<?php the_excerpt() ?>
|
<div class="post-head"></div>
|
||||||
<br class="clear-margins" />
|
<div class="post">
|
||||||
</div>
|
<div class="comicdate">
|
||||||
<div class="post-foot"></div>
|
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
||||||
|
</div>
|
||||||
<?php } ?>
|
<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 />
|
||||||
<?php endwhile ?>
|
Posted in: <?php the_category(','); ?>
|
||||||
|
<?php the_excerpt() ?>
|
||||||
<div class="pagenav">
|
<br class="clear-margins" />
|
||||||
<div class="pagenav-right"><?php next_posts_link('Next Page ›') ?></div>
|
</div>
|
||||||
<div class="pagenav-left"><?php previous_posts_link('‹ Previous Page') ?></div>
|
<div class="post-foot"></div>
|
||||||
<div class="clear"></div>
|
|
||||||
</div>
|
<?php } ?>
|
||||||
|
|
||||||
<?php else : ?>
|
<?php endwhile; ?>
|
||||||
|
|
||||||
<div class="post-page-head"></div>
|
<?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } else { ?>
|
||||||
<div class="post-page">
|
<div class="pagenav">
|
||||||
<h3>No entries found.</h3>
|
<div class="pagenav-right"><?php next_posts_link('Next Page ›') ?></div>
|
||||||
<p>Try another search?</p>
|
<div class="pagenav-left"><?php previous_posts_link('‹ Previous Page') ?></div>
|
||||||
<p><?php include (TEMPLATEPATH . '/searchform.php') ?></p>
|
<div class="clear"></div>
|
||||||
<br class="clear-margins" />
|
</div>
|
||||||
</div>
|
<?php } ?>
|
||||||
<div class="post-page-foot"></div>
|
|
||||||
|
<?php else : ?>
|
||||||
<?php endif ?>
|
|
||||||
|
<div class="post-page-head"></div>
|
||||||
</div>
|
<div class="post-page">
|
||||||
|
<h3>No entries found.</h3>
|
||||||
<?php include(TEMPLATEPATH . '/sidebar.php') ?>
|
<p>Try another search?</p>
|
||||||
|
<p><?php include (TEMPLATEPATH . '/searchform.php') ?></p>
|
||||||
|
<br class="clear-margins" />
|
||||||
|
</div>
|
||||||
|
<div class="post-page-foot"></div>
|
||||||
|
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
<?php get_footer() ?>
|
<?php get_footer() ?>
|
|
@ -1,6 +1,6 @@
|
||||||
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
|
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
|
||||||
<div>
|
<div>
|
||||||
<input type="text" value="Search Site..." name="s" id="s" onfocus="this.value=(this.value=='Search Site...') ? '' : this.value;" onblur="this.value=(this.value=='') ? 'Search Site...' : this.value;" />
|
<input type="text" value="Search Site..." name="s" id="s" onfocus="this.value=(this.value=='Search Site...') ? '' : this.value;" onblur="this.value=(this.value=='') ? 'Search Site...' : this.value;" />
|
||||||
<input type="submit" id="searchsubmit" value="»" />
|
<button type="submit" class="button">►</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
|
@ -1,4 +1,4 @@
|
||||||
<div id="sidebar">
|
<div id="sidebar" class="sidebar-single">
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
|
|
179
single.php
|
@ -1,85 +1,96 @@
|
||||||
<?php get_header(); $first_comic = get_first_comic_permalink(); $last_comic = get_last_comic_permalink() ?>
|
<?php get_header(); $first_comic = get_first_comic_permalink(); $last_comic = get_last_comic_permalink() ?>
|
||||||
|
|
||||||
<?php while (have_posts()) : the_post(); if (in_comic_category()) { ?>
|
<?php while (have_posts()) : the_post(); if (in_comic_category()) { ?>
|
||||||
<div id="comic-head"></div>
|
<div id="comic-head"></div>
|
||||||
<div id="comic">
|
<div id="comic">
|
||||||
<img src="<?php the_comic() ?>" alt="<?php the_title() ?>" title="<?php the_hovertext() ?>" />
|
<img src="<?php the_comic() ?>" alt="<?php the_title() ?>" title="<?php the_hovertext() ?>" />
|
||||||
</div>
|
</div>
|
||||||
<div id="comic-foot"></div>
|
<div id="comic-foot"></div>
|
||||||
<?php } endwhile; ?>
|
<?php // if (function_exists('buy_this_comic')) { buy_this_comic(); } ?>
|
||||||
|
<?php // if (function_exists('comic_navigation')) { comic_navigation(); } ?>
|
||||||
<div id="content" class="narrowcolumn">
|
<?php } endwhile; ?>
|
||||||
|
|
||||||
<?php if (have_posts()) : while (have_posts()) : the_post() ?>
|
<div id="content" class="narrowcolumn">
|
||||||
|
|
||||||
<?php if (in_comic_category()) { ?>
|
<?php if (have_posts()) : while (have_posts()) : the_post() ?>
|
||||||
<div class="post-comic-head"></div>
|
|
||||||
<div class="post-comic" id="post-<?php the_ID() ?>">
|
<?php if (in_comic_category()) { ?>
|
||||||
<div class="comicdate">
|
<div class="post-comic-head"></div>
|
||||||
<div class="nav">
|
<div class="post-comic" id="post-<?php the_ID() ?>">
|
||||||
<?php if ( get_permalink() != $first_comic ) { ?><div class="nav-first"><a href="<?php echo $first_comic ?>">‹‹ First</a></div><?php } ?>
|
<div class="nav">
|
||||||
<div class="nav-previous"><?php previous_comic_link('%link', '‹ Previous') ?></div>
|
<?php if ( get_permalink() != $first_comic ) { ?><div class="nav-first"><a href="<?php echo $first_comic ?>">‹‹ First</a></div><?php } ?>
|
||||||
<div class="nav-next"><?php next_comic_link('%link', 'Next ›') ?></div>
|
<div class="nav-previous"><?php previous_comic_link('%link', '‹ Previous') ?></div>
|
||||||
<?php if ( get_permalink() != $last_comic ) { ?><div class="nav-last"><a href="<?php echo $last_comic ?>">Last ››</a></div><?php } ?>
|
<div class="nav-next"><?php next_comic_link('%link', 'Next ›') ?></div>
|
||||||
</div>
|
<?php if ( get_permalink() != $last_comic ) { ?><div class="nav-last"><a href="<?php echo $last_comic ?>">Last ››</a></div><?php } ?>
|
||||||
<?php the_time('F jS, Y') ?>
|
</div>
|
||||||
</div>
|
<div class="clear"></div>
|
||||||
<?php if (get_option('comicpress-enable-storyline-support') == 1) { ?>
|
<?php if (get_option('comicpress-enable-storyline-support') == 1) { ?>
|
||||||
<ul class="storyline-cats"><li class="storyline-root"><?php the_category(' » </li><li>', 'multiple') ?></li></ul>
|
<ul class="storyline-cats"><li class="storyline-root"><?php the_category(' » </li><li>', 'multiple') ?></li></ul>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<h2><?php the_title() ?></h2>
|
<div class="comicdate">
|
||||||
<div class="entry">
|
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
||||||
<?php the_content() ?>
|
</div>
|
||||||
<?php the_transcript('styled') ?>
|
<h2><?php the_title(); ?></h2>
|
||||||
<div class="tags">
|
By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> <?php edit_post_link('Edit Post', ' [ ', ' ] ') ?> <br />
|
||||||
<?php the_tags('└ Tags: ', ', ', ''); edit_post_link('Edit Post', ' [ ', ' ] ') ?>
|
Posted in: <?php the_category(','); ?>
|
||||||
</div>
|
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
|
||||||
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')) ?>
|
<div class="entry">
|
||||||
</div>
|
<?php the_content() ?>
|
||||||
<br class="clear-margins" />
|
<?php the_transcript('styled') ?>
|
||||||
</div>
|
<div class="tags">
|
||||||
<div class="post-comic-foot"></div>
|
<?php the_tags('└ Tags: ', ', ', ''); ?>
|
||||||
|
</div>
|
||||||
<?php } else { ?>
|
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')) ?>
|
||||||
|
</div>
|
||||||
<div class="post-head"></div>
|
<br class="clear-margins" />
|
||||||
<div class="post" id="post-<?php the_ID() ?>">
|
</div>
|
||||||
<div class="nav-blog">
|
<div class="post-comic-foot"></div>
|
||||||
<div class="nav-blog-previous"><?php previous_post_link('%link','‹ Previous', TRUE) ?></div>
|
|
||||||
<div class="nav-blog-next"><?php next_post_link('%link','Next ›', TRUE) ?></div>
|
<?php } else { ?>
|
||||||
</div>
|
|
||||||
<div class="clear"></div>
|
<div class="post-head"></div>
|
||||||
<h2><?php the_title() ?></h2>
|
<div class="post" id="post-<?php the_ID() ?>">
|
||||||
<div class="postdate"><?php the_time('F jS, Y') ?></div>
|
<div class="nav-blog">
|
||||||
<div class="entry">
|
<div class="nav-blog-previous"><?php previous_post_link('%link','‹ Previous', TRUE) ?></div>
|
||||||
<?php the_content() ?>
|
<div class="nav-blog-next"><?php next_post_link('%link','Next ›', TRUE) ?></div>
|
||||||
<?php the_transcript('styled') ?>
|
</div>
|
||||||
<div class="tags">
|
<div class="clear"></div>
|
||||||
<?php the_tags('└ Tags: ', ', ', ''); edit_post_link('Edit Post', ' [ ', ' ] ') ?>
|
<div class="comicdate">
|
||||||
</div>
|
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
||||||
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')) ?>
|
</div>
|
||||||
</div>
|
<h2><?php the_title(); ?></h2>
|
||||||
<br class="clear-margins" />
|
By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> <?php edit_post_link('Edit Post', ' [ ', ' ] '); ?> <br />
|
||||||
</div>
|
Posted in: <?php the_category(','); ?>
|
||||||
<div class="post-foot"></div>
|
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
|
||||||
|
<div class="entry">
|
||||||
<?php } ?>
|
<?php the_content() ?>
|
||||||
|
<?php the_transcript('styled') ?>
|
||||||
<?php comments_template() ?>
|
<div class="tags">
|
||||||
|
<?php the_tags('└ Tags: ', ', ', ''); ?>
|
||||||
<?php endwhile; else: ?>
|
</div>
|
||||||
|
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')) ?>
|
||||||
<div class="post-head"></div>
|
</div>
|
||||||
<div class="post">
|
<br class="clear-margins" />
|
||||||
<p>Sorry, no posts matched your criteria.</p>
|
</div>
|
||||||
<br class="clear-margins" />
|
<div class="post-foot"></div>
|
||||||
</div>
|
|
||||||
<div class="post-foot"></div>
|
<?php } ?>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php comments_template() ?>
|
||||||
|
|
||||||
</div>
|
<?php endwhile; else: ?>
|
||||||
|
|
||||||
<?php include(TEMPLATEPATH . '/sidebar.php') ?>
|
<div class="post-head"></div>
|
||||||
|
<div class="post">
|
||||||
|
<p>Sorry, no posts matched your criteria.</p>
|
||||||
|
<br class="clear-margins" />
|
||||||
|
</div>
|
||||||
|
<div class="post-foot"></div>
|
||||||
|
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
<?php get_footer() ?>
|
<?php get_footer() ?>
|