fixed closing brace warning at endforeach, etc
fixes #5

using php inline in html will no longer throw errors