start work on making this a plugin

This commit is contained in:
John Bintz 2009-11-16 12:40:14 -05:00
parent ef82b9c861
commit 2358e330ee
54 changed files with 1 additions and 2110 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@
.project .project
.settings/ .settings/
coverage/ coverage/
.DS_Store

22
404.php
View File

@ -1,22 +0,0 @@
<?php
global $comicpress;
comicpress_init();
ob_start();
?>
<div class="post-page-head"></div>
<div class="post-page">
<h2 class="pagetitle">Page Not Found</h2>
<p><a href="<?php bloginfo('url') ?>">Click here to return to the home page</a> or try a search:</p>
<p><?php include (get_template_directory() . '/searchform.php') ?></p>
<br class="clear-margins" />
</div>
<div class="post-page-foot"></div>
<?php
$content = ob_get_clean();
include(get_template_directory() . '/layouts/' . $comicpress->comicpress_options['layout']);
?>

View File

@ -1,37 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes() ?>>
<?php get_header(); ?>
<body <?php if (function_exists('body_class')) { body_class(); } ?>>
<div id="page"><!-- Defines entire site width - Ends in Footer -->
<div id="header">
<h1><a href="<?php echo get_settings('home') ?>"><?php bloginfo('name') ?></a></h1>
<div class="description"><?php bloginfo('description') ?></div>
</div>
<div id="menubar">
<ul id="menu">
<li><a href="<?php bloginfo('url') ?>">Home</a></li>
<?php wp_list_pages('sort_column=menu_order&depth=4&title_li=') ?>
<li><a href="<?php bloginfo('rss2_url') ?>">Subscribe</a></li>
</ul>
<br class="clear" />
</div>
<?php echo $content ?>
<br class="clear" />
<div id="footer">
<p>
<?php bloginfo('name') ?> is powered by <a href="http://wordpress.org/">WordPress</a> with <a href="http://comicpress.org/">ComicPress</a>
| Subscribe: <a href="<?php bloginfo('rss2_url') ?>">RSS Feed</a>
<!-- <?php echo get_num_queries() ?> queries. <?php timer_stop(1) ?> seconds. -->
</p>
</div>
</div>
<?php wp_footer() ?>
</body>
<?php get_footer(); ?>
</html>

View File

@ -1,96 +0,0 @@
<?php
/*
Template Name: Comic Calendar Archive
*/
global $comicpress;
$comicpress->additional_stylesheets[] = '/style/archive-comic-calendar.css';
$dayWidth = 22; //set to .cpcal-day total width in pixels including: width, left & right border, left & right margin, left & right padding
$archive_year = !empty($_GET['archive_year']) ? (int)$_GET['archive_year'] : date('Y');
$comic_archive_posts = array();
$comic_archive_query = new WP_Query();
$comic_archive_query->query('showposts=1000&cat=' . $comicpress->get_all_comic_categories_as_cat_string() . '&year=' . $archive_year);
while ($comic_archive_query->have_posts()) {
$comic_archive_query->the_post();
$comic_archive_posts[get_the_time('d-m')] = array(
'link' => get_permalink(),
'title' => get_the_title()
);
}
$days_of_week = array();
for ($i = 0; $i < 7; ++$i) {
$days_of_week[] = substr(date("l", gmmktime(0, 0, 0, 7, 13 + $i, 2009)), 0, 1);
}
ob_start();
?>
<div class="post-page-head"></div>
<div class="post-page">
<?php
while (have_posts()) {
the_post(); ?>
<h2 class="pagetitle"><span class="archive-year"><?php echo $archive_year ?></span> <?php the_title() ?></h2>
<div class="entry"><?php the_content() ?></div>
<?php
}
?>
<div class="archive-yearlist">|
<?php
$years = $wpdb->get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' ORDER BY post_date ASC");
foreach ( $years as $year ) {
if ($year != 0) { ?>
<a href="<?php echo add_query_arg('archive_year', $year) ?>"><strong><?php echo $year ?></strong></a> |
<?php }
}
?>
</div>
<?php for ($month = 1; $month <= 12; ++$month) {
$current_time = mktime(0, 0, 0, $month, 1, $archive_year); ?>
<div class="cpcal-month" id="<?php echo strtolower(date("F", $current_time)) ?>">
<div class="cpcal-monthtitle"><?php echo date("F", $current_time) . " " . $archive_year ?></div>
<?php foreach ($days_of_week as $dow) { ?>
<div class="cpcal-dayletter"><?php echo $dow ?></div>
<?php } ?>
<div class="clear"></div>
<?php for ($day = 1, $end_day = date("t", $current_time); $day < $end_day; ++$day) {
$day_key = date('d-m', $current_time); ?>
<?php if ($day == 1) { ?>
<div style="width:<?php echo date('w', $current_time) * $dayWidth ?>px;height:15px;float:left;"></div>
<?php } ?>
<div class="cpcal-day">
<?php if (isset($comic_archive_posts[$day_key])) { ?>
<a href="<?php echo $comic_archive_posts[$day_key]['link'] ?>" title="<?php echo $comic_archive_posts[$day_key]['title'] ?>"><?php echo $day ?></a>
<?php } else {
echo $day . " ";
} ?>
</div>
<?php
$current_time += 86400;
} ?>
</div>
<?php } ?>
<br class="clear-margins" />
</div>
<div class="post-page-foot"></div>
<?php
$content = ob_get_clean();
include(get_template_directory() . '/layouts/' . $comicpress->comicpress_options['layout']);
?>

View File

@ -1,79 +0,0 @@
<?php
/*
Template Name: Comic Storyline with Thumbs
*/
global $comicpress;
$comicpress->additional_stylesheets[] = '/style/archive-comic-calendar.css';
?>
<div class="post-page-head"></div>
<div class="post-page">
<?php while (have_posts()) : the_post(); ?>
<div class="entry">
<h2 class="pagetitle"><?php the_title() ?></h2>
<?php the_content(); ?>
</div>
<?php endwhile; ?>
<ul id="storyline" class="level-0">
<?php if (get_option('comicpress-enable-storyline-support') == 1) {
if (($result = get_option("comicpress-storyline-category-order")) !== false) {
$categories_by_id = get_all_category_objects_by_id();
$current_depth = 0;
$storyline_root = " class=\"storyline-root\"";
foreach (explode(",", $result) as $node) {
$parts = explode("/", $node);
$target_depth = count($parts) - 2;
$category_id = end($parts);
$category = $categories_by_id[$category_id];
$description = $category->description;
$first_comic_in_category = get_terminal_post_in_category($category_id);
$first_comic_permalink = get_permalink($first_comic_in_category->ID);
$archive_image = null;
foreach (array("archive", "rss", "comic") as $type) {
if (($requested_archive_image = get_comic_url("archive", $first_comic_in_category)) !== false) {
$archive_image = $requested_archive_image; break;
}
}
if ($target_depth < $current_depth) {
echo str_repeat("</ul></li>", ($current_depth - $target_depth));
}
if ($target_depth > $current_depth) {
for ($i = $current_depth; $i < $target_depth; ++$i) {
$next_i = $i + 1;
echo "<li><ul class=\"level-${next_i}\">";
}
} ?>
<li id="storyline-<?php echo $category->category_nicename ?>"<?php echo $storyline_root; $storyline_root = null ?>>
<?php if (!empty($first_comic_in_category)) { ?>
<a href="<?php echo $first_comic_permalink ?>" title="First comic in <?php echo $category->cat_name ?>."><img src="<?php echo $archive_image ?>" /></a>
<?php } ?>
<a href="<?php echo get_category_link($category_id) ?>" class="storyline-title"><?php echo $category->cat_name ?></a>
<?php if (!empty($description)) { ?>
<div class="storyline-description"><?php echo $description ?></div>
<?php } ?>
<div class="storyline-foot"></div>
</li>
<?php $current_depth = $target_depth;
}
if ($current_depth > 0) {
echo str_repeat("</ul></li>", $current_depth);
}
}
} else { ?>
<li><h3>Storyline Support is not currently enabled on this site.</h3><br /><br /><strong>Note to the Administrator:</strong><br /> To enable storyline support and manage storyline categories make sure you are running the latest version of the <a href="http://wordpress.org/extend/plugins/comicpress-manager/">ComicPress Manager</a> plugin and check your storyline settings from it's administration menu.</h3></li>
<?php } ?>
</ul>
<br class="clear-margins" />
</div>
<div class="post-page-foot"></div>
</div>
<?php get_sidebar() ?>
<?php get_footer() ?>

