fix syntax error, unexpected  'else'
codestyle
End tag (</div>) not closed properly in com_gantry edit template