Remove source php from loop snippets