View File

@ -1,133 +0,0 @@
<?php
/*
Template Name: Comic Storyline Archive
*/
?>
<?php get_header() ?>
<style>
#storyline, #storyline ul {
padding: 0;
margin: 0;
list-style: none;
}
#storyline li {
padding: 0;
margin: 0;
}
#storyline li img {
height: 50px;
display: none;
}
#storyline li li img {
display: block;
float: right;
padding: 0 0 0 10px;
}
#storyline ul ul {
margin: 0 0 0 20px;
}
#storyline li li .storyline-title {
font-size: 24px;
font-weight: bold;
display: block;
color: #000;
}
#storyline li li .storyline-title:hover {
color: #900;
}
#storyline li li li a.storyline-title {
font-size: 18px;
}
#storyline li li li li a.storyline-title {
font-size: 14px;
}
.storyline-description {
font-size: 11px;
}
.storyline-foot {
clear: both;
margin: 0 0 10px 0;
height: 10px;
border-bottom: 4px solid #000;
}
#storyline li li .storyline-foot {
border-bottom: 2px solid #000;
}
#storyline li li li .storyline-foot {
border-bottom: 1px solid #000;
}
</style>
<div id="content" class="narrowcolumn">
<div class="post-page-head"></div>
<div class="post-page">
<h2 class="pagetitle"><?php the_title() ?></h2>
<div class="entry">
<?php while (have_posts()) : the_post(); the_content(); endwhile; ?>
</div>
<ul id="storyline" class="level-0">
<?php if (get_option('comicpress-enable-storyline-support') == 1) {
if (($result = get_option("comicpress-storyline-category-order")) !== false) {
$categories_by_id = get_all_category_objects_by_id();
$current_depth = 0;
$storyline_root = " class=\"storyline-root\"";
foreach (explode(",", $result) as $node) {
$parts = explode("/", $node);
$target_depth = count($parts) - 2;
$category_id = end($parts);
$category = $categories_by_id[$category_id];
$description = $category->description;
$first_comic_in_category = get_terminal_post_in_category($category_id);
$first_comic_permalink = get_permalink($first_comic_in_category->ID);
$archive_image = null;
foreach (array("archive", "rss", "comic") as $type) {
if (($requested_archive_image = get_comic_url("archive", $first_comic_in_category)) !== false) {
$archive_image = $requested_archive_image; break;
}
}
if ($target_depth < $current_depth) {
echo str_repeat("</ul></li>", ($current_depth - $target_depth));
}
if ($target_depth > $current_depth) {
for ($i = $current_depth; $i < $target_depth; ++$i) {
$next_i = $i + 1;
echo "<li><ul class=\"level-${next_i}\">";
}
} ?>
<li id="storyline-<?php echo $category->category_nicename ?>"<?php echo $storyline_root; $storyline_root = null ?>>
<a href="<?php echo get_category_link($category_id) ?>" class="storyline-title"><?php echo $category->cat_name ?></a>
<div class="storyline-description">
<?php if (!empty($description)) { ?>
<?php echo $description ?>
<?php } ?>
<?php if (!empty($first_comic_in_category)) { ?>
Begins with &ldquo;<a href="<?php echo $first_comic_permalink ?>"><?php echo $first_comic_in_category->post_title ?></a>&rdquo;.
<?php } ?>
</div>
<div class="storyline-foot"></div>
</li>
<?php $current_depth = $target_depth;
}
if ($current_depth > 0) {
echo str_repeat("</ul></li>", $current_depth);
}
}
} else { ?>
<li><h3>Storyline Support is not currently enabled on this site.</h3><br /><br /><strong>Note to the Administrator:</strong><br /> To enable storyline support and manage storyline categories make sure you are running the latest version of the <a href="http://wordpress.org/extend/plugins/comicpress-manager/">ComicPress Manager</a> plugin and check your storyline settings from it's administration menu.</h3></li>
<?php } ?>
</ul>
<br class="clear-margins" />
</div>
<div class="post-page-foot"></div>
</div>
<?php get_sidebar() ?>
<?php get_footer() ?>

View File

@ -1,71 +0,0 @@
<?php
/*
Template Name: Comic Year Archive
*/
?>
<?php get_header() ?>
<?php
if (isset($_GET['archive_year'])) {
$archive_year = $_GET['archive_year'];
} else {
$latest_comic = get_terminal_post_in_category(get_all_comic_categories_as_cat_string(),false);
$archive_year = get_post_time('Y', false, $latest_comic, true);
if (empty($archive_year)) $archive_year = date('Y');
}
?>
<style>
.archive-date {
padding: 0 5px 0 0;
font-size: 11px;
white-space: nowrap;
}
.archive-title {
padding: 2px 5px;
line-height: 11px;
border-left: 1px solid #000;
}
.month-table{
border-collapse: collapse;
margin: 0 0 20px 0;
}
</style>
<div id="content" class="narrowcolumn">
<div class="post-page-head"></div>
<div class="post-page">
<?php while (have_posts()) : the_post() ?>
<div class="entry">
<h2 class="pagetitle"><span class="archive-year"><?php echo $archive_year; ?></span> <?php the_title() ?></h2>
<?php the_content(); ?>
</div>
<?php endwhile; ?>
<div class="archive-yearlist">|
<?php $years = $wpdb->get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' ORDER BY post_date ASC");
foreach ( $years as $year ) {
if ($year != (0) ) { ?>
<a href="<?php echo add_query_arg('archive_year', $year) ?>"><strong><?php echo $year ?></strong></a> |
<?php } } ?>
</div>
<table class="month-table">
<?php $comicArchive = new WP_Query(); $comicArchive->query('showposts=10000&cat='.get_all_comic_categories_as_cat_string().'&year='.$archive_year);
while ($comicArchive->have_posts()) : $comicArchive->the_post() ?>
<tr><td class="archive-date"><?php the_time('M j') ?></td><td class="archive-title"><a href="<?php echo get_permalink($post->ID) ?>" rel="bookmark" title="Permanent Link: <?php the_title() ?>"><?php the_title() ?></a></td></tr>
<?php endwhile; ?>
</table>
<br class="clear-margins" />
</div>
<div class="post-page-foot"></div>
</div>
<?php get_sidebar() ?>
<?php get_footer() ?>

