Permalink
Browse files

Set old layouts to new layouts in the comicpress_themeinfo()

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
  • Loading branch information...
1 parent 748df30 commit 757b5aa6a9faba70496e0144d882c0268a06d258 Philip M. Hofer (Frumph) committed Feb 13, 2011
Showing with 4 additions and 3 deletions.
  1. +1 −0 changelog.txt
  2. +3 −3 functions.php
View
@@ -17,6 +17,7 @@ added setup_postdata in the comments widget to properly access data
if disable_blog_frontpage is enabled, allow comments to be displayed on comic posts on home page if comic post is shown
wp-pagenavi.php internalization fix w/removal of usage of an option
moved to using add_theme_page()
+added proper default.mo and default.po files for proper language translation
2.9.2.29.1
$is_comic needed to be set in the archive.php before hand, was giving notice
View
@@ -221,9 +221,6 @@ function is_cp_theme_layout($choices) {
function is_cp_layout_avail($layout, $avail_layouts) {
if (empty($layout)) return false;
- if ($layout == 'gn') $layout = 'lgn';
- if ($layout == 'standard') $layout = '3c';
- if ($layout == 'v') $layout = '2cvl';
if (empty($avail_layouts)) $avail_layouts = '2cr,2cl,2cvr,2cvl,3c,3c2r,3c2l,v3c,v3cr,v3cl,lgn,rgn';
$avail_layouts = explode(",",$avail_layouts);
foreach ($avail_layouts as $able_layout) {
@@ -550,6 +547,9 @@ function comicpress_themeinfo($whichinfo = null) {
$comicpress_themeinfo['basedir'] = ABSPATH;
$comicpress_themeinfo['baseurl'] = trailingslashit($comicpress_themeinfo['siteurl']);
}
+ if ($comicpress_themeinfo['layout'] == 'standard') $comicpress_themeinfo['layout'] = '2cr';
+ if ($comicpress_themeinfo['layout'] == 'gn') $comicpress_themeinfo['layout'] = 'lgn';
+ if ($comicpress_themeinfo['layout'] == 'v') $comicpress_themeinfo['layout'] = '2cvl';
}
if ($whichinfo && $whichinfo !== 'reset')
if (isset($comicpress_themeinfo[$whichinfo]))

0 comments on commit 757b5aa

Please sign in to comment.