I cannot stand such coding styles. This is probably one of the hugest drawback in PHP programming. Mix of opening/closing PHP tags with {} and HTML... if the page is big enough no one will be able to read that. You need to change this.

Try to use plain php with a possible combination of sprintf. Example:
```
<?php
  function print_back_to_top() {
    $markup = '<div> %s </div>';
    echo sprtinf($markup, Array('some text'));
  }
?>
```

Also try to give your functions names which reflect functionality. if you write a documentation API and then tell your friend an API name print_back_to_top() would (s)he be able to understand you? I doubt they will understand the exact meaning of the function.