PHP code printed into CSS classes

Well, previous developer was a little bit naughty (;)) and used PHP short tags, which is a bad practice… And even worse – he used them a little bit wrong, I guess…

As you can see, there is something like this in your code:

style="<?print implode(';',$styles); ?>">

Of course there is no such thing like <?print in PHP, it should be <? print.

But you shouldn’t use short tags (<?). They’re turned off on some servers, so here’s how to fix it:

<div class="spacer spacer-60"></div></div></div></div></section><section data-anchor-title="Profile" data-anchor="profile" id="profile" class="<?php print implode(' ', $classes); ?>" style="<?php print implode(';', $styles); ?>">

PS. Also… It would be nice to add some proper escaping in there…