From 4117b86252bc006d9563ae9181dba67a35c87e13 Mon Sep 17 00:00:00 2001 From: Joshua Roy Date: Fri, 13 Feb 2015 14:25:31 -0500 Subject: [PATCH] Update to fix home 8-30 bug --- css/widgets-area.php | 49 +++++++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 21 deletions(-) diff --git a/css/widgets-area.php b/css/widgets-area.php index 8ca618a..a57cdfc 100644 --- a/css/widgets-area.php +++ b/css/widgets-area.php @@ -1,22 +1,29 @@ - $index ){ - $index = $i; //$index is the biggest home widget area that has widgets, the next widget area doesn't have widgets - } - } - } - $start = ++$index; - for ($i=$start; $i < 31; $i++) { - echo '#home'.$i.'{ display:none; } '; - } + $index ){ + $index = $i; //$index is the biggest home widget area that has widgets, the next widget area doesn't have widgets + } + } + } + $start = ++$index; + $hidehomes = array(); + $showhomes = array(); + for ($i=$start; $i < 61; $i++) { + $hidehomes[] = '#home'.$i; + } + for ($i=1; $i < $start; $i++) { + $showhomes[] = '#home'.$i; + } + echo implode(', ',$hidehomes).' { display:none; } '; + echo implode(', ',$showhomes).' { display:block; } '; ?> \ No newline at end of file