View File

@ -1,50 +0,0 @@
<?php
/*
Template Name: Comic Archive
*/
global $comicpress;
get_header();
?>
<div id="content" class="narrowcolumn">
<div class="post-page-head"></div>
<div class="post-page">
<h2 class="pagetitle"><?php the_title() ?></h2>
<div class="entry">
<?php while (have_posts()) { the_post(); the_content(); } ?>
</div>
<?php
$years = $wpdb->get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' ORDER BY post_date DESC");
foreach ( $years as $year ) {
if (!empty($year)) { ?>
<h3><?php echo $year ?></h3>
<table class="month-table">
<?php
$comic_archive = new WP_Query();
$comic_archive->query('showposts=10000&cat=' . $comicpress->get_all_comic_categories_as_cat_string() . '&year='.$year);
while ($comic_archive->have_posts()) {
$comic_archive->the_post(); ?>
<tr>
<td class="archive-date"><?php the_time('M j') ?></td>
<td class="archive-title"><a href="<?php echo get_permalink($post->ID) ?>" rel="bookmark" title="Permanent Link: <?php the_title() ?>"><?php the_title() ?></a></td>
</tr>
<?php }
?>
</table>
<?php }
}
?>
<br class="clear-margins" />
</div>
<div class="post-page-foot"></div>
</div>
<?php get_sidebar() ?>
<?php get_footer() ?>

View File

@ -1,32 +0,0 @@
<?php
global $comicpres, $post, $posts;
comicpress_init();
ob_start();
if (have_posts()) {
include_partial('archive-header');
// why can't wordpress allow for post date asc sorting out of the box...
query_posts($query_string . '&order=asc');
while (have_posts()) {
the_post();
if (in_comic_category()) {
include_partial('archive-comic-post');
} else {
include_partial('archive-blog-post');
}
}
include_partial('archive-page-nav');
} else {
include_partial('archive-not-found');
}
$content = ob_get_clean();
include(get_template_directory() . '/layouts/' . $comicpress->comicpress_options['layout']);
?>

View File

@ -1,23 +0,0 @@
<?php
/*
Template Name: Archives
*/
?>
<?php get_header() ?>
<div id="content" class="narrowcolumn">
<div class="post-page-head"></div>
<div class="post-page">
<h2>Archives by Month:</h2>
<ul><?php wp_get_archives('type=monthly') ?></ul>
<h2>Archives by Subject:</h2>
<ul><?php wp_list_categories() ?></ul>
<br class="clear-margins" />
</div>
<div class="post-page-foot"></div>
</div>
<?php get_sidebar() ?>
<?php get_footer() ?>

View File

@ -1,93 +0,0 @@
<div id="content" class="narrowcolumn">
<div class="comment-wrap">
<?php
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if ( post_password_required() ) { ?>
<p class="nocomments">This post is password protected. Enter the password to view comments.</p>
<?php
return;
}
if ( have_comments() ) : ?>
<h3 id="comments"><?php comments_number('Discussion&not;', 'Discussion&not;', 'Discussion (%)&not;' );?></h3>
<ol class="commentlist">
<?php wp_list_comments(array('avatar_size'=>64)); ?>
</ol>
<div class="pagenav">
<div class="pagenav-right"><?php next_comments_link('Newer Comments &uarr;') ?></div>
<div class="pagenav-left"><?php previous_comments_link('&darr; Previous Comments') ?></div>
<div class="clear"></div>
</div>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ('open' == $post->comment_status) : ?>
<!-- If comments are open, but there are no comments. -->
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<p class="nocomments">Comments are closed.</p>
<?php endif; ?>
<?php endif; ?>
<?php if ('open' == $post->comment_status) : ?>
<div id="respond">
<h3><?php comment_form_title( 'Comment&not;', 'Reply to %s&not;' ); ?></h3>
<div class="cancel-comment-reply">
<small><?php cancel_comment_reply_link(); ?></small>
</div>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logged in</a> to post a comment.</p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Log out &raquo;</a></p>
<?php else : ?>
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
<label for="author"><small>NAME &mdash; <a href="http://gravatar.com">Get an avatar</a></small></label></p>
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
<label for="email"><small>EMAIL <?php if ($req) echo "&mdash; Required / not published"; ?> </small></label></p>
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url"><small>WEBSITE</small></label></p>
<?php endif; ?>
<!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->
<p><textarea name="comment" id="comment" cols="50" rows="5" tabindex="4"></textarea></p>
<p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
<?php comment_id_fields(); ?>
</p>
<div class="clear"></div>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
</div>
<?php endif; ?>
</div>
</div>

View File

View File

@ -2,7 +2,6 @@
// load all of the comic & non-comic category information // load all of the comic & non-comic category information
add_action('init', '__comicpress_init'); add_action('init', '__comicpress_init');
add_action('template_redirect', '__comicpress_template_redirect', 100);
// @codeCoverageIgnoreStart // @codeCoverageIgnoreStart
@ -37,10 +36,6 @@ function __comicpress_init() {
$comicpress_filters->init(); $comicpress_filters->init();
} }
function __comicpress_template_redirect() {
ob_start();
}
function F($name, $path, $override_post = null) { function F($name, $path, $override_post = null) {
global $post; global $post;
@ -191,46 +186,3 @@ function EM($attachment_info, $which = 'default', $action = 'embed') {
} }
} }
} }
/**
* Display the list of Storyline categories.
*/
function comicpress_list_storyline_categories($args = "") {
global $category_tree;
$defaults = array(
'style' => 'list', 'title_li' => __('Storyline')
);
$r = wp_parse_args($args, $defaults);
extract($r);
$categories_by_id = get_all_category_objects_by_id();
$output = '';
if ($style == "list") { $output .= '<li class="categories storyline">'; }
if ($title_li && ($style == "list")) { $output .= $title_li; }
if ($style == "list") { $output .= "<ul>"; }
$current_depth = 0;
foreach ($category_tree as $node) {
$parts = explode("/", $node);
$category_id = end($parts);
$target_depth = count($parts) - 2;
if ($target_depth > $current_depth) {
$output .= str_repeat("<li><ul>", ($target_depth - $current_depth));
}
if ($target_depth < $current_depth) {
$output .= str_repeat("</ul></li>", ($current_depth - $target_depth));
}
$output .= '<li><a href="' . get_category_link($category_id) . '">';
$output .= $categories_by_id[$category_id]->cat_name;
$output .= "</a></li>";
$current_depth = $target_depth;
}
if ($current_depth > 0) {
$output .= str_repeat("</ul></li>", $current_depth);
}
if ($style == "list") { $output .= "</ul></li>"; }
echo $output;
}

