Just some codestyle. Can you add some spaces? Like this:
`$style = ($readonly || $disabled) ? 'display:none' : '';`