Permalink
Browse files

convert old layouts to new layout names so end user doesn't freak out

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
  • Loading branch information...
Philip M. Hofer (Frumph)
Philip M. Hofer (Frumph) committed Feb 13, 2011
1 parent 573c0f2 commit 748df3004f1dc0b4966a3525d0aa312fed06268e
Showing with 3 additions and 0 deletions.
  1. +3 −0 functions.php
View
@@ -221,6 +221,9 @@ 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) {

0 comments on commit 748df30

Please sign in to comment.