Merge branch 'master' of git@github.com:johnbintz/comicpress-2.8

This commit is contained in:
John Bintz 2009-11-20 00:02:57 -05:00
commit 76ba3cebf4
91 changed files with 683 additions and 592 deletions

View File

@ -7,12 +7,9 @@
<h2 class="pagetitle"><?php _e('Page Not Found','comicpress'); ?></h2> <h2 class="pagetitle"><?php _e('Page Not Found','comicpress'); ?></h2>
<p><a href="<?php bloginfo('wpurl') ?>"><?php _e('Click here to return to the home page','comicpress'); ?></a> <?php _e('or try a search:','comicpress'); ?></p> <p><a href="<?php bloginfo('wpurl') ?>"><?php _e('Click here to return to the home page','comicpress'); ?></a> <?php _e('or try a search:','comicpress'); ?></p>
<p><?php include (get_template_directory() . '/searchform.php') ?></p> <p><?php include (get_template_directory() . '/searchform.php') ?></p>
<br class="clear-margins" />
</div> </div>
<div class="post-page-foot"></div> <div class="post-page-foot"></div>
</div> </div>
</div>
</div>
<?php include(get_template_directory() . '/layout-foot.php'); ?> <?php include(get_template_directory() . '/layout-foot.php'); ?>
<?php get_footer() ?> <?php get_footer() ?>

View File

@ -71,8 +71,17 @@ $month['12'] = array('month' => __('December','comicpress'), '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() ?> <?php while (have_posts()) : the_post() ?>
<div class="entry"> <?php if (function_exists('the_post_image')) {
if ( has_post_image() ) { ?>
<div class="post-page-image">
<?php the_post_image('full'); ?>
</div>
<?php } ?>
<?php } ?>
<?php if ($disable_page_titles != 'yes') { ?>
<h2 class="pagetitle"><?php the_title() ?> <span class="page-archive-year"> <?php echo $archive_year; ?></span></h2> <h2 class="pagetitle"><?php the_title() ?> <span class="page-archive-year"> <?php echo $archive_year; ?></span></h2>
<?php } ?>
<div class="entry">
<?php the_content(); ?> <?php the_content(); ?>
</div> </div>
<?php endwhile; ?> <?php endwhile; ?>

View File

@ -10,8 +10,17 @@ Template Name: Month at a glance
<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() ?> <?php while (have_posts()) : the_post() ?>
<div class="entry"> <?php if (function_exists('the_post_image')) {
if ( has_post_image() ) { ?>
<div class="post-page-image">
<?php the_post_image('full'); ?>
</div>
<?php } ?>
<?php } ?>
<?php if ($disable_page_titles != 'yes') { ?>
<h2 class="pagetitle"><?php the_title() ?></h2> <h2 class="pagetitle"><?php the_title() ?></h2>
<?php } ?>
<div class="entry">
<?php the_content(); ?> <?php the_content(); ?>
</div> </div>
<?php endwhile; ?> <?php endwhile; ?>

View File

@ -10,8 +10,17 @@ 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">
<?php while (have_posts()) : the_post() ?> <?php while (have_posts()) : the_post() ?>
<div class="entry"> <?php if (function_exists('the_post_image')) {
if ( has_post_image() ) { ?>
<div class="post-page-image">
<?php the_post_image('full'); ?>
</div>
<?php } ?>
<?php } ?>
<?php if ($disable_page_titles != 'yes') { ?>
<h2 class="pagetitle"><?php the_title() ?></h2> <h2 class="pagetitle"><?php the_title() ?></h2>
<?php } ?>
<div class="entry">
<?php the_content(); ?> <?php the_content(); ?>
</div> </div>
<?php endwhile; ?> <?php endwhile; ?>

View File

@ -10,8 +10,17 @@ Template Name: Comic Storyline 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() ?> <?php while (have_posts()) : the_post() ?>
<div class="entry"> <?php if (function_exists('the_post_image')) {
if ( has_post_image() ) { ?>
<div class="post-page-image">
<?php the_post_image('full'); ?>
</div>
<?php } ?>
<?php } ?>
<?php if ($disable_page_titles != 'yes') { ?>
<h2 class="pagetitle"><?php the_title() ?></h2> <h2 class="pagetitle"><?php the_title() ?></h2>
<?php } ?>
<div class="entry">
<?php the_content(); ?> <?php the_content(); ?>
</div> </div>
<?php endwhile; ?> <?php endwhile; ?>

View File

@ -21,8 +21,17 @@ if (empty($archive_year) || $archive_year == '') $archive_year = date('Y');
<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() ?> <?php while (have_posts()) : the_post() ?>
<div class="entry"> <?php if (function_exists('the_post_image')) {
if ( has_post_image() ) { ?>
<div class="post-page-image">
<?php the_post_image('full'); ?>
</div>
<?php } ?>
<?php } ?>
<?php if ($disable_page_titles != 'yes') { ?>
<h2 class="pagetitle"><?php the_title() ?> <span class="page-archive-year"> <?php echo $archive_year; ?></span></h2> <h2 class="pagetitle"><?php the_title() ?> <span class="page-archive-year"> <?php echo $archive_year; ?></span></h2>
<?php } ?>
<div class="entry">
<?php the_content(); ?> <?php the_content(); ?>
</div> </div>
<?php endwhile; ?> <?php endwhile; ?>

View File

@ -10,8 +10,17 @@ Template Name: Comic 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() ?> <?php while (have_posts()) : the_post() ?>
<div class="entry"> <?php if (function_exists('the_post_image')) {
if ( has_post_image() ) { ?>
<div class="post-page-image">
<?php the_post_image('full'); ?>
</div>
<?php } ?>
<?php } ?>
<?php if ($disable_page_titles != 'yes') { ?>
<h2 class="pagetitle"><?php the_title() ?></h2> <h2 class="pagetitle"><?php the_title() ?></h2>
<?php } ?>
<div class="entry">
<?php the_content(); ?> <?php the_content(); ?>
</div> </div>
<?php endwhile; ?> <?php endwhile; ?>
@ -28,11 +37,9 @@ Template Name: Comic Archive
</table> </table>
<?php } } ?> <?php } } ?>
<br class="clear-margins" />
</div>
<div class="post-page-foot"></div>
</div> </div>
<div class="post-page-foot"></div>
</div>
<?php include(get_template_directory() . '/layout-foot.php'); ?> <?php include(get_template_directory() . '/layout-foot.php'); ?>

View File

@ -40,7 +40,6 @@
<?php } ?> <?php } ?>
<div class="searchresults"><?php printf(__ngettext("%d item.", "%d items.", $count,'comicpress'),$count); ?></div> <div class="searchresults"><?php printf(__ngettext("%d item.", "%d items.", $count,'comicpress'),$count); ?></div>
</div> </div>
<br class="clear-margins" />
</div> </div>
<div class="post-page-foot"></div> <div class="post-page-foot"></div>
</div> </div>
@ -52,7 +51,7 @@
<div class="comicthumbwrap"> <div class="comicthumbwrap">
<div class="comicarchiveframe" style="width: <?php echo $mini_comic_width; ?>px"> <div class="comicarchiveframe" style="width: <?php echo $mini_comic_width; ?>px">
<a href="<?php the_permalink() ?>"><img src="<?php the_comic_mini() ?>" alt="<?php the_title() ?>" title="<?php the_title() ?>" /></a> <a href="<?php the_permalink() ?>"><img src="<?php the_comic_mini() ?>" alt="<?php the_title() ?>" title="<?php the_title() ?>" /></a>
</div> </div>
</div> </div>
@ -85,10 +84,9 @@
</div> </div>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
<div class="comicarchiveframe" style="width:<?php echo $archive_comic_width; ?>px;"> <div class="comicarchiveframe" style="max-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 ?>" /></a><br /> <a href="<?php the_permalink() ?>"><img src="<?php the_comic_archive() ?>" alt="<?php the_title() ?>" title="Click for full size." style="max-width: <?php echo $archive_comic_width ?>px" /></a>
</div> </div>
<br class="clear-margins" />
</div> </div>
<div class="post-comic-foot"></div> <div class="post-comic-foot"></div>
</div> </div>
@ -122,10 +120,9 @@
} else { } else {
the_excerpt(); the_excerpt();
} ?> } ?>
<br class="clear-margins" />
<div class="post-extras"> <div class="post-extras">
<div class="tags"> <div class="post-tags">
<?php the_tags(__('&#9492; Tags:','comicpress'),'','','<br />'); ?> <?php the_tags(__('&#9492; Tags:','comicpress'),', ','<br />'); ?>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
@ -143,7 +140,6 @@
<h3><?php _e('No posts found.','comicpress'); ?></h3> <h3><?php _e('No posts found.','comicpress'); ?></h3>
<p><?php _e('Try another search?','comicpress'); ?></p> <p><?php _e('Try another search?','comicpress'); ?></p>
<p><?php include(get_template_directory() . '/searchform.php') ?></p> <p><?php include(get_template_directory() . '/searchform.php') ?></p>
<br class="clear-margins" />
</div> </div>
<div class="post-foot"></div> <div class="post-foot"></div>
</div> </div>

View File

@ -10,12 +10,12 @@ Template Name: Archives
<div class="post-page-head"></div> <div class="post-page-head"></div>
<div class="post-page"> <div class="post-page">
<div id="archivepage"> <div id="archivepage">
<h2><?php _e('Archives by Month:','comicpress'); ?></h2> <h2 class="pagetitle"><?php the_title() ?></h2>
<ul><?php wp_get_archives('type=monthly') ?></ul> <ul><?php wp_get_archives('type=monthly') ?></ul>
<h2><?php _e('Archives by Subject:','comicpress'); ?></h2> <h2><?php _e('Archives by Subject:','comicpress'); ?></h2>
<ul><?php wp_list_categories() ?></ul> <ul><?php wp_list_categories() ?></ul>
<br class="clear-margins" />
</div> </div>
<div class="clear"></div>
</div> </div>
<div class="post-page-foot"></div> <div class="post-page-foot"></div>
</div> </div>

View File

@ -1,9 +1,10 @@
<?php <?php
/* /*
Template Name: Buy Print Template Name: Buy Print
Templete Author: Philip M. Hofer (Frumph) Template Author: Philip M. Hofer (Frumph)
Templete URL: http://webcomicplanet.com/forum/ Template URL: http://frumph.net/forum/
Templete Author Email: philip@frumph.net Template Author Email: philip@frumph.net
Template Version: 2.14
*/ */
if (isset($_REQUEST['comic'])) $comicnum = (int)$_REQUEST['comic']; if (isset($_REQUEST['comic'])) $comicnum = (int)$_REQUEST['comic'];
?> ?>
@ -20,10 +21,16 @@ Templete Author Email: philip@frumph.net
<br /> <br />
<img src="<?php echo get_template_directory_uri(); ?>/images/paypal.png" alt="<?php _e('Powered by Paypal','comicpress'); ?>" /><br /> <img src="<?php echo get_template_directory_uri(); ?>/images/paypal.png" alt="<?php _e('Powered by Paypal','comicpress'); ?>" /><br />
</div> </div>
<div style="float:left;"> <?php if (function_exists('the_post_image')) {
<h2 class="pagetitle"><?php _e('Buy Print!','comicpress'); ?></h2> if ( has_post_image() ) { ?>
</div> <div class="post-page-image">
<div class="clear"></div> <?php the_post_image('full'); ?>
</div>
<?php } ?>
<?php } ?>
<?php if ($disable_page_titles != 'yes') { ?>
<h2 class="pagetitle"><?php the_title() ?></h2>
<?php } ?>
<?php _e('Comic ID','comicpress'); ?> - #<?php echo $comicnum; ?><br /> <?php _e('Comic ID','comicpress'); ?> - #<?php echo $comicnum; ?><br />
<?php _e('Title:','comicpress'); ?> <?php echo the_title(); ?><br /> <?php _e('Title:','comicpress'); ?> <?php echo the_title(); ?><br />
<br /> <br />
@ -44,19 +51,19 @@ Templete Author Email: philip@frumph.net
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="add" value="1"> <input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="shipping2" value="<?php echo $buy_print_us_amount; ?>">
<input type="hidden" name="cn" value="<?php _e('Special Instructions (optional)','comicpress'); ?>">
<input type="hidden" name="cancel_return" value="<?php echo get_bloginfo('wpurl'); ?>">
<input type="hidden" name="item_name" value="<?php _e('Print','comicpress'); ?>"> <input type="hidden" name="item_name" value="<?php _e('Print','comicpress'); ?>">
<input type="hidden" name="notify_url" value="<?php echo get_bloginfo('wpurl'); ?>">
<input type="hidden" name="page_style" value="">
<input type="hidden" name="return" value="<?php echo bloginfo('wpurl'); ?>"> <input type="hidden" name="return" value="<?php echo bloginfo('wpurl'); ?>">
<input type="hidden" name="amount" value="<?php echo $buy_print_us_amount; ?>"> <input type="hidden" name="amount" value="<?php echo $buy_print_us_amount; ?>">
<input type="hidden" name="item_number" value="<?php _e('Comic ID','comicpress'); ?> (<?php echo $comicnum; ?>) - <?php echo the_title(); ?>"> <input type="hidden" name="item_number" value="<?php _e('Comic ID','comicpress'); ?> (<?php echo $comicnum; ?>) - <?php echo the_title(); ?>">
<input type="hidden" name="business" value="<?php echo $buy_print_email; ?>"> <input type="hidden" name="business" value="<?php echo $buy_print_email; ?>">
<?php if ($buy_print_add_shipping == 'yes') { ?>
<input type="hidden" name="shipping" value="<?php echo $buy_print_us_ship; ?>"> <input type="hidden" name="shipping" value="<?php echo $buy_print_us_ship; ?>">
US/Canada<br> US/Canada<br>
$<?php echo $buy_print_us_amount; ?> + $<?php echo $buy_print_us_ship; ?> <?php _e('shipping','comicpress'); ?><br /> $<?php echo $buy_print_us_amount; ?> + $<?php echo $buy_print_us_ship; ?> <?php _e('shipping','comicpress'); ?><br />
<?php } else { ?>
US/Canada<br>
$<?php echo $buy_print_us_amount; ?><br />
<?php } ?>
<input type="image" src="<?php echo get_template_directory_uri(); ?>/images/buynow_paypal.png" name="submit32" alt="<?php _e('Make payments with PayPal - it is fast, free and secure!','comicpress'); ?>" /> <input type="image" src="<?php echo get_template_directory_uri(); ?>/images/buynow_paypal.png" name="submit32" alt="<?php _e('Make payments with PayPal - it is fast, free and secure!','comicpress'); ?>" />
</form> </form>
</td> </td>
@ -66,19 +73,19 @@ Templete Author Email: philip@frumph.net
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="add" value="1"> <input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="shipping2" value="<?php echo $buy_print_int_amount; ?>">
<input type="hidden" name="cn" value="<?php _e('Special Instructions (optional)','comicpress'); ?>">
<input type="hidden" name="cancel_return" value="<?php echo get_bloginfo('wpurl'); ?>">
<input type="hidden" name="item_name" value="<?php _e('Print','comicpress'); ?>"> <input type="hidden" name="item_name" value="<?php _e('Print','comicpress'); ?>">
<input type="hidden" name="notify_url" value="<?php echo get_bloginfo('wpurl'); ?>">
<input type="hidden" name="page_style" value="">
<input type="hidden" name="return" value="<?php echo bloginfo('wpurl'); ?>"> <input type="hidden" name="return" value="<?php echo bloginfo('wpurl'); ?>">
<input type="hidden" name="amount" value="<?php echo $buy_print_int_amount; ?>"> <input type="hidden" name="amount" value="<?php echo $buy_print_int_amount; ?>">
<input type="hidden" name="item_number" value="<?php _e('Comic ID','comicpress'); ?> (<?php echo $comicnum; ?>) - <?php echo the_title(); ?>"> <input type="hidden" name="item_number" value="<?php _e('Comic ID','comicpress'); ?> (<?php echo $comicnum; ?>) - <?php echo the_title(); ?>">
<input type="hidden" name="business" value="<?php echo $buy_print_email; ?>"> <input type="hidden" name="business" value="<?php echo $buy_print_email; ?>">
<?php if ($buy_print_add_shipping == 'yes') { ?>
<input type="hidden" name="shipping" value="<?php echo $buy_print_int_ship; ?>"> <input type="hidden" name="shipping" value="<?php echo $buy_print_int_ship; ?>">
International<br> International<br>
$<?php echo $buy_print_int_amount; ?> + $<?php echo $buy_print_int_ship; ?> <?php _e('shipping','comicpress'); ?><br /> $<?php echo $buy_print_int_amount; ?> + $<?php echo $buy_print_int_ship; ?> <?php _e('shipping','comicpress'); ?><br />
<?php } else { ?>
International<br>
$<?php echo $buy_print_int_amount; ?><br />
<?php } ?>
<input type="image" src="<?php echo get_template_directory_uri(); ?>/images/buynow_paypal.png" name="submit32" alt="<?php _e('Make payments with PayPal - it is fast, free and secure!','comicpress'); ?>" /> <input type="image" src="<?php echo get_template_directory_uri(); ?>/images/buynow_paypal.png" name="submit32" alt="<?php _e('Make payments with PayPal - it is fast, free and secure!','comicpress'); ?>" />
</form> </form>
</td> </td>

