diff --git a/functions/displaycomic.php b/functions/displaycomic.php
index 24d3983..a04d4cf 100644
--- a/functions/displaycomic.php
+++ b/functions/displaycomic.php
@@ -1,5 +1,20 @@
+
+";
+ $comic_image = "";
break;
}
}
@@ -25,58 +40,74 @@ function comicpress_display_comic_image($searchorder = "comic",$use_post_image =
return apply_filters('comicpress_display_comic_image',$comic_image);
}
-
-function comicpress_display_comic_area() {
- global $post, $wp_query, $comicpress_options;
- if (comicpress_check_child_file('partials/displaycomic') == false) { ?>
-
-\r\n";
+ $output .= " \r\n";
+ $output .= "\r\n";
+ return apply_filters('comicpress_display_comic_swf',$output);
}
-function comicpress_display_comic() {
- global $post, $wp_query, $rascal_says, $comicpress_options, $comic_filename_filters;
- $next_comic = get_next_comic_permalink();
+function comicpress_display_comic() {
+ global $post;
$comic = explode(".", the_comic_filename());
- if ($comic[1] == 'swf') { ?>
-
-
-
-
-
-
-
-
-
-
-
- {$output}\r\n";
+ return $output;
+}
+
+function comicpress_rascal_says($output) {
+ global $post, $wp_query, $comicpress_options;
+ $hovertext = get_post_meta( get_the_ID(), "hovertext", true );
+ if (!empty($hovertext)) {
+ $output = preg_replace('#title="([^*]*)"#', '', $output);
+ $href_to_use = "#";
+
+ $output = "{$hovertext} {$output}\r\n";
+ }
+ if ($comicpress_options['comic_clicks_next']) {
+ $href_to_use = get_next_comic_permalink();
+ $output = "{$output}";
+ } else {
+ $output = "{$output}";
+ }
+ return apply_filters('comicpress_rascal_says',$output);
+}
+
+// global $comicpress_options, $post;
+
+if ($comicpress_options['rascal_says']) {
+ add_filter('comicpress_display_comic_image', 'comicpress_rascal_says');
+}
+
+if ($comicpress_options['comic_clicks_next'] && !$comicpress_options['rascal_says']) {
+ add_filter('comicpress_display_comic_image', 'comicpress_comic_clicks_next');
+}
+
+
+
?>
\ No newline at end of file