Yep - you're missing a php opening tag.
Add
Code:
<?php
just before this line in your merged file
Code:
if ($products_attributes->fields['total'] > 1) {