| @@ 316-324 (lines=9) @@ | ||
| 313 | } |
|
| 314 | } |
|
| 315 | // menu in layout information becomes an argument for Context:: set |
|
| 316 | if($layout_info->menu_count) |
|
| 317 | { |
|
| 318 | foreach($layout_info->menu as $menu_id => $menu) |
|
| 319 | { |
|
| 320 | $menu->php_file = FileHandler::getRealPath($menu->php_file); |
|
| 321 | if(FileHandler::exists($menu->php_file)) include($menu->php_file); |
|
| 322 | Context::set($menu_id, $menu); |
|
| 323 | } |
|
| 324 | } |
|
| 325 | ||
| 326 | Context::set('layout_info', $layout_info); |
|
| 327 | Context::set('content', Context::getLang('layout_preview_content')); |
|
| @@ 352-361 (lines=10) @@ | ||
| 349 | } |
|
| 350 | } |
|
| 351 | // menu in layout information becomes an argument for Context:: set |
|
| 352 | if($layout_info->menu_count) |
|
| 353 | { |
|
| 354 | foreach($layout_info->menu as $menu_id => $menu) |
|
| 355 | { |
|
| 356 | $menu->php_file = FileHandler::getRealPath($menu->php_file); |
|
| 357 | if(FileHandler::exists($menu->php_file)) include($menu->php_file); |
|
| 358 | ||
| 359 | Context::set($menu_id, $menu); |
|
| 360 | } |
|
| 361 | } |
|
| 362 | ||
| 363 | Context::set('layout_info', $layout_info); |
|
| 364 | Context::set('content', Context::getLang('layout_preview_content')); |
|