diff --git a/404.php b/404.php index daa1655..7c3e1d1 100644 --- a/404.php +++ b/404.php @@ -1,16 +1,22 @@ - + + comicpress_init(); + + ob_start(); + + ?>
- - - - - \ No newline at end of file + comicpress_options['layout']); +?> \ No newline at end of file diff --git a/archive.php b/archive.php index 0db27bd..ae6a436 100644 --- a/archive.php +++ b/archive.php @@ -1,7 +1,11 @@ - + - + } - - - - - \ No newline at end of file + $content = ob_get_clean(); + + include(get_template_directory() . '/layouts/' . $comicpress->comicpress_options['layout']); +?> \ No newline at end of file diff --git a/image.php b/image.php index dde48c2..1a6d149 100644 --- a/image.php +++ b/image.php @@ -1,69 +1,20 @@ - + + comicpress_init(); + + ob_start(); + + if (have_posts()) { + while (have_posts()) { + the_post(); + include_partial('image-post'); + } + } else { + include_partial('image-not-found'); + } - - - -Sorry, no image matched your criteria.
-Sorry, no image matched your criteria.
+