| @@ 1060-1066 (lines=7) @@ | ||
| 1057 | foreach ($features as $key => $value) { |
|
| 1058 | if ($key != 'dont_close') { |
|
| 1059 | $attributes .= ' ' . $key . '="'; |
|
| 1060 | if (is_array($value)) { |
|
| 1061 | foreach ($value as $key2 => $value2) { |
|
| 1062 | $attributes .= $key2 . ':' . $value2 . ';'; |
|
| 1063 | } |
|
| 1064 | } else { |
|
| 1065 | $attributes .= str_replace('"', '\'', $value); |
|
| 1066 | } |
|
| 1067 | $attributes .= '"'; |
|
| 1068 | } |
|
| 1069 | } |
|
| @@ 1093-1099 (lines=7) @@ | ||
| 1090 | if (!is_null($features)) { |
|
| 1091 | foreach ($features as $key => $value) { |
|
| 1092 | $attributes .= ' ' . $key . '="'; |
|
| 1093 | if (is_array($value)) { |
|
| 1094 | foreach ($value as $key2 => $value2) { |
|
| 1095 | $attributes .= $key2 . ':' . $value2 . ';'; |
|
| 1096 | } |
|
| 1097 | } else { |
|
| 1098 | $attributes .= $value; |
|
| 1099 | } |
|
| 1100 | $attributes .= '"'; |
|
| 1101 | } |
|
| 1102 | } |
|