View File

@ -1,106 +1,111 @@
<?php <?php
class ComicPressDBInterface { class ComicPressDBInterface {
var $_non_comic_categories, $_all_categories; var $_non_comic_categories = array(), $_all_categories = array();
function ComicPressDBInterface() {} function ComicPressDBInterface() {}
function get_instance() {
static $instance;
if (!isset($instance)) { $instance = new ComicPressDBInterface(); }
return $instance;
}
function _get_categories() { return get_categories("hide_empty=0"); } function get_instance() {
static $instance;
/** if (!isset($instance)) { $instance = new ComicPressDBInterface(); }
* Set the comic categories for the current run of ComicPress. return $instance;
*/ }
function set_comic_categories($categories) {
$this->_all_categories = get_all_category_ids();
$this->_non_comic_categories = array_values(array_diff($this->_all_categories, $categories));
}
function _get_categories_to_exclude($category = null) { function _get_categories() { return get_categories("hide_empty=0"); }
return (is_null($category)) ? $this->_non_comic_categories : array_values(array_diff($this->_all_categories, array($category)));
}
/**
* Find the terminal post in a specific category.
*/
function get_terminal_post_in_category($category_id, $first = true) {
$this->_prepare_wp_query();
$sort_order = $first ? "asc" : "desc";
$terminal_comic_query = new WP_Query();
$terminal_comic_query->query("showposts=1&order=${sort_order}&cat=${category_id}&status=publish");
$post = false;
if ($terminal_comic_query->have_posts()) {
$post = reset($terminal_comic_query->posts);
}
$this->_reset_wp_query(); /**
return $post; * Set the comic categories for the current run of ComicPress.
} */
function set_comic_categories($categories) {
/** $this->_all_categories = get_all_category_ids();
* Get the first comic in a category. $this->_non_comic_categories = array_values(array_diff($this->_all_categories, $categories));
*/ }
function get_first_comic($category_id) {
return $this->get_terminal_post_in_category($category_id);
}
/**
* Get the last comic in a category.
*/
function get_last_comic($category_id) {
return $this->get_terminal_post_in_category($category_id, false);
}
/** function _get_categories_to_exclude($category = null) {
* Get the comic post adjacent to the current comic. $result = array_diff($this->_all_categories, array($category));
* Wrapper around get_adjacent_post(). Don't unit test this method. if (is_array($result)) {
*/ return (is_null($category)) ? $this->_non_comic_categories : array_values($result);
function get_adjacent_comic($category, $next = false, $override_post = null) { } else {
global $post; return $this->_non_comic_categories;
}
}
$this->_prepare_wp_query(); /**
if (!is_null($override_post)) { $temp_post = $post; $post = $override_post; } * Find the terminal post in a specific category.
*/
$result = get_adjacent_post(false, implode(" and ", $this->_get_categories_to_exclude($category)), !$next); function get_terminal_post_in_category($category_id, $first = true) {
$this->_prepare_wp_query();
$this->_reset_wp_query(); $sort_order = $first ? "asc" : "desc";
if (!is_null($override_post)) { $post = $temp_post; } $terminal_comic_query = new WP_Query();
$terminal_comic_query->query("showposts=1&order=${sort_order}&cat=${category_id}&status=publish");
$post = false;
if ($terminal_comic_query->have_posts()) {
$post = reset($terminal_comic_query->posts);
}
return empty($result) ? false : $result; $this->_reset_wp_query();
} return $post;
}
function _prepare_wp_query() { /**
global $wp_query; * Get the first comic in a category.
*/
function get_first_comic($category_id) {
return $this->get_terminal_post_in_category($category_id);
}
$this->is_single = $wp_query->is_single; /**
$this->in_the_loop = $wp_query->in_the_loop; * Get the last comic in a category.
*/
function get_last_comic($category_id) {
return $this->get_terminal_post_in_category($category_id, false);
}
$wp_query->is_single = $wp_query->in_the_loop = true; /**
} * Get the comic post adjacent to the current comic.
* Wrapper around get_adjacent_post(). Don't unit test this method.
*/
function get_adjacent_comic($category, $next = false, $override_post = null) {
global $post;
function _reset_wp_query() { $this->_prepare_wp_query();
global $wp_query; if (!is_null($override_post)) { $temp_post = $post; $post = $override_post; }
$wp_query->is_single = $this->is_single; $result = get_adjacent_post(false, implode(" and ", $this->_get_categories_to_exclude($category)), !$next);
$wp_query->in_the_loop = $this->in_the_loop;
}
/**
* Get the previous comic from the current one.
*/
function get_previous_comic($category = null, $override_post = null) { return $this->get_adjacent_comic($category, false, $override_post); }
/** $this->_reset_wp_query();
* Get the next comic from the current one. if (!is_null($override_post)) { $post = $temp_post; }
*/
function get_next_comic($category = null, $override_post = null) { return $this->get_adjacent_comic($category, true, $override_post); } return empty($result) ? false : $result;
}
function _prepare_wp_query() {
global $wp_query;
$this->is_single = $wp_query->is_single;
$this->in_the_loop = $wp_query->in_the_loop;
$wp_query->is_single = $wp_query->in_the_loop = true;
}
function _reset_wp_query() {
global $wp_query;
$wp_query->is_single = $this->is_single;
$wp_query->in_the_loop = $this->in_the_loop;
}
/**
* Get the previous comic from the current one.
*/
function get_previous_comic($category = null, $override_post = null) { return $this->get_adjacent_comic($category, false, $override_post); }
/**
* Get the next comic from the current one.
*/
function get_next_comic($category = null, $override_post = null) { return $this->get_adjacent_comic($category, true, $override_post); }
} }
?> ?>

View File

