diff --git a/archive.php b/archive.php
index cdbbb24..b9dc72b 100644
--- a/archive.php
+++ b/archive.php
@@ -1,98 +1,98 @@
-
-
-
';
+ echo '
';
+ $first_comic = get_first_comic_permalink();
+ if ($first_comic != get_permalink()) {
+ echo '
';
+ } else {
+ echo '
';
+ }
+ $wp_query->is_single = true;
+ $prev_comic = get_permalink(get_adjacent_post(true, '', true));
+ if (!empty($prev_comic) && (get_permalink() != $first_comic)) {
+ echo '
';
+ } else {
+ echo '
';
+ }
+ $wp_query->is_single = $temp_single;
+ echo '
';
+ echo '
';
+ $last_comic = get_last_comic_permalink();
+ if ($last_comic != get_permalink()) {
+ echo '
';
+ } else {
+ echo '
';
+ }
+ $next_comic = get_permalink(get_adjacent_post(true, '', false));
+ if (!empty($next_comic) && (get_permalink() != $last_comic)) {
+ echo '
';
+ } else {
+ echo '
';
+ }
+ echo '
';
+ echo '
';
+ echo '
';
+ $wp_query = $temp_query;
+ $wp_query->is_single = $temp_single;
+ $post = $temp_post;
+ $temp_post = null;
+ $temp_query = null;
+ $temp_single = null;
+}
+
+?>
\ No newline at end of file
diff --git a/functions.php b/functions.php
index 00fd688..905c9c5 100644
--- a/functions.php
+++ b/functions.php
@@ -1,8 +1,14 @@
post_date);
+ $post_to_use = (is_object($override_post)) ? $override_post : $post;
+ $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) {
- return reset($results);
- }
+ if (count($results = glob("${folder_to_use}/${filter_with_date}")) > 0) {
+ return reset($results);
+ }
- $comic_pathfinding_errors[] = sprintf(__("Unable to find the file in the ';
- echo '
';
- $at_first = false;
- $first = get_first_comic();
- if (!empty($first)) { $at_first = ($post->ID == $first->ID); }
- if (!$at_first) {
- echo '
';
- } else {
- echo '
';
- }
- $prev_comic = get_permalink(get_previous_comic()->ID);
- if (!empty($prev_comic)) {
- echo '
';
- } else {
- echo '
';
- }
- echo '
';
- echo '
';
- $next = get_permalink(get_next_comic()->ID);
- if (!empty($next)) {
- echo '
';
- } else {
- echo '
';
- }
- $at_last = false;
- $last = get_last_comic();
- if (!empty($last)) { $at_last = ($post->idate == $last->idate); }
- if (!$at_last) {
- echo '
';
- } else {
- echo '
';
- }
- echo '
';
- echo '
';
- echo '
';
-}
?>
\ No newline at end of file
diff --git a/index.php b/index.php
index 7b6fde2..2b9cc44 100644
--- a/index.php
+++ b/index.php
@@ -9,7 +9,8 @@
diff --git a/search-transcript.php b/search-transcript.php
index 3f9f14d..bfcb1d3 100644
--- a/search-transcript.php
+++ b/search-transcript.php
@@ -1,82 +1,82 @@
-
-
-
-
-
-
- post_count;
- ?>
-
Transcript search for ‘’
- Found result.
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ post_count;
+ ?>
+
Transcript search for ‘’
+ Found result.
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
No transcripts found.
-
Try another search?
-
-
-
-
-
-
-
-
-
-
-
+ Posted in:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
No transcripts found.
+
Try another search?
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/search.php b/search.php
index 03ea397..5e241a2 100644
--- a/search.php
+++ b/search.php
@@ -1,82 +1,82 @@
-
-
-
-
-
-
- post_count;
- ?>
-
Search for ‘’
- Found result.
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ post_count;
+ ?>
+
Search for ‘’
+ Found result.
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
No entries found.
-
Try another search?
-
-
-
-
-
-
-
-
-
-
-
+ Posted in:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
No entries found.
+
Try another search?
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/single.php b/single.php
index 308bc04..ec76a0d 100644
--- a/single.php
+++ b/single.php
@@ -6,7 +6,8 @@
-
+
+
diff --git a/style.css b/style.css
index 0287179..aa0b91a 100644
--- a/style.css
+++ b/style.css
@@ -4,7 +4,7 @@ Theme URI: http://comicpress.org
Description: Publish a comic with WordPress. Standard Edition.
Visit the ComicPress Website.
Author: Tyler Martin, John Bintz, Philip M. Hofer (Frumph)
Author URI: http://mindfaucet.com/
-Version: 2.7.2
+Version: 2.8
.
The CSS, XHTML and design is released under GPL v3:
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;
float: right;
-}
\ No newline at end of file
+}
+
+
+/** BUY THIS **/
+
+.buythis {
+ float: right;
+ margin-right: 100px;
+}
+
+.buythisbutton
+{
+ height: 28px;
+ width: 240px;
+ background: url('images/buythis.png') no-repeat;
+}
\ No newline at end of file