View File

@ -1,22 +0,0 @@
<head profile="http://gmpg.org/xfn/11">
<title><?php
bloginfo('name');
if (is_home () ) {
echo " - "; bloginfo('description');
} elseif (is_category() ) {
echo " - "; single_cat_title();
} elseif (is_single() || is_page() ) {
echo " - "; single_post_title();
} elseif (is_search() ) {
echo " search results: "; echo wp_specialchars($s);
} else {
echo " - "; wp_title('',true);
}
?></title>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type') ?>; charset=<?php bloginfo('charset') ?>" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url') ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name') ?> RSS Feed" href="<?php bloginfo('rss2_url') ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name') ?> Atom Feed" href="<?php bloginfo('atom_url') ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url') ?>" />
<?php wp_head() ?>
</head>

View File

@ -1,20 +0,0 @@
<?php
global $comicpres, $post;
comicpress_init();
ob_start();
if (have_posts()) {
while (have_posts()) {
the_post();
include_partial('image-post');
}
} else {
include_partial('image-not-found');
}
$content = ob_get_clean();
include(get_template_directory() . '/layouts/' . $comicpress->comicpress_options['layout']);
?>

View File

@ -1,9 +0,0 @@
<?php
$previous_post = R('previous');
$next_post = R('next');
var_dump($previous_post);
var_dump($next_post);
finish_comicpress();
?>

View File

@ -1,27 +0,0 @@
<?php
/*
Template Name: Links
*/
global $comicpress;
comicpress_init();
ob_start();
?>
<div class="post-page-head"></div>
<div class="post-page">
<h2 class="pagetitle"><?php the_title() ?></h2>
<ul>
<?php wp_list_bookmarks() ?>
</ul>
<br class="clear-margins" />
</div>
<div class="post-page-foot"></div>
<?php
$content = ob_get_clean();
include(get_template_directory() . '/layouts/' . $comicpress->comicpress_options['layout']);
?>

View File

@ -1,19 +0,0 @@
<?php
global $comicpress;
comicpress_init();
ob_start();
if (have_posts()) {
while (have_posts()) {
the_post();
include_partial('page-post');
}
}
comments_template();
$content = ob_get_clean();
include(get_template_directory() . '/layouts/' . $comicpress->comicpress_options['layout']);
?>

View File

@ -1,14 +0,0 @@
<div class="post-head"></div>
<div class="post archive">
<h3 id="post-<?php the_ID() ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute() ?>"><?php the_title() ?></a></h3>
<div class="postdate"><?php the_time('F jS, Y') ?></div>
<div class="entry"><?php the_content() ?></div>
<div class="tags">
<?php the_tags('&#9492; Tags: ', ', ', ''); edit_post_link('Edit Post', ' [ ', ' ] ') ?>
</div>
<div class="comment-link">
<?php if ('open' == $post->comment_status) { comments_popup_link('&ldquo;Comment&rdquo;', '&ldquo;1 Comment&rdquo;', '&ldquo;% Comments&rdquo;'); } ?>
</div>
<br class="clear-margins" />
</div>
<div class="post-foot"></div>

View File

@ -1,13 +0,0 @@
<div class="post-comic-head"></div>
<div class="post-comic">
<div class="comicarchiveframe">
<a href="<?php the_permalink() ?>">
<?php do_action('show_archive') ?>
<br />
<h3><?php the_title() ?></h3>
<small><?php the_time('F jS, Y') ?></small>
</a>
</div>
<br class="clear-margins" />
</div>
<div class="post-comic-foot"></div>

View File

