Permalink
Browse files

wrapper around the is_cp_layout

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
  • Loading branch information...
1 parent 01ddb76 commit cb03a118b005d4e2a3d5f177d9517f135c130232 Philip M. Hofer (Frumph) committed Nov 7, 2010
Showing with 9 additions and 7 deletions.
  1. +1 −1 changelog.txt
  2. +8 −6 functions.php
View
@@ -1,6 +1,6 @@
2.9.2.23
Adjusted "The Footer" back to just "Footer" the browsers that can't handle it will just have to be SOL
-
+made the is_cp_theme_layout into a function_exists so that it can be rehandled in the child-functions.php
2.9.2.22
Added ?latestcomic=# where # = category #
View
@@ -241,14 +241,16 @@ function comicpress_load_config() {
}
*/
-function is_cp_theme_layout($choices) {
- $choices = explode(",", $choices);
- foreach ($choices as $choice) {
- if (comicpress_themeinfo('cp_theme_layout') == $choice) {
- return true;
+if (!function_exists('is_cp_theme_layout')) {
+ function is_cp_theme_layout($choices) {
+ $choices = explode(",", $choices);
+ foreach ($choices as $choice) {
+ if (comicpress_themeinfo('cp_theme_layout') == $choice) {
+ return true;
+ }
}
+ return false;
}
- return false;
}
function is_cp_layout_avail($layout, $avail_layouts) {

0 comments on commit cb03a11

Please sign in to comment.