@ -534,7 +534,8 @@ class ComicPressStoryline {
function build_from_restrictions($restrictions = null) { function build_from_restrictions($restrictions = null) {
global $post; global $post;
$this->read_from_options()->exclude_all(); $this->read_from_options();
$this->exclude_all();
$include_all = true; $include_all = true;
if (is_array($restrictions)) { if (is_array($restrictions)) {
@ -587,4 +588,4 @@ class ComicPressStoryline {
} }
} }
?> ?>

View File

@ -54,6 +54,11 @@ $options = array (
"default" => "29.95", "default" => "29.95",
"type" => "comicpress-buy_print_int_amount"), "type" => "comicpress-buy_print_int_amount"),
array(
"id" => "comicpress-buy_print_add_shipping",
"default" => "yes",
"type" => "comicpress-buy_print_add_shipping"),
array( array(
"id" => "comicpress-buy_print_us_ship", "id" => "comicpress-buy_print_us_ship",
"default" => "4.95", "default" => "4.95",
@ -101,18 +106,13 @@ $options = array (
array( array(
"id" => "comicpress-enable_numbered_pagination", "id" => "comicpress-enable_numbered_pagination",
"default" => "no", "default" => "yes",
"type" => "comicpress-enable_numbered_pagination"), "type" => "comicpress-enable_numbered_pagination"),
array( array(
"id" => "comicpress-disable_page_restraints", "id" => "comicpress-disable_page_restraints",
"default" => "no", "default" => "no",
"type" => "comicpress-disable_page_restraints"), "type" => "comicpress-disable_page_restraints"),
array(
"id" => "comicpress-enable_dropdown_sidebar",
"default" => "no",
"type" => "comicpress-enable_dropdown_sidebar"),
array( array(
"id" => "comicpress-enable_related_comics", "id" => "comicpress-enable_related_comics",
@ -284,6 +284,11 @@ $options = array (
"default" => "no", "default" => "no",
"type" => "comicpress-disable_blogheader"), "type" => "comicpress-disable_blogheader"),
array(
"id" => "comicpress-disable_page_titles",
"default" => "no",
"type" => "comicpress-disable_page_titles"),
array("type" => "close") array("type" => "close")
); );
?> ?>

View File

@ -7,49 +7,47 @@ function options() {
add_action('admin_head-'.$pagehook, 'comicpress_admin_page_head'); add_action('admin_head-'.$pagehook, 'comicpress_admin_page_head');
} }
function comicpress_admin_page_head() { function comicpress_admin_page_head() { ?>
global $is_IE;
if ($is_IE) { ?>
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/js/tabbed/tabbed_pages_ie.css" type="text/css" media="screen" />
<?php } else { ?>
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/js/tabbed/tabbed_pages.css" type="text/css" media="screen" /> <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/js/tabbed/tabbed_pages.css" type="text/css" media="screen" />
<?php } ?>
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/tabbed/tabbed_pages.js"></script> <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/tabbed/tabbed_pages.js"></script>
<!--[if lt ie 8]>
<style>
div.show {
position: static;
margin-top: 1px;
}
#cpadmin div.off {
height: 22px;
}
</style>
<![endif]-->
<?php } <?php }
function comicpress_admin() { function comicpress_admin() {
global $options, $upload_path, $blogcat, $moods_directory, $calendar_directory, $graphicnav_directory; global $options, $upload_path, $blogcat, $moods_directory, $calendar_directory, $graphicnav_directory; ?>
?> <div class="wrap">
<div class="wrap">
<div id="cpadmin-headericon" style="background: url('<?php echo get_template_directory_uri(); ?>/images/options/comicpress_icon.png') no-repeat;"></div>
<h2 class="alignleft"><?php _e('ComicPress Options','comicpress'); ?></h2> <h2 class="alignleft"><?php _e('ComicPress Options','comicpress'); ?></h2>
<div class="clear"></div>
<a class="alignright" style="margin: 20px;" href="http://comicpress.org/"><img src="<?php echo get_template_directory_uri(); ?>/images/options/comicpress_logo.png" alt="ComicPress" /></a>
<br clear="all" />
<div style="float: right">
<form method="post" id="myForm" name="template" enctype="multipart/form-data">
<input name="comicpress_reset" type="submit" class="button-primary" value="Reset Settings" />
<input type="hidden" name="action" value="comicpress_reset" />
</form>
</div>
<br clear="all" />
<?php <?php
if ( wp_verify_nonce($_POST['_wpnonce'], 'update-options') ) { if ( wp_verify_nonce($_POST['_wpnonce'], 'update-options') ) {
if ('comicpress_save'== $_REQUEST['action']) { if ('comicpress_save' == $_REQUEST['action']) {
foreach ($options as $value) { foreach ($options as $value) {
if( !isset( $_REQUEST[ $value['id'] ] ) ) { } else { update_option( $value['id'], stripslashes($_REQUEST[ $value['id']])); } } ?> if( !isset( $_REQUEST[ $value['id'] ] ) ) { } else { update_option( $value['id'], stripslashes($_REQUEST[ $value['id']])); } } ?>
<div id="message" class="updated fade"><p><strong><?php _e('Options/Settings SAVED!','comicpress'); ?></strong></p></div> <div id="message" class="updated fade"><p><strong><?php _e('ComicPress Settings SAVED!','comicpress'); ?></strong></p></div>
<script>function hidemessage() { document.getElementById('message').style.display = 'none'; }</script>
<?php } <?php }
if ('comicpress_reset' == $_REQUEST['action'] ) { if ('comicpress_reset' == $_REQUEST['action']) {
foreach ($options as $default) { foreach ($options as $default) {
delete_option($default['id'],$default['default']); delete_option($default['id'],$default['default']);
} ?> } ?>
<div id="message" class="updated fade"><p><strong><?php _e('Options/Settings RESET!','comicpress'); ?></strong></p></div> <div id="message" class="updated fade"><p><strong><?php _e('ComicPress Settings RESET!','comicpress'); ?></strong></p></div>
<script>function hidemessage() { document.getElementById('message').style.display = 'none'; }</script>
<?php <?php
} }
} }
@ -65,11 +63,11 @@ function comicpress_admin() {
@require(get_template_directory() . '/comicpress-config.php'); @require(get_template_directory() . '/comicpress-config.php');
?> ?>
<div id="poststuff" class="metabox-holder"> <div id="poststuff" class="metabox-holder">
<div id="cpadmin" onclick="hidemessage();">
<div id="cpadmin"> <div class="on" title="themestyle"><span><?php _e('Layout','comicpress'); ?></span></div>
<div class="on" title="themestyle"><span><?php _e('Theme Style','comicpress'); ?></span></div>
<div class="off" title="generaloptions"><span><?php _e('General','comicpress'); ?></span></div> <div class="off" title="generaloptions"><span><?php _e('General','comicpress'); ?></span></div>
<div class="off" title="indexoptions"><span><?php _e('Index Page','comicpress'); ?></span></div> <div class="off" title="indexoptions"><span><?php _e('Index Page','comicpress'); ?></span></div>
<div class="off" title="postoptions"><span><?php _e('Post','comicpress'); ?></span></div> <div class="off" title="postoptions"><span><?php _e('Post','comicpress'); ?></span></div>
@ -79,7 +77,6 @@ function comicpress_admin() {
<div class="off" title="buyprintoptions"><span><?php _e('Buy Print','comicpress'); ?></span></div> <div class="off" title="buyprintoptions"><span><?php _e('Buy Print','comicpress'); ?></span></div>
<div class="off" title="membersoptions"><span><?php _e('Members','comicpress'); ?></span></div> <div class="off" title="membersoptions"><span><?php _e('Members','comicpress'); ?></span></div>
</div> </div>
<?php include(get_template_directory() . '/options/themestyle.php'); ?> <?php include(get_template_directory() . '/options/themestyle.php'); ?>
<?php include(get_template_directory() . '/options/generaloptions.php'); ?> <?php include(get_template_directory() . '/options/generaloptions.php'); ?>
<?php include(get_template_directory() . '/options/indexoptions.php'); ?> <?php include(get_template_directory() . '/options/indexoptions.php'); ?>
@ -90,12 +87,10 @@ function comicpress_admin() {
<?php include(get_template_directory() . '/options/buyprintoptions.php'); ?> <?php include(get_template_directory() . '/options/buyprintoptions.php'); ?>
<?php include(get_template_directory() . '/options/membersoptions.php'); ?> <?php include(get_template_directory() . '/options/membersoptions.php'); ?>
</div> </div>
<div style="margin-top: 10px; text-align:center;padding: 5px; background: #eee; -moz-border-radius: 10px;-khtml-border-radius: 10px;-webkit-border-radius: 10px;border-radius: 10px;border: solid 1px #000;">
<a href="http://comicpress.org/">ComicPress 2.8 (<?php global $comicpress_version; echo $comicpress_version; ?>)</a>, <?php _e('created by','comicpress'); ?> <a href="http://mindfaucet.com/">Tyler Martin</a>, <?php _e('with','comicpress'); ?> <a href="http://www.coswellproductions.com/">John Bintz</a> <?php _e('and','comicpress'); ?> <a href="http://webcomicplanet.com/">Philip M. Hofer</a> (<a href="http://frumph.net/">Frumph</a>)<br /> <div class="cpadmin-footer">
<?php _e('If you like the ComicPress theme, please donate. It will help in creating new versions.','comicpress'); ?><br /> <form action="https://www.paypal.com/cgi-bin/webscr" method="post" class="cpadmin-donate">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="7827910"> <input type="hidden" name="hosted_button_id" value="7827910">
<input type="image" <input type="image"
@ -106,6 +101,16 @@ function comicpress_admin() {
src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1"
height="1"> height="1">
</form> </form>
<a href="http://comicpress.org/"><strong>ComicPress 2.9</strong> <small>[ <?php global $comicpress_version; echo $comicpress_version; ?> ]</small></a>. <?php _e('Created by','comicpress'); ?> <a href="http://mindfaucet.com/">Tyler Martin</a> <?php _e('with','comicpress'); ?> <a href="http://www.coswellproductions.com/">John Bintz</a> <?php _e('and','comicpress'); ?> <a href="http://webcomicplanet.com/">Philip M. Hofer</a> <small>(<a href="http://frumph.net/">Frumph</a>)</small>.<br />
<?php _e('If you like the ComicPress theme, please donate. It will help in creating new versions.','comicpress'); ?>
<br />
<br />
<form method="post" id="myForm" name="template" enctype="multipart/form-data">
<?php wp_nonce_field('update-options') ?>
<input name="comicpress_reset" type="submit" class="button" value="Reset All Settings" />
<input type="hidden" name="action" value="comicpress_reset" />
</form>
<div class="clear"></div>
</div> </div>
</div> </div>

View File

@ -9,10 +9,31 @@
<?php get_sidebar('footer'); ?> <?php get_sidebar('footer'); ?>
<?php global $disable_footer_text, $wpmu_version; if ($disable_footer_text != 'yes') { ?> <?php global $disable_footer_text, $wpmu_version; if ($disable_footer_text != 'yes') { ?>
<p> <p>
<span class="footer-copyright"><?php echo cp_copyright(); ?> <?php if (empty($wpmu_version)) { ?><?php echo the_author_meta('firstname',1); echo "&nbsp;"; echo the_author_meta('lastname',1); ?><span class="footer-pipe"> | </span><?php } ?></span> <span class="footer-copyright">
<span class="footer-powered"><?php bloginfo('name'); ?> <?Php _e('Powered by','comicpress'); ?> <a href="http://wordpress.org/">WordPress</a> <?php _e('with','comicpress'); ?> <a href="http://comicpress.org/">ComicPress</a><span class="footer-pipe"> | </span></span> <?php echo cp_copyright(); ?>
<span class="footer-subscribe">Subscribe: <a href="<?php bloginfo('rss2_url') ?>">RSS Feed</a><span class="footer-pipe"> | </span></span> <?php if (empty($wpmu_version)) {
<span class="footer-uptotop"><a href="#outside" onclick="scrollup(); return false;"><?php _e('Back to Top &uarr;','comicpress'); ?></a></span> $authorfirstname = get_the_author_meta('firstname',1);
$authorlastname = get_the_author_meta('lastname',1);
$blogname = get_bloginfo('title');
if ( $authorfirstname != "" ) {
echo $authorfirstname." ".$authorlastname;
} else {
echo $blogname;
}
} ?>
</span>
<span class="footer-powered">
<span class="footer-pipe">|</span>
<?php _e('Powered by','comicpress'); ?> <a href="http://wordpress.org/">WordPress</a> <?php _e('with','comicpress'); ?> <a href="http://comicpress.org/">ComicPress</a>
</span>
<span class="footer-subscribe">
<span class="footer-pipe">|</span>
Subscribe: <a href="<?php bloginfo('rss2_url') ?>">RSS</a>
</span>
<span class="footer-uptotop">
<span class="footer-pipe">|</span>
<a href="#outside" onclick="scrollup(); return false;"><?php _e('Back to Top &uarr;','comicpress'); ?></a>
</span>
<!-- <?php echo get_num_queries() ?> queries. <?php timer_stop(1) ?> seconds. --> <!-- <?php echo get_num_queries() ?> queries. <?php timer_stop(1) ?> seconds. -->
</p> </p>
<?php } ?> <?php } ?>
@ -26,4 +47,4 @@
<?php wp_footer() ?> <?php wp_footer() ?>
</body> </body>
</html> </html>

View File

@ -1,5 +1,10 @@
<?php <?php
// the_post_image('thumbnail/medium/full');
if (function_exists('add_theme_support')) {
add_theme_support( 'post-thumbnails' );
}
// Queue up the scripts. // Queue up the scripts.
wp_enqueue_script('comicpress_scroll', get_template_directory_uri() . '/js/scroll.js'); wp_enqueue_script('comicpress_scroll', get_template_directory_uri() . '/js/scroll.js');
@ -19,7 +24,7 @@ if (function_exists('id_get_comment_number')) {
remove_filter('comments_number','id_get_comment_number'); remove_filter('comments_number','id_get_comment_number');
} }
$comicpress_version = '2.8.2.5'; $comicpress_version = '2.9.0.0';
global $wpmu_version; global $wpmu_version;
if (!empty($wpmu_version)) { if (!empty($wpmu_version)) {
@ -60,6 +65,7 @@ if (get_option('upload_path') !== false) {
'buy_print_url' => 'buy_print_url', 'buy_print_url' => 'buy_print_url',
'buy_print_us_amount' => 'buy_print_us_amount', 'buy_print_us_amount' => 'buy_print_us_amount',
'buy_print_int_amount' => 'buy_print_int_amount', 'buy_print_int_amount' => 'buy_print_int_amount',
'buy_print_add_shipping' => 'buy_print_add_shipping',
'buy_print_us_ship' => 'buy_print_us_ship', 'buy_print_us_ship' => 'buy_print_us_ship',
'buy_print_int_ship' => 'buy_print_int_ship', 'buy_print_int_ship' => 'buy_print_int_ship',
'cp_theme_layout' => 'cp_theme_layout', 'cp_theme_layout' => 'cp_theme_layout',
@ -91,7 +97,6 @@ if (get_option('upload_path') !== false) {
'contact_in_menubar' => 'contact_in_menubar', 'contact_in_menubar' => 'contact_in_menubar',
'disable_dynamic_menubar_links' => 'disable_dynamic_menubar_links', 'disable_dynamic_menubar_links' => 'disable_dynamic_menubar_links',
'disable_footer_text' => 'disable_footer_text', 'disable_footer_text' => 'disable_footer_text',
'themepack_directory' => 'themepack_directory',
'avatar_directory' => 'avatar_directory', 'avatar_directory' => 'avatar_directory',
'archive_display_order' => 'archive_display_order', 'archive_display_order' => 'archive_display_order',
'disable_comment_note' => 'disable_comment_note', 'disable_comment_note' => 'disable_comment_note',
@ -105,7 +110,8 @@ if (get_option('upload_path') !== false) {
'author_column_two' => 'author_column_two', 'author_column_two' => 'author_column_two',
'remove_wptexturize' => 'remove_wptexturize', 'remove_wptexturize' => 'remove_wptexturize',
'disable_default_menubar' => 'disable_default_menubar', 'disable_default_menubar' => 'disable_default_menubar',
'disable_blogheader' => 'disable_blogheader' ) as $options => $variable_name) { 'disable_blogheader' => 'disable_blogheader',
'disable_page_titles' => 'disable_page_titles' ) as $options => $variable_name) {
$variables_to_extract[$variable_name] = get_option("comicpress-${options}"); $variables_to_extract[$variable_name] = get_option("comicpress-${options}");
} }

View File

@ -4,7 +4,7 @@
* function function comicpress_body_class * function function comicpress_body_class
* *
* Author: Philip M. Hofer (Frumph) * Author: Philip M. Hofer (Frumph)
* Author URI: http://webcomicplanet.com/ http://frumph.net/ * Author URI: http://frumph.net/ http://frumph.net/
* Version: 1.0.6 * Version: 1.0.6
* *
* This function adds the browser type as a class * This function adds the browser type as a class
@ -135,4 +135,20 @@ function comicpress_post_class($class = '') {
echo apply_filters( 'comicpress_post_class', $class ); echo apply_filters( 'comicpress_post_class', $class );
} }
add_filter('comment_class','comicpress_comment_class');
function comicpress_comment_class($classes = '') {
/*
* 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;
}
return $classes;
}
?> ?>

View File

@ -38,7 +38,7 @@ function comicpress_avatar() {
$id_or_email = get_comment_author_email(); $id_or_email = get_comment_author_email();
if (empty($id_or_email)) $id_or_email = get_comment_author(); if (empty($id_or_email)) $id_or_email = get_comment_author();
if(function_exists('comicpress_get_avatar') && $comment_type != 'pingback' && $comment_type != 'trackback' ) { if(function_exists('comicpress_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), comicpress_get_avatar($id_or_email, 64)); echo str_replace("alt='", "alt='".wp_specialchars(get_comment_author(), 1)."' title='".wp_specialchars(get_comment_author(), 1), comicpress_get_avatar($id_or_email, 72));
} else { } else {
if ($comment_type == 'pingback' || $comment_type == 'trackback') { if ($comment_type == 'pingback' || $comment_type == 'trackback') {
echo '<img src="'.get_template_directory_uri().'/'.$avatar.'" class="photo trackping" />'; echo '<img src="'.get_template_directory_uri().'/'.$avatar.'" class="photo trackping" />';
@ -121,48 +121,53 @@ function comicpress_comments_callback($comment, $args, $depth) {
$GLOBALS['comment_depth'] = $depth; $GLOBALS['comment_depth'] = $depth;
?> ?>
<li id="comment-<?php comment_ID(); ?>" class="<?php comicpress_comment_class(); ?>"> <li id="comment-<?php comment_ID(); ?>" <?php comment_class(); ?>>
<?php comicpress_avatar(); // Avatar filter ?> <div class="comment-avatar">
<?php comicpress_avatar(); // Avatar filter ?>
<div class="comment-meta-data"> </div>
<div class="comment-author vcard"> <div class="comment-content">
<?php comicpress_comment_author(); ?><br />
</div> <div class="comment-meta-data">
<span class="comment-time" title="<?php comment_date(__('l, F jS, Y, g:i a','comicpress')); ?>"> <div class="comment-author vcard">
<?php printf(__('%1$s at %2$s','comicpress'), get_comment_date(), get_comment_time()); ?> <?php comicpress_comment_author(); ?><br />
</span> </div>
<span class="separator">|</span> <a class="permalink" href="#comment-<?php echo str_replace('&', '&amp;', get_comment_ID()); ?>" title="<?php _e('Permalink to comment','comicpress'); ?>"><?php _e('Permalink','comicpress'); ?></a> <span class="comment-time" title="<?php comment_date(__('l, F jS, Y, g:i a','comicpress')); ?>">
<?php <?php printf(__('%1$s at %2$s','comicpress'), get_comment_date(), get_comment_time()); ?>
if((get_option('thread_comments')) && ($args['type'] == 'all' || get_comment_type() == 'comment')) : </span>
$max_depth = get_option('thread_comments_depth');
echo comment_reply_link(array( <span class="separator">|</span> <a class="permalink" href="#comment-<?php echo str_replace('&', '&amp;', get_comment_ID()); ?>" title="<?php _e('Permalink to comment','comicpress'); ?>"><?php _e('Permalink','comicpress'); ?></a>
'reply_text' => __('Reply','comicpress'), <?php
'login_text' => __('Log in to reply.','comicpress'), if((get_option('thread_comments')) && ($args['type'] == 'all' || get_comment_type() == 'comment')) :
'depth' => $depth, $max_depth = get_option('thread_comments_depth');
'max_depth' => $max_depth, echo comment_reply_link(array(
'before' => '<span class="separator">|</span> <span class="comment-reply-link">', 'reply_text' => __('Reply','comicpress'),
'after' => '</span>' 'login_text' => __('Log in to reply.','comicpress'),
)); 'depth' => $depth,
endif; 'max_depth' => $max_depth,
?> 'before' => '<span class="separator">|</span> <span class="comment-reply-link">',
<?php edit_comment_link('<span class="edit">'.__('Edit','comicpress').'</span>',' <span class="separator">|</span> ',''); ?> 'after' => '</span>'
));
<?php if($comment->comment_approved == '0') : ?> endif;
<div class="comment-moderated"><em><?php _e('Your comment is awaiting moderation.','comicpress'); ?></em></div> ?>
<?php endif; ?> <?php edit_comment_link('<span class="edit">'.__('Edit','comicpress').'</span>',' <span class="separator">|</span> ',''); ?>
</div> <?php if($comment->comment_approved == '0') : ?>
<div class="comment-moderated"><em><?php _e('Your comment is awaiting moderation.','comicpress'); ?></em></div>
<?php if (get_comment_type() == 'comment') { ?> <?php endif; ?>
<div class="comment-text">
<?php comment_text(); ?> </div>
<?php if (get_comment_type() == 'comment') { ?>
<div class="comment-text">
<?php comment_text(); ?>
</div>
<?php } ?>
<div class="clear"></div>
</div> </div>
<?php } ?>
<div class="clear"></div>
<?php } <?php }
/** /**
@ -177,51 +182,6 @@ function comicpress_comments_end_callback() {
echo '</li>'; 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;
/*
* 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;
}
function list_pings($comment, $args, $depth) { function list_pings($comment, $args, $depth) {
$GLOBALS['comment'] = $comment; ?> $GLOBALS['comment'] = $comment; ?>
<li id="comment-<?php comment_ID(); ?>"> <li id="comment-<?php comment_ID(); ?>">

View File

@ -12,7 +12,7 @@ function display_blog_post() {
<div class="blognav"> <div class="blognav">
<div class="nav-single"> <div class="nav-single">
<?php previous_post_link('%link',__(' &lsaquo; Previous ','comicpress'), TRUE); ?> <?php previous_post_link('%link',__(' &lsaquo; Previous ','comicpress'), TRUE); ?>
<?php next_post_link('%link',__(' Next &rsaquo; ','comicpress'), TRUE); ?> <?php next_post_link('%link',__('| Next &rsaquo; ','comicpress'), TRUE); ?>
</div> </div>
</div> </div>
<?php } ?> <?php } ?>
@ -31,12 +31,21 @@ function display_blog_post() {
</div> </div>
<?php } ?> <?php } ?>
<div class="post-text"> <div class="post-text">
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> <?php if (function_exists('the_post_image')) {
<div class="post-author"> By <?php the_author_posts_link(); ?> on <?php the_time('F jS, Y'); ?></div> if ( has_post_image() ) { ?>
<div class="post-image">
<a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_post_image('full'); ?></a>
</div>
<?php } else {?>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php } ?>
<?php } else { ?>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php } ?>
<div class="post-author"> <?php the_time('F jS, Y'); ?> <span class="pipe">|</span> by <?php the_author_posts_link(); ?> <?php edit_post_link(__('Edit Post','comicpress'), ' [ ', ' ] '); ?></div>
<?php if ($disable_categories_in_posts != 'yes') { ?> <?php if ($disable_categories_in_posts != 'yes') { ?>
<div class="post-cat"><?php _e('Posted In:','comicpress'); ?> <?php the_category(','); ?></div> <div class="post-cat"><?php _e('Posted In:','comicpress'); ?> <?php the_category(','); ?></div>
<?php } ?> <?php } ?>
<div class="post-edit"><?php edit_post_link(__('Edit Post','comicpress'), ' [ ', ' ] '); ?></div>
<?php if(function_exists('the_ratings')) { the_ratings(); } ?> <?php if(function_exists('the_ratings')) { the_ratings(); } ?>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
@ -45,8 +54,8 @@ function display_blog_post() {
<?php if (!is_single()) { global $more; $more = 0; } ?> <?php if (!is_single()) { global $more; $more = 0; } ?>
<?php the_content(__('&darr; Read the rest of this entry...','comicpress')); ?> <?php the_content(__('&darr; Read the rest of this entry...','comicpress')); ?>
<?php if (is_single()) wp_link_pages(array('before' => '<div class="linkpages"><span class="linkpages-pagetext">Pages:</span> ', 'after' => '</div>', 'next_or_number' => 'number')); ?> <?php if (is_single()) wp_link_pages(array('before' => '<div class="linkpages"><span class="linkpages-pagetext">Pages:</span> ', 'after' => '</div>', 'next_or_number' => 'number')); ?>
<div class="clear"></div>
</div> </div>
<br class="clear-margins" />
<div class="post-extras"> <div class="post-extras">
<?php if ($disable_tags_in_posts != 'yes') { ?> <?php if ($disable_tags_in_posts != 'yes') { ?>
<div class="post-tags"> <div class="post-tags">
@ -56,14 +65,13 @@ function display_blog_post() {
<?php <?php
if ('open' == $post->comment_status) { if ('open' == $post->comment_status) {
if (comicpress_check_child_file('partials/commentlink') == false) { ?> if (comicpress_check_child_file('partials/commentlink') == false) { ?>
<div class="comment-link"><?php comments_popup_link('<span class="comment-balloon comment-balloon-empty">&nbsp;</span> '.__('No Comments ','comicpress'), '<span class="comment-balloon">1</span> '.__('Comment ','comicpress'), '<span class="comment-balloon">%</span> '.__('Comments ','comicpress')); ?></div> <div class="comment-link"><?php comments_popup_link('<span class="comment-balloon comment-balloon-empty">&nbsp;</span> '.__('Comments ','comicpress'), '<span class="comment-balloon">1</span> '.__('Comment ','comicpress'), '<span class="comment-balloon">%</span> '.__('Comments ','comicpress')); ?></div>
<?php } <?php }
} }
?> ?>
<div class="clear"></div> <div class="clear"></div>
<?php if ($enable_related_posts == 'yes') echo related_posts_shortcode(); ?> <?php if ($enable_related_posts == 'yes') echo related_posts_shortcode(); ?>
</div> </div>
<br class="clear-margins" />
</div> </div>
<div class="post-foot"></div> <div class="post-foot"></div>
</div> </div>

View File

@ -30,8 +30,18 @@ function display_comic_post() {
</div> </div>
<?php } ?> <?php } ?>
<div class="post-comic-text"> <div class="post-comic-text">
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> <?php if (function_exists('the_post_image')) {
<div class="post-comic-author"> By <?php the_author_posts_link(); ?> on <?php the_time('F jS, Y'); ?></div> if ( has_post_image() ) { ?>
<div class="post-comic-image">
<a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_post_image('full'); ?></a>
</div>
<?php } else {?>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php } ?>
<?php } else { ?>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php } ?>
<div class="post-comic-author"> <?php the_time('F jS, Y'); ?> <span class="pipe">|</span> by <?php the_author_posts_link(); ?> <?php edit_post_link(__('Edit Post','comicpress'), ' [ ', ' ] '); ?></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(' &raquo; </li><li>', multiple) ?></li></ul> <ul class="storyline-cats"><li class="storyline-root"><?php the_category(' &raquo; </li><li>', multiple) ?></li></ul>
<?php } else { ?> <?php } else { ?>
@ -39,15 +49,14 @@ function display_comic_post() {
<div class="post-comic-cat"><?php _e('Posted In:','comicpress'); ?> <?php the_category(','); ?></div> <div class="post-comic-cat"><?php _e('Posted In:','comicpress'); ?> <?php the_category(','); ?></div>
<?php } ?> <?php } ?>
<?php } ?> <?php } ?>
<div class="post-comic-edit"><?php edit_post_link(__('Edit Post','comicpress'), ' [ ', ' ] '); ?></div>
<?php if(function_exists('the_ratings')) { the_ratings(); } ?> <?php if(function_exists('the_ratings')) { the_ratings(); } ?>
</div> </div>
<br class="clear-margins" />
</div> </div>
<div class="entry"> <div class="entry">
<?php if (!is_single()) { global $more; $more = 0; } ?> <?php if (!is_single()) { global $more; $more = 0; } ?>
<?php the_content(__('&darr; Read the rest of this entry...','comicpress')); ?> <?php the_content(__('&darr; Read the rest of this entry...','comicpress')); ?>
<?php if (is_single()) wp_link_pages(array('before' => '<div class="linkpages"><span class="linkpages-pagetext">Pages:</span> ', 'after' => '</div>', 'next_or_number' => 'number')); ?> <?php if (is_single()) wp_link_pages(array('before' => '<div class="linkpages"><span class="linkpages-pagetext">Pages:</span> ', 'after' => '</div>', 'next_or_number' => 'number')); ?>
<div class="clear"></div>
</div> </div>
<div class="post-comic-extras"> <div class="post-comic-extras">
<?php if ($disable_tags_in_posts != 'yes') { ?> <?php if ($disable_tags_in_posts != 'yes') { ?>
@ -58,14 +67,13 @@ function display_comic_post() {
<?php <?php
if ('open' == $post->comment_status) { if ('open' == $post->comment_status) {
if (comicpress_check_child_file('partials/commentlink') == false) { ?> if (comicpress_check_child_file('partials/commentlink') == false) { ?>
<div class="comment-link"><?php comments_popup_link('<span class="comment-balloon comment-balloon-empty">&nbsp;</span> '.__('No Comments ','comicpress'), '<span class="comment-balloon">1</span> '.__('Comment ','comicpress'), '<span class="comment-balloon">%</span> '.__('Comments ','comicpress')); ?></div> <div class="comment-link"><?php comments_popup_link('<span class="comment-balloon comment-balloon-empty">&nbsp;</span> '.__('Comments ','comicpress'), '<span class="comment-balloon">1</span> '.__('Comment ','comicpress'), '<span class="comment-balloon">%</span> '.__('Comments ','comicpress')); ?></div>
<?php } <?php }
} }
?> ?>
<div class="clear"></div> <div class="clear"></div>
<?php if ($enable_related_comics == 'yes') echo related_comics_shortcode(); ?> <?php if ($enable_related_comics == 'yes') echo related_comics_shortcode(); ?>
</div> </div>
<br class="clear-margins" />
</div> </div>
<div class="post-comic-foot"></div> <div class="post-comic-foot"></div>
</div> </div>

View File

@ -2,7 +2,7 @@
/** /**
* Members Only * Members Only
* by Philip M. Hofer (Frumph) * by Philip M. Hofer (Frumph)
* http://webcomicplanet.com/ * http://frumph.net/
* *
* Displays content that only registered users that are marked members can see. * Displays content that only registered users that are marked members can see.
* *

View File

@ -5,9 +5,17 @@
<div class="<?php comicpress_post_class(); ?>"> <div class="<?php comicpress_post_class(); ?>">
<div class="post-page-head"></div> <div class="post-page-head"></div>
<div class="post-page" id="post-<?php the_ID() ?>"> <div class="post-page" id="post-<?php the_ID() ?>">
<h2 class="pagetitle"> <?php if (function_exists('the_post_image')) {
<a href="<?php echo get_permalink($post->post_parent) ?>" rev="attachment"><?php echo get_the_title($post->post_parent) ?></a> if ( has_post_image() ) { ?>
</h2> <div class="post-page-image">
<?php the_post_image('full'); ?>
</div>
<?php } ?>
<?php } ?>
<?php if ($disable_page_titles != 'yes') { ?>
<h2 class="pagetitle"><?php the_title() ?></h2>
<?php } ?>
<br class="clear-margins" />
<div class="gallery-image"> <div class="gallery-image">
<a href="<?php echo wp_get_attachment_url($post->ID) ?>" target="_blank" title="<?php _e('Click for full size.','comicpress'); ?>" ><img src="<?php echo wp_get_attachment_url($post->ID) ?>" alt="<?php the_title() ?>" /></a> <a href="<?php echo wp_get_attachment_url($post->ID) ?>" target="_blank" title="<?php _e('Click for full size.','comicpress'); ?>" ><img src="<?php echo wp_get_attachment_url($post->ID) ?>" alt="<?php the_title() ?>" /></a>
</div> </div>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.4 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

View File

@ -1,34 +1,53 @@
#cpadmin-headericon {
height: 36px;
width: 36px;
margin: 14px 6px 0 0;
float: left;
}
#cpadmin { #cpadmin {
font: 11px verdana,arial,sans-serif; font-family: 'Verdana', sans-serif;
font-size: 11px;
padding: 5px 0 0 0; padding: 5px 0 0 0;
line-height: 5px; line-height: 5px;
margin: 0 0 -1px 0; margin: 0 0 -1px 0;
} }
#cpadmin div {
border-top-left-radius: 3px;
-moz-border-radius-topleft: 3px;
-webkit-border-top-left-radius: 3px;
-khtml-border-top-left-radius: 3px;
border-top-right-radius: 3px;
-moz-border-radius-topright: 3px;
-webkit-border-top-right-radius: 3px;
-khtml-border-top-right-radius: 3px;
}
#cpadmin div.off { #cpadmin div.off {
color: #000; color: #999;
height: 23px; height: 23px;
margin: 0 2px -2px 0; margin: 0 0 -2px 5px;
line-height: 23px; line-height: 23px;
padding: 0 10px; padding: 0 7px;
float: left; float: left;
background: url(tabs_0.gif) repeat-x left bottom; background: #e9e9e9;
border-top: 1px solid #ddd; border-top: 1px solid #dfdfdf;
border-left: solid 1px #ddd; border-left: solid 1px #dfdfdf;
border-right: solid 1px #ddd; border-right: solid 1px #dfdfdf;
position: relative; position: relative;
cursor: pointer; cursor: pointer;
z-index: 20; z-index: 20;
} }
#cpadmin div.on { #cpadmin div.on {
color: #c00; color: #333;
padding: 0 10px; padding: 0 7px;
margin: 0 2px -1px 0; margin: 0 0 -1px 5px;
float: left; float: left;
background: url(tabs_2.gif) repeat-x left bottom; background: #fff;
border-top: 1px solid #000; border-top: 1px solid #dfdfdf;
border-left: 1px solid #000; border-left: 1px solid #dfdfdf;
border-right: 1px solid #000; border-right: 1px solid #dfdfdf;
border-bottom: 0px; border-bottom: 0px;
cursor: pointer; cursor: pointer;
height: 23px; height: 23px;
@ -42,17 +61,26 @@ div.hide {
width: 0; width: 0;
overflow: hidden; overflow: hidden;
} }
div.show { div.show {
clear: left; clear: left;
display: run-in; display: run-in;
background: #fff; background: #fff;
border: 1px solid #000; border: 1px solid #dfdfdf;
padding: 20px; padding: 10px;
z-index: 50; z-index: 50;
margin-top: -2px; margin-top: -2px;
position: relative; position: relative;
font: 11px verdana, arial, sans-serif; font: 11px verdana, arial, sans-serif;
line-height: 18px; line-height: 18px;
border-top-left-radius: 6px;
-moz-border-radius-topleft: 6px;
-webkit-border-top-left-radius: 6px;
-khtml-border-top-left-radius: 6px;
border-top-right-radius: 6px;
-moz-border-radius-topright: 6px;
-webkit-border-top-right-radius: 6px;
-khtml-border-top-right-radius: 6px;
} }
div.show img { div.show img {
float: left; float: left;
@ -61,3 +89,26 @@ div.show img {
.clear { .clear {
clear: both; clear: both;
} }
.cpadmin-footer {
padding: 10px;
background: #ededed;
border-width: 0 1px 1px 1px;
border-style: solid;
border-color: #dfdfdf;
font-family: 'Arial', sans-serif;
border-bottom-left-radius: 6px;
-moz-border-radius-bottomleft: 6px;
-webkit-border-bottom-left-radius: 6px;
-khtml-border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
-moz-border-radius-bottomright: 6px;
-webkit-border-bottom-right-radius: 6px;
-khtml-border-bottom-right-radius: 6px;
}
.cpadmin-donate {
float: right;
}
.cpadmin-footer a {
text-decoration: none;
}

View File

@ -1,60 +0,0 @@
#cpadmin {
font: 11px verdana,arial,sans-serif;
padding: 5px 0 0 0;
line-height: 5px;
margin: 0 0 -1px 0;
}
#cpadmin div.off {
color: #000;
height: 23px;
margin: -1px 2px -1px 0;
line-height: 23px;
padding: 0 10px;
float: left;
background: url(tabs_0.gif) repeat-x left bottom;
border-top: 1px solid #ddd;
border-left: solid 1px #ddd;
border-right: solid 1px #ddd;
position: relative;
cursor: pointer;
z-index: 20;
}
#cpadmin div.on {
color: #c00;
padding: 0 10px;
margin: 0 2px 0 0 0;
float: left;
background: url(tabs_2.gif) repeat-x left bottom;
border-top: 1px solid #000;
border-left: 1px solid #000;
border-right: 1px solid #000;
cursor: pointer;
height: 23px;
line-height: 22px;
position: relative;
z-index: 100;
}
div.hide {
display: none;
width: 0;
overflow: hidden;
}
div.show {
clear: left;
display: run-in;
background: #fff;
border: 1px solid #000;
padding: 20px;
z-index: 50;
font: 11px verdana, arial, sans-serif;
line-height: 18px;
}
div.show img {
float: left;
margin: 0 10px 10px 0;
}
.clear {
clear: both;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 226 B

View File

@ -16,13 +16,22 @@ Template Name: Links
<div class="<?php comicpress_post_class(); ?>"> <div class="<?php comicpress_post_class(); ?>">
<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 if (function_exists('the_post_image')) {
if ( has_post_image() ) { ?>
<div class="post-page-image">
<?php the_post_image('full'); ?>
</div>
<?php } ?>
<?php } ?>
<?php if ($disable_page_titles != 'yes') { ?>
<h2 class="pagetitle"><?php the_title() ?></h2>
<?php } ?>
<div id="linkspage"> <div id="linkspage">
<ul> <ul>
<?php echo $bookmarks; ?> <?php echo $bookmarks; ?>
</ul> </ul>
</div> </div>
<br class="clear-margins" /> <div class="clear"></div>
</div> </div>
<div class="post-page-foot"></div> <div class="post-page-foot"></div>
</div> </div>

View File

@ -36,6 +36,20 @@
</tr> </tr>
<?php break; <?php break;
case "comicpress-buy_print_add_shipping": ?>
<tr>
<th scope="row"><strong><?php _e('Add shipping to each item?','comicpress'); ?></strong><br /></th>
<td valign="top" width="100">
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label>
&nbsp;&nbsp;
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-no" type="radio" value="no"<?php if ( get_option( $value['id'] ) == "no") { echo " checked"; } ?> /><?php _e('No','comicpress'); ?></label>
</td>
<td valign="top">
<?php _e('Enabling this option will make it so that shipping costs will be added to each item purchased.','comicpress'); ?>
</td>
</tr>
<?php break;
case "comicpress-buy_print_us_amount": ?> case "comicpress-buy_print_us_amount": ?>
<tr> <tr>
<th scope="row"><b><?php _e('Print Cost (US/Canada)','comicpress'); ?></b><br /><br /><?php _e('How much does a print cost for people in the United State and Canada?','comicpress'); ?></th> <th scope="row"><b><?php _e('Print Cost (US/Canada)','comicpress'); ?></b><br /><br /><?php _e('How much does a print cost for people in the United State and Canada?','comicpress'); ?></th>

View File

@ -8,20 +8,20 @@
switch ( $value['type'] ) { switch ( $value['type'] ) {
case "comicpress-enable_widgetarea_use_sidebar_css": ?> case "comicpress-enable_widgetarea_use_sidebar_css": ?>
<tr> <tr>
<th scope="row"><strong><?php _e('Enable Sidebar CSS in non-left/right sidebars?','comicpress'); ?></strong><br /><br /><?php _e('Enabling this will use the standard CSS styling of the sidebars for all the sidebar areas.','comicpress'); ?><br /><br /></th> <th scope="row"><strong><?php _e('Enable Sidebar CSS in non-left/right sidebars?','comicpress'); ?></strong><br /></th>
<td valign="top"> <td valign="top">
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label> <label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label>
&nbsp;&nbsp; &nbsp;&nbsp;
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-no" type="radio" value="no"<?php if ( get_option( $value['id'] ) == "no") { echo " checked"; } ?> /><?php _e('No','comicpress'); ?></label> <label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-no" type="radio" value="no"<?php if ( get_option( $value['id'] ) == "no") { echo " checked"; } ?> /><?php _e('No','comicpress'); ?></label>
</td> </td>
<td valign="top"> <td valign="top">
<?php _e('If not enabled it will use the .customwidgetarea user made styling only and only the Sidebar-left and Sidebar-right will use sidebar styling.','comicpress'); ?><br /> <?php _e('If enabled, all #sidebars will use .sidebar css','comicpress'); ?><br />
</td> </td>
</tr> </tr>
<?php break; <?php break;
case "comicpress-enable_numbered_pagination": ?> case "comicpress-enable_numbered_pagination": ?>
<tr> <tr>
<th scope="row"><strong><?php _e('Enable numbered pagination?','comicpress'); ?></strong><br /><br /><?php _e('Setting to &quot;Yes&quot; will make the Previous Entries and Next Entries turn into numbered pages to click on.','comicpress'); ?></th> <th scope="row"><strong><?php _e('Enable numbered pagination?','comicpress'); ?></strong><br /></th>
<td valign="top"> <td valign="top">
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label> <label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label>
&nbsp;&nbsp; &nbsp;&nbsp;
@ -35,17 +35,14 @@
<?php break; <?php break;
case "comicpress-disable_page_restraints": ?> case "comicpress-disable_page_restraints": ?>
<tr> <tr>
<th scope="row"><strong><?php _e('Disable the #page / #page-wide restraints?','comicpress'); ?></strong><br /> <th scope="row"><strong><?php _e('Disable the #page / #page-wide restraints?','comicpress'); ?></strong><br /></th>
<br />
<?php _e('Turning this option to Yes will make it so that the divs for #page and #page-wide will not load.','comicpress'); ?><br />
<br />
<td valign="top"> <td valign="top">
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label> <label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label>
&nbsp;&nbsp; &nbsp;&nbsp;
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-no" type="radio" value="no"<?php if ( get_option( $value['id'] ) == "no") { echo " checked"; } ?> /><?php _e('No','comicpress'); ?></label> <label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-no" type="radio" value="no"<?php if ( get_option( $value['id'] ) == "no") { echo " checked"; } ?> /><?php _e('No','comicpress'); ?></label>
</td> </td>
<td valign="top"> <td valign="top">
<?php _e('What you can do with this is use the entire browser for your canvas instead of the 780px/980px that the two elements keep you in.','comicpress'); ?></th> <?php _e('What you can do with this is use the entire browser for your canvas instead of the 780px/980px that the two elements keep you in. Not recommended enabling this option unless your an expert in CSS','comicpress'); ?></th>
</td> </td>
</tr> </tr>
@ -53,14 +50,14 @@
case "comicpress-comic_clicks_next": ?> case "comicpress-comic_clicks_next": ?>
<tr> <tr>
<th scope="row"><strong><?php _e('Make the comic an Href that goes to next comic?','comicpress'); ?></strong><br /><br /><?php _e('In doing this if someone clicks the comic it will go to the next comic (if possible)','comicpress'); ?><br /></th> <th scope="row"><strong><?php _e('Make the comic an Href that goes to next comic?','comicpress'); ?></strong><br /></th>
<td valign="top"> <td valign="top">
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label> <label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label>
&nbsp;&nbsp; &nbsp;&nbsp;
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-no" type="radio" value="no"<?php if ( get_option( $value['id'] ) == "no") { echo " checked"; } ?> /><?php _e('No','comicpress'); ?></label> <label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-no" type="radio" value="no"<?php if ( get_option( $value['id'] ) == "no") { echo " checked"; } ?> /><?php _e('No','comicpress'); ?></label>
</td> </td>
<td valign="top"> <td valign="top">
<?php _e('When a user or yourself puts their mouse cursor over the comic that is displayed on either the index or single page the action that happens next is the first step in the larger, bigger, more astonishing consequence of actually having any the other things you place your mouse cursor over and click. You click, it goes to the next comic.','comicpress'); ?> <?php _e('In doing this if someone clicks the comic it will go to the next comic (if possible)','comicpress'); ?>
</td> </td>
</tr> </tr>
@ -81,7 +78,7 @@
<?php break; <?php break;
case "comicpress-disable_footer_text": ?> case "comicpress-disable_footer_text": ?>
<tr> <tr>
<th scope="row"><strong><?php _e('Disable the default text in the footer?','comicpress'); ?></strong><br /><br /><?php _e('Set to &quot;Yes&quot; and the text in the footer will not show.','comicpress'); ?><br /><br /></th> <th scope="row"><strong><?php _e('Disable the default text in the footer?','comicpress'); ?></strong><br /></th>
<td valign="top" width="100"> <td valign="top" width="100">
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label> <label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label>
&nbsp;&nbsp; &nbsp;&nbsp;
@ -92,6 +89,20 @@
</td> </td>
</tr> </tr>
<?php break;
case "comicpress-disable_page_titles": ?>
<tr>
<th scope="row"><strong><?php _e('Disable the titles on pages?','comicpress'); ?></strong><br /></th>
<td valign="top" width="100">
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label>
&nbsp;&nbsp;
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-no" type="radio" value="no"<?php if ( get_option( $value['id'] ) == "no") { echo " checked"; } ?> /><?php _e('No','comicpress'); ?></label><br />
</td>
<td valign="top">
<?php _e('If you disable the titles no pages you can add a post-page-image in the page editor.','comicpress'); ?>
</td>
</tr>
<?php break; <?php break;
case "comicpress-disable_comment_note": ?> case "comicpress-disable_comment_note": ?>
<tr> <tr>
@ -194,6 +205,10 @@
</select> </select>
</label> </label>
</td> </td>
<td valign="top">
<?php _e('To not use the comicpress avatar graphics, set this as "none".','comicpress'); ?><br />
<br />
</td>
</tr> </tr>
<?php break; <?php break;
} }

View File

@ -25,9 +25,6 @@
} }
?> ?>
</table> </table>
<input name="comicpress_save" type="submit" class="button-primary" value="Save Settings" />
<input type="hidden" name="action" value="comicpress_save" />
</form>
</div> </div>
<div class="inside"> <div class="inside">
Usage:<br /> Usage:<br />
@ -41,4 +38,7 @@
<br /> <br />
This will make it so that that category is only seen as blogposts inside that area and not anywhere else on the site unless the user has the members flag.<br /> This will make it so that that category is only seen as blogposts inside that area and not anywhere else on the site unless the user has the members flag.<br />
</div> </div>
<input name="comicpress_save" type="submit" class="button-primary" value="Save Settings" />
<input type="hidden" name="action" value="comicpress_save" />
</form>
</div> </div>

View File

@ -8,7 +8,7 @@
switch ( $value['type'] ) { switch ( $value['type'] ) {
case "comicpress-disable_default_menubar": ?> case "comicpress-disable_default_menubar": ?>
<tr> <tr>
<th scope="row"><strong><?php _e('Disable the default menubar?','comicpress'); ?></strong><br /><br /></th> <th scope="row"><strong><?php _e('Disable default Menubar?','comicpress'); ?></strong><br /><br /></th>
<td valign="top" width="100"> <td valign="top" width="100">
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label> <label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label>
&nbsp;&nbsp; &nbsp;&nbsp;
@ -22,7 +22,7 @@
<?php break; <?php break;
case "comicpress-enable_search_in_menubar": ?> case "comicpress-enable_search_in_menubar": ?>
<tr> <tr>
<th scope="row"><strong><?php _e('Enable Search Form in Menubar?','comicpress'); ?></strong><br /><br /></th> <th scope="row"><strong><?php _e('Enable Search Form?','comicpress'); ?></strong><br /><br /></th>
<td valign="top" width="100"> <td valign="top" width="100">
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label> <label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label>
&nbsp;&nbsp; &nbsp;&nbsp;
@ -36,7 +36,7 @@
<?php break; <?php break;
case "comicpress-enable_rss_in_menubar": ?> case "comicpress-enable_rss_in_menubar": ?>
<tr> <tr>
<th scope="row"><strong><?php _e('Enable RSS Link in Menubar?','comicpress'); ?></strong><br /><br /></th> <th scope="row"><strong><?php _e('Enable RSS Link?','comicpress'); ?></strong><br /><br /></th>
<td valign="top"> <td valign="top">
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label> <label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label>
&nbsp;&nbsp; &nbsp;&nbsp;
@ -50,7 +50,7 @@
<?php break; <?php break;
case "comicpress-enable_navigation_in_menubar": ?> case "comicpress-enable_navigation_in_menubar": ?>
<tr> <tr>
<th scope="row"><strong><?Php _e('Enable mini navigation buttons in the Menubar?','comicpress'); ?></strong><br /><br /></th> <th scope="row"><strong><?Php _e('Enable mini navigation','comicpress'); ?></strong><br /><br /></th>
<td valign="top"> <td valign="top">
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label> <label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label>
&nbsp;&nbsp; &nbsp;&nbsp;
@ -64,7 +64,7 @@
<?php break; <?php break;
case "comicpress-contact_in_menubar": ?> case "comicpress-contact_in_menubar": ?>
<tr> <tr>
<th scope="row"><strong><?php _e('Contact Link in Menubar','comicpress'); ?></strong><br /><br /><?php _e('Setting to &quot;Yes&quot will put [&nbsp;CONTACT&nbsp;] in the menubar and associate it with your admin email.','comicpress'); ?></th> <th scope="row"><strong><?php _e('Contact Link?','comicpress'); ?></strong><br /><br /><?php _e('Setting to &quot;Yes&quot will put [&nbsp;CONTACT&nbsp;] in the menubar and associate it with your admin email.','comicpress'); ?></th>
<td valign="top"> <td valign="top">
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label> <label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label>
&nbsp;&nbsp; &nbsp;&nbsp;
@ -78,7 +78,7 @@
<?php break; <?php break;
case "comicpress-disable_dynamic_menubar_links": ?> case "comicpress-disable_dynamic_menubar_links": ?>
<tr> <tr>
<th scope="row"><strong><?php _e('Disable the dynamically generated wordpress links?','comicpress'); ?></strong><br /><br /><?php _e('Setting this to Yes will turn off the dynamic links in your menubar.','comicpress'); ?><br /><br /></th> <th scope="row"><strong><?php _e('Disable auto-generated wordpress links?','comicpress'); ?></strong><br /><br /><?php _e('Setting this to Yes will turn off the dynamic links in your menubar.','comicpress'); ?><br /><br /></th>
<td valign="top"> <td valign="top">
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label> <label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label>
&nbsp;&nbsp; &nbsp;&nbsp;

View File

@ -45,7 +45,7 @@
} }
?> ?>
</table> </table>
<input name="comicpress_save" type="submit" class="button-primary" value="Save Style" /> <input name="comicpress_save" type="submit" class="button-primary" value="Save Layout" />
<input type="hidden" name="action" value="comicpress_save" /> <input type="hidden" name="action" value="comicpress_save" />
</form> </form>
</div> </div>

View File

@ -5,13 +5,22 @@
<div class="<?php comicpress_post_class(); ?>"> <div class="<?php comicpress_post_class(); ?>">
<div class="post-page-head"></div> <div class="post-page-head"></div>
<div class="post-page" id="post-<?php the_ID() ?>"> <div class="post-page" id="post-<?php the_ID() ?>">
<h2 class="pagetitle"><?php the_title() ?></h2> <?php if (function_exists('the_post_image')) {
if ( has_post_image() ) { ?>
<div class="post-page-image">
<?php the_post_image('full'); ?>
</div>
<?php } ?>
<?php } ?>
<?php if ($disable_page_titles != 'yes') { ?>
<h2 class="pagetitle"><?php the_title() ?></h2>
<?php } ?>
<div class="entry"> <div class="entry">
<?php the_content() ?> <?php the_content() ?>
<?php wp_link_pages(array('before' => '<div class="linkpages"><span class="linkpages-pagetext">'.__('Pages:','comicpress').'</span> ', 'after' => '</div>', 'next_or_number' => 'number')); ?> <?php wp_link_pages(array('before' => '<div class="linkpages"><span class="linkpages-pagetext">'.__('Pages:','comicpress').'</span> ', 'after' => '</div>', 'next_or_number' => 'number')); ?>
</div> </div>
<?php edit_post_link(__('Edit this page.','comicpress'), '<p>', '</p>') ?> <?php edit_post_link(__('Edit this page.','comicpress'), '<p>', '</p>') ?>
<br class="clear-margins" /> <div class="clear"></div>
</div> </div>
<div class="post-page-foot"></div> <div class="post-page-foot"></div>
</div> </div>

View File

@ -35,15 +35,14 @@ $count = $tmp_search->post_count;
<div class="clear"></div> <div class="clear"></div>
</div> </div>
<div class="post-extras"> <div class="post-extras">
<div class="tags"> <div class="post-tags">
<?php the_tags(__('&#9492; Tags:','comicpress'),', ','<br />'); ?> <?php the_tags(__('&#9492; Tags:','comicpress'),', ','<br />'); ?>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
<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 ?>" /></a><br /> <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 ?>" /></a>
</div> </div>
<br class="clear-margins" />
</div> </div>
<div class="post-comic-foot"></div> <div class="post-comic-foot"></div>
</div> </div>
@ -77,7 +76,7 @@ $count = $tmp_search->post_count;
<div class="clear"></div> <div class="clear"></div>
</div> </div>
<?php the_excerpt() ?> <?php the_excerpt() ?>
<br class="clear-margins" /> <div class="clear"></div>
</div> </div>
<div class="post-foot"></div> <div class="post-foot"></div>
</div> </div>
@ -92,7 +91,6 @@ $count = $tmp_search->post_count;
<h3><?php _e('No transcripts found.','comicpress'); ?></h3> <h3><?php _e('No transcripts found.','comicpress'); ?></h3>
<p><?php _e('Try another search?','comicpress'); ?></p> <p><?php _e('Try another search?','comicpress'); ?></p>
<p><?php include(get_template_directory() . '/searchform-transcript.php') ?></p> <p><?php include(get_template_directory() . '/searchform-transcript.php') ?></p>
<br class="clear-margins" />
</div> </div>
<div class="post-page-foot"></div> <div class="post-page-foot"></div>
</div> </div>

View File

@ -48,9 +48,8 @@
<div class="clear"></div> <div class="clear"></div>
</div> </div>
<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 ?>" /></a><br /> <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 ?>" /></a>
</div> </div>
<br class="clear-margins" />
</div> </div>
<div class="post-comic-foot"></div> <div class="post-comic-foot"></div>
</div> </div>
@ -75,7 +74,7 @@
<small> <?php _e('By','comicpress'); ?> <?php the_author_posts_link(); ?> <?php _e('on','comicpress'); ?> <?php the_time('F jS, Y'); ?> <?php edit_post_link(__('Edit Post','comicpress'), ' [ ', ' ] '); ?></small><br /> <small> <?php _e('By','comicpress'); ?> <?php the_author_posts_link(); ?> <?php _e('on','comicpress'); ?> <?php the_time('F jS, Y'); ?> <?php edit_post_link(__('Edit Post','comicpress'), ' [ ', ' ] '); ?></small><br />
<?php if ($disable_categories_in_posts != 'yes') { ?> <?php if ($disable_categories_in_posts != 'yes') { ?>
<?php if ($post->post_type == 'page') { ?> <?php if ($post->post_type == 'page') { ?>
<small><?php _e('This is a page.','comicpress'); ?></small><break /> <small><?php _e('This is a page.','comicpress'); ?></small><br />
<?php } else { ?> <?php } else { ?>
<small><?php _e('Posted In:','comicpress'); ?> <?php the_category(','); ?></small><br /> <small><?php _e('Posted In:','comicpress'); ?> <?php the_category(','); ?></small><br />
<?php } ?> <?php } ?>
@ -90,9 +89,8 @@
} else { } else {
the_excerpt(); the_excerpt();
} ?> } ?>
<br class="clear-margins" />
<div class="post-extras"> <div class="post-extras">
<div class="tags"> <div class="post-tags">
<?php the_tags(__('&#9492; Tags:','comicpress'),', ','<br />'); ?> <?php the_tags(__('&#9492; Tags:','comicpress'),', ','<br />'); ?>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
@ -111,7 +109,6 @@
<h3><?php _e('No entries found.','comicpress'); ?></h3> <h3><?php _e('No entries found.','comicpress'); ?></h3>
<p><?php _e('Try another search?','comicpress'); ?></p> <p><?php _e('Try another search?','comicpress'); ?></p>
<p><?php include (get_template_directory() . '/searchform.php') ?></p> <p><?php include (get_template_directory() . '/searchform.php') ?></p>
<br class="clear-margins" />
</div> </div>
<div class="post-page-foot"></div> <div class="post-page-foot"></div>
</div> </div>

View File

@ -4,5 +4,6 @@
<input type="text" value="<?php _e('Search Transcripts...','comicpress'); ?>" name="s" id="s-transcript" onfocus="this.value=(this.value=='<?php _e('Search Transcripts...','comicpress'); ?>') ? '' : this.value;" onblur="this.value=(this.value=='') ? '<?php _e('Search Transcripts...','comicpress'); ?>' : this.value;" /><input type="hidden" name="key" value="transcript" /> <input type="text" value="<?php _e('Search Transcripts...','comicpress'); ?>" name="s" id="s-transcript" onfocus="this.value=(this.value=='<?php _e('Search Transcripts...','comicpress'); ?>') ? '' : this.value;" onblur="this.value=(this.value=='') ? '<?php _e('Search Transcripts...','comicpress'); ?>' : this.value;" /><input type="hidden" name="key" value="transcript" />
<button type="submit">&raquo;</button> <button type="submit">&raquo;</button>
</div> </div>
<div class="clear"></div>
</form> </form>
<?php } ?> <?php } ?>

View File

@ -4,5 +4,6 @@
<input type="text" value="<?php _e('Search...','comicpress'); ?>" name="s" id="s-search" onfocus="this.value=(this.value=='<?php _e('Search...','comicpress'); ?>') ? '' : this.value;" onblur="this.value=(this.value=='') ? '<?php _e('Search...','comicpress'); ?>' : this.value;" /> <input type="text" value="<?php _e('Search...','comicpress'); ?>" name="s" id="s-search" onfocus="this.value=(this.value=='<?php _e('Search...','comicpress'); ?>') ? '' : this.value;" onblur="this.value=(this.value=='') ? '<?php _e('Search...','comicpress'); ?>' : this.value;" />
<button type="submit">&raquo;</button> <button type="submit">&raquo;</button>
</div> </div>
<div class="clear"></div>
</form> </form>
<?php } ?> <?php } ?>

View File

@ -29,7 +29,7 @@
<?php } ?> <?php } ?>
<?php } endwhile; ?> <?php } endwhile; ?>
<?php if (is_cp_theme_layout('3c,standard')) { ?> <?php if (is_cp_theme_layout('3c,standard,3c2r')) { ?>
<div id="subcontent-wrapper-head"></div> <div id="subcontent-wrapper-head"></div>
<div id="subcontent-wrapper"> <div id="subcontent-wrapper">
<?php } ?> <?php } ?>
@ -86,9 +86,10 @@
endwhile; } endwhile; }
} }
$post = $temppost; $wp_query = $temp_query; $temppost = null; $temp_query = null; $post = $temppost; $wp_query = $temp_query; $temppost = null; $temp_query = null;
}
if ('open' == $post->comment_status) {
comments_template('', true);
} ?> } ?>
<?php comments_template('', true); ?>
<?php else: ?> <?php else: ?>
<?php get_sidebar('underblog'); ?> <?php get_sidebar('underblog'); ?>
@ -96,7 +97,7 @@
<div class="post-head"></div> <div class="post-head"></div>
<div class="post"> <div class="post">
<p><?php _e('Sorry, no posts matched your criteria.','comicpress'); ?></p> <p><?php _e('Sorry, no posts matched your criteria.','comicpress'); ?></p>
<br class="clear-margins" /> <div class="clear"></div>
</div> </div>
<div class="post-foot"></div> <div class="post-foot"></div>
</div> </div>

287
style.css
View File

@ -3,8 +3,8 @@ Theme Name: ComicPress
Theme URI: http://comicpress.org Theme URI: http://comicpress.org
Description: Publish a comic with WordPress. <a href="http://comicpress.org">Visit the ComicPress Website.</a> This is the ComicPress Core Framework. Description: Publish a comic with WordPress. <a href="http://comicpress.org">Visit the ComicPress Website.</a> This is the ComicPress Core Framework.
Author: Tyler Martin, John Bintz, Philip M. Hofer Author: Tyler Martin, John Bintz, Philip M. Hofer
Author URI: http://mindfaucet.com/ Author URI: http://comicpress.org
Version: 2.8.2 Version: 2.9
. .
The CSS, XHTML and design is released under GPL v3: The CSS, XHTML and design is released under GPL v3:
http://www.opensource.org/licenses/gpl-3.0.html http://www.opensource.org/licenses/gpl-3.0.html
@ -62,18 +62,19 @@ blockquote {
margin: 10px; margin: 10px;
padding: 5px 10px 5px 20px; padding: 5px 10px 5px 20px;
font-family: 'Georgia', serif; font-family: 'Georgia', serif;
font-size: 16px;
border-width: 1px 1px 1px 5px; border-width: 1px 1px 1px 5px;
border-style: solid; border-style: solid;
border-color: #000; border-color: #000;
} }
cite { cite {
font-family: 'Arial', sans-serif; margin: 5px 0 0;
font-size: 14px; display: block;
font-weight: bold; font-weight: bold;
font-style: normal; font-family: 'Arial', sans-serif;
margin: 0; font-style: normal;
padding: 0; font-size: 12px;
} }
acronym, abbr, span.caps { acronym, abbr, span.caps {
@ -88,7 +89,7 @@ code {
padding: 5px; padding: 5px;
margin: 10px 0; margin: 10px 0;
display: block; display: block;
overflow: auto; overflow: scroll;
font-family: 'Courier', monospace; font-family: 'Courier', monospace;
border: 1px dotted #000; border: 1px dotted #000;
} }
@ -97,37 +98,33 @@ form {
margin: 0; margin: 0;
} }
input, textarea {
font-family: 'Arial', sans-serif;
font-size: 13px;
}
/* HEADINGS */ /* HEADINGS */
h1, h1 a { h1, h1 a {
padding: 10px 0 0 0; padding: 10px 0 0 0;
margin: 0; margin: 0;
color: #fff;
font-size: 56px; font-size: 56px;
font-family: 'Georgia' , serif;
font-weight: normal;
line-height: 46px; line-height: 46px;
text-decoration: none;
letter-spacing: -5px; letter-spacing: -5px;
font-variant: small-caps;
} }
h2, h2 a { h2, h2 a {
padding: 0 0 2px 0; padding: 0 0 2px 0;
margin: 0; margin: 0;
color: #333;
font-family: 'Trebuchet MS', sans-serif;
font-size: 24px; font-size: 24px;
line-height: 24px; line-height: 24px;
font-weight: normal;
letter-spacing: -1px; letter-spacing: -1px;
} }
h2.pagetitle, h2.pagetitle a { h2.pagetitle, h2.pagetitle a {
padding: 0 0 5px 0; padding: 0 0 5px 0;
font-family: 'Georgia' , serif; margin-top: 10px;
font-size: 32px; font-size: 32px;
font-weight: normal;
letter-spacing: -2px; letter-spacing: -2px;
clear: both; clear: both;
} }
@ -136,10 +133,6 @@ h3, h3 a {
padding: 0; padding: 0;
margin: 0; margin: 0;
font-size: 20px; font-size: 20px;
font-weight: normal;
text-align: left;
color: #333;
text-decoration: none;
clear: both; clear: both;
letter-spacing: -1px; letter-spacing: -1px;
} }
@ -162,16 +155,9 @@ h3, h3 a {
text-align: center; text-align: center;
} }
#header a {
color: #000;
}
#header .description { #header .description {
color: #555;
padding: 0 0 10px 0; padding: 0 0 10px 0;
font-size: 14px; font-size: 14px;
font-style: italic;
letter-spacing: 2px;
} }
/* THE MENU */ /* THE MENU */
@ -192,22 +178,23 @@ h3, h3 a {
} }
.menunav-search { .menunav-search {
padding: 1px 1px 0 0;
float: left; float: left;
height: 25px;
} }
.menunav-rss { .menunav-rss {
width: 30px; width: 30px;
height: 25px; height: 25px;
line-height: 25px;
padding: 0 7px 0 5px; padding: 0 7px 0 5px;
margin: 0 0 0 4px; margin: 0 0 0 4px;
display: block; display: block;
float: left; float: left;
overflow: hidden; overflow: hidden;
font-size: 11px;
line-height: 25px;
} }
.menunav-rss:hover { .menunav-rss:hover {
background: #b00; background: #f00;
color: #fff; color: #fff;
} }
@ -225,22 +212,20 @@ h3, h3 a {
height: 25px; height: 25px;
line-height: 20px; line-height: 20px;
font-size: 28px; font-size: 28px;
font-weight: bold;
display: block; display: block;
overflow: hidden; overflow: hidden;
} }
.menunav-prev a {
}
.menunav-prev a:hover { .menunav-prev a:hover {
background: #b00; background: #f00;
} }
.menunav-next a { .menunav-next a {
} }
.menunav-next a:hover { .menunav-next a:hover {
background: #b00; background: #f00;
} }
#menu { #menu {
@ -249,7 +234,7 @@ h3, h3 a {
list-style: none; list-style: none;
float: left; float: left;
line-height: 25px; line-height: 25px;
font-size: 13px; font-size: 12px;
} }
#menu a { #menu a {
@ -268,16 +253,12 @@ h3, h3 a {
cursor:pointer; cursor:pointer;
} }
#menu li a {
}
#menu li:hover a, #menu li.sfhover a { #menu li:hover a, #menu li.sfhover a {
color: #fff; /* Main menu highlighted text color */ color: #fff; /* Main menu highlighted text color */
} }
#menu li:hover, #menu li.sfhover { #menu li:hover, #menu li.sfhover {
background: #b00; /* Main menu highlighted background color */ background: #f00; /* Main menu highlighted background color */
} }
.sfhover { .sfhover {
@ -308,7 +289,7 @@ h3, h3 a {
border: none; border: none;
} }
#menu li ul ul { #menu li ul ul {
margin: -17px 0 0 190px; margin: -16px 0 0 190px;
} }
#menu li ul li:hover a, #menu li ul li li:hover a, #menu li ul li li li:hover a, #menu li ul li li li:hover a { #menu li ul li:hover a, #menu li ul li li:hover a, #menu li ul li li li:hover a, #menu li ul li li li:hover a {
color: #fff; /*Submenu highlighted text color */ color: #fff; /*Submenu highlighted text color */
@ -332,12 +313,13 @@ h3, h3 a {
#menu .current_page_item a { #menu .current_page_item a {
color: #fff; color: #fff;
background: #555; background: #800;
} }
/* THE COMIC */ /* THE COMIC */
#comic-head { #comic-head {
padding-top: 5px;
clear: both; clear: both;
} }
@ -363,41 +345,40 @@ h3, h3 a {
/* NAVIGATION */ /* NAVIGATION */
a.navi-comments:hover span {
color:#860b04;
}
.nav,.blognav { .nav,.blognav {
float: right; float: right;
font-size: 12px; font-size: 12px;
font-weight: bold; font-weight: bold;
margin-right: 10px; padding: 5px 0;
padding: 8px 5px 5px 5px;
} }
.nav-first { .nav-first{
padding: 0 5px 0 0;
float: left; float: left;
} }
.nav-previous { .nav-previous {
padding: 0 5px;
float: left; float: left;
} }
.nav-previous a {
padding-left: 10px;
}
.nav-next { .nav-next {
padding: 0 5px;
float: left; float: left;
} }
.nav-next a {
padding-left: 10px;
}
.nav-last { .nav-last {
padding: 0 0 0 5px;
float: left; float: left;
} }
a.navi-comments:hover span { .nav-last a {
color:#860b04; padding-left: 10px;
} }
.pagenav, .commentnav { .pagenav, .commentnav {
height: 25px; height: 25px;
@ -422,9 +403,6 @@ a.navi-comments:hover span {
float: left; float: left;
} }
.nav a:hover, .pagenav a:hover, .nav-blog a:hover {
}
/* POSTS - PAGES */ /* POSTS - PAGES */
#pagewrap-right { #pagewrap-right {
@ -469,16 +447,11 @@ a.navi-comments:hover span {
padding: 1%; padding: 1%;
} }
.column_one_header {
}
.column_two { .column_two {
width: 48%; width: 48%;
float: left; float: left;
padding: 1%; padding: 1%;
} }
.column_two_header {
}
.post, .post-comic, .post-page { .post, .post-comic, .post-page {
clear: both; clear: both;
@ -489,8 +462,11 @@ a.navi-comments:hover span {
padding-top: 5px; padding-top: 5px;
} }
.post-foot { .post-foot, .post-comic-foot {
margin-bottom: 20px; margin-bottom: 40px;
}
.post-image, .post-comic-image, .post-page-image {
} }
.post-info, .post-comic-info { .post-info, .post-comic-info {
@ -525,7 +501,9 @@ a.navi-comments:hover span {
height: 50px; height: 50px;
width: 45px; width: 45px;
background: url(images/calendar.png) center no-repeat; background: url(images/calendar.png) center no-repeat;
font: normal 22px Georgia; font-family: 'Georgia', serif;
font-size: 22px;
font-style: normal;
color: #000; color: #000;
text-align: center; text-align: center;
line-height: 100%; line-height: 100%;
@ -535,11 +513,14 @@ a.navi-comments:hover span {
.post-date .date span, .post-comic-date .date span { .post-date .date span, .post-comic-date .date span {
height: 16px; height: 16px;
padding: 1px 0 4px 0;
display: block; display: block;
font: normal 11px Verdana, Arial, Helvetica, sans-serif; font-family: 'Verdana', sans-serif;
color: #ffffff; font-size: 11px;
font-style: normal;
font-weight: normal;
color: #fff;
text-align: center; text-align: center;
padding-top: 5px;
} }
.comicdate { .comicdate {
@ -551,7 +532,7 @@ a.navi-comments:hover span {
} }
.entry { .entry {
line-height: 1.45em; line-height: 18px;
font-size: 14px; font-size: 14px;
padding: 3px 0; padding: 3px 0;
} }
@ -579,13 +560,13 @@ a.navi-comments:hover span {
} }
.post .members-only, .post-comic .members-only { .post .members-only, .post-comic .members-only {
border: dotted 1px #000; border: 1px dotted #000;
background: #fafafa; background: #fafafa;
padding: 3px; padding: 3px;
} }
.post .non-member, .post-comic .non-member { .post .non-member, .post-comic .non-member {
border: dotted 1px #000; border: 1px dotted #000;
background: #fafafa; background: #fafafa;
padding: 3px; padding: 3px;
} }
@ -598,7 +579,6 @@ a.navi-comments:hover span {
/* COMMENT LINK */ /* COMMENT LINK */
.comment-link { .comment-link {
font-family: 'Arial', sans-serif;
font-weight: bold; font-weight: bold;
text-align: right; text-align: right;
} }
@ -607,7 +587,7 @@ a.navi-comments:hover span {
#blogheader { #blogheader {
padding: 5px 0 5px 0; padding: 5px 0 5px 0;
border-top: 1px solid #999; border-top: 1px solid #000;
margin: 10px 0 20px 0; margin: 10px 0 20px 0;
} }
@ -630,6 +610,11 @@ a.navi-comments:hover span {
padding: 0; padding: 0;
float: left; float: left;
} }
.comment .comment .avatar {
width: 48px;
height: 48px;
}
.comment .trackping { .comment .trackping {
float: left; float: left;
@ -640,12 +625,14 @@ a.navi-comments:hover span {
} }
.comment-note { .comment-note {
font-size: smaller; width: 400px;
display: block;
font-size: 11px;
} }
.comment-text { .comment-text {
padding-bottom: 5px; font-size: 13px;
padding-left: 5px; padding: 10px 5px 5px;
float: left; float: left;
} }
@ -654,6 +641,17 @@ a.navi-comments:hover span {
display: inline; display: inline;
} }
.comment-author cite {
padding: 0;
margin: 0;
font-size: 16px;
display: inline;
}
.comment .comment .comment-author cite {
font-size: 14px;
}
.comment-time { .comment-time {
padding-left: 5px; padding-left: 5px;
} }
@ -668,17 +666,10 @@ a.navi-comments:hover span {
} }
.comment-meta-data { .comment-meta-data {
margin: 0;
padding-left: 5px;
}
.bypostauthor .comment-meta-data {
} }
.comment-meta { .comment-meta {
display: inline; display: inline;
padding: 0 0 0 5px;
margin: 0 0 0 2px;
border-left: 1px solid #000; border-left: 1px solid #000;
} }
@ -691,19 +682,6 @@ a.navi-comments:hover span {
font-size: 11px; font-size: 11px;
} }
#comment-textarea, #author, #email, #url {
padding: 2px;
color: #000;
font-family: 'Verdana' , sans-serif;
font-size: 12px;
background: #ccc;
border: 1px solid #888;
-moz-border-radius: 6px;
-khtml-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
}
#comment-textarea { #comment-textarea {
width: 99%; width: 99%;
} }
@ -712,10 +690,6 @@ a.navi-comments:hover span {
width: 50%; width: 50%;
} }
#comment-textarea:hover, #author:hover, #email:hover, #url:hover, #comment-textarea:focus, #author:focus, #email:focus, #url:focus {
background: #fff;
}
.comment-submit { .comment-submit {
float: right; float: right;
} }
@ -833,7 +807,7 @@ ul.children {
padding: 0; padding: 0;
} }
.widget { .sidebar .widget {
margin-bottom: 10px; margin-bottom: 10px;
} }
@ -849,21 +823,21 @@ ul.children {
background: #000; background: #000;
} }
.comic-bookmark { .sidebar .comic-bookmark {
width: 185px; width: 185px;
margin: 0 auto; margin: 0 auto;
margin-bottom: 10px; margin-bottom: 10px;
} }
.archive-dropdown { .archive-dropdown {
margin: 0; width: 192px;
padding: 0; margin-left: 4px;
width: 166px; padding: 2px;
height: 23px; }
font-size: 14px;
font-family: 'Arial' , sans-serif; .widget_search #s-search, .widget_comicpress_search_transcripts #s-transcript {
cursor: pointer; width: 155px;
border: solid 1px #555; margin-left: 4px;
} }
/* CALENDAR */ /* CALENDAR */
@ -871,9 +845,9 @@ ul.children {
#wp-calendar-wrap { #wp-calendar-wrap {
margin: 0 auto; margin: 0 auto;
width: 170px; width: 170px;
background:#fff; background: #fff;
padding:10px; padding: 10px;
border:1px solid #999; border: 1px solid #000;
} }
#wp-calendar { #wp-calendar {
@ -952,22 +926,12 @@ ul.children {
/* SEARCH */ /* SEARCH */
#s-search, #s-transcript { #s-search, #s-transcript {
width: 138px; width: 140px;
padding: 4px 0 0 5px;
font-size: 12px;
height: 15px;
font-family: 'Arial' , sans-serif;
color: #000;
float: left;
} }
#searchform button, #searchform-transcript button {
height: 23px;
float: left;
}
.searchresults { .searchresults {
padding-left: 10px; padding: 0 0 30px 10px;
font-style: italic;
} }
/* GALLERY */ /* GALLERY */
@ -979,7 +943,9 @@ ul.children {
} }
.gallery-caption { .gallery-caption {
padding: 2px 0 0 0;
font-size: 11px; font-size: 11px;
line-height: 11px;
} }
.gallery-caption p { .gallery-caption p {
@ -1017,52 +983,50 @@ ul.children {
} }
.imagenav-bg { .imagenav-bg {
width: 75px; width: 77px;
height: 75px; height: 77px;
position: absolute; position: absolute;
z-index: 0; z-index: 0;
background: #ddd;
border: 1px solid #000;
overflow: hidden; overflow: hidden;
} }
.imagenav-bg img { .imagenav-bg img {
width: 75px; width: 75px;
height: 75px; height: 75px;
padding: 1px;
} }
.imagenav-arrow { .imagenav-arrow {
width: 75px; width: 77px;
height: 75px; height: 67px;
padding-bottom: 10px;
position: absolute; position: absolute;
z-index: 1; z-index: 1;
color: #fff; color: #fff;
font-size: 80px; font-size: 80px;
font-weight: bold; font-weight: bold;
line-height: 75px; line-height: 67px;
text-align: center; text-align: center;
border: 1px solid #000;
float: left; float: left;
} }
.imagenav-link { .imagenav-link {
width: 75px; width: 77px;
height: 75px; height: 77px;
position: absolute; position: absolute;
z-index: 2; z-index: 2;
border: 1px solid #000;
float: left; float: left;
overflow: hidden; overflow: hidden;
} }
.imagenav-link img { .imagenav-link img {
width: 75px; width: 75px;
height: 75px; height: 75px;
/* opacity: 0.50; filter: alpha(opacity=50); */ padding: 1px;
} }
.imagenav-link img:hover { #gallery-1 .attachment-thumbnail {
/* opacity: 0.00; filter: alpha(opacity=0); */ border: none;
} }
/* POSTED IMAGES */ /* POSTED IMAGES */
@ -1369,18 +1333,15 @@ li.pingback div p, li.trackback div p {
list-style: none; list-style: none;
float: left; float: left;
line-height: 25px; line-height: 25px;
font-size: 13px;
} }
#paginav .paginav-pages, #paginav .paginav-extend { #paginav .paginav-pages {
padding: 0 15px 0 15px; padding-right: 10px;
} }
#paginav a { #paginav a {
padding: 0px 10px 0 10px; padding: 0px 10px;
display: block; display: block;
color: #000;
text-decoration: none;
} }
#paginav ul { #paginav ul {
@ -1393,26 +1354,16 @@ li.pingback div p, li.trackback div p {
float: left; float: left;
} }
#paginav li a {
color: #555;
}
#paginav .paginav-next, #paginav .paginav-previous { #paginav .paginav-next, #paginav .paginav-previous {
font-size: 20px; font-size: 20px;
} }
#paginav .paginav-current, #paginav .current { #paginav .paginav-current, #paginav .current {
padding: 0px 10px 0 10px; padding: 0px 10px;
color: #000; font-weight: bold;
font-size: larger;
} }
#paginav li:hover a { /* Tool Tips (ComicPress Rascal) */
color: #ff0000;
}
/* Tool Tips */
.tt a { .tt a {
position: relative; position: relative;
z-index: 1000; z-index: 1000;
@ -1506,5 +1457,3 @@ li.pingback div p, li.trackback div p {
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
.nav { display: none; }

View File

@ -5,10 +5,21 @@ Widget URI: http://comicpress.org/
Description: Description:
Author: Philip M. Hofer (Frumph) Author: Philip M. Hofer (Frumph)
Version: 1.04 Version: 1.04
Author URI: http://webcomicplanet.com/ Author URI: http://frumph.net/
*/ */
/*
function comicpress_archive_dropdown_storyline() {
$storyline = new ComicPressStoryline();
$storyline->create_structure(get_option('comicpress-storyline-category-order'));
$categories = array_keys($storyline->_structure);
foreach ($categories as $id) {
$post = ComicPressDBInterface::get_instance()->get_first_comic($id);
}
}
*/
function comicpress_archive_dropdown() { ?> function comicpress_archive_dropdown() { ?>
<div class="archive-dropdown-wrap"> <div class="archive-dropdown-wrap">
<select name="archive-dropdown" class="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'> <select name="archive-dropdown" class="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'>

View File

@ -5,7 +5,7 @@ Widget URI: http://comicpress.org/
Description: Adds a bookmark set of icons to save the page your own. Description: Adds a bookmark set of icons to save the page your own.
Author: Tyler Martin Author: Tyler Martin
Version: 1.01 Version: 1.01
Author URI: http://webcomicplanet.com/ Author URI: http://frumph.net/
*/ */

View File

@ -5,7 +5,7 @@ Widget URI: http://comicpress.org/
Description: Places a button that works with the Buy This template. Description: Places a button that works with the Buy This template.
Author: Philip M. Hofer (Frumph) Author: Philip M. Hofer (Frumph)
Version: 1.01 Version: 1.01
Author URI: http://webcomicplanet.com/ Author URI: http://frumph.net/
*/ */

View File

@ -5,7 +5,7 @@ Widget URI: http://comicpress.org/
Description: Display a calendar of this months posts. Description: Display a calendar of this months posts.
Author: Philip M. Hofer (Frumph) Author: Philip M. Hofer (Frumph)
Version: 1.01 Version: 1.01
Author URI: http://webcomicplanet.com/ Author URI: http://frumph.net/
*/ */

View File

@ -5,7 +5,7 @@ Widget URI: http://comicpress.org/
Description: Display's the comic's blog post. Description: Display's the comic's blog post.
Author: Philip M. Hofer (Frumph) Author: Philip M. Hofer (Frumph)
Version: 1.04 Version: 1.04
Author URI: http://webcomicplanet.com/ Author URI: http://frumph.net/
*/ */

View File

@ -5,7 +5,7 @@ Widget URI: http://comicpress.org/
Description: Display a comments link to put inside the comic area. Description: Display a comments link to put inside the comic area.
Author: Philip M. Hofer (Frumph) Author: Philip M. Hofer (Frumph)
Version: 1.01 Version: 1.01
Author URI: http://webcomicplanet.com/ Author URI: http://frumph.net/
*/ */

View File

@ -5,7 +5,7 @@ Widget URI: http://comicpress.org/
Description: Display's the date of post of the comic. Description: Display's the date of post of the comic.
Author: Philip M. Hofer (Frumph) Author: Philip M. Hofer (Frumph)
Version: 1.01 Version: 1.01
Author URI: http://webcomicplanet.com/ Author URI: http://frumph.net/
*/ */

View File

@ -5,7 +5,7 @@ Widget URI: http://comicpress.org/
Description: Display a Title of the Comic that can be used in any area around the comic. Description: Display a Title of the Comic that can be used in any area around the comic.
Author: Philip M. Hofer (Frumph) Author: Philip M. Hofer (Frumph)
Version: 1.01 Version: 1.01
Author URI: http://webcomicplanet.com/ Author URI: http://frumph.net/
*/ */

View File

@ -5,7 +5,7 @@ Widget URI: http://comicpress.org/
Description: Display an area for login and logout, forgot password and register. Description: Display an area for login and logout, forgot password and register.
Author: Philip M. Hofer (Frumph) Author: Philip M. Hofer (Frumph)
Version: 1.02 Version: 1.02
Author URI: http://webcomicplanet.com/ Author URI: http://frumph.net/
*/ */

View File

@ -5,7 +5,7 @@ Widget URI: http://comicpress.org/
Description: You can place graphical navigation buttons on your comic, for ComicPress 2.8 Description: You can place graphical navigation buttons on your comic, for ComicPress 2.8
Author: Philip M. Hofer (Frumph) Author: Philip M. Hofer (Frumph)
Version: 1.01 Version: 1.01
Author URI: http://webcomicplanet.com/ Author URI: http://frumph.net/
*/ */

View File

@ -5,7 +5,7 @@ Widget URI: http://comicpress.org/
Description: This widget places graphical navigation buttons on your comic. For ComicPress 2.8 Description: This widget places graphical navigation buttons on your comic. For ComicPress 2.8
Author: Philip M. Hofer (Frumph) &amp; John Bintz Author: Philip M. Hofer (Frumph) &amp; John Bintz
Version: 1.2 Version: 1.2
Author URI: http://webcomicplanet.com/ Author URI: http://frumph.net/
*/ */
require_once(dirname(__FILE__) . '/../classes/ComicPressNavigation.inc'); require_once(dirname(__FILE__) . '/../classes/ComicPressNavigation.inc');
@ -120,7 +120,7 @@ class WidgetComicPressGraphicalStorylineNavigation extends WP_Widget {
case 'comments': case 'comments':
$temp_id = $id; $temp_id = $id;
$id = $current->ID; $id = $current->ID;
?><a href="<?php echo get_permalink($current); ?>#comment" ?><a href="<?php echo get_permalink($current); ?>#comments"
class="navi navi-comments" class="navi navi-comments"
title="<?php echo $instance['comments_title']; ?>"><span class="navi-comments-count"><?php comments_number('0', '1', '%'); ?></span><?php echo $instance['comments_title']; ?></a><?php title="<?php echo $instance['comments_title']; ?>"><span class="navi-comments-count"><?php comments_number('0', '1', '%'); ?></span><?php echo $instance['comments_title']; ?></a><?php
$id = $temp_id; $id = $temp_id;

View File

@ -5,7 +5,7 @@ Widget URI: http://comicpress.org/
Description: Creates a link to the latest Comic Description: Creates a link to the latest Comic
Author: Philip M. Hofer (Frumph) Author: Philip M. Hofer (Frumph)
Version: 1.01 Version: 1.01
Author URI: http://webcomicplanet.com/ Author URI: http://frumph.net/
*/ */

View File

@ -5,7 +5,7 @@ Widget URI: http://comicpress.org/
Description: Display a list of links of the latest comics. Description: Display a list of links of the latest comics.
Author: Philip M. Hofer (Frumph) Author: Philip M. Hofer (Frumph)
Version: 1.01 Version: 1.01
Author URI: http://webcomicplanet.com/ Author URI: http://frumph.net/
*/ */

View File

@ -5,7 +5,7 @@ Widget URI: http://comicpress.org/
Description: Display a thumbnail of the latest comic. Description: Display a thumbnail of the latest comic.
Author: Philip M. Hofer (Frumph) Author: Philip M. Hofer (Frumph)
Version: 1.01 Version: 1.01
Author URI: http://webcomicplanet.com/ Author URI: http://frumph.net/
*/ */

View File

@ -5,7 +5,7 @@ Widget URI: http://comicpress.org/
Description: Display a calendar of this months posts. Description: Display a calendar of this months posts.
Author: Philip M. Hofer (Frumph) Author: Philip M. Hofer (Frumph)
Version: 1.05 Version: 1.05
Author URI: http://webcomicplanet.com/ Author URI: http://frumph.net/
*/ */

View File

@ -5,7 +5,7 @@ Widget URI: http://comicpress.org/
Description: Displays whatever inside to non-members. Description: Displays whatever inside to non-members.
Author: Philip M. Hofer (Frumph) Author: Philip M. Hofer (Frumph)
Version: 1.01 Version: 1.01
Author URI: http://webcomicplanet.com/ Author URI: http://frumph.net/
*/ */

View File

@ -5,7 +5,7 @@ Widget URI: http://comicpress.org/
Description: Display a permalink link that can be used in any area around the comic. Description: Display a permalink link that can be used in any area around the comic.
Author: Philip M. Hofer (Frumph) Author: Philip M. Hofer (Frumph)
Version: 1.01 Version: 1.01
Author URI: http://webcomicplanet.com/ Author URI: http://frumph.net/
*/ */

View File

@ -5,7 +5,7 @@ Widget URI: http://comicpress.org/
Description: Display a link to click on to go to a random comic. Description: Display a link to click on to go to a random comic.
Author: Philip M. Hofer (Frumph) Author: Philip M. Hofer (Frumph)
Version: 1.01 Version: 1.01
Author URI: http://webcomicplanet.com/ Author URI: http://frumph.net/
*/ */

View File

@ -5,7 +5,7 @@ Widget URI: http://comicpress.org/
Description: Display a link to click on to go to a random blog post (not comic). Description: Display a link to click on to go to a random blog post (not comic).
Author: Philip M. Hofer (Frumph) Author: Philip M. Hofer (Frumph)
Version: 1.01 Version: 1.01
Author URI: http://webcomicplanet.com/ Author URI: http://frumph.net/
*/ */

View File

@ -5,7 +5,7 @@ Widget URI: http://comicpress.org/
Description: Display a list of posts that are due to be scheduled. Description: Display a list of posts that are due to be scheduled.
Author: Philip M. Hofer (Frumph) Author: Philip M. Hofer (Frumph)
Version: 1.01 Version: 1.01
Author URI: http://webcomicplanet.com/ Author URI: http://frumph.net/
*/ */

View File

@ -5,7 +5,7 @@ Widget URI: http://comicpress.org/
Description: Link to the form template for searching transcripts. Description: Link to the form template for searching transcripts.
Author: Philip M. Hofer (Frumph) Author: Philip M. Hofer (Frumph)
Version: 1.01 Version: 1.01
Author URI: http://webcomicplanet.com/ Author URI: http://frumph.net/
*/ */

View File

@ -5,7 +5,7 @@ Widget URI: http://comicpress.org/
Description: Translates a user's URL line into a social widget, associating it to images. Description: Translates a user's URL line into a social widget, associating it to images.
Author: Philip M. Hofer (Frumph) Author: Philip M. Hofer (Frumph)
Version: 1.01 Version: 1.01
Author URI: http://webcomicplanet.com/ Author URI: http://frumph.net/
*/ */

View File

@ -5,7 +5,7 @@ Widget URI: http://comicpress.org/
Description: Show the stylized transcription in a widget area. Description: Show the stylized transcription in a widget area.
Author: Philip M. Hofer (Frumph) Author: Philip M. Hofer (Frumph)
Version: 1.01 Version: 1.01
Author URI: http://webcomicplanet.com/ Author URI: http://frumph.net/
*/ */