functions.php and other code-related changes
This commit is contained in:
parent
cac287bc5d
commit
f6f459ed85
182
archive.php
182
archive.php
@ -1,98 +1,98 @@
|
|||||||
<?php get_header() ?>
|
<?php get_header() ?>
|
||||||
|
|
||||||
<div id="content" class="archive">
|
<div id="content" class="narrowcolumn">
|
||||||
|
|
||||||
<?php if (have_posts()) : ?>
|
<?php if (have_posts()) : ?>
|
||||||
|
|
||||||
<div class="post-page-head"></div>
|
<div class="post-page-head"></div>
|
||||||
<div class="post-page">
|
<div class="post-page">
|
||||||
|
|
||||||
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
|
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
|
||||||
<?php /* Category Archive */ if (is_category()) { ?>
|
<?php /* Category Archive */ if (is_category()) { ?>
|
||||||
<div class="content"><h2 class="pagetitle">Archive for ‘<?php single_cat_title() ?>’</h2></div>
|
<div class="content"><h2 class="pagetitle">Archive for ‘<?php single_cat_title() ?>’</h2></div>
|
||||||
<?php /* Tag Archive */ } elseif( is_tag() ) { ?>
|
<?php /* Tag Archive */ } elseif( is_tag() ) { ?>
|
||||||
<div class="content"><h2 class="pagetitle">Posts Tagged ‘<?php single_tag_title() ?>’</h2></div>
|
<div class="content"><h2 class="pagetitle">Posts Tagged ‘<?php single_tag_title() ?>’</h2></div>
|
||||||
<?php /* Daily Archive */ } elseif (is_day()) { ?>
|
<?php /* Daily Archive */ } elseif (is_day()) { ?>
|
||||||
<div class="content"><h2 class="pagetitle">Archive for <?php the_time('F jS, Y') ?></h2></div>
|
<div class="content"><h2 class="pagetitle">Archive for <?php the_time('F jS, Y') ?></h2></div>
|
||||||
<?php /* Monthly Archive */ } elseif (is_month()) { ?>
|
<?php /* Monthly Archive */ } elseif (is_month()) { ?>
|
||||||
<div class="content"><h2 class="pagetitle">Archive for <?php the_time('F, Y') ?></h2></div>
|
<div class="content"><h2 class="pagetitle">Archive for <?php the_time('F, Y') ?></h2></div>
|
||||||
<?php /* Yearly Archive */ } elseif (is_year()) { ?>
|
<?php /* Yearly Archive */ } elseif (is_year()) { ?>
|
||||||
<div class="content"><h2 class="pagetitle">Archive for <?php the_time('Y') ?></h2></div>
|
<div class="content"><h2 class="pagetitle">Archive for <?php the_time('Y') ?></h2></div>
|
||||||
<?php /* Author Archive */ } elseif (is_author()) { ?>
|
<?php /* Author Archive */ } elseif (is_author()) { ?>
|
||||||
<div class="content"><h2 class="pagetitle">Author Archive</h2></div>
|
<div class="content"><h2 class="pagetitle">Author Archive</h2></div>
|
||||||
<?php /* Paged Archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
|
<?php /* Paged Archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
|
||||||
<div class="content"><h2 class="pagetitle">Archives</h2></div>
|
<div class="content"><h2 class="pagetitle">Archives</h2></div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<br class="clear-margins" />
|
<br class="clear-margins" />
|
||||||
</div>
|
</div>
|
||||||
<div class="post-page-foot"></div>
|
<div class="post-page-foot"></div>
|
||||||
|
|
||||||
<?php $posts = query_posts($query_string.'&order=asc');
|
<?php $posts = query_posts($query_string.'&order=asc');
|
||||||
while (have_posts()) : the_post() ?>
|
while (have_posts()) : the_post() ?>
|
||||||
|
|
||||||
<?php global $archive_comic_width; if (in_comic_category()) { ?>
|
<?php global $archive_comic_width; if (in_comic_category()) { ?>
|
||||||
|
|
||||||
<div class="post-comic-head"></div>
|
<div class="post-comic-head"></div>
|
||||||
<div class="post-comic">
|
<div class="post-comic">
|
||||||
<div class="comicarchiveframe" style="width:<?php echo $archive_comic_width; ?>px;">
|
<div class="comicarchiveframe" style="width:<?php echo $archive_comic_width; ?>px;">
|
||||||
<div class="comicdate">
|
<div class="comicdate">
|
||||||
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
||||||
</div>
|
</div>
|
||||||
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
||||||
By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> <?php edit_post_link('[edit this]'); ?> <br />
|
By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> <?php edit_post_link('[edit this]'); ?> <br />
|
||||||
Posted in: <?php the_category(','); ?>
|
Posted in: <?php the_category(','); ?>
|
||||||
<a href="<?php the_permalink() ?>"><img src="<?php the_comic_archive() ?>" alt="<?php the_title() ?>" title="Click for full size." width="<?php echo $archive_comic_width ?>" /><br />
|
<a href="<?php the_permalink() ?>"><img src="<?php the_comic_archive() ?>" alt="<?php the_title() ?>" title="Click for full size." width="<?php echo $archive_comic_width ?>" /><br />
|
||||||
<h3><?php the_title() ?></h3>
|
<h3><?php the_title() ?></h3>
|
||||||
<small><?php the_time('F jS, Y') ?></small></a>
|
<small><?php the_time('F jS, Y') ?></small></a>
|
||||||
</div>
|
</div>
|
||||||
<br class="clear-margins" />
|
<br class="clear-margins" />
|
||||||
</div>
|
</div>
|
||||||
<div class="post-comic-foot"></div>
|
<div class="post-comic-foot"></div>
|
||||||
|
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
|
|
||||||
<div class="post-head"></div>
|
<div class="post-head"></div>
|
||||||
<div class="post archive">
|
<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>
|
<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="postdate"><?php the_time('F jS, Y') ?></div>
|
||||||
<div class="entry"><?php the_content() ?></div>
|
<div class="entry"><?php the_content() ?></div>
|
||||||
<div class="tags">
|
<div class="tags">
|
||||||
<?php the_tags('└ Tags: ', ', ', ''); edit_post_link('Edit Post', ' [ ', ' ] ') ?>
|
<?php the_tags('└ Tags: ', ', ', ''); edit_post_link('Edit Post', ' [ ', ' ] ') ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-link">
|
<div class="comment-link">
|
||||||
<?php if ('open' == $post->comment_status) { comments_popup_link('“Comment”', '“1 Comment”', '“% Comments”'); } ?>
|
<?php if ('open' == $post->comment_status) { comments_popup_link('“Comment”', '“1 Comment”', '“% Comments”'); } ?>
|
||||||
</div>
|
</div>
|
||||||
<br class="clear-margins" />
|
<br class="clear-margins" />
|
||||||
</div>
|
</div>
|
||||||
<div class="post-foot"></div>
|
<div class="post-foot"></div>
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
|
|
||||||
<?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } else { ?>
|
<?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } else { ?>
|
||||||
<div class="pagenav">
|
<div class="pagenav">
|
||||||
<div class="pagenav-right"><?php next_posts_link('Next Page ›') ?></div>
|
<div class="pagenav-right"><?php next_posts_link('Next Page ›') ?></div>
|
||||||
<div class="pagenav-left"><?php previous_posts_link('‹ Previous Page') ?></div>
|
<div class="pagenav-left"><?php previous_posts_link('‹ Previous Page') ?></div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
|
|
||||||
<div class="post-head"></div>
|
<div class="post-head"></div>
|
||||||
<div class="post">
|
<div class="post">
|
||||||
<h3>No entries found.</h3>
|
<h3>No entries found.</h3>
|
||||||
<p>Try another search?</p>
|
<p>Try another search?</p>
|
||||||
<p><?php include (TEMPLATEPATH . '/searchform.php') ?></p>
|
<p><?php include (TEMPLATEPATH . '/searchform.php') ?></p>
|
||||||
<br class="clear-margins" />
|
<br class="clear-margins" />
|
||||||
</div>
|
</div>
|
||||||
<div class="post-foot"></div>
|
<div class="post-foot"></div>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include(TEMPLATEPATH . '/sidebar.php') ?>
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
<?php get_footer() ?>
|
<?php get_footer() ?>
|
49
comic-navigation-functions.php
Normal file
49
comic-navigation-functions.php
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
function comic_navigation() {
|
||||||
|
global $post, $wp_query;
|
||||||
|
$temppost = $post;
|
||||||
|
$temp_query = $wp_query;
|
||||||
|
$temp_single = $wp_query->is_single;
|
||||||
|
echo '<div id="comic_navi_wrapper">';
|
||||||
|
echo ' <div id="comic_navi_prev">';
|
||||||
|
$first_comic = get_first_comic_permalink();
|
||||||
|
if ($first_comic != get_permalink()) {
|
||||||
|
echo ' <a href="'.$first_comic.'" class="rollfirst" title="First"> </a>';
|
||||||
|
} else {
|
||||||
|
echo ' <img src="'.get_bloginfo('stylesheet_directory').'/images/disabled_firstroll.png" alt="At First" style="float:left;" class="disabled_navi" />';
|
||||||
|
}
|
||||||
|
$wp_query->is_single = true;
|
||||||
|
$prev_comic = get_permalink(get_adjacent_post(true, '', true));
|
||||||
|
if (!empty($prev_comic) && (get_permalink() != $first_comic)) {
|
||||||
|
echo ' <a href="'.$prev_comic.'" class="rollprev" title="Previous"> </a>';
|
||||||
|
} else {
|
||||||
|
echo ' <img src="'.get_bloginfo('stylesheet_directory').'/images/disabled_prevroll.png" alt="No Previous" style="float:left;" class="disabled_navi" />';
|
||||||
|
}
|
||||||
|
$wp_query->is_single = $temp_single;
|
||||||
|
echo ' </div>';
|
||||||
|
echo ' <div id="comic_navi_next">';
|
||||||
|
$last_comic = get_last_comic_permalink();
|
||||||
|
if ($last_comic != get_permalink()) {
|
||||||
|
echo ' <a href="/" class="rolllast" title="Last"> </a>';
|
||||||
|
} else {
|
||||||
|
echo ' <img src="'.get_bloginfo('stylesheet_directory').'/images/disabled_lastroll.png" alt="No Last" style="float: right;" class="disabled_navi" />';
|
||||||
|
}
|
||||||
|
$next_comic = get_permalink(get_adjacent_post(true, '', false));
|
||||||
|
if (!empty($next_comic) && (get_permalink() != $last_comic)) {
|
||||||
|
echo ' <a href="'.$next_comic.'" class="rollnext" title="Next"> </a>';
|
||||||
|
} else {
|
||||||
|
echo ' <img src="'.get_bloginfo('stylesheet_directory').'/images/disabled_nextroll.png" alt="No Next" style="float: right;" class="disabled_navi" />';
|
||||||
|
}
|
||||||
|
echo ' </div>';
|
||||||
|
echo ' <div class="clear"></div>';
|
||||||
|
echo '</div>';
|
||||||
|
$wp_query = $temp_query;
|
||||||
|
$wp_query->is_single = $temp_single;
|
||||||
|
$post = $temp_post;
|
||||||
|
$temp_post = null;
|
||||||
|
$temp_query = null;
|
||||||
|
$temp_single = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
@ -1,8 +1,14 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
include(get_template_directory() . '/comicpress-config.php');
|
if (file_exists(get_template_directory().'/wpmu-functions.php')) {
|
||||||
|
include(get_template_directory() . '/wpmu-functions.php');
|
||||||
|
} else {
|
||||||
|
include(get_template_directory() . '/comicpress-config.php');
|
||||||
|
}
|
||||||
include(get_template_directory() . '/comment-functions.php');
|
include(get_template_directory() . '/comment-functions.php');
|
||||||
include(get_template_directory() . '/custom-image-header.php');
|
include(get_template_directory() . '/custom-image-header.php');
|
||||||
|
include(get_template_directory() . '/comic-navigation-functions.php');
|
||||||
|
include(get_template_directory() . '/buystrip-functions.php');
|
||||||
|
|
||||||
// If any errors occur while searching for a comic file, the error messages will be pushed into here.
|
// If any errors occur while searching for a comic file, the error messages will be pushed into here.
|
||||||
$comic_pathfinding_errors = array();
|
$comic_pathfinding_errors = array();
|
||||||
@ -139,32 +145,34 @@ function get_terminal_post_in_category($categoryID, $first = true) {
|
|||||||
* @param string $filter The $comic_filename_filters to use.
|
* @param string $filter The $comic_filename_filters to use.
|
||||||
* @return string The relative path to the comic file, or false if not found.
|
* @return string The relative path to the comic file, or false if not found.
|
||||||
*/
|
*/
|
||||||
function get_comic_path($folder = 'comic', $override_post = null, $filter = 'default') {
|
if (!function_exists('get_comic_path')) {
|
||||||
global $post, $comic_filename_filters, $comic_folder, $archive_comic_folder, $rss_comic_folder, $comic_pathfinding_errors;
|
function get_comic_path($folder = 'comic', $override_post = null, $filter = 'default') {
|
||||||
|
global $post, $comic_filename_filters, $comic_folder, $archive_comic_folder, $rss_comic_folder, $comic_pathfinding_errors;
|
||||||
|
|
||||||
if (isset($comic_filename_filters[$filter])) {
|
if (isset($comic_filename_filters[$filter])) {
|
||||||
$filter_to_use = $comic_filename_filters[$filter];
|
$filter_to_use = $comic_filename_filters[$filter];
|
||||||
} else {
|
} else {
|
||||||
$filter_to_use = '{date}*.*';
|
$filter_to_use = '{date}*.*';
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ($folder) {
|
switch ($folder) {
|
||||||
case "rss": $folder_to_use = $rss_comic_folder; break;
|
case "rss": $folder_to_use = $rss_comic_folder; break;
|
||||||
case "archive": $folder_to_use = $archive_comic_folder; break;
|
case "archive": $folder_to_use = $archive_comic_folder; break;
|
||||||
case "comic": default: $folder_to_use = $comic_folder; break;
|
case "comic": default: $folder_to_use = $comic_folder; break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$post_to_use = (is_object($override_post)) ? $override_post : $post;
|
$post_to_use = (is_object($override_post)) ? $override_post : $post;
|
||||||
$post_date = mysql2date(CP_DATE_FORMAT, $post_to_use->post_date);
|
$post_date = mysql2date(CP_DATE_FORMAT, $post_to_use->post_date);
|
||||||
|
|
||||||
$filter_with_date = str_replace('{date}', $post_date, $filter_to_use);
|
$filter_with_date = str_replace('{date}', $post_date, $filter_to_use);
|
||||||
|
|
||||||
if (count($results = glob("${folder_to_use}/${filter_with_date}")) > 0) {
|
if (count($results = glob("${folder_to_use}/${filter_with_date}")) > 0) {
|
||||||
return reset($results);
|
return reset($results);
|
||||||
}
|
}
|
||||||
|
|
||||||
$comic_pathfinding_errors[] = sprintf(__("Unable to find the file in the <strong>%s</strong> folder that matched the pattern <strong>%s</strong>. Check your WordPress and ComicPress settings.", 'comicpress'), $folder, $filter_with_date);
|
$comic_pathfinding_errors[] = sprintf(__("Unable to find the file in the <strong>%s</strong> folder that matched the pattern <strong>%s</strong>. Check your WordPress and ComicPress settings.", 'comicpress'), $folder, $filter_with_date);
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -637,42 +645,4 @@ function szub_is_search_key($key='') {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function comic_navigation() {
|
|
||||||
global $post;
|
|
||||||
echo '<div id="comic_navi_wrapper">';
|
|
||||||
echo ' <div id="comic_navi_prev">';
|
|
||||||
$at_first = false;
|
|
||||||
$first = get_first_comic();
|
|
||||||
if (!empty($first)) { $at_first = ($post->ID == $first->ID); }
|
|
||||||
if (!$at_first) {
|
|
||||||
echo ' <a href="'.get_permalink($at_first).'" class="rollfirst"> </a>';
|
|
||||||
} else {
|
|
||||||
echo ' <img src="'.get_bloginfo('stylesheet_directory').'/images/disabled_firstroll.png" alt="At First" class="disabled_navi" />';
|
|
||||||
}
|
|
||||||
$prev_comic = get_permalink(get_previous_comic()->ID);
|
|
||||||
if (!empty($prev_comic)) {
|
|
||||||
echo ' <a href="'.$prev_comic.'" class="rollprev"> </a>';
|
|
||||||
} else {
|
|
||||||
echo ' <img src="'.get_bloginfo('stylesheet_directory').'/images/disabled_prevroll.png" alt="No Previous" class="disabled_navi" />';
|
|
||||||
}
|
|
||||||
echo ' </div>';
|
|
||||||
echo ' <div id="comic_navi_next">';
|
|
||||||
$next = get_permalink(get_next_comic()->ID);
|
|
||||||
if (!empty($next)) {
|
|
||||||
echo ' <a href="'.get_permalink($next).'" class="rollnext"> </a>';
|
|
||||||
} else {
|
|
||||||
echo ' <img src="'.get_bloginfo('stylesheet_directory').'/images/disabled_nextroll.png" alt="No Next" class="disabled_navi" />';
|
|
||||||
}
|
|
||||||
$at_last = false;
|
|
||||||
$last = get_last_comic();
|
|
||||||
if (!empty($last)) { $at_last = ($post->idate == $last->idate); }
|
|
||||||
if (!$at_last) {
|
|
||||||
echo ' <a href="'.get_permalink($at_last).'" class="rollnext"> </a>';
|
|
||||||
} else {
|
|
||||||
echo ' <img src="'.get_bloginfo('stylesheet_directory').'/images/disabled_lastroll.png" alt="No Last" class="disabled_navi" />';
|
|
||||||
}
|
|
||||||
echo ' </div>';
|
|
||||||
echo ' <div class="clear"></div>';
|
|
||||||
echo '</div>';
|
|
||||||
}
|
|
||||||
?>
|
?>
|
@ -9,7 +9,8 @@
|
|||||||
<img src="<?php the_comic() ?>" alt="<?php the_title() ?>" title="<?php the_hovertext() ?>" />
|
<img src="<?php the_comic() ?>" alt="<?php the_title() ?>" title="<?php the_hovertext() ?>" />
|
||||||
</div>
|
</div>
|
||||||
<div id="comic-foot"></div>
|
<div id="comic-foot"></div>
|
||||||
<?php comic_navigation(); ?>
|
<?php // if (function_exists('buy_this_comic')) { buy_this_comic(); } ?>
|
||||||
|
<?php // if (function_exists('comic_navigation')) { comic_navigation(); } ?>
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
|
|
||||||
<div id="content" class="narrowcolumn">
|
<div id="content" class="narrowcolumn">
|
||||||
|
@ -1,82 +1,82 @@
|
|||||||
<?php get_header() ?>
|
<?php get_header() ?>
|
||||||
|
|
||||||
<div id="content" class="archive">
|
<div id="content" class="narrowcolumn">
|
||||||
|
|
||||||
<div class="post-page-head"></div>
|
<div class="post-page-head"></div>
|
||||||
<div class="post-page">
|
<div class="post-page">
|
||||||
<?php
|
<?php
|
||||||
$tmp_search = new WP_Query('s=' . wp_specialchars($_GET['s']) . '&show_posts=-1&posts_per_page=-1');
|
$tmp_search = new WP_Query('s=' . wp_specialchars($_GET['s']) . '&show_posts=-1&posts_per_page=-1');
|
||||||
$count = $tmp_search->post_count;
|
$count = $tmp_search->post_count;
|
||||||
?>
|
?>
|
||||||
<h2 class="pagetitle">Transcript search for ‘<?php the_search_query() ?>’</h2>
|
<h2 class="pagetitle">Transcript search for ‘<?php the_search_query() ?>’</h2>
|
||||||
Found <?php echo $count; ?> result<?php if ($count !== 1) { echo "s"; } ?>.
|
Found <?php echo $count; ?> result<?php if ($count !== 1) { echo "s"; } ?>.
|
||||||
</div>
|
</div>
|
||||||
<div class="post-page-foot"></div>
|
<div class="post-page-foot"></div>
|
||||||
|
|
||||||
<?php if (have_posts()) : ?>
|
<?php if (have_posts()) : ?>
|
||||||
|
|
||||||
<?php $posts = query_posts($query_string.'&order=asc');
|
<?php $posts = query_posts($query_string.'&order=asc');
|
||||||
while (have_posts()) : the_post() ?>
|
while (have_posts()) : the_post() ?>
|
||||||
|
|
||||||
<?php if (in_comic_category()) { ?>
|
<?php if (in_comic_category()) { ?>
|
||||||
|
|
||||||
<div class="post-comic-head"></div>
|
<div class="post-comic-head"></div>
|
||||||
<div class="post-comic">
|
<div class="post-comic">
|
||||||
<div class="comicdate">
|
<div class="comicdate">
|
||||||
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
||||||
</div>
|
</div>
|
||||||
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
||||||
By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> <?php edit_post_link('[edit this]'); ?> <br />
|
By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> <?php edit_post_link('[edit this]'); ?> <br />
|
||||||
Posted in: <?php the_category(','); ?>
|
Posted in: <?php the_category(','); ?>
|
||||||
<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="<?php the_transcript() ?>" width="<?php echo $archive_comic_width ?>" /><br />
|
<a href="<?php the_permalink() ?>"><img src="<?php the_comic_archive() ?>" alt="<?php the_title() ?>" title="<?php the_transcript() ?>" width="<?php echo $archive_comic_width ?>" /><br />
|
||||||
</div>
|
</div>
|
||||||
<br class="clear-margins" />
|
<br class="clear-margins" />
|
||||||
</div>
|
</div>
|
||||||
<div class="post-comic-foot"></div>
|
<div class="post-comic-foot"></div>
|
||||||
|
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
|
|
||||||
<div class="post-head"></div>
|
<div class="post-head"></div>
|
||||||
<div class="post">
|
<div class="post">
|
||||||
<div class="comicdate">
|
<div class="comicdate">
|
||||||
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
||||||
</div>
|
</div>
|
||||||
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
||||||
By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> <?php edit_post_link('[edit this]'); ?> <br />
|
By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> <?php edit_post_link('[edit this]'); ?> <br />
|
||||||
Posted in: <?php the_category(','); ?>
|
Posted in: <?php the_category(','); ?>
|
||||||
<?php the_excerpt() ?>
|
<?php the_excerpt() ?>
|
||||||
<br class="clear-margins" />
|
<br class="clear-margins" />
|
||||||
</div>
|
</div>
|
||||||
<div class="post-foot"></div>
|
<div class="post-foot"></div>
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
|
|
||||||
<?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } else { ?>
|
<?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } else { ?>
|
||||||
<div class="pagenav">
|
<div class="pagenav">
|
||||||
<div class="pagenav-right"><?php next_posts_link('Next Page ›') ?></div>
|
<div class="pagenav-right"><?php next_posts_link('Next Page ›') ?></div>
|
||||||
<div class="pagenav-left"><?php previous_posts_link('‹ Previous Page') ?></div>
|
<div class="pagenav-left"><?php previous_posts_link('‹ Previous Page') ?></div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
|
|
||||||
<div class="post-page-head"></div>
|
<div class="post-page-head"></div>
|
||||||
<div class="post-page">
|
<div class="post-page">
|
||||||
<h3>No transcripts found.</h3>
|
<h3>No transcripts found.</h3>
|
||||||
<p>Try another search?</p>
|
<p>Try another search?</p>
|
||||||
<p><?php include (TEMPLATEPATH . '/searchform-transcript.php') ?></p>
|
<p><?php include (TEMPLATEPATH . '/searchform-transcript.php') ?></p>
|
||||||
<br class="clear-margins" />
|
<br class="clear-margins" />
|
||||||
</div>
|
</div>
|
||||||
<div class="post-page-foot"></div>
|
<div class="post-page-foot"></div>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include(TEMPLATEPATH . '/sidebar.php') ?>
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
<?php get_footer() ?>
|
<?php get_footer() ?>
|
142
search.php
142
search.php
@ -1,82 +1,82 @@
|
|||||||
<?php get_header() ?>
|
<?php get_header() ?>
|
||||||
|
|
||||||
<div id="content" class="archive">
|
<div id="content" class="narrowcolumn">
|
||||||
|
|
||||||
<div class="post-page-head"></div>
|
<div class="post-page-head"></div>
|
||||||
<div class="post-page">
|
<div class="post-page">
|
||||||
<?php
|
<?php
|
||||||
$tmp_search = new WP_Query('s=' . wp_specialchars($_GET['s']) . '&show_posts=-1&posts_per_page=-1');
|
$tmp_search = new WP_Query('s=' . wp_specialchars($_GET['s']) . '&show_posts=-1&posts_per_page=-1');
|
||||||
$count = $tmp_search->post_count;
|
$count = $tmp_search->post_count;
|
||||||
?>
|
?>
|
||||||
<h2 class="pagetitle">Search for ‘<?php the_search_query() ?>’</h2>
|
<h2 class="pagetitle">Search for ‘<?php the_search_query() ?>’</h2>
|
||||||
Found <?php echo $count; ?> result<?php if ($count !== 1) { echo "s"; } ?>.
|
Found <?php echo $count; ?> result<?php if ($count !== 1) { echo "s"; } ?>.
|
||||||
</div>
|
</div>
|
||||||
<div class="post-page-foot"></div>
|
<div class="post-page-foot"></div>
|
||||||
|
|
||||||
<?php if (have_posts()) : ?>
|
<?php if (have_posts()) : ?>
|
||||||
|
|
||||||
<?php $posts = query_posts($query_string.'&order=asc');
|
<?php $posts = query_posts($query_string.'&order=asc');
|
||||||
while (have_posts()) : the_post() ?>
|
while (have_posts()) : the_post() ?>
|
||||||
|
|
||||||
<?php global $archive_comic_width; if (in_comic_category()) { ?>
|
<?php global $archive_comic_width; if (in_comic_category()) { ?>
|
||||||
|
|
||||||
<div class="post-comic-head"></div>
|
<div class="post-comic-head"></div>
|
||||||
<div class="post-comic">
|
<div class="post-comic">
|
||||||
<div class="comicdate">
|
<div class="comicdate">
|
||||||
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
||||||
</div>
|
</div>
|
||||||
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
||||||
By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> <?php edit_post_link('[edit this]'); ?> <br />
|
By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> <?php edit_post_link('[edit this]'); ?> <br />
|
||||||
Posted in: <?php the_category(','); ?>
|
Posted in: <?php the_category(','); ?>
|
||||||
<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="Click for full size." title="Click for full size" width="<?php echo $archive_comic_width ?>" /><br />
|
<a href="<?php the_permalink() ?>"><img src="<?php the_comic_archive() ?>" alt="Click for full size." title="Click for full size" width="<?php echo $archive_comic_width ?>" /><br />
|
||||||
</div>
|
</div>
|
||||||
<br class="clear-margins" />
|
<br class="clear-margins" />
|
||||||
</div>
|
</div>
|
||||||
<div class="post-comic-foot"></div>
|
<div class="post-comic-foot"></div>
|
||||||
|
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
|
|
||||||
<div class="post-head"></div>
|
<div class="post-head"></div>
|
||||||
<div class="post">
|
<div class="post">
|
||||||
<div class="comicdate">
|
<div class="comicdate">
|
||||||
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
||||||
</div>
|
</div>
|
||||||
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
||||||
By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> <?php edit_post_link('[edit this]'); ?> <br />
|
By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> <?php edit_post_link('[edit this]'); ?> <br />
|
||||||
Posted in: <?php the_category(','); ?>
|
Posted in: <?php the_category(','); ?>
|
||||||
<?php the_excerpt() ?>
|
<?php the_excerpt() ?>
|
||||||
<br class="clear-margins" />
|
<br class="clear-margins" />
|
||||||
</div>
|
</div>
|
||||||
<div class="post-foot"></div>
|
<div class="post-foot"></div>
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
|
|
||||||
<?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } else { ?>
|
<?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } else { ?>
|
||||||
<div class="pagenav">
|
<div class="pagenav">
|
||||||
<div class="pagenav-right"><?php next_posts_link('Next Page ›') ?></div>
|
<div class="pagenav-right"><?php next_posts_link('Next Page ›') ?></div>
|
||||||
<div class="pagenav-left"><?php previous_posts_link('‹ Previous Page') ?></div>
|
<div class="pagenav-left"><?php previous_posts_link('‹ Previous Page') ?></div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
|
|
||||||
<div class="post-page-head"></div>
|
<div class="post-page-head"></div>
|
||||||
<div class="post-page">
|
<div class="post-page">
|
||||||
<h3>No entries found.</h3>
|
<h3>No entries found.</h3>
|
||||||
<p>Try another search?</p>
|
<p>Try another search?</p>
|
||||||
<p><?php include (TEMPLATEPATH . '/searchform.php') ?></p>
|
<p><?php include (TEMPLATEPATH . '/searchform.php') ?></p>
|
||||||
<br class="clear-margins" />
|
<br class="clear-margins" />
|
||||||
</div>
|
</div>
|
||||||
<div class="post-page-foot"></div>
|
<div class="post-page-foot"></div>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include(TEMPLATEPATH . '/sidebar.php') ?>
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
<?php get_footer() ?>
|
<?php get_footer() ?>
|
@ -6,7 +6,8 @@
|
|||||||
<img src="<?php the_comic() ?>" alt="<?php the_title() ?>" title="<?php the_hovertext() ?>" />
|
<img src="<?php the_comic() ?>" alt="<?php the_title() ?>" title="<?php the_hovertext() ?>" />
|
||||||
</div>
|
</div>
|
||||||
<div id="comic-foot"></div>
|
<div id="comic-foot"></div>
|
||||||
<?php comic_navigation(); ?>
|
<?php // if (function_exists('buy_this_comic')) { buy_this_comic(); } ?>
|
||||||
|
<?php // if (function_exists('comic_navigation')) { comic_navigation(); } ?>
|
||||||
<?php } endwhile; ?>
|
<?php } endwhile; ?>
|
||||||
|
|
||||||
<div id="content" class="narrowcolumn">
|
<div id="content" class="narrowcolumn">
|
||||||
|
19
style.css
19
style.css
@ -4,7 +4,7 @@ Theme URI: http://comicpress.org
|
|||||||
Description: Publish a comic with WordPress. Standard Edition. <a href="http://comicpress.org">Visit the ComicPress Website.</a>
|
Description: Publish a comic with WordPress. Standard Edition. <a href="http://comicpress.org">Visit the ComicPress Website.</a>
|
||||||
Author: Tyler Martin, John Bintz, Philip M. Hofer (Frumph)
|
Author: Tyler Martin, John Bintz, Philip M. Hofer (Frumph)
|
||||||
Author URI: http://mindfaucet.com/
|
Author URI: http://mindfaucet.com/
|
||||||
Version: 2.7.2
|
Version: 2.8
|
||||||
.
|
.
|
||||||
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
|
||||||
@ -1049,4 +1049,19 @@ a.rollfirst:hover, a.rollprev:hover, a.rollnext:hover, a.rolllast:hover
|
|||||||
{
|
{
|
||||||
width: 260px;
|
width: 260px;
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** BUY THIS **/
|
||||||
|
|
||||||
|
.buythis {
|
||||||
|
float: right;
|
||||||
|
margin-right: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.buythisbutton
|
||||||
|
{
|
||||||
|
height: 28px;
|
||||||
|
width: 240px;
|
||||||
|
background: url('images/buythis.png') no-repeat;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user