@@ 2381-2389 (lines=9) @@ | ||
2378 | function api_get_setting($variable, $key = null) |
|
2379 | { |
|
2380 | global $_setting; |
|
2381 | if ($variable == 'header_extra_content') { |
|
2382 | $filename = api_get_home_path().'header_extra_content.txt'; |
|
2383 | if (file_exists($filename)) { |
|
2384 | $value = file_get_contents($filename); |
|
2385 | return $value; |
|
2386 | } else { |
|
2387 | return ''; |
|
2388 | } |
|
2389 | } |
|
2390 | if ($variable == 'footer_extra_content') { |
|
2391 | $filename = api_get_home_path().'footer_extra_content.txt'; |
|
2392 | if (file_exists($filename)) { |
|
@@ 2390-2398 (lines=9) @@ | ||
2387 | return ''; |
|
2388 | } |
|
2389 | } |
|
2390 | if ($variable == 'footer_extra_content') { |
|
2391 | $filename = api_get_home_path().'footer_extra_content.txt'; |
|
2392 | if (file_exists($filename)) { |
|
2393 | $value = file_get_contents($filename); |
|
2394 | return $value; |
|
2395 | } else { |
|
2396 | return ''; |
|
2397 | } |
|
2398 | } |
|
2399 | $value = null; |
|
2400 | if (is_null($key)) { |
|
2401 | $value = ((isset($_setting[$variable]) && $_setting[$variable] != '') ? $_setting[$variable] : null); |