@@ 2500-2508 (lines=9) @@ | ||
2497 | function api_get_setting($variable, $key = null) |
|
2498 | { |
|
2499 | global $_setting; |
|
2500 | if ($variable == 'header_extra_content') { |
|
2501 | $filename = api_get_path(SYS_PATH).api_get_home_path().'header_extra_content.txt'; |
|
2502 | if (file_exists($filename)) { |
|
2503 | $value = file_get_contents($filename); |
|
2504 | return $value ; |
|
2505 | } else { |
|
2506 | return ''; |
|
2507 | } |
|
2508 | } |
|
2509 | if ($variable == 'footer_extra_content') { |
|
2510 | $filename = api_get_path(SYS_PATH).api_get_home_path().'footer_extra_content.txt'; |
|
2511 | if (file_exists($filename)) { |
|
@@ 2509-2517 (lines=9) @@ | ||
2506 | return ''; |
|
2507 | } |
|
2508 | } |
|
2509 | if ($variable == 'footer_extra_content') { |
|
2510 | $filename = api_get_path(SYS_PATH).api_get_home_path().'footer_extra_content.txt'; |
|
2511 | if (file_exists($filename)) { |
|
2512 | $value = file_get_contents($filename); |
|
2513 | return $value ; |
|
2514 | } else { |
|
2515 | return ''; |
|
2516 | } |
|
2517 | } |
|
2518 | $value = null; |
|
2519 | if (is_null($key)) { |
|
2520 | $value = ((isset($_setting[$variable]) && $_setting[$variable] != '') ? $_setting[$variable] : null); |