diff --git a/functions.php b/functions.php index 5736a1c..c7dc854 100644 --- a/functions.php +++ b/functions.php @@ -1,7 +1,5 @@ 'standard', + 'disable_comic_frontpage' => false, 'disable_comic_blog_frontpage' => false, 'disable_comic_blog_single' => false, @@ -211,11 +212,10 @@ function comicpress_load_options() { } function is_cp_theme_layout($choices) { - global $comicpress_options; + $comicpress_options = comicpress_load_options(); $choices = explode(",", $choices); foreach ($choices as $choice) { - - if ($choice == $comicpress_options['cp_theme_layout']) { + if ($comicpress_options['cp_theme_layout'] == $choice) { return true; } } diff --git a/layout-head.php b/layout-head.php index 7319426..32bdf81 100644 --- a/layout-head.php +++ b/layout-head.php @@ -14,7 +14,7 @@
- +