Changeset 18 for branches/portal_by_daris/panels.php
- Timestamp:
- 02/10/09 09:23:02 (3 years ago)
- Files:
-
- 1 modified
-
branches/portal_by_daris/panels.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/portal_by_daris/panels.php
r16 r18 29 29 foreach ($panels as $cur_panel) 30 30 { 31 if ( FORUM_PAGE == 'pages' && $location == 3)31 if ($left_width == 0 && $location == 0 || $right_width == 0 && $location == 3 || FORUM_PAGE == 'pages' && $location == 3) 32 32 continue; 33 33 … … 42 42 if ($cur_panel['file'] != '' && file_exists($file) && is_file($file)) 43 43 require_once $file; 44 45 // if panel doesn't contain php code just echo it 46 else if (strpos($cur_panel['content'], '<?') === false) 47 echo $cur_panel['content']; 44 48 45 49 // else evaluate panel content … … 47 51 eval('?>'.$cur_panel['content']); 48 52 49 50 53 $cur_panel['content'] = ob_get_contents(); 51 54 ob_end_clean(); 52 53 if (! $cur_panel['content'])55 56 if (!trim($cur_panel['content'])) 54 57 continue; 55 58 … … 111 114 { 112 115 $center_width -= 2; 113 #$style_center .= 'margin-left: 1%;'; 114 $left_width .= '%; margin-right: 1'; 115 // $right_width .= '%; margin-left: 1'; 116 $left_width .= '%; margin-right: 1'; // 1% 116 117 } 117 118 elseif (!count($panels_output[0]) && !count($panels_output[3])) { /* do nothing */ }