@ -1,22 +0,0 @@
<?php global $posts ?>
<div class="post-page-head"></div>
<div class="post-page">
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* Category Archive */ if (is_category()) { ?>
<div class="content"><h2 class="pagetitle">Archive for &#8216;<?php single_cat_title() ?>&#8217;</h2></div>
<?php /* Tag Archive */ } elseif(is_tag()) { ?>
<div class="content"><h2 class="pagetitle">Posts Tagged &#8216;<?php single_tag_title() ?>&#8217;</h2></div>
<?php /* Daily Archive */ } elseif (is_day()) { ?>
<div class="content"><h2 class="pagetitle">Archive for <?php the_time('F jS, Y') ?></h2></div>
<?php /* Monthly Archive */ } elseif (is_month()) { ?>
<div class="content"><h2 class="pagetitle">Archive for <?php the_time('F, Y') ?></h2></div>
<?php /* Yearly Archive */ } elseif (is_year()) { ?>
<div class="content"><h2 class="pagetitle">Archive for <?php the_time('Y') ?></h2></div>
<?php /* Author Archive */ } elseif (is_author()) { ?>
<div class="content"><h2 class="pagetitle">Author Archive</h2></div>
<?php /* Paged Archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<div class="content"><h2 class="pagetitle">Archives</h2></div>
<?php } ?>
<br class="clear-margins" />
</div>
<div class="post-page-foot"></div>

View File

@ -1,8 +0,0 @@
<div class="post-head"></div>
<div class="post">
<h3>No entries found.</h3>
<p>Try another search?</p>
<p><?php include (get_template_directory() . '/searchform.php') ?></p>
<br class="clear-margins" />
</div>
<div class="post-foot"></div>

View File

@ -1,7 +0,0 @@
<?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } else { ?>
<div class="pagenav">
<div class="pagenav-right"><?php next_posts_link('Next Page &rsaquo;') ?></div>
<div class="pagenav-left"><?php previous_posts_link('&lsaquo; Previous Page') ?></div>
<div class="clear"></div>
</div>
<?php } ?>

View File

@ -1,6 +0,0 @@
<div class="post-page-head"></div>
<div class="post-page">
<p>Sorry, no image matched your criteria.</p>
<br class="clear-margins" />
</div>
<div class="post-page-foot"></div>

View File

@ -1,46 +0,0 @@
<div class="post-page-head"></div>
<div class="post-page" id="post-<?php the_ID() ?>">
<h2 class="pagetitle">
<a href="<?php echo get_permalink($post->post_parent) ?>" rev="attachment"><?php echo get_the_title($post->post_parent) ?></a>
</h2>
<div class="gallery-image">
<a href="<?php echo wp_get_attachment_url($post->ID) ?>" target="_blank" title="Click for full size." ><img src="<?php echo wp_get_attachment_url($post->ID) ?>" alt="<?php the_title() ?>" /></a>
</div>
<div class="gallery-caption">
<?php the_excerpt() ?>
</div>
<div class="imagenav-wrap">
<div class="imagenav">
<div class="imagenav-bg">
<?php previous_image_link() ?>
</div>
<div class="imagenav-arrow">
&lsaquo;
</div>
<div class="imagenav-link">
<?php previous_image_link() ?>
</div>
</div>
<div class="imagenav-center">
<a href="<?php echo wp_get_attachment_url($post->ID) ?>" target="_blank" title="Click for full size." class="imagetitle"><?php the_title() ?></a><br />
<a href="<?php echo get_permalink($post->post_parent) ?>" rev="attachment">&larr; Back to Gallery</a>
</div>
<div class="imagenav">
<div class="imagenav-bg">
<?php next_image_link() ?>
</div>
<div class="imagenav-arrow">
&rsaquo;
</div>
<div class="imagenav-link">
<?php next_image_link() ?>
</div>
</div>
<div class="clear"></div>
</div>
<?php the_content() ?>
<br class="clear-margins" />
</div>
<div class="post-page-foot"></div>
<?php comments_template() ?>

View File

@ -1 +0,0 @@
<div id="blogheader"></div>

View File

@ -1,20 +0,0 @@
<div class="post-head"></div>
<div class="post" id="post-<?php the_ID() ?>">
<h3>
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'comicpress'), get_the_title()) ?>"><?php the_title() ?></a>
</h3>
<div class="postdate">
<?php the_time('F jS, Y') ?>
</div>
<div class="entry">
<?php the_content(__('&darr; Read the rest of this entry...', 'comicpress')) ?>
</div>
<div class="tags">
<?php the_tags(__('&#9492; Tags: ', 'comicpress'), ', ', ''); edit_post_link(__('Edit Post', 'comicpress'), ' [ ', ' ] ') ?>
</div>
<div class="comment-link">
<?php if ('open' == $post->comment_status) { comments_popup_link(__('&ldquo;Comment&rdquo;', 'comicpress'), __('&ldquo;1 Comment&rdquo;', 'comicpress'), __('&ldquo;% Comments&rdquo;', 'comicpress')); } ?>
</div>
<div class="clear-margins"><br /></div>
</div>
<div class="post-foot"></div>

View File

@ -1,17 +0,0 @@
<div class="post-comic-head"></div>
<div class="post-comic">
<?php include_partial('nav') ?>
<div class="comicdate"><?php the_date('F jS, Y') ?></div>
<br class="clear" />
<h2>
<a href="<?php get_permalink($last_comic_post->ID) ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'comicpress'), get_the_title()) ?>"><?php the_title() ?></a>
</h2>
<div class="entry"><?php the_content('&darr; Read the rest of this entry...') ?></div>
<?php the_transcript('styled') ?>
<div class="tags"><?php the_tags('&#9492; Tags: ', ', ', ''); edit_post_link('Edit Post', ' [ ', ' ] ') ?></div>
<div class="comment-link">
<?php if ('open' == $post->comment_status) { comments_popup_link('&ldquo;Comment&rdquo;', '&ldquo;1 Comment&rdquo;', '&ldquo;% Comments&rdquo;'); } ?>
</div>
<br class="clear" />
</div>
<div class="post-comic-foot"></div>

View File

@ -1,3 +0,0 @@
<div id="comic-head"></div>
<div id="comic"><?php do_action('show_comic', null, "%s<br />"); ?></div>
<div id="comic-foot"></div>

View File

@ -1,7 +0,0 @@
<?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } else { ?>
<div class="pagenav">
<div class="pagenav-right"><?php previous_posts_link(__('Newer Entries &uarr;', 'comicpress')) ?></div>
<div class="pagenav-left"><?php next_posts_link(__('&darr; Previous Entries', 'comicpress')) ?></div>
<div class="clear"></div>
</div>
<?php } ?>

View File

@ -1,10 +0,0 @@
<div class="nav">
<?php foreach (apply_filters('comicpress_nav_fields', array()) as $field => $link_text) { ?>
<?php if ($nav_comics['show_' . $field]) { ?>
<div class="nav-<?php echo $field ?>">
<a href="<?php echo (is_object($nav_comics[$field])) ? get_permalink($nav_comics[$field]->ID) : $nav_comics[$field] ?>"
title="<?php sprintf(__('Go to the %s comic', 'comicpress'), $field) ?>"><?php echo apply_filters('comicpress_nav', $link_text, $field) ?></a>
</div>
<?php } ?>
<?php } ?>
</div>

View File

@ -1,11 +0,0 @@
<div class="post-page-head"></div>
<div class="post-page" id="post-<?php the_ID() ?>">
<h2 class="pagetitle"><?php the_title() ?></h2>
<div class="entry">
<?php the_content() ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')) ?>
</div>
<?php edit_post_link('Edit this page.', '<p>', '</p>') ?>
<br class="clear-margins" />
</div>
<div class="post-page-foot"></div>

View File

@ -1,11 +0,0 @@
<div class="post-comic-head"></div>
<div class="post-comic">
<div class="comicarchiveframe">
<a href="<?php the_permalink() ?>"><?php do_action('show_archive') ?></a>
<br />
<h3><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h3>
<small><?php the_time('F jS, Y') ?></small></a>
</div>
<br class="clear-margins" />
</div>
<div class="post-comic-foot"></div>

View File

@ -1,8 +0,0 @@
<div class="post-page-head"></div>
<div class="post-page">
<h3>No entries found.</h3>
<p>Try another search?</p>
<p><?php include (get_template_directory() . '/searchform.php') ?></p>
<br class="clear-margins" />
</div>
<div class="post-page-foot"></div>

View File

@ -1,7 +0,0 @@
<?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } else { ?>
<div class="pagenav">
<div class="pagenav-right"><?php next_posts_link('Next Page &rsaquo;') ?></div>
<div class="pagenav-left"><?php previous_posts_link('&lsaquo; Previous Page') ?></div>
<div class="clear"></div>
</div>
<?php } ?>

View File

@ -1,7 +0,0 @@
<div class="post-page-head"></div>
<div class="post-page">
<?php $count = $wp_query->post_count; ?>
<h2 class="pagetitle">Search for &lsquo;<?php the_search_query() ?>&rsquo;</h2>
Found <?php echo $count; ?> result<?php if ($count !== 1) { echo "s"; } ?>.
</div>
<div class="post-page-foot"></div>

View File

@ -1,10 +0,0 @@
<div class="post-comic-head"></div>
<div class="post-comic">
<div class="comicarchiveframe">
<a href="<?php the_permalink() ?>"><img src="<?php the_comic_archive() ?>" alt="<?php the_title() ?>" title="<?php the_transcript() ?>" /><br />
<h3><?php the_title() ?></h3>
<small><?php the_time('F jS, Y') ?></small></a>
</div>
<br class="clear-margins" />
</div>
<div class="post-comic-foot"></div>

View File

@ -1,7 +0,0 @@
<?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } else { ?>
<div class="pagenav">
<div class="pagenav-right"><?php next_posts_link('Next Page &rsaquo;') ?></div>
<div class="pagenav-left"><?php previous_posts_link('&lsaquo; Previous Page') ?></div>
<div class="clear"></div>
</div>
<?php } ?>

View File

@ -1,7 +0,0 @@
<div class="post-page-head"></div>
<div class="post-page">
<?php $count = $wp_query->post_count; ?>
<h2 class="pagetitle">Transcript search for &lsquo;<?php the_search_query() ?>&rsquo;</h2>
Found <?php echo $count; ?> result<?php if ($count !== 1) { echo "s"; } ?>.
</div>
<div class="post-page-foot"></div>

View File

@ -1,21 +0,0 @@
<div class="post-head"></div>
<div class="post" id="post-<?php the_ID() ?>">
<div class="nav-blog">
<div class="nav-blog-previous"><?php previous_post_link('%link','&lsaquo; Previous', TRUE) ?></div>
<div class="nav-blog-next"><?php next_post_link('%link','Next &rsaquo;', TRUE) ?></div>
</div>
<div class="clear"></div>
<h2><?php the_title() ?></h2>
<div class="postdate"><?php the_time('F jS, Y') ?></div>
<div class="entry">
<?php the_content() ?>
<?php the_transcript('styled') ?>
<div class="tags">
<?php the_tags('&#9492; Tags: ', ', ', ''); edit_post_link('Edit Post', ' [ ', ' ] ') ?>
</div>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')) ?>
</div>
<br class="clear-margins" />
</div>
<div class="post-foot"></div>
<?php comments_template(); ?>

View File

@ -1,22 +0,0 @@
<div class="post-comic-head"></div>
<div class="post-comic" id="post-<?php the_ID() ?>">
<div class="comicdate">
<?php include_partial('nav') ?>
<?php the_time('F jS, Y') ?>
</div>
<?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>
<?php } ?>
<h2><?php the_title() ?></h2>
<div class="entry">
<?php the_content() ?>
<?php the_transcript('styled') ?>
<div class="tags">
<?php the_tags('&#9492; Tags: ', ', ', ''); edit_post_link('Edit Post', ' [ ', ' ] ') ?>
</div>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')) ?>
</div>
<br class="clear-margins" />
</div>
<div class="post-comic-foot"></div>
<?php comments_template(); ?>

View File

@ -1,3 +0,0 @@
<div id="comic-head"></div>
<div id="comic"><?php do_action('show_comic'); ?></div>
<div id="comic-foot"></div>

View File

@ -1,6 +0,0 @@
<div class="post-head"></div>
<div class="post">
<p>Sorry, no posts matched your criteria.</p>
<br class="clear-margins" />
</div>
<div class="post-foot"></div>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

View File

@ -1,32 +0,0 @@
<?php
global $comicpress, $post, $query_string;
comicpress_init();
ob_start();
include_partial('search-transcript-results-count');
if (have_posts()) {
query_posts($query_string.'&order=asc');
while (have_posts()) {
the_post();
if (in_comic_category()) {
include_partial('search-transcript-comic-post', 'search-comic-post', 'archive-comic-post');
} else {
include_partial('search-transcript-blog-post', 'search-blog-post', 'archive-blog-post');
}
}
include_partial('search-transcript-page-nav', 'search-page-nav', 'archive-page-nav');
} else {
include_partial('search-transcript-not-found');
}
$content = ob_get_clean();
include(get_template_directory() . '/layouts/' . $comicpress->comicpress_options['layout']);
?>

View File

@ -1,31 +0,0 @@
<?php
global $comicpress, $query_string;
comicpress_init();
ob_start();
include_partial('search-results-count');
if (have_posts()) {
query_posts($query_string . '&order=asc');
while (have_posts()) {
the_post();
if (in_comic_category()) {
include_partial('search-comic-post', 'archive-comic-post');
} else {
include_partial('search-blog-post', 'archive-blog-post');
}
}
include_partial('search-page-nav', 'archive-page-nav');
} else {
include_partial('search-not-found');
}
$content = ob_get_clean();
include(get_template_directory() . '/layouts/' . $comicpress->comicpress_options['layout']);
?>

View File

@ -1,6 +0,0 @@
<form method="get" id="searchform-transcript" action="<?php bloginfo('url'); ?>/">
<div>
<input type="text" value="Search Transcripts..." name="s" id="s-transcript" onfocus="this.value=(this.value=='Search Transcripts...') ? '' : this.value;" onblur="this.value=(this.value=='') ? 'Search Transcripts...' : this.value;" /><input type="hidden" name="key" value="transcript" />
<input type="submit" id="searchsubmit-transcript" value="&raquo;" />
</div>
</form>

View File

@ -1,6 +0,0 @@
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
<div>
<input type="text" value="Search Site..." name="s" id="s" onfocus="this.value=(this.value=='Search Site...') ? '' : this.value;" onblur="this.value=(this.value=='') ? 'Search Site...' : this.value;" />
<input type="submit" id="searchsubmit" value="&raquo;" />
</div>
</form>

View File

@ -1,27 +0,0 @@
<div id="sidebar">
<ul>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) { ?>
<li><?php get_calendar(); ?></li>
<li>
<h2>Menu</h2>
<ul>
<?php wp_list_pages('title_li=' ); ?>
</ul>
</li>
<li>
<h2>Monthly Archives</h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>
<?php wp_list_categories('title_li=<h2>Categories</h2>'); ?>
<?php wp_list_bookmarks(); ?>
<li><?php include (get_template_directory() . '/searchform.php'); ?></li>
<?php } ?>
</ul>
</div>

View File

@ -1,32 +0,0 @@
<?php
$storyline = new ComicPressStoryline();
$storyline->read_from_options();
echo 'Current: '; the_title(); echo '<br />';
Protect();
echo 'First in category: '; RT('first', 'from_post'); the_title(); echo '<br />';
echo 'Previous in category: '; RT('previous', 'from_post'); the_title(); echo '<br />';
echo 'Previous in root category: '; RT('previous', array('root_of' => '__post')); the_title(); echo '<br />';
echo 'Chronologically previous: '; RT('previous'); the_title(); echo '<br />';
echo 'Current: '; Restore(); the_title(); echo '<br />';
foreach (M() as $image) {
echo 'Default: '; echo EM($image);
echo 'Comic: '; echo EM($image, 'comic');
echo 'RSS: '; echo EM($image, 'rss');
echo 'Archive: '; echo EM($image, 'archive');
}
echo 'Chronologically next: '; RT('next'); the_title(); echo '<br />';
echo 'Next in root category: '; RT('next', array('root_of' => '__post')); the_title(); echo '<br />';
echo 'Next in category: '; RT('next', 'from_post'); the_title(); echo '<br />';
echo 'Last in category: '; RT('last', 'from_post'); the_title(); echo '<br />';
Unprotect();
echo 'Current: '; the_title(); echo '<br />';
finish_comicpress();
?>

898
style.css
View File

@ -1,898 +0,0 @@
/*
Theme Name: ComicPress
Theme URI: http://comicpress.org
Description: Publish a comic with WordPress. Development version. <a href="http://comicpress.org">Visit the ComicPress Website.</a>
Author: Tyler Martin, John Bintz, Philip Hofer
Author URI: http://comicpres.org/
Version: 2.999-git
.
The CSS, XHTML and design is released under GPL v3:
http://www.opensource.org/licenses/gpl-3.0.html
.
*/
/* STANDARD TAGS */
body {
margin: 0;
color: #000;
font-size: 12px;
font-family: 'Arial', sans-serif;
}
a {
color: #800;
text-decoration: none;
}
a:hover {
color: #f00;
}
a:focus {
outline: none;
}
a img {
border: none;
}
p {
margin: 12px 0;
}
img {
max-width: 100%;
padding: 0;
}
small {
font-size: 11px;
}
hr {
height: 1px;
color: #000;
background-color: #000;
border: 0px;
}
blockquote {
margin: 10px;
padding: 5px 10px 5px 20px;
border-width: 1px 1px 1px 5px;
border-style: solid;
border-color: #000;
}
blockquote cite {
margin: 5px 0 0;
display: block;
}
cite {
font-size: 13px;
font-weight: bold;
font-style: normal;
}
code {
padding: 10px;
display: block;
font-family: 'Courier New', monospace;
border: 1px dotted #000;
overflow: scroll;
}
acronym, abbr, span.caps {
cursor: help;
}
acronym, abbr {
border-bottom: 1px dashed #000;
}
form {
margin: 0;
}
/* HEADINGS */
h1, h1 a, h1 a:hover {
padding: 10px 0 0 0;
margin: 0;
color: #000;
font-size: 60px;
font-family: 'Georgia', serif;
font-weight: normal;
line-height: 50px;
text-decoration: none;
letter-spacing: -4px;
font-variant: small-caps;
}
h2, h2 a, h2 a:hover {
margin: 0;
color: #000;
font-weight: bold;
letter-spacing: -1px;
font-size: 24px;
}
h2.pagetitle, h2.pagetitle a {
padding: 0 0 5px 0;
margin: 0 0 20px 0;
font-family: 'Georgia', serif;
font-size: 32px;
font-weight: normal;
letter-spacing: -2px;
}
h3, h3 a, h3 a:hover {
padding: 0;
margin: 0;
font-size: 20px;
font-weight: bold;
text-align: left;
color: #000;
text-decoration: none;
clear: both;
letter-spacing: -1px;
}
/* THE PAGE WRAPPER */
/* Change this width to set the entire site's width - increase/reduce #content width by the same amount */
#page {
width: 760px;
margin: 0px auto;
}
/* THE HEADER */
#header {
text-align: center;
}
.description {
padding: 0 0 10px 0;
font-size: 14px;
font-style: italic;
letter-spacing: 2px;
}
/* THE MENU */
#menubar {
background: #000;
zoom: 1; /* IE fix, allows for variable height menu */
}
#menunav {
float: right;
}
#menunav a {
width: 25px;
height: 25px;
display: block;
float: left;
color: #fff;
font-size: 19px;
font-weight: bold;
line-height: 25px;
text-align: center;
border-left: 1px solid #fff;
}
#menunav a:hover {
background: #800;
}
#menu {
padding: 0;
margin: 0;
list-style: none;
float: left;
line-height: 25px;
font-size: 12px;
text-transform: uppercase;
}
#menu a {
padding: 0px 5px;
display: block;
color: #fff;
text-decoration: none;
border-right: 1px solid #fff;
}
#menu li {
float: left;
}
#menu li:hover a, #menu li.sfhover a {
color: #fff; /* Main menu highlighted text color */
}
#menu li:hover, #menu li.sfhover {
background: #800; /* Main menu highlighted background color */
}
/* For submenu dropdowns - this order must be maintained */
#menu ul {
padding: 0;
margin: 0;
list-style: none;
position: absolute;
left: -9999px;
width: 151px;
line-height: 1;
border-top: 1px solid #fff;
}
#menu li li {
width: 150px;
margin: 0 0 0 -1px;
border-width: 0 1px 1px 1px;
border-color: #fff;
border-style: solid;
}
#menu li li a {
width: 139px;
padding: 4px 5px;
color: #fff;
border: none;
}
#menu li ul ul {
margin: -21px 0 0 151px;
}
#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 */
}
#menu li:hover li a, #menu li li:hover li a, #menu li li li:hover li a, #menu li li li li:hover li a {
color: #fff; /*Submenu text color */
}
#menu li li:hover {
background: #f00; /*Submenu highlighted background color */
}
#menu li:hover ul ul, #menu li:hover ul ul ul, #menu li:hover ul ul ul ul, #menu li.sfhover ul ul, #menu li.sfhover ul ul ul, #menu li.sfhover ul ul ul ul {
left: -9999px;
}
#menu li:hover ul, #menu li li:hover ul, #menu li li li:hover ul, #menu li li li li:hover ul, #menu li.sfhover ul, #menu li li.sfhover ul, #menu li li li.sfhover ul, #menu li li li li.sfhover ul {
left: auto;
background: #222; /*Submenu background color */
text-transform: none;
}
/* THE COMIC */
#comic {
padding: 10px 0;
text-align: center;
}
/* THE FOOTER */
#footer {
padding: 20px 0;
text-align: center;
}
/* NAVIGATION */
.nav {
float: right;
font-size: 12px;
font-weight: bold;
}
.nav-first {
padding: 0 5px 0 0;
float: left;
border-right: 1px solid #000;
}
.nav-previous {
padding: 0 5px;
float: left;
}
.nav-next {
padding: 0 5px;
float: left;
border-right: 1px solid #000;
border-left: 1px solid #000;
}
.nav-last {
padding: 0 0 0 5px;
float: left;
}
.nav-blog {
color: #000;
font-size: 12px;
font-weight: bold;
float: right;
}
.nav-blog-previous {
padding: 0 5px 0 0;
float: left;
}
.nav-blog-next {
padding: 0 0 0 5px;
float: left;
border-left: 1px solid #000;
}
.pagenav {
padding: 40px 20px 0 20px;
color: #000;
font-size: 12px;
font-weight: bold;
clear: both;
}
.pagenav-left {
float: left;
}
.pagenav-right {
float: right;
}
.nav a, .pagenav a, .nav-blog a {
display: block;
float: left;
color: #000;
}
.nav a:hover, .pagenav a:hover, .nav-blog a:hover {
color: #800;
}
/* POSTS - PAGES */
#content {
width: 560px;
padding: 5px 0 20px 0;
float: left;
overflow: hidden;
}
.narrowcolumn
{
width: 560px;
}
.widecolumn
{
width: 760px;
}
.post, .post-comic, .post-page {
padding: 0 20px;
}
.post-head, .post-page-head, .post-comic-head {
}
.post-foot, .post-comic-foot, .post-page-foot {
margin: 0 0 40px 0;
height: 10px;
overflow: hidden;
}
.comicdate {
font-size: 14px;
}
.postdate {
font-size: 11px;
}
.more-link {
border-top: 1px dashed #000;
font-style: italic;
display: block;
clear: both;
}
.tags {
font-size: 11px;
clear: both;
}
.comment-link {
font-family: 'Georgia', serif;
font-size: 16px;
text-align: right;
}
/* THE BLOG HEADER */
#blogheader {
font-family: 'Georgia', serif;
padding: 25px 0 25px 20px;
font-size: 32px;
letter-spacing: -2px;
border-top: 1px solid #000;
}
/* COMMENTS */
.comment-wrap{
padding: 0 20px;
}
.comment-wrap h3 {
margin: 0;
padding: 20px 0 0 0;
font-weight: normal;
font-size: 20px;
clear: both;
font-family: 'Georgia', serif;
}
.comment {
padding: 10px;
margin: 10px 0 0 0;
clear: both;
border: 1px solid #000;
min-height: 64px;
}
.comment .comment {
border: 1px dotted #000;
}
.comment-author {
display: inline;
}
.comment-meta {
display: inline;
padding: 0 0 0 5px;
margin: 0 0 0 2px;
border-left: 1px solid #000;
}
.says {
display:none;
}
.avatar {
margin: 0 10px 0 0;
float: left;
}
#comment {
width: 100%;
font-size: 12px;
font-family: 'Arial', sans-serif;
}
#author, #email, #url {
width: 200px;
font-size: 12px;
font-family: 'Arial', sans-serif;
}
#submit {
margin: 0 0 20px 0;
float: right;
}
ol.commentlist {
margin: 0;
padding: 0;
font-size: 11px;
list-style: none;
}
ol.commentlist p {
margin: 10px 0 0 74px;
}
ul.children {
margin: 0;
padding: 0;
list-style: none;
}
.reply {
padding: 10px 0 0 0;
text-align: right;
}
/* ARCHIVE */
/* For the built-in WordPress archive pages (by month or category) as well as search result pages */
.comicarchiveframe {
padding: 5px;
border: 1px solid #000;
background: #fff;
opacity: 0.99;
filter: alpha(opacity=99);
}
.comicarchiveframe:hover {
opacity: 0.70;
filter: alpha(opacity=70);
}
.comicarchiveframe h3 {
margin: 0;
}
.comicarchiveframe a small {
display: block;
color: #000;
}
.archive-year {
font-size: 48px;
}
.archive-yearlist {
padding: 0 0 10px 0;
font-size: 14px;
}
/* SIDEBAR */
#sidebar {
width: 200px;
padding: 5px 0;
float: left;
font-size: 11px;
overflow: hidden;
}
#sidebar h2, #sidebar h2 a {
font-size: 16px;
}
#sidebar ul {
margin: 0;
padding: 0;
list-style: none;
}
#sidebar ul li {
margin: 0 0 10px 10px;
padding: 0;
}
#sidebar ul li ul li {
margin: 0 0 0 10px;
padding: 0;
}
/* WIDGETS */
.random-comic-icon {
padding: 0 5px;
color: #fff;
background: #000;
}
.comic-bookmark {
margin: 0 0 10px 5px;
}
.archive-dropdown {
max-width: 100%;
}
/* CALENDAR */
#wp-calendar {
width: 165px;
margin: 0 0 0 5px;
}
#wp-calendar th {
font-size: 10px;
font-weight: normal;
text-align: center;
}
#wp-calendar caption {
font-family: 'Georgia', sans-serif;
font-size: 18px;
letter-spacing: -1px;
font-variant: small-caps;
}
#wp-calendar td {
min-width: 20px;
padding: 0;
text-align: center;
border: 1px solid #000;
}
#wp-calendar a {
display: block;
text-decoration: none;
font-weight: bold;
}
#wp-calendar a:hover {
color: #fff;
background: #000;
}
/* SEARCH */
#s {
width: 140px;
margin: 0;
padding: 2px;
font-size: 12px;
font-family: 'Arial', sans-serif;
}
#searchsubmit {
padding: 0 5px;
font-size: 12px;
font-family: 'Arial', sans-serif;
}
/* GALLERY */
.gallery-image {
width: 518px;
border: 1px solid #000;
overflow: hidden;
background: #000;
}
.gallery-caption {
font-size: 11px;
}
.gallery-caption p {
width: 510px;
padding: 5px;
margin: 0;
text-align: center;
color: #fff;
background: #000;
}
.imagenav-wrap {
margin: 5px 0 0 0;
}
.imagenav {
width: 77px;
height: 77px;
float: left;
overflow: hidden;
}
.imagenav-center {
width: 344px;
height: 65px;
margin: 0 5px;
padding: 10px 5px 0 5px;
float: left;
color: #000;
text-align: center;
border: 1px solid #000;
overflow: hidden;
}
.imagetitle {
color: #000;
font-size: 18px;
}
.imagenav-bg {
width: 75px;
height: 75px;
position: absolute;
z-index: 0;
background: #ddd;
border: 1px solid #000;
overflow: hidden;
}
.imagenav-bg img {
width: 75px;
height: 75px;
}
.imagenav-arrow {
width: 75px;
height: 75px;
position: absolute;
z-index: 1;
color: #fff;
font-size: 80px;
font-weight: bold;
line-height:75px;
text-align: center;
border: 1px solid #000;
float: left;
}
.imagenav-link {
width: 75px;
height: 75px;
position: absolute;
z-index: 2;
border: 1px solid #000;
float: left;
overflow: hidden;
}
.imagenav-link img {
width: 75px;
height: 75px;
opacity: 0.50;
filter: alpha(opacity=50);
}
.imagenav-link img:hover {
opacity: 0.00;
filter: alpha(opacity=0);
}
/* POSTED IMAGES */
.wp-caption p {
margin: 5px 0;
line-height: 11px;
font-size: 11px;
}
.aligncenter {
margin: 0 auto;
display: block;
}
.alignright {
margin: 10px 0 10px 10px;
display: inline;
float: right;
}
.alignleft {
margin: 10px 10px 10px 0;
display: inline;
float: left
}
/* TRANSCRIPT */
#transcript {
padding: 0 10px;
font-size: 11px;
border-left: 4px dotted #000;
border-right: 4px dotted #000;
}
.transcript-border {
padding: 0 5px;
margin: 15px 0;
border: 1px solid #000;
background: #fff;
clear: both;
}
a.transcript-title {
padding: 0 0 5px 0;
margin: 0 0 5px 0;
display: block;
font-family: 'Georgia', serif;
font-style: italic;
font-size: 16px;
letter-spacing: -1px;
border-bottom: 1px dashed #000;
}
#transcript-content {
font-family: 'Courier New', monospace;
overflow: hidden;
}
#s-transcript {
width: 140px;
margin: 0;
padding: 2px;
font-size: 12px;
font-family: 'Georgia', serif;
font-style: italic;
}
#searchsubmit-transcript {
padding: 0 5px;
font-size: 12px;
font-family: 'Arial', sans-serif;
}
/* Pingbacks and Trackbacks */
li.pingback div p, li.trackback div p {
margin-left:0;
}
/* STORYLINES */
.storyline-cats {
padding: 0;
margin: 0;
list-style: none;
}
.storyline-cats li {
display: inline;
}
li.storyline-root {
display: none;
}
/* CLEAR FLOATS */
.clear {
clear: both;
}
/* CLEAR MARGINS */
/* Used with BR for clearing paragraph margins for Safari, Chrome - avoid background gaps */
.clear-margins {
clear: both;
height: 0;
line-height: 0;
font-size: 0;
}

View File

@ -1 +0,0 @@
this is my override blog header!

View File

@ -1 +0,0 @@
this is my override blog header!

View File

@ -1 +0,0 @@
this is my override blog header!