diff --git a/archive.php b/archive.php index 265ced8..9a6aa4e 100644 --- a/archive.php +++ b/archive.php @@ -54,8 +54,9 @@ if (is_category() && in_comic_category()) { ?>
+
- <?php the_title() ?> +
diff --git a/functions.php b/functions.php index afb6950..bda8d7d 100644 --- a/functions.php +++ b/functions.php @@ -119,7 +119,7 @@ add_action('init', '__comicpress_init'); function comicpress_load_options() { global $comicpress_options, $comiccat, $blogcat, $comic_folder, $rss_comic_folder, - $archive_comic_folder, $mini_comic_folder, $archive_comic_width, + $archive_comic_folder, $mini_comic_folder, $archive_comic_width, $mini_comic_width, $rss_comic_width; $comicpress_options = get_option('comicpress_options'); @@ -232,11 +232,12 @@ function comicpress_load_options() { } $comicpress_options['comicpress_version'] = '2.9.0.9'; + extract($comicpress_options['comicpress_config']); // if (file_exists(get_template_directory() . '/comicpress-config.php')) { // include(get_template_directory() . '/comicpress-config.php'); // } else { - extract($comicpress_options['comicpress_config']); + // } update_option('comicpress_options', $comicpress_options); diff --git a/functions/displaycomic.php b/functions/displaycomic.php index 94720c5..aa3f6d2 100644 --- a/functions/displaycomic.php +++ b/functions/displaycomic.php @@ -18,7 +18,7 @@ function comicpress_display_comic_area() { function comicpress_display_comic_image($searchorder = "comic", $use_post_image = false, $override_post = null, $title = null) { global $post; $post_to_use = !is_null($override_post) ? $override_post : $post; - $title_to_use = !is_null($title) ? $title : the_hovertext($post_to_use); + $title_to_use = !is_null($title) ? $title : the_hovertext($post_to_use); if ($use_post_image) { if (function_exists('has_post_thumbnail')) { if ( has_post_thumbnail($post_to_use->ID) ) { @@ -27,12 +27,18 @@ function comicpress_display_comic_image($searchorder = "comic", $use_post_image } } } + if (!isset($comic_image)) { + $comic = explode(".", the_comic_filename()); + if ($comic[1] == 'swf') { + $comic_image = "\"{$title_to_use}\""; + } + } if (!isset($comic_image)) { $searchorder = explode(',',$searchorder); $requested_archive_image = ''; foreach ($searchorder as $type) { if (($requested_archive_image = get_comic_url($type, $post_to_use)) !== false) { - $comic_image = "\"".get_the_title($post_to_use)."\""; + $comic_image = "\"".get_the_title($post_to_use)."\""; break; } } diff --git a/images/mediafile.png b/images/mediafile.png new file mode 100644 index 0000000..51c3743 Binary files /dev/null and b/images/mediafile.png differ