@@ 953-960 (lines=8) @@ | ||
950 | } |
|
951 | } elseif (substr($field_elements, 0, 8) == '@INCLUDE') { |
|
952 | $file_name = MODX_BASE_PATH . trim(substr($field_elements, 9)); |
|
953 | if (!file_exists($file_name)) { |
|
954 | $custom_output = $file_name . ' does not exist'; |
|
955 | } else { |
|
956 | ob_start(); |
|
957 | include $file_name; |
|
958 | $custom_output = ob_get_contents(); |
|
959 | ob_end_clean(); |
|
960 | } |
|
961 | } elseif (substr($field_elements, 0, 6) == "@CHUNK") { |
|
962 | $chunk_name = trim(substr($field_elements, 7)); |
|
963 | $chunk_body = $modx->getChunk($chunk_name); |
|
@@ 997-1004 (lines=8) @@ | ||
994 | $custom = explode(":", $field_type); |
|
995 | $custom_output = ''; |
|
996 | $file_name = MODX_BASE_PATH . 'assets/tvs/' . $custom['1'] . '/' . $custom['1'] . '.customtv.php'; |
|
997 | if (!file_exists($file_name)) { |
|
998 | $custom_output = $file_name . ' does not exist'; |
|
999 | } else { |
|
1000 | ob_start(); |
|
1001 | include $file_name; |
|
1002 | $custom_output = ob_get_contents(); |
|
1003 | ob_end_clean(); |
|
1004 | } |
|
1005 | $replacements = array( |
|
1006 | '[+field_type+]' => $field_type, |
|
1007 | '[+field_id+]' => $field_id, |